/* ШОКО.РУ — лендинг «Шоколад 5 г в фольге». Все значения берутся из tokens.css.
   Порядок файла: база → навигация → секции 01…08 → модалка → светлая тема →
   адаптив. Медиазапросы собраны в конце и сгруппированы по четырём точкам:
   980 / 900 / 760 / 560 px. Новую точку не создавать — дополнять существующую. */

/* ── База ───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body { overflow-x: hidden; }
html, body { scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font);
  font-synthesis: none;
  font-size: var(--t-body);
  letter-spacing: 0.012em;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { border-style: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
details summary::-webkit-details-marker { display: none; }

#top, #catalog, #production, #advantages, #configurator,
#how-to-order, #use-cases, #faq, #request { scroll-margin-top: 96px; }

.wrap { width: min(var(--maxw), 100%); margin-inline: auto; }

/* Оверлайн — микротекст над заголовками и внутри карточек */
.overline {
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Кнопки ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: var(--control-lg);
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn--primary { color: #fff; background: var(--red); }
.btn--primary:hover { color: #fff; background: var(--red-hover); }
.btn--ghost { border: 1px solid rgba(241, 232, 220, 0.34); background: none; color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--light { color: var(--ink); background: var(--cream); }
.btn--light:hover { color: var(--ink); background: #fff; }
.btn--sm { min-width: min(220px, 100%); min-height: var(--control-md); padding: 0 1.5rem; font-size: 0.78rem; }

.round-btn {
  display: grid;
  place-items: center;
  width: clamp(52px, 3.6vw, 64px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(241, 232, 220, 0.24);
  border-radius: 50%;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.round-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── Навигация ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-nav);
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__logo { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.nav__logo:hover { color: inherit; }
.nav__logo span { color: var(--red); }

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 1.4vw, 1.9rem);
  color: rgba(241, 232, 220, 0.6);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__contacts {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  line-height: 1.1;
  white-space: nowrap;
}
.nav__phone { font-size: var(--t-small); font-weight: 800; }
.nav__mail { color: rgba(241, 232, 220, 0.5); font-size: 0.7rem; }

.nav__burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(241, 232, 220, 0.24);
  border-radius: 12px;
  background: none;
  color: var(--cream);
  cursor: pointer;
}
.nav__burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* ── 01 · Первый экран ──────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(228, 184, 78, 0.14), transparent 38%),
    linear-gradient(150deg, #1d100c 0%, #2b1710 58%, #1a0f0b 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url(../assets/hero-gift-box-exact-tiles.png);
  background-size: cover;
  background-position: 74% 50%;
  background-repeat: no-repeat;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg, #170d0a 0%, rgba(23, 13, 10, 0.95) 30%, rgba(23, 13, 10, 0.7) 46%,
      rgba(23, 13, 10, 0.18) 62%, rgba(23, 13, 10, 0.05) 78%),
    linear-gradient(to top, rgba(23, 13, 10, 0.85) 0%, rgba(23, 13, 10, 0.1) 26%, rgba(23, 13, 10, 0) 45%);
}
.hero__middle {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, min(54%, 720px));
  gap: clamp(2rem, 4vw, 4rem);
  align-content: center;
  padding: clamp(4.5rem, 5vh, 4rem) var(--gutter) clamp(2rem, 5vh, 4rem);
}
.hero__stock {
  position: absolute;
  right: var(--gutter);
  top: clamp(1.25rem, 5vh, 4rem);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line-nav);
  border-radius: var(--r-pill);
  background: rgba(23, 13, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--cream-74);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__stock strong {
  padding-right: 0.8rem;
  border-right: 1px solid rgba(228, 184, 78, 0.46);
  color: var(--gold);
}
.hero__stock span { display: inline-flex; align-items: center; gap: 0.4rem; }
.swatch-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }

.hero__copy { min-width: 0; max-width: 800px; }
.hero h1 {
  font-size: var(--t-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 span { color: var(--gold); }
.hero__desc {
  max-width: 34rem;
  margin-top: 1.75rem;
  color: rgba(241, 232, 220, 0.62);
  font-size: var(--t-subtitle);
  line-height: 1.35;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem 2.5rem;
  margin-top: 2.25rem;
}
.stat + .stat { padding-left: 2.5rem; border-left: 1px solid var(--line); }
.stat__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cream-42);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stat__value { display: flex; align-items: baseline; gap: 0.4rem; }
.stat__value strong {
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.stat--price .stat__value strong { color: var(--gold); }
.stat__value span { color: rgba(241, 232, 220, 0.55); font-size: 0.95rem; font-weight: 700; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 2.25rem; }

.hero__shot {
  display: none;
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 1760 / 893;
  margin-inline: auto;
}
.hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 50%;
  border-radius: 4px;
  filter: drop-shadow(0 2.5rem 3rem rgba(0, 0, 0, 0.5));
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.35) 9%, #000 26%);
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.35) 9%, #000 26%);
}

