:root {
  --bg: #0A0A0A;
  --bg-elevated: #0A0A0A;
  --bg-soft: #0A0A0A;
  --gold: #d4af37;
  --gold-soft: #c9a227;
  --gold-deep: #8a7020;
  --text: #f3efe4;
  --text-muted: #b7b0a0;
  --line: rgba(212, 175, 55, 0.28);
  --danger: #c45c5c;
  --ok: #6f9e6f;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text);
  background: #0A0A0A;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #f0d878; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.visually-hidden,
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
}

.heading-1, .heading-2, .heading-3, .heading-4, .heading-5 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-wrap: balance;
  margin: 0;
}
.heading-1 { font-size: 60px; line-height: 1; }
.heading-2 { font-size: 48px; line-height: 1; }
.heading-3 { font-size: 36px; line-height: 40px; }
.heading-4 { font-size: 30px; line-height: 36px; }
.heading-5 { font-size: 24px; line-height: 32px; }

.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--text-muted); text-wrap: pretty; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; color: var(--text-muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0A0A0A;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
  min-height: 88px;
  padding-block: 8px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-logo {
  width: auto;
  height: 72px;
  max-width: min(220px, 42vw);
  object-fit: contain;
  background: #0A0A0A;
}

.site-nav {
  display: flex;
  align-items: center;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: var(--space-200);
}
.nav-brand-block,
.nav-footer-block,
.nav-backdrop {
  display: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-200);
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gold);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.nav-cart:hover {
  color: #f0d878;
  border-color: var(--gold);
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.06);
  padding: 10px;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 70;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #e1c15a, var(--gold-soft) 45%, var(--gold-deep));
  color: #1a1408;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}
.btn-primary:hover { filter: brightness(1.05); color: #1a1408; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--gold);
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.08); }
.btn-block { width: 100%; }

.hero {
  position: relative;
  padding: var(--space-800) 0 var(--space-700);
  overflow: hidden;
}
.hero-visual {
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  padding: var(--space-800) 0 var(--space-700);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.85) contrast(1.05);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.72) 42%, rgba(10, 10, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.55) 55%, #0A0A0A 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-bottom: var(--space-200);
}
.hero-brand {
  width: min(340px, 78vw);
  height: auto;
  margin-bottom: var(--space-300);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}
.hero-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  margin: 0 0 var(--space-100);
}
.hero-title {
  color: var(--text);
  margin: 0;
}
.hero-lead {
  margin: var(--space-200) 0 var(--space-300);
  max-width: 38ch;
  color: #d7d0c2;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-100);
}
.hero-messengers {
  margin-top: var(--space-200);
}
.hero-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0A0A0A;
  padding: var(--space-300);
  box-shadow: var(--shadow);
}
.hero-panel img {
  width: 100%;
  border-radius: 8px;
  background: #0A0A0A;
  object-fit: contain;
  max-height: 360px;
}

.mood-strip {
  border-block: 1px solid var(--line);
  background: #0A0A0A;
  overflow: hidden;
}
.mood-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 0;
}
.mood-item {
  margin: 0;
  position: relative;
  min-height: 180px;
  overflow: hidden;
}
.mood-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
  filter: brightness(0.78);
}
.mood-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}
.mood-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 20px;
  line-height: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-500);
  align-items: center;
}
.about-preview-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}
.about-preview-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.about-preview-text .body-3 {
  margin-top: var(--space-200);
}

.section {
  padding: var(--space-700) 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-300);
  margin-bottom: var(--space-400);
}
.section-head p { max-width: 48ch; margin: var(--space-100) 0 0; }

.cat-grid,
.product-grid,
.feature-grid {
  display: grid;
  gap: var(--space-300);
}
.cat-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.product-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }

.cat-card,
.product-card,
.feature-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cat-card:hover,
.product-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}
.cat-card {
  padding: var(--space-400) var(--space-300);
  text-align: center;
  color: var(--text);
}
.cat-card-media {
  padding: 0;
  text-align: left;
  display: grid;
}
.cat-card-image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
}
.cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.cat-card-media:hover .cat-card-image img {
  transform: scale(1.04);
}
.cat-card-body {
  display: grid;
  gap: 6px;
  padding: var(--space-200);
}
.cat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  line-height: 32px;
  color: var(--gold);
  margin-bottom: 8px;
}
.cat-card-media strong {
  margin-bottom: 0;
}
.product-media {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-body {
  padding: var(--space-200);
  display: grid;
  gap: var(--space-75);
}
.product-body h3 {
  font-family: var(--display);
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  margin: 0;
}
.product-body h3 a { color: var(--text); }
.product-body h3 a:hover { color: var(--gold); }
.price {
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
}
.feature-card,
.info-card {
  padding: var(--space-300);
}
.feature-card h3,
.info-card h3 {
  font-family: var(--display);
  margin: 0 0 var(--space-100);
  color: var(--gold);
}

.page-hero {
  padding: var(--space-700) 0 var(--space-400);
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 60ch; margin-top: var(--space-200); }
.page-hero-media {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  padding: var(--space-700) 0;
  min-height: 320px;
  display: grid;
  align-items: end;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.page-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35), rgba(10,10,10,0.88) 70%, #0A0A0A);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero-content .body-3 {
  color: #d7d0c2;
}

