/* ============================================================
   УАЗГАЗ — premium dark theme
   Fonts: Unbounded (display) + Manrope (UI/body)
   Palette: near-black + warm gold accent
   ============================================================ */
:root {
  --bg: #09090b;
  --bg-2: #0d0d10;
  --elev: #121214;
  --card: #18181b;
  --card-2: #202024;
  --card-3: #27272b;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --line-3: rgba(255,255,255,.22);

  --text: #f6f6f4;
  --muted: #a1a1aa;
  --faint: #71717a;
  --dim: #52525b;

  --gold: #e8a13a;
  --gold-1: #f7d070;
  --gold-2: #df9329;
  --gold-3: #c9781a;
  --gold-soft: rgba(232,161,58,.12);
  --gold-line: rgba(232,161,58,.42);
  --on-gold: #20140a;

  --green: #3ecf8e;
  --red: #f0584f;

  --container: 1240px;
  --header: 78px;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sh-sm: 0 10px 30px rgba(0,0,0,.45);
  --sh-md: 0 24px 60px rgba(0,0,0,.55);
  --sh-lg: 0 40px 110px rgba(0,0,0,.7);
  --glow: 0 18px 50px rgba(232,161,58,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle ambient texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(232,161,58,.10), transparent 60%),
    radial-gradient(760px 560px at -6% 4%, rgba(232,161,58,.05), transparent 55%),
    linear-gradient(180deg, #0c0c0f 0%, #09090b 42%, #08080a 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
}

body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
main { flex: 1; }
.text-gold { color: var(--gold); }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.15; }
p { margin: 0; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  margin-bottom: 18px; padding: 8px 14px;
  border: 1px solid var(--gold-line); border-radius: 999px;
  color: var(--gold); background: var(--gold-soft);
  font-family: var(--font); font-size: .72rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow i { font-size: 1rem; }

.section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.section--muted { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-inline: auto; margin-bottom: 40px; text-align: center; }
.section-heading p { margin-top: 16px; font-size: 1.05rem; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #141416, #09090b 70%);
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__panel { display: grid; justify-items: center; gap: 22px; padding: 30px; text-align: center; }
.preloader__mark { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.preloader__mark::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: conic-gradient(from 0deg, var(--gold), transparent 38%, var(--gold));
  animation: spin 1.1s linear infinite;
}
.preloader__mark::after { content: ""; position: absolute; inset: 4px; border-radius: 999px; background: #0c0c0f; }
.preloader__mark img { position: relative; z-index: 1; width: 58px; height: 58px; object-fit: contain; }
.preloader__logo { width: min(280px, 70vw); filter: drop-shadow(0 8px 22px rgba(0,0,0,.55)); }
.preloader__panel span { color: var(--faint); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(9,9,11,.72);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(9,9,11,.92); border-color: var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { width: auto; height: 46px; max-width: 230px; object-fit: contain; object-position: left center; }

.main-nav { display: flex; align-items: center; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }
.main-nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 9px 16px;
  border-radius: 999px; color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1;
  transition: color .2s ease, background .2s ease;
}
.main-nav__link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.main-nav__link.is-active { color: var(--on-gold); background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.phone-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 11px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--text);
  background: rgba(255,255,255,.03); font-weight: 700; font-size: .9rem;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.phone-link:hover { border-color: var(--gold-line); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.phone-link i { color: var(--gold); font-size: 1.1rem; }

.cart-button {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--gold-line); border-radius: 14px; color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: var(--glow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cart-button:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(232,161,58,.4); }
.cart-button.is-bumped { animation: bump .45s var(--ease); }
.cart-button i { font-size: 1.2rem; }
.cart-button__count {
  position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; display: grid;
  place-items: center; padding-inline: 5px; border: 2px solid var(--bg); border-radius: 999px;
  color: var(--text); background: #b91c1c; font-size: .68rem; font-weight: 800;
}
.cart-button__count:empty, .cart-button__count[data-empty="true"] { display: none; }

.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-2);
  border-radius: 14px; background: rgba(255,255,255,.03);
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; border-radius: 999px; background: var(--text); transition: transform .24s ease, opacity .24s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; overflow: hidden; border: 1px solid transparent;
  border-radius: 999px; font-family: var(--font); font-size: .94rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 0 38%, rgba(255,255,255,.28) 48%, transparent 60% 100%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { color: var(--on-gold); background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: var(--glow); }
.btn--primary:hover { box-shadow: 0 26px 64px rgba(232,161,58,.42); }
.btn--ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--gold-line); background: rgba(255,255,255,.07); }
.btn--light { color: var(--on-gold); background: #f4f4f2; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font-weight: 800; }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Hero (full-bleed) ---------- */
.hero { position: relative; isolation: isolate; min-height: calc(100vh - var(--header)); min-height: calc(100svh - var(--header)); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,9,11,.50) 0%, rgba(9,9,11,.10) 20%, rgba(9,9,11,.30) 46%, rgba(9,9,11,.80) 72%, rgba(9,9,11,.96) 88%, var(--bg) 100%),
    radial-gradient(120% 80% at 18% 96%, rgba(9,9,11,.82), transparent 66%);
}
.hero__inner { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
/* Balanced two-column hero: headline+proof on the left, brand picker on the right */
.hero__content { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); align-items: end; gap: clamp(28px, 4.6vw, 68px); }
.hero__text { max-width: 600px; }
.hero h1 { font-weight: 800; }
.hero__lead { max-width: 560px; margin-top: 22px; color: #d8d8d6; font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__proof span {
  display: inline-flex; align-items: baseline; gap: 7px; min-height: 42px; padding: 8px 15px;
  border: 1px solid var(--line-2); border-radius: 999px; color: #d4d4d8; background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px); font-weight: 600; font-size: .88rem;
}
.hero__proof strong { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }

/* Brand chooser — lives in the hero's right column */
.brand-choose { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; width: 100%; }
.brand-pick {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 250px; padding: 24px 24px 22px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--sh-md);
  transition: transform .26s var(--ease), border-color .26s ease, box-shadow .26s ease;
}
.brand-pick__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: transform .5s var(--ease); }
.brand-pick::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,9,11,.80) 0%, rgba(9,9,11,.28) 34%, rgba(9,9,11,.40) 60%, rgba(9,9,11,.93) 100%),
    linear-gradient(90deg, rgba(9,9,11,.74) 6%, rgba(9,9,11,0) 72%);
}
.brand-pick::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 3; height: 3px; background: linear-gradient(90deg, var(--gold-1), var(--gold-3)); opacity: .9; }
.brand-pick > span { position: relative; z-index: 2; }
.brand-pick:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: var(--sh-lg); }
.brand-pick:hover .brand-pick__img { transform: scale(1.05); }
.brand-pick__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.brand-pick__sub { color: var(--muted); font-size: .92rem; font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.brand-pick__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; color: var(--gold); font-weight: 800; font-size: .9rem; }
.brand-pick__go i { transition: transform .2s ease; }
.brand-pick:hover .brand-pick__go i { transform: translateX(5px); }

/* ---------- Value strip ---------- */
.value-strip { position: relative; z-index: 2; margin-top: -34px; }
.value-strip__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-md);
}
.value-strip__grid div { padding: 20px; border-radius: var(--r-md); background: rgba(255,255,255,.025); }
.value-strip__grid span { display: block; color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.value-strip__grid strong { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; }
.value-strip__grid p { margin-top: 5px; font-size: .9rem; }

/* ---------- Generic surface cards ---------- */
.card-surface,
.model-card, .feature-card, .category-card, .delivery-card, .contact-card, .contact-form,
.map-card, .story-copy, .story-card, .stat-card, .catalog-toolbar, .product-card, .table-wrap, .page-hero__panel {
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh-sm);
}

/* Brand section (home) */
.brand-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.model-grid, .feature-grid, .category-grid, .delivery-layout, .payment-grid, .contacts-grid, .contact-layout, .story-grid, .stats-grid { display: grid; gap: 22px; }
.feature-grid, .delivery-layout, .payment-grid, .contacts-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.category-grid { grid-template-columns: repeat(7, minmax(0,1fr)); }

.feature-card, .delivery-card, .contact-card, .story-copy, .story-card, .stat-card { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.feature-card, .delivery-card { min-height: 300px; padding: 0; display: flex; align-items: flex-end; isolation: isolate; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.feature-card:hover, .delivery-card:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: var(--sh-md); }
/* Full-bleed cinematic photo background — replaces the old gold icon chips */
.feature-card__img, .delivery-card__img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%; transition: transform .7s var(--ease);
}
.feature-card:hover .feature-card__img, .delivery-card:hover .delivery-card__img { transform: scale(1.06); }
.feature-card::after, .delivery-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,9,11,.04) 0%, rgba(9,9,11,.30) 46%, rgba(9,9,11,.85) 78%, rgba(9,9,11,.98) 100%),
    linear-gradient(90deg, rgba(9,9,11,.60) 0%, rgba(9,9,11,0) 60%);
}
/* slim gold underline that sweeps in on hover — brand accent, no icon chip */
.feature-card::before, .delivery-card::before {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 2; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.feature-card:hover::before, .delivery-card:hover::before { transform: scaleX(1); }
.feature-card__body, .delivery-card__body {
  position: relative; z-index: 2; width: 100%; display: grid; gap: 8px;
  padding: 24px 26px 26px; text-shadow: 0 2px 16px rgba(0,0,0,.62);
}
.feature-card h3, .delivery-card h2 { margin: 0; font-size: 1.26rem; }
.feature-card__body p, .delivery-card__body p { color: #d4d4d9; font-size: .95rem; line-height: 1.5; }
.delivery-card h2 { font-family: var(--font-display); font-weight: 700; }

.category-card {
  position: relative; min-height: 280px; display: flex; align-items: flex-end;
  padding: 0; overflow: hidden; border-radius: var(--r-md); color: var(--text);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.category-card__img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  transition: transform .6s var(--ease);
}
.category-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,9,11,0) 30%, rgba(9,9,11,.5) 62%, rgba(9,9,11,.93) 100%);
}
.category-card__body { position: relative; z-index: 2; width: 100%; display: grid; gap: 3px; padding: 16px 18px; }
.category-card__title { font-size: 1rem; font-weight: 800; letter-spacing: .005em; }
.category-card small { color: rgba(255,255,255,.64); font-size: .76rem; }
.category-card:hover { transform: translateY(-5px); border-color: var(--gold-line); box-shadow: var(--sh-md); }
.category-card:hover .category-card__img { transform: scale(1.06); }