/* Полоса фактов — «пилюля» с брендовым красным контуром у нижней кромки экрана */
.facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 var(--gutter) clamp(1.5rem, 4vh, 3rem);
  padding: 1.4rem clamp(0.5rem, 1.5vw, 1.5rem);
  border: 1px solid var(--red);
  border-radius: 78px;
  background: rgba(20, 11, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.fact {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  padding: 0 clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line-soft);
}
.facts .fact:first-child { border-left: 0; }
.fact strong { font-size: var(--t-body); font-weight: 700; }
.fact span { color: rgba(241, 232, 220, 0.52); font-size: 0.8rem; line-height: 1.35; }

/* ── Общая шапка секции ─────────────────────────────────────────────── */
.section { position: relative; padding: var(--py) var(--gutter); }
.section__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: min(var(--maxw), 100%);
  margin-inline: auto;
}
.section__eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section__eyebrow--red { color: var(--red); }
.section__title {
  margin-top: -0.25rem;
  font-size: var(--t-heading);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section__lead {
  max-width: 42rem;
  margin-top: 1.35rem;
  color: var(--cream-60);
  font-size: var(--t-subtitle);
  line-height: 1.3;
}

/* ── 02 · Каталог сырья ─────────────────────────────────────────────── */
.catalog { background: var(--bg-card); }
.catalog__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 27% 58%, rgba(255, 226, 178, 0.16) 0%, rgba(255, 214, 150, 0.08) 38%, rgba(255, 214, 150, 0) 72%),
    radial-gradient(30% 26% at 27% 58%, rgba(255, 236, 205, 0.14) 0%, rgba(255, 236, 205, 0) 70%),
    radial-gradient(70% 55% at 82% 12%, rgba(228, 184, 78, 0.07) 0%, rgba(228, 184, 78, 0) 68%);
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
  row-gap: clamp(1.5rem, 2.5vw, 2.5rem);
  align-items: center;
  width: min(var(--maxw), 100%);
  margin: clamp(2.5rem, 4vh, 4rem) auto 0;
  touch-action: pan-y;
}
.carousel__stage { position: relative; min-width: 0; height: clamp(520px, 58svh, 780px); }
.carousel__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, calc(clamp(220px, 30vw, 540px) * 1.3));
  aspect-ratio: 1;
  border: 1px solid var(--line-nav);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 46%, rgba(255, 238, 208, 0.16) 0%, rgba(255, 231, 190, 0.07) 46%, rgba(255, 231, 190, 0) 74%);
  box-shadow: 0 0 0 32px rgba(228, 184, 78, 0.03), 0 0 0 64px rgba(228, 184, 78, 0.016);
}
.carousel__plates {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(220px, 30vw, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.plate {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: var(--shadow-plate);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.plate[data-active] { opacity: 1; }
.plate-badge {
  position: absolute;
  left: 50%;
  bottom: 2%;
  z-index: 3;
  width: max-content;
  max-width: 92%;
  padding: 0.65rem 1rem;
  border-radius: var(--r-pill);
  color: var(--ink);
  background: var(--gold);
  font-size: var(--t-micro);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}
.plate-badge[data-type="hit"] { color: #fff; background: var(--red); }

.carousel__cards { position: relative; min-width: 0; height: clamp(520px, 58svh, 780px); overflow: hidden; }
.variant-card {
  position: absolute;
  left: 0;
  top: 50%;
  width: min(100%, 690px);
  transform-origin: 0 50%;
  transition: transform var(--dur-fan) var(--ease-fan), opacity 420ms var(--ease);
  pointer-events: none;
}
.variant-card__count { display: block; margin-bottom: 1rem; color: rgba(241, 232, 220, 0.4); }
.variant-card__cocoa { margin-bottom: 0.7rem; color: var(--gold); }
.variant-card h3 {
  max-width: 640px;
  font-size: var(--t-heading);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.variant-card__note {
  max-width: 30rem;
  margin-top: 1.1rem;
  color: rgba(241, 232, 220, 0.58);
  font-size: var(--t-body);
  line-height: 1.55;
}
.variant-card__price { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.variant-card__price > span { display: block; color: var(--cream-42); }
.variant-card__price strong {
  display: block;
  margin: 0.3rem 0 0.5rem;
  color: var(--gold);
  font-size: clamp(2.1rem, 3.5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.variant-card__price small { display: block; color: var(--cream-42); font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.variant-card .btn { margin-top: 1.6rem; }

.carousel__controls {
  grid-column: 1 / -1;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.dots { display: flex; gap: 0.4rem; }
.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(241, 232, 220, 0.26);
  cursor: pointer;
  transition: width var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.dot[data-active] { width: 28px; background: var(--gold); }

.foil-note {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 6;
  width: min(340px, calc(100% - 2 * var(--gutter)));
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid rgba(241, 232, 220, 0.18);
  border-radius: var(--r-note);
  background: rgba(43, 25, 17, 0.5);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.foil-note__title { display: flex; align-items: center; gap: 0.45rem; color: var(--gold); }
.foil-note__title i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gold); }
.foil-note p:last-child { margin-top: 0.55rem; color: var(--cream-74); font-size: 0.8rem; line-height: 1.5; }

.foil-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  width: min(var(--maxw), 100%);
  margin: clamp(2.5rem, 4vh, 3.5rem) auto 0;
  padding-top: 1.5rem;
  padding-right: min(30%, 380px); /* угол, занятый плавающей сноской */
  border-top: 1px solid var(--line);
}
.foil-strip__label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.foil-strip__list { display: flex; flex-wrap: wrap; gap: 0.75rem clamp(1rem, 1.6vw, 1.5rem); }
.foil-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cream-56);
  font-size: 0.72rem;
  white-space: nowrap;
}
.foil-chip i {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid rgba(241, 232, 220, 0.24);
  border-radius: 50%;
}

/* ── 03 · Производство и преимущества ───────────────────────────────── */
.production {
  background: radial-gradient(circle at 84% 14%, rgba(228, 184, 78, 0.1), transparent 32%), var(--bg-deep);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--maxw), 100%);
  margin: clamp(2.5rem, 4vh, 4rem) auto 0;
  border: 1px solid var(--line-nav);
  background: var(--line-nav);
}
.adv-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.9rem;
  min-height: clamp(220px, 23svh, 280px);
  padding: clamp(1.4rem, 1.9vw, 2rem);
  background: var(--bg-card);
  overflow-wrap: break-word;
  hyphens: auto;
}
.adv-card__top { display: flex; align-items: center; justify-content: space-between; }
.adv-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(228, 184, 78, 0.42);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
}
.adv-card__num { color: var(--cream-30); font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.14em; }
.adv-card__label { display: block; margin-bottom: 0.45rem; color: var(--red); }
.adv-card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
.adv-card p { color: rgba(241, 232, 220, 0.55); font-size: var(--t-small); line-height: 1.5; }

/* ── 04 · Расчёт тиража ─────────────────────────────────────────────── */
.cfg {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 3vh, 2.5rem);
  min-height: 100svh;
  padding: clamp(2.5rem, 5vh, 4.5rem) var(--gutter);
  background: radial-gradient(circle at 22% 20%, rgba(228, 184, 78, 0.1), transparent 34%), var(--bg-card);
}
.cfg__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: stretch;
  width: min(var(--maxw), 100%);
  min-height: 0;
  margin-inline: auto;
}
.cfg__preview {
  position: relative;
  min-width: 0;
  min-height: clamp(280px, 40svh, 520px);
  border: 1px solid var(--line-nav);
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(241, 232, 220, 0.06), rgba(0, 0, 0, 0.14));
}
.cfg__plate {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(220px, 30vw, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: var(--shadow-plate);
}
.cfg__dims { position: absolute; right: 1.1rem; bottom: 1.1rem; color: var(--cream-42); }

.cfg__panel { min-width: 0; display: grid; align-content: space-between; gap: clamp(1rem, 1.8vh, 1.4rem); }
.step-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.85rem; }
.step-head__num { color: var(--gold); font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.14em; }
.step-head__title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.4rem; }
.opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: var(--control-sm);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-nav);
  border-radius: var(--r-field);
  background: none;
  color: rgba(241, 232, 220, 0.68);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.opt:hover { border-color: rgba(228, 184, 78, 0.6); }
.opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(228, 184, 78, 0.12); color: var(--cream); }
.opt__name { min-width: 0; font-size: 0.9rem; line-height: 1.15; overflow-wrap: break-word; }
.opt__price { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }

.foil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.4rem; }
.foil-opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: var(--control-sm);
  padding: 0.45rem 0.7rem;
  border: 2px solid rgba(241, 232, 220, 0.16);
  border-radius: var(--r-field);
  background: none;
  color: var(--cream-60);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.foil-opt:hover { border-color: rgba(228, 184, 78, 0.6); }
.foil-opt[aria-pressed="true"] { border-color: var(--gold); color: var(--cream); }
.foil-opt__swatch {
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(241, 232, 220, 0.24);
  border-radius: 50%;
}
.foil-opt__text { display: grid; gap: 0.1rem; min-width: 0; }
.foil-opt__name { font-size: 0.78rem; line-height: 1.15; overflow-wrap: break-word; }
.foil-opt__extra { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.66; }

.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.qty-input {
  width: 9.5rem;
  min-height: var(--control-md);
  padding: 0 1rem;
  border: 1px solid rgba(228, 184, 78, 0.55);
  border-radius: var(--r-field);
  outline: 0;
  background: rgba(228, 184, 78, 0.08);
  color: var(--cream);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
}
.preset {
  min-height: var(--control-md);
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: none;
  color: var(--cream-60);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.preset:hover { border-color: rgba(228, 184, 78, 0.6); }
.preset[aria-pressed="true"] { border-color: var(--gold); color: var(--cream); }
.qty-hint { margin-top: 0.7rem; color: rgba(241, 232, 220, 0.4); font-size: 0.72rem; }

.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0.4rem; }
.field {
  min-width: 0;
  min-height: var(--control-sm);
  padding: 0 0.85rem;
  border: 1px solid var(--line-nav);
  border-radius: var(--r-field);
  outline: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
}
.field:focus-visible { border-color: var(--gold); }

