:root {
  --bg: #0f1115;
  --bg-soft: #1a1e25;
  --panel: #212733;
  --text: #f5f7fb;
  --muted: #b8c0ce;
  --accent: #d2b570;
  --accent-strong: #f0cf83;
  --line: #303747;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, #2a303f 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, #242116 0%, transparent 35%),
    var(--bg);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  width: 190px;
  height: auto;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--accent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  line-height: 1.07;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.07rem;
}

.hero-image {
  background: linear-gradient(145deg, #1c212b, #12161d);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  animation: liftIn 0.65s ease;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #111319;
  padding: 12px 22px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-strong);
}

.offer-note,
.benefits,
.products,
.catalog-header {
  margin-top: 34px;
}

.offer-note p {
  color: var(--muted);
  max-width: 66ch;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #1c222d, #151922);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.card a {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #0f1319;
  border-radius: 10px;
  transition: opacity 0.35s ease;
}

.card h3 {
  margin: 5px 0 0;
}

.price {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.btn-secondary {
  border: 1px solid var(--accent);
  color: var(--text);
  width: fit-content;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.benefits ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.section-gold-divider {
  width: 100%;
  max-width: 760px;
  height: 2px;
  margin: 58px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-strong), var(--accent), transparent);
}

.section-gold-divider + .benefits {
  margin-top: 52px;
}

footer {
  margin-top: 50px;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  background: #0c0e13;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

footer > div {
  flex: 1 1 220px;
  min-width: 220px;
}

footer h3 {
  margin: 0 0 10px;
}

.footer-gold-line {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  margin: 0 0 10px;
}

footer p {
  margin: 6px 0;
  color: var(--muted);
}

footer a {
  color: var(--text);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent-strong);
}

.social-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.channel-footer-box {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(23, 28, 38, 0.85);
}

.channel-footer-box h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--accent-strong);
}

.catalog-header p {
  color: var(--muted);
  max-width: 60ch;
}

.product-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 20px 70px;
}

.contact-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 20px 70px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: stretch;
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.channel-box p {
  margin: 0;
  color: var(--muted);
}

.channel-box .social-link {
  margin-top: 10px;
}

.map-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #12161f;
  min-height: clamp(320px, 45vw, 500px);
  height: 100%;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 45vw, 500px);
  border: 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.product-main-image {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #12161f;
  padding: 18px;
}

.product-main-image img {
  width: 100%;
  height: clamp(260px, 38vw, 380px);
  object-fit: contain;
}

.product-gallery {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #12161f;
  padding: 8px;
  cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--accent);
}

.product-meta p {
  color: var(--muted);
}

.specs {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #171c26;
}

.specs ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.product-meta #product-price {
  margin-top: 22px;
}

.cta-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@keyframes liftIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  footer {
    gap: 30px;
  }

  footer > div {
    min-width: 180px;
  }

  .card img {
    height: 190px;
  }

  .product-main-image img {
    height: 320px;
  }

  .product-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo img {
    width: 165px;
  }

  nav {
    width: 100%;
    gap: 14px;
  }

  main {
    padding: 0 16px 60px;
  }

  .hero {
    gap: 18px;
    padding: 20px 0 14px;
  }

  .hero-image {
    padding: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 220px;
  }

  .product-main-image img {
    height: 270px;
  }

  .product-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  footer {
    justify-content: flex-start;
    gap: 24px;
  }

  footer > div {
    min-width: 100%;
  }
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 14, 19, 0.96);
  backdrop-filter: blur(8px);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.cookie-banner a {
  color: var(--accent-strong);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  cursor: pointer;
  font-family: inherit;
}

.cookie-actions .btn-secondary {
  background: transparent;
}

.cookie-banner-hidden {
  display: none;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 150px;
  }

  .card img {
    height: 200px;
  }

  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 300px;
  }
}