/* ---------- CTA band ---------- */
.section--cta { padding: clamp(54px, 7vw, 92px) 0; }
.cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px; overflow: hidden;
  padding: clamp(30px, 4vw, 48px); border: 1px solid var(--gold-line); border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(232,161,58,.14), rgba(20,20,22,.6) 55%), var(--card);
  box-shadow: var(--sh-md);
}
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(232,161,58,.22), transparent 70%); }
.cta h2 { max-width: 720px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 70px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 80% -10%, rgba(232,161,58,.12), transparent 60%); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: end; gap: clamp(24px, 4vw, 56px); }
.page-hero p { max-width: 720px; margin-top: 20px; font-size: clamp(1rem, 1.3vw, 1.14rem); }
.page-hero__panel { position: relative; display: grid; gap: 5px; padding: 26px; border-radius: var(--r-lg); }
.page-hero__panel strong { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: .98; }
.page-hero__panel span { color: var(--text); font-weight: 800; }
.page-hero__panel small { color: var(--faint); font-weight: 600; }
/* Contacts: keep the phone number on a single line and sized to fit the panel */
@media (min-width: 921px) {
  .contacts-page .page-hero__grid { grid-template-columns: minmax(0,1fr) 440px; }
}
.contacts-page .page-hero__panel { gap: 8px; padding: 28px clamp(20px, 4.5vw, 30px); }
.contacts-page .page-hero__panel strong { white-space: nowrap; letter-spacing: -.02em; font-size: clamp(1.3rem, 5.2vw, 2.1rem); }
/* About: hero without the side panel — full-width intro */
.about-page .page-hero__grid { grid-template-columns: 1fr; }
.about-page .page-hero h1 { max-width: 18ch; }