.total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1.25rem, 2.5vw, 2.5rem);
  padding: 1.25rem clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 1.1rem;
  color: #fff;
  background: var(--red);
}
.total__cell { min-width: max-content; }
.total__cell span {
  display: block;
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.total__cell strong { font-size: 1.45rem; font-weight: 500; white-space: nowrap; }
.total .btn { margin-left: auto; flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.cfg__summary { color: var(--cream-42); font-size: 0.78rem; line-height: 1.5; }

/* ── 05 · Как заказать ──────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  width: min(var(--maxw), 100%);
  margin-inline: auto;
}
.split__aside { position: sticky; top: 3rem; align-self: start; }
.split__aside .section__title { max-width: 12ch; margin-top: 0.75rem; }
.split__aside .section__lead { max-width: 28rem; margin-top: 1.5rem; }
.split__aside .btn { margin-top: 2.25rem; }

.steps { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.step-item {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 3.25rem;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
  padding: clamp(1.6rem, 2.6vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.step-item__num { color: var(--gold); font-size: clamp(1.9rem, 3vw, 3rem); font-weight: 500; line-height: 0.85; letter-spacing: -0.02em; }
.step-item h3 { font-size: var(--t-subtitle); font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
.step-item p { max-width: 40rem; margin-top: 0.7rem; color: rgba(241, 232, 220, 0.58); font-size: 0.95rem; line-height: 1.55; }
.step-item__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(228, 184, 78, 0.4);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.15rem;
}

/* ── 06 · Сценарии ──────────────────────────────────────────────────── */
.use-cases { background: var(--bg-card); }
.use-cases[data-theme="light"] { background: var(--use-cases-bg); color: var(--light-ink); }
.use-cases[data-theme="light"] .section__eyebrow--red { color: var(--red); }
.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.4vw, 1.4rem);
  width: min(var(--maxw), 100%);
  margin: clamp(2.5rem, 4vh, 4rem) auto 0;
}
.uc-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-nav);
  border-radius: var(--r-card);
  background: rgba(241, 232, 220, 0.04);
  transition: background-color var(--dur-fast) var(--ease);
}
.uc-card:hover { background: rgba(241, 232, 220, 0.07); }
.use-cases[data-theme="light"] .uc-card {
  border-color: var(--light-line);
  background: var(--light-card);
}
.use-cases[data-theme="light"] .uc-card:hover { background: var(--light-card-hover); }
.uc-card__media { position: relative; height: clamp(160px, 20vh, 240px); overflow: hidden; background: rgba(0, 0, 0, 0.24); }
.uc-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.uc-grid .uc-card:nth-child(2) .uc-card__media img { object-position: 50% 70%; }
.uc-grid .uc-card:nth-child(4) .uc-card__media img { object-position: 50% 46%; }
.uc-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 16, 12, 0.66) 0%, rgba(29, 16, 12, 0.16) 50%, rgba(29, 16, 12, 0) 100%);
}
.uc-card__accent { position: absolute; left: 0; top: 0; width: 100%; height: 3px; }
.uc-card__body { display: grid; grid-template-rows: auto 1fr auto; gap: 1.25rem; min-width: 0; padding: clamp(1.4rem, 2.2vw, 2.25rem); }
.uc-card__meta { display: flex; justify-content: space-between; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-soft); }
.uc-card__meta span:last-child { color: var(--cream-42); }
.uc-card h3 { font-size: var(--t-title); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.uc-card p { max-width: 40rem; margin-top: 0.9rem; color: rgba(241, 232, 220, 0.58); font-size: 0.95rem; line-height: 1.55; }
.use-cases[data-theme="light"] .uc-card__meta { border-bottom-color: var(--light-line); }
.use-cases[data-theme="light"] .uc-card__meta span:last-child,
.use-cases[data-theme="light"] .uc-card p { color: var(--light-muted); }
.use-cases[data-theme="light"] .uc-card h3 { color: var(--light-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-nav);
  border-radius: var(--r-pill);
  color: rgba(241, 232, 220, 0.55);
  font-size: 0.68rem;
  white-space: nowrap;
}
.use-cases[data-theme="light"] .tag { border-color: var(--light-line); color: var(--light-muted); }

/* ── 07 · Вопросы ───────────────────────────────────────────────────── */
.faq .split { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); align-items: stretch; }
.faq .section__title { max-width: 14ch; margin-top: 0.75rem; }
.faq__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.faq__fact { min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.faq__fact strong { color: var(--gold); font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.015em; }
.faq__fact span { color: rgba(241, 232, 220, 0.5); font-size: var(--t-micro); font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; }

.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.5rem;
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
  align-items: center;
  min-height: 5rem;
  padding: 1rem 0;
  list-style: none;
  cursor: pointer;
}
.faq-item__num { color: var(--gold); font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.12em; }
.faq-item__q { min-width: 0; font-size: clamp(1.05rem, 1.4vw, 1.35rem); font-weight: 500; line-height: 1.25; }
.faq-item__sign {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(241, 232, 220, 0.22);
  border-radius: 50%;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 300;
}
.faq-item[open] .faq-item__sign { color: var(--gold); border-color: rgba(228, 184, 78, 0.5); }
.faq-item__a { max-width: 46rem; padding: 0 3rem 1.75rem 3.25rem; }
.faq-item__a p { color: rgba(241, 232, 220, 0.58); font-size: 0.95rem; line-height: 1.6; }