.about-grid,
.contacts-grid,
.product-detail,
.cart-layout {
  display: grid;
  gap: var(--space-400);
}
.about-grid,
.contacts-grid,
.cart-layout {
  grid-template-columns: 1.2fr 0.8fr;
}
.product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
.product-gallery {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: var(--space-300);
}
.product-gallery img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin-inline: auto;
}

.form {
  display: grid;
  gap: var(--space-200);
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0A0A0A;
  color: var(--text);
  padding: 10px 12px;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th,
.cart-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.cart-table th { color: var(--gold); font-weight: 600; }
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}
.cart-empty {
  padding: var(--space-600) 0;
  text-align: center;
}

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-soft);
}
.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.site-footer {
  margin-top: var(--space-800);
  border-top: 1px solid var(--line);
  background: #0A0A0A;
  padding: var(--space-600) 0 var(--space-300);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-400);
}
.footer-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  background: #0A0A0A;
}
.footer-title {
  font-family: var(--display);
  color: var(--gold);
  font-size: 24px;
  margin: 0 0 var(--space-200);
}
.footer-links,
.footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}
.footer-bottom {
  margin-top: var(--space-400);
  padding-top: var(--space-200);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 14px;
}

.messenger-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  gap: 10px;
}
.messenger-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0A0A0A;
  background: linear-gradient(180deg, #e1c15a, #c9a227 45%, #8a7020);
  border: 1px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.messenger-btn:hover {
  color: #0A0A0A;
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.messenger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.messenger-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #0A0A0A;
  color: var(--gold);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.messenger-chip:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  color: #f0d878;
}
.messenger-chip svg {
  flex-shrink: 0;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: var(--space-200);
  border: 1px solid;
}
.alert-ok { background: rgba(111,158,111,0.12); border-color: var(--ok); color: #cfe3cf; }
.alert-error { background: rgba(196,92,92,0.12); border-color: var(--danger); color: #f0c7c7; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-300);
}
.step {
  border-left: 1px solid var(--line);
  padding-left: var(--space-200);
}
.step-num {
  color: var(--gold);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  margin-bottom: 8px;
}
.faq summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 600;
}
.faq p { color: var(--text-muted); }

@media (max-width: 960px) {
  .heading-1 { font-size: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .hero-visual {
    min-height: 78vh;
    align-items: center;
  }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.78) 45%, #0A0A0A 100%);
  }
  .mood-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-preview,
  .about-grid,
  .contacts-grid,
  .product-detail,
  .cart-layout,
  .footer-grid,
  .cat-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .site-header { z-index: 80; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 60;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    background:
      radial-gradient(520px 240px at 100% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
      #0A0A0A;
    border-left: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.45);
    transform: translateX(104%);
    transition: transform 0.3s ease;
    z-index: 70;
    overflow-y: auto;
  }
  .site-nav.is-open {
    transform: translateX(0);
  }
  .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 100%;
    padding: 88px 20px 28px;
  }
  .nav-brand-block {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .nav-mark {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #0A0A0A;
  }
  .nav-brand-name {
    font-family: var(--display);
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .nav-brand-tag {
    font-size: 12px;
    line-height: 16px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-ornament {
    width: 120px;
    height: 1px;
    margin-top: 8px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    position: relative;
  }
  .nav-ornament::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--gold);
  }
  .nav-links {
    display: grid;
    gap: 0;
    margin-bottom: 16px;
  }
  .nav-links a {
    font-family: var(--display);
    font-size: 28px;
    line-height: 32px;
    font-weight: 600;
    color: #e8dfc8;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    letter-spacing: 0.02em;
  }
  .nav-links a:hover,
  .nav-links a.is-active {
    color: var(--gold);
    border-bottom-color: rgba(212, 175, 55, 0.55);
  }
  .nav-cart {
    justify-content: space-between;
    margin: 8px 0 20px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 8px;
    border-color: transparent;
    background: linear-gradient(180deg, #e1c15a, #c9a227 45%, #8a7020);
    color: #1a1408;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.22);
  }
  .nav-cart:hover {
    color: #1a1408;
    filter: brightness(1.05);
  }
  .nav-cart .cart-count {
    background: #0A0A0A;
    color: var(--gold);
  }
  .nav-footer-block {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
  }
  .nav-phone {
    font-family: var(--display);
    font-size: 22px;
    line-height: 28px;
    color: var(--gold);
    font-weight: 600;
  }
  .nav-address {
    font-size: 13px;
    line-height: 18px;
    color: var(--text-muted);
  }
  .nav-messengers {
    margin-top: 4px;
  }
  .nav-messengers .messenger-chip {
    flex: 1 1 auto;
    justify-content: center;
  }
  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 56px; }
  .hero { padding-top: var(--space-600); }
}