/* ---------- Catalog ---------- */
.catalog-section { padding-top: clamp(48px, 6vw, 80px); }
.catalog-toolbar {
  position: sticky; top: calc(var(--header) + 14px); z-index: 20; display: grid;
  grid-template-columns: minmax(240px,1.3fr) minmax(140px,.6fr) minmax(170px,.7fr) auto auto;
  align-items: end; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: rgba(18,18,20,.92);
  backdrop-filter: blur(14px);
}
.field { display: grid; gap: 8px; }
.field > span { color: var(--faint); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field--search { position: relative; }
.field--search i { position: absolute; left: 16px; bottom: 15px; color: var(--gold); font-size: 1.15rem; pointer-events: none; }
.field--search input { padding-left: 44px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text);
  background: var(--card-2); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input, select { min-height: 52px; padding: 0 16px; }
select option { color: #111; }
textarea { min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,161,58,.18); background: var(--card-3); }

.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 26px; }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); transition: transform .26s var(--ease), border-color .26s ease, box-shadow .26s ease; }
.product-card:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: var(--sh-md); }
.product-card__image { position: relative; padding: 14px; background: radial-gradient(120% 90% at 70% 10%, rgba(232,161,58,.1), transparent 55%), var(--card-2); }
.product-card__image img { aspect-ratio: 1.3 / 1; width: 100%; object-fit: cover; border-radius: var(--r-md); background: var(--card-3); }
.product-card__brand { position: absolute; top: 24px; left: 24px; padding: 6px 11px; border-radius: 999px; color: var(--gold); background: rgba(9,9,11,.78); border: 1px solid var(--gold-line); font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.product-card__thumbs { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.product-card__thumbs button { width: 42px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: rgba(9,9,11,.7); backdrop-filter: blur(6px); transition: border-color .2s ease, transform .2s ease; }
.product-card__thumbs button.is-active { border-color: var(--gold); }
.product-card__thumbs button:hover { transform: translateY(-2px); border-color: var(--gold-line); }
.product-card__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.product-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card__category, .product-card__stock { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card__category { color: var(--faint); }
.product-card__stock { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.product-card__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.product-card h3 { font-family: var(--font); font-weight: 800; font-size: 1.04rem; line-height: 1.25; letter-spacing: -.01em; }
.product-card__meta { font-size: .84rem; color: var(--faint); }
.product-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.product-card__price { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.2rem; white-space: nowrap; }
.product-card__button {
  min-height: 46px; padding: 11px 18px; border: 1px solid var(--gold-line); border-radius: 999px; color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); font-size: .82rem; font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.product-card__button:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.product-card__button.is-added { background: linear-gradient(135deg, #34d399, #059669); border-color: transparent; color: #04130c; }
.empty-state, .loading-state { grid-column: 1 / -1; padding: 40px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); background: var(--card); text-align: center; font-weight: 600; }
.loading-state { display: grid; place-items: center; gap: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--gold); animation: spin .8s linear infinite; }

/* ---------- Cart drawer + checkout (matches screenshots) ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.62); opacity: 0; visibility: hidden; backdrop-filter: blur(4px); transition: opacity .26s ease, visibility .26s ease; }
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 100; width: min(480px, 100%); overflow: hidden;
  background: var(--bg); border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0,0,0,.7);
  transform: translateX(105%); transition: transform .34s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-view, .checkout-view, .checkout-success { position: absolute; inset: 0; grid-template-rows: auto 1fr auto; }
.cart-view { display: grid; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer__title { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em; }
.cart-drawer__title .count { color: var(--faint); font-family: var(--font); font-weight: 700; font-size: 1.1rem; }
.cart-drawer__close, .back-link__btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 14px; color: var(--text); background: transparent; transition: border-color .2s ease, background .2s ease; }
.cart-drawer__close:hover { border-color: var(--line-3); background: rgba(255,255,255,.05); }
.cart-drawer__close i { font-size: 1.3rem; }

.cart-body { min-height: 0; overflow: auto; padding: 20px 24px; display: grid; gap: 16px; align-content: start; }
.cart-empty { min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.cart-empty i { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 22px; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 1.7rem; }

.cart-item { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.cart-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cart-item__name { font-weight: 800; font-size: 1.04rem; line-height: 1.3; padding-right: 8px; }
.cart-item__del { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; color: var(--faint); background: transparent; transition: color .2s ease, background .2s ease; }
.cart-item__del:hover { color: var(--red); background: rgba(240,88,79,.12); }
.cart-item__del i { font-size: 1.25rem; }
.cart-item__tags { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tag-brand { padding: 4px 11px; border-radius: 999px; color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-soft); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.cart-item__sku { color: var(--faint); font-size: .84rem; font-weight: 600; letter-spacing: .02em; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.qty-control { display: inline-grid; grid-template-columns: 46px 44px 46px; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card-2); overflow: hidden; }
.qty-control button { height: 46px; border: 0; background: transparent; color: var(--text); font-size: 1.3rem; font-weight: 700; line-height: 1; transition: background .15s ease, color .15s ease; }
.qty-control button:hover { background: rgba(255,255,255,.06); color: var(--gold); }
.qty-control span { text-align: center; font-weight: 800; font-size: 1.02rem; }
.cart-item__price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }

.cart-foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 16px; background: var(--bg-2); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.cart-total span { color: var(--muted); font-weight: 600; font-size: 1.02rem; }
.cart-total strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2rem); }
.cart-foot .btn { min-height: 58px; font-size: 1.02rem; }

/* checkout view */
.checkout-view { display: none; }
.cart-drawer.show-checkout .cart-view { display: none; }
.cart-drawer.show-checkout .checkout-view { display: grid; }
.checkout-body { min-height: 0; overflow: auto; padding: 20px 24px; display: grid; gap: 18px; align-content: start; }
.back-link { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .96rem; padding: 4px 0; transition: color .2s ease; }
.back-link:hover { color: var(--text); }
.back-link i { font-size: 1.1rem; }
.checkout-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--muted); font-weight: 600; }
.checkout-summary strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--text); }
.form-field { display: grid; gap: 9px; }
.form-field label { font-weight: 700; font-size: .96rem; }
.form-field label .req { color: var(--gold); }
.form-field label .opt { color: var(--faint); font-weight: 600; }
.checkout-note { color: var(--faint); font-size: .86rem; line-height: 1.55; text-align: center; }
.pay-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: -4px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.pay-trust span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pay-trust i { color: var(--gold); font-size: 1.05rem; }
.checkout-success { display: none; padding: 40px 24px; text-align: center; }
.cart-drawer.show-success .cart-view, .cart-drawer.show-success .checkout-view { display: none; }
.cart-drawer.show-success .checkout-success { display: grid; place-items: center; gap: 16px; align-content: center; min-height: 60vh; }
.checkout-success__icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 26px; color: var(--green); background: rgba(62,207,142,.12); border: 1px solid rgba(62,207,142,.4); font-size: 2.2rem; }
.checkout-success h3 { font-size: 1.5rem; }
.field-error { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(240,88,79,.16) !important; }