/* ── 08 · Заявка и футер ────────────────────────────────────────────── */
.request {
  padding-bottom: 1.5rem;
  background: radial-gradient(circle at 6% 16%, rgba(228, 184, 78, 0.13), transparent 28%), var(--bg-card);
}
.request .split { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
.request .section__title { margin-top: 0.75rem; }
.request .section__title span { color: var(--gold); }
.request .section__lead { max-width: 32rem; margin-top: 1.5rem; color: var(--cream-56); }

.contact-list {
  display: grid;
  gap: 1rem;
  max-width: 33rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-row span { color: var(--cream-42); font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-row strong { font-size: var(--t-body); font-weight: 500; white-space: nowrap; }

.form-shell {
  min-width: 0;
  min-height: 460px;
  padding: clamp(1.25rem, 2.2vw, 2.25rem);
  border-radius: 1.6rem;
  color: var(--ink);
  background: var(--paper);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
  width: min(var(--maxw), 100%);
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.footer__brand { display: grid; gap: 0.6rem; }
.footer__logo { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; }
.footer__logo:hover { color: inherit; }
.footer__logo span { color: var(--red); }
.footer__brand > span { color: rgba(241, 232, 220, 0.34); font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem clamp(1rem, 1.8vw, 2rem);
  color: var(--cream-60);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__up { justify-self: end; color: var(--cream-60); font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem clamp(1rem, 2vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241, 232, 220, 0.08);
  color: var(--cream-42);
  font-size: var(--t-micro);
  line-height: 1.45;
}
.footer__legal a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; }
.footer__legal a:hover { text-decoration-color: currentColor; }

/* ── Юридические страницы ─────────────────────────────────────────── */
.legal-page {
  min-height: 100svh;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--page-x) clamp(2.5rem, 6vw, 5rem);
  color: var(--ink);
  background: var(--paper);
}
.legal-page__header,
.legal-page__document,
.legal-page__footer {
  width: min(920px, 100%);
  margin-inline: auto;
}
.legal-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(31, 20, 14, 0.14);
}
.legal-page__logo { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; }
.legal-page__logo span { color: var(--red); }
.legal-page__back {
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-page__document { padding-block: clamp(2.5rem, 7vw, 6rem); }
.legal-page__eyebrow {
  margin-bottom: 1rem;
  color: var(--red);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-page h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.legal-page__content {
  display: grid;
  gap: 0.9rem;
  max-width: 780px;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}
.legal-page__content h2 {
  margin-top: 1.75rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.legal-page__bullet { position: relative; padding-left: 1.35rem; }
.legal-page__bullet::before { content: "•"; position: absolute; left: 0; color: var(--red); }
.legal-page__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(31, 20, 14, 0.14);
  color: rgba(31, 20, 14, 0.62);
  font-size: var(--t-small);
}

/* ── Уведомление об использовании cookies ─────────────────────────── */
.cookie-notice {
  position: fixed;
  z-index: 150;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  width: min(720px, calc(100vw - 1.5rem));
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(241, 232, 220, 0.18);
  border-radius: 1.25rem;
  color: var(--cream);
  background: rgba(31, 20, 14, 0.97);
  box-shadow: var(--shadow-modal);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p {
  margin: 0;
  color: var(--cream-60);
  font-size: var(--t-small);
  line-height: 1.5;
}
.cookie-notice p a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cookie-notice .btn { min-width: 132px; }

/* ── Модальная заявка ───────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(14, 8, 6, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal[data-open] { display: grid; }
.modal__win {
  position: relative;
  width: min(560px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-card);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-modal);
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal__head p:first-child { color: var(--red); }
.modal__title { margin-top: 0.5rem; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; line-height: 1.2; }
.modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(31, 21, 15, 0.18);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.modal__close:hover { border-color: var(--red); color: var(--red); }
.modal__body { margin-top: 1.25rem; min-height: 320px; }

.cfg__consent {
  max-width: 42rem;
  color: rgba(36, 26, 18, 0.5);
  font-size: var(--t-micro);
  line-height: 1.45;
}
.cfg__submit-status {
  min-height: 1.4em;
  color: var(--light-muted);
  font-size: var(--t-small);
  line-height: 1.4;
}
.cfg__submit-status[data-error] { color: var(--red); }
.total .btn:disabled { cursor: wait; opacity: 0.68; }

.modal__win--success {
  display: grid;
  justify-items: center;
  width: min(500px, 100%);
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.modal__win--success .modal__close { position: absolute; top: 1rem; right: 1rem; }
.modal__win--success .overline { color: var(--red); }
.modal__win--success .modal__title { max-width: 22rem; }
.success-modal__mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  color: var(--paper);
  background: var(--red);
  font-size: 2rem;
  font-weight: 700;
}

/* ── Светлая тема экранов 02, 04 и 06 ───────────────────────────────
   Переключается атрибутом data-theme на секции: "light" | "dark".
   data-theme="dark" полностью возвращает тёмный вид — ничего больше
   менять не нужно. */
[data-theme="light"] { background: var(--light-bg); }
[data-theme="light"] .catalog__glow {
  background:
    radial-gradient(46% 40% at 27% 56%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 251, 242, 0.5) 42%, rgba(255, 251, 242, 0) 76%),
    radial-gradient(68% 54% at 84% 10%, rgba(214, 167, 58, 0.13) 0%, rgba(214, 167, 58, 0) 66%);
}
[data-theme="light"] .section__title,
[data-theme="light"] .variant-card h3,
[data-theme="light"] .foil-strip__label { color: var(--light-ink); }
[data-theme="light"] .section__eyebrow,
[data-theme="light"] .variant-card__cocoa,
[data-theme="light"] .foil-note__title,
[data-theme="light"] .step-head__num { color: var(--light-accent); }
[data-theme="light"] .foil-note__title i { background: var(--light-accent); }
[data-theme="light"] .section__lead,
[data-theme="light"] .variant-card__note,
[data-theme="light"] .foil-note p:last-child,
[data-theme="light"] .qty-hint,
[data-theme="light"] .cfg__summary { color: var(--light-muted); }
[data-theme="light"] .variant-card__count,
[data-theme="light"] .variant-card__price > span,
[data-theme="light"] .variant-card__price small,
[data-theme="light"] .cfg__dims { color: rgba(36, 26, 18, 0.62); }
[data-theme="light"] .variant-card__price strong { color: var(--light-price); }
[data-theme="light"] .variant-card__price { border-top-color: var(--light-line); }
[data-theme="light"] .step-head__title { color: var(--light-ink); }
[data-theme="light"] .carousel__ring {
  border-color: rgba(36, 26, 18, 0.12);
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 48%, rgba(255, 255, 255, 0) 76%);
  box-shadow: 0 0 0 32px rgba(150, 101, 15, 0.035), 0 0 0 64px rgba(150, 101, 15, 0.018);
}
[data-theme="light"] .plate,
[data-theme="light"] .cfg__plate { filter: var(--shadow-plate-light); }
[data-theme="light"] .round-btn { border-color: rgba(36, 26, 18, 0.22); color: var(--light-ink); }
[data-theme="light"] .round-btn:hover { border-color: var(--light-accent); color: var(--light-accent); }
[data-theme="light"] .dot { background: rgba(36, 26, 18, 0.22); }
[data-theme="light"] .dot[data-active] { background: var(--light-accent); }
[data-theme="light"] .foil-strip { border-top-color: rgba(36, 26, 18, 0.14); }
[data-theme="light"] .foil-chip { color: rgba(36, 26, 18, 0.66); }
[data-theme="light"] .foil-chip i,
[data-theme="light"] .foil-opt__swatch { border-color: rgba(36, 26, 18, 0.22); }
[data-theme="light"] .foil-note {
  border-color: rgba(36, 26, 18, 0.12);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1.25rem 2.5rem rgba(74, 49, 20, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .cfg__preview {
  border-color: rgba(36, 26, 18, 0.12);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 52%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(150, 101, 15, 0.05));
}
[data-theme="light"] .qty-input {
  border-color: rgba(150, 101, 15, 0.5);
  background: rgba(150, 101, 15, 0.07);
  color: var(--light-ink);
}
[data-theme="light"] .field {
  border-color: rgba(36, 26, 18, 0.18);
  background: rgba(255, 255, 255, 0.5);
  color: var(--light-ink);
}
[data-theme="light"] .field::placeholder { color: rgba(36, 26, 18, 0.5); }
[data-theme="light"] .opt { border-color: var(--light-line); background: rgba(255, 255, 255, 0.5); color: rgba(36, 26, 18, 0.74); }
[data-theme="light"] .opt[aria-pressed="true"] { border-color: var(--light-accent); background: rgba(150, 101, 15, 0.1); color: var(--light-ink); }
[data-theme="light"] .foil-opt { border-color: rgba(36, 26, 18, 0.14); color: rgba(36, 26, 18, 0.7); }
[data-theme="light"] .foil-opt[aria-pressed="true"] { border-color: var(--light-accent); color: var(--light-ink); }
[data-theme="light"] .preset { border-color: rgba(36, 26, 18, 0.18); color: rgba(36, 26, 18, 0.7); }
[data-theme="light"] .preset[aria-pressed="true"] { border-color: var(--light-accent); color: var(--light-ink); }
[data-theme="light"] .total { color: #fff; }
[data-theme="light"] .total__cell strong { color: #fff; }

/* ── Адаптив ─────────────────────────────────────────────────────────
   980 · навигация уходит в бургер, футер в одну колонку
   900 · мобильный герой и мобильная карусель
   760 · сетки перестраиваются
   560 · тонкая настройка узкого экрана                                */

@media (max-width: 980px) {
  html, body { scroll-padding-top: 72px; }
  #top, #catalog, #production, #advantages, #configurator,
  #how-to-order, #use-cases, #faq, #request { scroll-margin-top: 72px; }

  .nav { position: sticky; min-height: 64px; gap: 1rem; }
  .hero { min-height: calc(100svh - 64px); }
  .nav__burger { display: grid; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.25rem var(--gutter) 1.25rem;
    background: rgba(23, 13, 10, 0.98);
    border-bottom: 1px solid var(--line-nav);
    box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, 0.45);
  }
  .nav[data-open="1"] .nav__links { display: flex; }
  .nav__links a {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(241, 232, 220, 0.1);
    color: var(--cream);
    font-size: 0.78rem;
  }

  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; }
  .footer__up { justify-self: center; }
}

@media (max-width: 900px) {
  /* Герой: полноширинное фото перетекает в оффер, факты замыкают экран */
  .hero {
    display: flex;
    flex-direction: column;
    background: var(--bg-deep);
  }
  .hero__bg, .hero__scrim { display: none; }
  .facts {
    order: 2;
    margin: 0;
    padding: clamp(0.9rem, 2svh, 1.4rem) var(--gutter);
    border: 0;
    border-bottom: 1px solid var(--line-nav);
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
  }
  .fact { padding: 0 clamp(0.6rem, 2vw, 1.25rem); gap: 0.15rem; }
  .fact strong { font-size: 0.82rem; line-height: 1.2; }
  .fact span { font-size: 0.7rem; line-height: 1.25; }

  .hero__middle {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .hero__shot {
    display: block;
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: clamp(14rem, 42svh, 24rem);
    margin: 0;
    aspect-ratio: auto;
    overflow: hidden;
    isolation: isolate;
  }
  .hero__shot img {
    display: block;
    object-fit: cover;
    object-position: 100% 48%;
    border-radius: 0;
    filter: none;
    -webkit-mask-image: none;
    mask-image: none;
    transform: scale(1.035);
  }
  .hero__shot::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      transparent 18%,
      color-mix(in srgb, var(--bg-deep) 8%, transparent) 38%,
      color-mix(in srgb, var(--bg-deep) 35%, transparent) 62%,
      color-mix(in srgb, var(--bg-deep) 78%, transparent) 82%,
      var(--bg-deep) 100%
    );
  }
  .hero__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    order: 2;
    align-self: auto;
    width: 100%;
    max-width: none;
    margin-top: clamp(-2.25rem, -5vw, -1.25rem);
    padding: 0 var(--gutter) clamp(0.75rem, 1.5svh, 1.1rem);
  }
  .hero h1 {
    width: 100%;
    font-size: clamp(2.25rem, 10.5vw, 3.75rem);
    line-height: 0.88;
    letter-spacing: -0.035em;
  }
  .hero__desc { margin-top: 1rem; font-size: 0.95rem; }

  .stat-row {
    flex-wrap: nowrap;
    gap: 0 1.25rem;
    margin-top: auto;
    padding-top: clamp(1.5rem, 4svh, 3.5rem);
  }
  .stat + .stat { padding-left: 1.25rem; }
  .stat__value strong { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .stat__value span { font-size: 0.78rem; }

  .cta-row { flex-wrap: nowrap; gap: 0.6rem; margin-top: 0.85rem; }
  .cta-row .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding: 0 0.7rem;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    text-align: center;
  }

  /* Каталог: весь экран (заголовок, фото, управление, карточка) в одном svh */
  .catalog { padding: clamp(1.5rem, 3svh, 2.5rem) var(--gutter); }
  .catalog .section__header { grid-template-columns: 1fr; row-gap: 0.6rem; }
  .catalog .section__eyebrow { font-size: 0.66rem; }
  .catalog .section__title { font-size: clamp(1.7rem, 7vw, 2.4rem); }

  .carousel { grid-template-columns: 1fr; margin-top: clamp(0.9rem, 2svh, 1.5rem); row-gap: clamp(0.5rem, 1.2svh, 1rem); }
  .carousel__stage { order: 1; height: max(21svh, 190px); }
  .carousel__controls { order: 2; }
  .carousel__cards { order: 3; height: max(29svh, 258px); }
  .carousel__ring { width: min(96%, 21svh); box-shadow: 0 0 0 16px rgba(228, 184, 78, 0.03); }
  .carousel__plates { width: min(82%, 19svh); }
  .plate-badge {
    max-width: min(calc(100vw - 2 * var(--gutter)), 17rem);
    padding: 0.6rem 0.8rem;
    font-size: clamp(0.56rem, 2.35vw, 0.66rem);
    letter-spacing: 0.07em;
  }
  .carousel__controls .round-btn { width: 44px; }

  .variant-card__count { display: none; }
  .variant-card h3 { font-size: clamp(1.5rem, 6.2vw, 2rem); }
  .variant-card__note {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.7rem;
    font-size: 0.86rem;
    line-height: 1.4;
  }
  .variant-card__price { margin-top: 0.7rem; padding-top: 0.7rem; }
  .variant-card__price strong { margin: 0.2rem 0 0.35rem; font-size: clamp(1.5rem, 6.2vw, 1.9rem); }
  .variant-card .btn { margin-top: 0.75rem; min-height: 44px; }

  /* Плавающей сноске больше некуда встать — становится обычным блоком */
  .foil-note { position: static; width: 100%; margin-top: 1.25rem; }
  .foil-strip {
    margin-top: clamp(1rem, 2svh, 1.75rem);
    padding-top: clamp(1rem, 2svh, 1.5rem);
    padding-right: 0;
    gap: 0.6rem 1rem;
  }
  .foil-strip__label { font-size: 0.7rem; }
  .foil-strip__list { gap: 0.5rem 0.9rem; }
  .foil-chip { font-size: 0.68rem; gap: 0.35rem; }
  .foil-chip i { width: 0.9rem; height: 0.9rem; }
}

@media (max-width: 760px) {
  .hero__stock { display: none; } /* дублирует полосу фактов */

  .section__header { grid-template-columns: 1fr; gap: 0.75rem; }
  .split { grid-template-columns: 1fr; }
  .faq .split, .request .split { grid-template-columns: 1fr; }
  .split__aside { position: static; top: auto; }

  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-grid { grid-template-columns: 1fr; }
  .step-item { grid-template-columns: 2.75rem minmax(0, 1fr) 2.5rem; gap: 1rem; }
  .faq-item__a { padding: 0 1.25rem 1.5rem 3.25rem; }
}

@media (max-width: 560px) {
  .hero__desc { display: none; }
  .adv-grid { grid-template-columns: 1fr; }
  .variant-card__note { -webkit-line-clamp: 2; }
  .variant-card h3 { font-size: 1.45rem; }
  .variant-card__price strong { font-size: 1.7rem; }
  .faq__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .faq__fact { gap: 0.3rem; }
  .faq__fact strong { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .faq__fact span {
    font-size: clamp(0.52rem, 2.2vw, 0.62rem);
    line-height: 1.25;
    letter-spacing: 0.045em;
  }
  .cookie-notice { grid-template-columns: 1fr; }
  .cookie-notice .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