/* ---------- Checkout: способ получения / оплаты ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); }
.seg__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 700; font-size: .92rem; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.seg__btn i { font-size: 1.15rem; }
.seg__btn:hover { color: var(--text); }
.seg__btn.is-active { color: var(--on-gold); background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); border-color: var(--gold-2); box-shadow: 0 6px 18px rgba(232,161,58,.25); }

.co-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--gold-line); border-radius: var(--r-md); background: var(--gold-soft); color: var(--muted); font-size: .9rem; line-height: 1.5; }
.co-note i { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.co-note b { color: var(--text); }

.pay-options { display: grid; gap: 10px; }
.pay-option { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.pay-option:hover { border-color: var(--line-3); }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--card-3); color: var(--gold); font-size: 1.3rem; }
.pay-option__txt { display: grid; gap: 2px; min-width: 0; }
.pay-option__txt b { font-weight: 800; }
.pay-option__txt small { color: var(--faint); font-size: .82rem; }
.pay-option__check { color: var(--gold); font-size: 1.4rem; opacity: 0; transition: opacity .2s ease; }
.pay-option.is-active { border-color: var(--gold-line); background: var(--gold-soft); }
.pay-option.is-active .pay-option__check { opacity: 1; }
.pay-option.is-active .pay-option__ic { background: rgba(232,161,58,.18); }

/* ---------- Tables / delivery / contacts / about ---------- */
.table-wrap { overflow: auto; border-radius: var(--r-lg); }
.price-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { color: var(--gold); background: rgba(255,255,255,.03); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price-table td { color: var(--muted); font-weight: 600; }
.price-table tr:last-child td { border-bottom: 0; }
.contact-card { display: grid; gap: 6px; padding: 24px; border-radius: var(--r-lg); }
.contact-card > i { margin-bottom: 10px; }
.contact-card span { color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-card a, .contact-card p { color: var(--text); font-weight: 700; }
/* Contact cards with background imagery */
.contact-card--media {
  min-height: 240px; display: flex; align-items: flex-end; padding: 0;
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.contact-card__img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; transition: transform .6s var(--ease);
}
.contact-card--media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,9,11,0) 28%, rgba(9,9,11,.58) 60%, rgba(9,9,11,.95) 100%),
    linear-gradient(90deg, rgba(9,9,11,.72), rgba(9,9,11,0) 64%);
}
.contact-card__body {
  position: relative; z-index: 2; width: 100%; display: grid; gap: 6px;
  padding: 22px 24px; text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.contact-card--media:hover { transform: translateY(-5px); border-color: var(--gold-line); box-shadow: var(--sh-md); }
.contact-card--media:hover .contact-card__img { transform: scale(1.06); }
.contact-layout { grid-template-columns: 1fr 1fr; align-items: stretch; }
.contact-form { position: relative; display: grid; gap: 16px; padding: 32px; border-radius: var(--r-lg); }
.section-heading--form { margin-inline: 0; margin-bottom: 4px; text-align: left; }
.form-message { min-height: 1.5em; color: var(--green); font-weight: 700; }
.map-card { position: relative; overflow: hidden; min-height: 480px; border-radius: var(--r-lg); background: var(--card); }
.map-card__embed { position: absolute; inset: 0; z-index: 0; }
.map-card__embed iframe, .map-card iframe { width: 100% !important; height: 100% !important; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); }
/* Адрес, подписанный прямо на карте */
.map-card__addr {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px);
  padding: 10px 15px; border-radius: 12px; background: rgba(12,12,14,.86);
  border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: .9rem;
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.map-card__addr i { color: var(--gold); font-size: 1.1rem; }
/* "Открыть в Яндекс Картах" — overlay button, opens the Yandex Maps app on mobile */
.map-card__open {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
  background: rgba(12,12,14,.82); border: 1px solid var(--gold-line); color: var(--gold);
  font-weight: 800; font-size: .86rem; backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.map-card__open:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: translateY(-2px); }
.map-card__open i { font-size: 1.05rem; }
.story-grid { grid-template-columns: minmax(0,1.05fr) minmax(300px,.6fr); align-items: stretch; }
.story-copy { position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); }
.story-copy h2 { margin-bottom: 18px; }
.story-copy p + p { margin-top: 14px; }
.story-card { display: grid; place-items: center; align-content: center; gap: 12px; padding: 36px; border-radius: var(--r-xl); text-align: center; }
.story-card img { width: min(280px, 80%); }
.story-card strong { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.story-card span { color: var(--faint); font-weight: 700; }
.stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat-card { display: grid; align-content: space-between; min-height: 170px; padding: 26px; border-radius: var(--r-lg); }
.stat-card strong { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: .95; }
.stat-card span { color: var(--muted); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: 60px 0 26px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #060608); color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: minmax(240px,1.3fr) .8fr .95fr 1fr; gap: 28px; align-items: start; }
.brand-logo--footer img { height: 52px; max-width: 240px; }
.footer__brand p { max-width: 420px; margin-top: 16px; color: var(--faint); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.03); color: var(--text); transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.footer__social a:hover { transform: translateY(-2px); border-color: var(--gold-line); color: var(--gold); }
.footer__column { display: grid; gap: 10px; }
.footer__column h2 { margin: 0 0 6px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.footer__column a, .footer__column p { color: var(--faint); font-weight: 600; }
.footer__column a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .84rem; }

/* ---------- Floating + toast ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--gold-line); border-radius: 16px; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: var(--glow); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .24s ease, visibility .24s ease, transform .24s ease; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100% - 36px)); padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); background: rgba(20,20,22,.96); box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 16px); backdrop-filter: blur(14px); transition: opacity .24s ease, visibility .24s ease, transform .24s ease; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast i { color: var(--gold); font-size: 1.2rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal--delay { transition-delay: .1s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 0% { transform: scale(1); } 42% { transform: scale(1.16) rotate(-5deg); } 100% { transform: scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --header: 74px; }
  .phone-link span { display: none; }
  .phone-link { width: 46px; padding-inline: 0; justify-content: center; }
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__grid { grid-template-columns: 1.1fr .7fr .8fr .9fr; }
}
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: calc(var(--header) + 10px); left: 20px; right: 20px; display: grid; gap: 6px; padding: 12px; border-radius: var(--r-lg); background: rgba(14,14,16,.98); box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .24s ease, visibility .24s ease, transform .24s ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav__link { justify-content: center; min-height: 46px; }
  .page-hero__grid, .contact-layout, .story-grid { grid-template-columns: 1fr; }
  .hero__content { grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .hero__text { max-width: 680px; }
  .brand-choose { max-width: 680px; }
  .feature-grid, .delivery-layout, .payment-grid, .contacts-grid, .stats-grid, .brand-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-toolbar { position: static; grid-template-columns: 1fr 1fr; }
  .catalog-toolbar .field--search { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header: 70px; }
  .container { width: min(100% - 28px, var(--container)); }
  .brand-logo img { height: 38px; max-width: 180px; }
  .cart-button, .phone-link, .menu-toggle { width: 44px; height: 44px; border-radius: 13px; }
  .header__actions { gap: 8px; }
  .hero { min-height: calc(100svh - var(--header)); }
  .brand-choose { grid-template-columns: 1fr; }
  .value-strip__grid, .feature-grid, .delivery-layout, .payment-grid, .contacts-grid, .stats-grid, .products-grid, .footer__grid, .catalog-toolbar, .brand-cards { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .category-card { min-height: 210px; }
  .catalog-toolbar .field--search { grid-column: auto; }
  .cta { flex-direction: column; align-items: stretch; text-align: left; }
  .footer__bottom { flex-direction: column; }
  .cart-drawer { width: 100%; }
}
@media (max-width: 420px) {
  .phone-link { display: none; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- SEO content blocks: catalog hero/text + FAQ accordion ---- */
.catalog-page .page-hero__grid { grid-template-columns: 1fr; }
.catalog-page .page-hero h1 { max-width: 22ch; }
.catalog-page .catalog-section { padding-top: clamp(20px, 3vw, 36px); }

.seo-text { max-width: 880px; margin-inline: auto; }
.seo-text h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.seo-text p { margin: 0 0 14px; color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.seo-text p:last-child { margin-bottom: 0; }
.seo-text strong { color: var(--text); font-weight: 600; }
.seo-text a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-line); white-space: nowrap; }
.seo-text a:hover { color: var(--gold-1); }

.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; transition: border-color .25s var(--ease); }
.faq__item[open] { border-color: var(--gold-line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 22px 20px; }
.faq__a p { margin: 0; color: var(--muted); line-height: 1.7; }

/* ---- 404 page ---- */
.error-box { max-width: 640px; margin-inline: auto; text-align: center; padding: clamp(20px, 5vw, 48px) 0; }
.error-code { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(4.5rem, 16vw, 9rem); line-height: 1; letter-spacing: -.04em; background: linear-gradient(180deg, var(--gold-1), var(--gold-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-box h1 { margin: 10px 0 14px; }
.error-box p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ============================================================
   SEO-страницы: категории и товары (серверный рендер)
   ============================================================ */

/* Карточка-ссылка в каталоге */
.product-card__imglink { display: block; }
.product-card__namelink { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.product-card__namelink:hover { color: var(--gold); }

/* Хлебные крошки */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.breadcrumb .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-hidden] { color: var(--faint); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* Страница товара */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-gallery__main { background: radial-gradient(120% 90% at 70% 10%, rgba(232,161,58,.1), transparent 55%), var(--card-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.product-gallery__main img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; border-radius: var(--r-md); background: var(--card-3); }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.product-gallery__thumbs button { width: 78px; height: 64px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card-2); cursor: pointer; transition: border-color .2s var(--ease); }
.product-gallery__thumbs button.is-active { border-color: var(--gold); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.product-info__brand { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 5px 12px; border-radius: 999px; }
.product-info h1 { margin: 14px 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.product-info__sub { color: var(--muted); margin-bottom: 22px; }
.product-info__buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-info__price { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--text); }
.product-info__stock { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: .95rem; }
.product-info__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.product-info__desc { color: var(--dim); line-height: 1.7; }
.product-info__desc p { margin: 0 0 12px; }
.product-specs { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.product-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-specs li span { color: var(--muted); }
.product-specs li b { color: var(--text); text-align: right; }

/* Навигация по другим категориям */
.cat-nav h2 { margin-bottom: 16px; }
.cat-nav__links { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-nav__links a { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--card-2); transition: border-color .2s var(--ease), color .2s var(--ease); }
.cat-nav__links a:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 26px; }
}

/* ============================================================
   Согласие на обработку персональных данных (152-ФЗ)
   ============================================================ */
.form-consent { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; margin: 2px 0; cursor: pointer; }
.form-consent input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; border: 1.5px solid var(--line-3); border-radius: 7px; background: var(--card-2); cursor: pointer; position: relative; transition: border-color .2s, background .2s, box-shadow .2s; }
.form-consent input[type="checkbox"]:hover { border-color: var(--gold-2); }
.form-consent input[type="checkbox"]:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,161,58,.28); }
.form-consent input[type="checkbox"]:checked { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: 0 2px 9px rgba(232,161,58,.34); }
.form-consent input[type="checkbox"]:checked::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320140a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.4L19 7'/%3E%3C/svg%3E") center / 80% 80% no-repeat; }
.form-consent span { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.form-consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.form-consent a:hover { color: var(--gold-1); }
.form-consent.field-error input[type="checkbox"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(240,88,79,.16); }
.form-consent.field-error span { color: var(--red); }

/* ============================================================
   Юридические страницы: оферта, политика, реквизиты
   ============================================================ */
.legal { padding: clamp(28px, 4vw, 56px) 0 clamp(44px, 5vw, 76px); }
.legal__wrap { max-width: 880px; margin-inline: auto; }
.legal__intro { color: var(--muted); margin-top: 16px; line-height: 1.7; max-width: 70ch; }
.legal__updated { color: var(--faint); font-size: .9rem; margin-top: 12px; }
.legal__doc { margin-top: 30px; display: grid; gap: 18px; }
.legal__section { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.legal__section > *:first-child { margin-top: 0; }
.legal__section h2 { font-size: clamp(1.12rem, 2vw, 1.4rem); margin-top: 6px; }
.legal__section h3 { font-size: 1.02rem; color: var(--text); font-family: var(--font-display); font-weight: 700; margin-top: 16px; }
.legal__section p { color: var(--muted); line-height: 1.72; margin-top: 12px; }
.legal__section ul, .legal__section ol { margin: 12px 0 0 1.15em; display: grid; gap: 9px; }
.legal__section li { color: var(--muted); line-height: 1.65; padding-left: 4px; }
.legal__section li::marker { color: var(--gold); }
.legal__section a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal__section strong { color: var(--text); }

/* Таблица реквизитов */
.req-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.req-table th, .req-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table th { width: 38%; color: var(--faint); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.req-table td { color: var(--text); font-weight: 600; }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: none; }
.req-copy { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: var(--r-sm); border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold-1); font-weight: 700; cursor: pointer; transition: background .2s; }
.req-copy:hover { background: rgba(232,161,58,.2); }
@media (max-width: 560px) {
  .req-table th, .req-table td { display: block; width: 100%; white-space: normal; }
  .req-table th { border-bottom: none; padding-bottom: 2px; }
  .req-table td { padding-top: 2px; word-break: break-word; }
}

/* ============================================================
   Личный кабинет (/account) + кнопка аккаунта в шапке
   ============================================================ */
.account-button {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line-2); border-radius: 14px; color: var(--text);
  background: rgba(255,255,255,.03);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.account-button:hover { transform: translateY(-2px); border-color: var(--gold-line); background: rgba(255,255,255,.07); }
.account-button i { font-size: 1.2rem; }
.account-button.is-active { border-color: var(--gold-line); color: var(--gold); background: var(--gold-soft); }
/* зелёная точка — пользователь вошёл в кабинет */
.account-button.is-logged::after {
  content: ""; position: absolute; top: -4px; right: -4px; width: 13px; height: 13px;
  border: 2px solid var(--bg); border-radius: 50%; background: var(--green);
}
@media (max-width: 880px) {
  .account-button { width: 44px; height: 44px; border-radius: 13px; }
}

.btn--sm { min-height: 44px; padding: 10px 16px; font-size: .85rem; }

.account-hero { padding-bottom: clamp(26px, 4vw, 44px); }
.account-section { padding-top: 10px; }

.acc-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 0; color: var(--faint); font-weight: 600; }
.acc-loading .spinner { margin: 0 auto; }

.acc-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  padding: clamp(20px, 3vw, 30px);
}
.acc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.acc-card__head h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.acc-card__head h2 i { color: var(--gold); }

.acc-auth { display: grid; justify-content: center; }
.acc-auth__card { width: min(480px, 100%); }
.acc-auth__tabs { margin-bottom: 22px; }

.acc-form { display: grid; gap: 16px; }
.acc-form__error { min-height: 1.2em; margin: 0; color: var(--red); font-size: .88rem; font-weight: 600; }
.acc-hint { color: var(--faint); font-size: .88rem; line-height: 1.55; }
.acc-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0;
  border: none; background: none; color: var(--gold); font-family: var(--font);
  font-size: .9rem; font-weight: 700; cursor: pointer;
}
.acc-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.acc-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.acc-badge.is-ok { color: var(--green); border: 1px solid rgba(62,207,142,.4); background: rgba(62,207,142,.1); }
.acc-badge.is-warn { color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-soft); }

.acc-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 16px 20px;
  border: 1px solid var(--gold-line); border-radius: var(--r-md); background: var(--gold-soft);
  color: var(--text); font-size: .92rem; line-height: 1.5;
}
.acc-banner > i { flex: none; color: var(--gold); font-size: 1.5rem; }
.acc-banner > div { flex: 1 1 280px; }
.acc-banner b { color: var(--gold-1); }

.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
.acc-grid .acc-card--orders { grid-row: span 2; }
@media (max-width: 980px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-grid .acc-card--orders { grid-row: auto; order: -1; }
}

.acc-orders__tabs { margin-bottom: 16px; }
.acc-empty { padding: 34px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--faint); text-align: center; font-weight: 600; }
.acc-empty a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.acc-order { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: 16px 18px; margin-bottom: 14px; }
.acc-order__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-order__id { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.acc-order__id b { font-size: 1rem; }
.acc-order__id span { color: var(--faint); font-size: .82rem; font-weight: 600; }
.acc-order__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.acc-order__meta i { color: var(--gold); margin-right: 4px; }

.acc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; border: 1px solid var(--line-2); color: var(--muted); }
.acc-st--new { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.acc-st--processing { color: #7dc4ff; border-color: rgba(125,196,255,.4); background: rgba(125,196,255,.1); }
.acc-st--done { color: var(--green); border-color: rgba(62,207,142,.4); background: rgba(62,207,142,.1); }
.acc-st--canceled { color: var(--red); border-color: rgba(240,88,79,.4); background: rgba(240,88,79,.1); }

.acc-order__items { display: none; list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.acc-order.is-open .acc-order__items { display: block; }
.acc-order__items li { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; font-size: .88rem; }
.acc-order__iname { flex: 1 1 auto; font-weight: 600; }
.acc-order__iname small { color: var(--faint); }
.acc-order__iqty { flex: none; color: var(--muted); white-space: nowrap; }
.acc-order__items b { flex: none; white-space: nowrap; }

.acc-order__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; flex-wrap: wrap; }
.acc-order__foot .acc-link { font-size: .84rem; }
.acc-order.is-open .acc-order__foot [data-otoggle] i { transform: rotate(180deg); }
.acc-order__foot [data-otoggle] i { transition: transform .2s ease; }
.acc-order__actions { display: flex; align-items: center; gap: 14px; }
.acc-order__actions strong { font-size: 1.05rem; }

.acc-danger { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.acc-danger h3 { font-size: .98rem; }
.acc-danger__btn { justify-self: start; color: var(--red); border-color: rgba(240,88,79,.4); }
.acc-danger__btn:hover { border-color: var(--red); background: rgba(240,88,79,.1); }
.acc-danger__confirm { justify-self: start; color: #fff; background: linear-gradient(135deg, #f0584f, #c5352d); }
