/* ============================================================
   YES YOU CAN — style.css
   ТЗ-01: экран 00 (промо-бар + навигация) и экран 01 (Hero).
   Все цвета/кегли/отступы/радиусы/тени — только var(--…) из tokens.css.
   Исключение (единственное): 4 цвета ореола Hero — см. .hero-scene.
   ============================================================ */

/* ---------- СБРОС / БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);            /* фон окна на всю ширину */
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                  /* никакой горизонтальной прокрутки */
}

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

a { text-decoration: none; color: inherit; }

button {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.icon { display: block; height: auto; }

/* Контент — мобильная композиция, по центру окна, ограничен по ширине */
.page {
  max-width: 480px;
  margin-inline: auto;
  background: var(--cream);
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
}

/* ============================================================
   ЭКРАН 00 — ПРОМО-БАР
   ============================================================ */
.promo {
  min-height: var(--promo-h);          /* 32px, измерено по эталону */
  background: var(--crimson);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--promo-pad);
}

.promo__inner {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-promo);
  line-height: var(--lh-promo);
  letter-spacing: var(--ls-promo);
  text-transform: uppercase;
}

.promo__sep {
  color: var(--white);
  opacity: .5;                         /* полупрозрачный белый */
}

/* Мобильный (<600): при кегле 12 полная строка (393–422 px) в 390 не влезает — прячем цену,
   остаётся «LAUNCH OFFER — 20% OFF EVERY 4-PACK» (282 px). Полная строка от 600 (ТЗ 11.09 §10).
   Высота бара 32 px не меняется. */
@media (max-width: 599px) {
  .promo__sep, .promo__price { display: none; }
}

/* ============================================================
   ЭКРАН 00 — НАВИГАЦИЯ
   ============================================================ */
.nav {
  height: var(--nav-h);                /* 58px */
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad-side);     /* 20px */
}

/* Кнопки шапки: область нажатия не меньше 44×44 */
.nav__btn {
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav__btn:active { opacity: .55; }

.icon--burger { width: 22px; }
.icon--cart { width: 24px; }

/* Печать Craving Club — высота 36px, ширина по пропорции */
.nav__brand { display: inline-flex; transition: opacity var(--dur-fast) var(--ease); }
.nav__brand:active { opacity: .7; }
.nav__brand img { height: 36px; width: auto; }

/* Счётчик заказа (число пачек) — круг 20px на правом верхнем углу, цифра 12/700 (ТЗ 11.09 §8.5, §10) */
.nav__cart-icon { position: relative; display: inline-flex; }
.nav__cart-count {
  position: absolute;
  top: -8px;
  right: -9px;
  width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* ============================================================
   ЭКРАН 00 — МЕНЮ (оверлей)
   Открытие/закрытие — только transform. Без JS остаётся скрытым.
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.menu.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--dur) var(--ease), visibility 0s;
}

.menu__panel {
  height: 100%;
  max-width: 480px;
  margin-inline: auto;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.menu__bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline: var(--pad-side);
}
.icon--close { width: 22px; }

.menu__list {
  list-style: none;
  margin: 0;
  padding: 8px var(--pad-side) 0;
  display: flex;
  flex-direction: column;
}
.menu__list a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  transition: opacity var(--dur-fast) var(--ease);
}
.menu__list a:active { opacity: .55; }

/* Пока меню открыто — страница под ним не прокручивается */
body.is-menu-open { overflow: hidden; }

/* ============================================================
   ЭКРАН 01 — HERO
   ============================================================ */
.hero {
  display: block;
  text-align: center;
  /* верх 17 — бэйспоук (от навигации до eyebrow, ТЗ-01); низ — общий межсекционный var (ПРАВКИ-04 п.3) */
  padding: 17px var(--pad-side) var(--sec-pb);
  /* мягкий верхний радиальный блик */
  background:
    radial-gradient(120% 62% at 50% 0%, var(--hero-radial), transparent 58%);
}

.hero__eyebrow {
  margin: 0 0 13px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--crimson);
}

.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;                 /* «YES YOU CAN» всегда в одну строку */
}

.hero__sub {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sub-hero);
  line-height: var(--lh-sub-hero);
  color: var(--ink);
}

/* ---------- СЦЕНА (композиция первого экрана — одна картинка, ПРАВКИ-05) ---------- */
.hero-scene {
  /* Прежние 7 слоёв, отражения и координатные переменные удалены (ПРАВКИ-05 п.2).
     Ореол ниже оставлен намеренно (ПРАВКИ-05 п.3): готовая картинка непрозрачна и
     перекрывает его, но пусть лежит на случай, если понадобится. */

  /* Ореол Hero, ПАК 4 п.6.2 — единственное исключение из правила «только var()».
     По одному пятну на вкус, за композицией. */
  --halo-cola:   rgba(94, 14, 31, .34); /* ореол Hero, ПАК 4 п.6.2 */
  --halo-cherry: #D7F24B;               /* ореол Hero, ПАК 4 п.6.2 */
  --halo-grape:  #83D629;               /* ореол Hero, ПАК 4 п.6.2 */
  --halo-cream:  rgba(201, 134, 58, .5);/* ореол Hero, ПАК 4 п.6.2 */

  position: relative;
  width: auto;                         /* auto, а не 100%: с отрицательными полями блок тянется на весь экран */
  aspect-ratio: 1352 / 1101;           /* размер готовой композиции (обновлён: фон под цвет сайта, ореол убран) */
  margin-bottom: 12px;                 /* ≥10px до бейджей — правило ПРАВОК-04/05 п.4 */
  margin-inline: calc(-1 * var(--pad-side)); /* <1024: картинка во всю ширину экрана, 390 → 390×318 (ТЗ 11.09 §1); ≥1024 — margin:0 ниже */

  background:
    radial-gradient(38% 30% at 16% 60%, var(--halo-cola),   transparent 72%),
    radial-gradient(42% 34% at 38% 54%, var(--halo-cherry), transparent 72%),
    radial-gradient(40% 32% at 64% 56%, var(--halo-grape),  transparent 72%),
    radial-gradient(38% 30% at 84% 60%, var(--halo-cream),  transparent 72%);
}

/* Готовая композиция — одна картинка на всю ширину контейнера, высота авто */
.hero-scene picture { display: block; }
.hero-scene img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- БЕЙДЖИ — общий компонент hero + What's Inside (ТЗ 11.09 §4) ---------- */
.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--gap-badges);              /* 6px */
}
.hero__badges {
  margin: 0 0 14px;
  padding-top: 4px;                    /* сверху 4 */
}
.badge {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 0;                      /* высота 49: 7+18+2+12+7 + рамка 1.5×2 */
  border: 1.5px solid var(--ink);
  border-radius: var(--r-badge);
  background: rgba(255, 255, 255, .4);
}
.badge__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-badge-num);
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.badge__cap {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-badge-cap);
  letter-spacing: var(--ls-badge-cap);
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
/* Тесно — перестраиваемся в 2×2, плашки не сжимаем в нечитаемое */
@media (max-width: 339px) {
  .badges { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- КНОПКИ ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 240px;
  max-width: 480px;
  margin-inline: auto;
  height: var(--h-btn);
  padding-inline: var(--pad-side-btn);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-btn);
  line-height: 1.15;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease);
}

.btn--primary {
  margin-bottom: 14px;                 /* до строки предложения */
  background: var(--crimson);
  color: var(--white);
  box-shadow: var(--sh-btn);
}
.btn--primary:active {
  background: var(--crimson-dark);
  box-shadow: var(--sh-btn-active);
  transform: translateY(2px);
}
/* Лейбл занимает свою зону и центрируется в ней; стрелка всегда справа —
   пересечения текста и стрелки не возникает ни на какой ширине. */
.btn__label { flex: 1 1 auto; text-align: center; }
.btn__arrow {
  flex: 0 0 auto;
  width: 20px;
  color: currentColor;                 /* текущий цвет текста */
}

.btn--secondary {
  margin-bottom: 16px;                 /* до строки доверия */
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn--secondary:active {
  background: var(--ink);
  color: var(--cream);
}

/* Десктоп — hover только украшение, поверх обязательного :active */
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-1px); }
  .btn--secondary:hover { background: var(--ink); color: var(--cream); }
}

/* ---------- СТРОКА ПРЕДЛОЖЕНИЯ ---------- */
.hero__offer {
  margin: 14px 0 16px;                 /* сверху 14, снизу 16 */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-offer);
  line-height: var(--lh-offer);
  color: var(--ink);
}

/* ---------- СТРОКА ДОВЕРИЯ ---------- */
.hero__trust {
  margin: 16px 0 0;                    /* сверху 16 */
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-trust);
  color: var(--muted-2);
}
.trust__item { display: inline-flex; align-items: center; gap: 6px; }
.trust__item .icon { width: 18px; color: var(--green); }

/* ---------- АДАПТИВНОСТЬ HERO ---------- */
/* Узкие экраны: даём кнопкам больше места под текст, чтобы строка не ломалась */
@media (max-width: 359px) {
  .btn { padding-inline: 16px; letter-spacing: .02em; gap: 8px; }
}

/* ============================================================
   ДВИЖЕНИЕ — уважаем prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

/* ============================================================
   ОБЩИЕ ЭЛЕМЕНТЫ СЕКЦИЙ 02–10
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.section { padding: var(--sec-pt) 0 var(--sec-pb); }
.wrap { padding-inline: var(--pad-side); }
.wrap--center { text-align: center; }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow--pink { color: var(--sodafirst-eyebrow); }

.h2 {
  margin: 0 0 var(--gap-title-text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  text-transform: uppercase;
  color: var(--ink);
}
.h2--light { color: var(--cream); }

.lead {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--muted-1);
}
.lead--strong { font-weight: 700; color: var(--ink); }
.lead--light { color: var(--sodafirst-text-2); }

.btn--cta {
  background: var(--crimson);
  color: var(--white);
  box-shadow: var(--sh-btn-cta);
}
.btn--cta:active {
  background: var(--crimson-dark);
  box-shadow: var(--sh-btn-active);
  transform: translateY(2px);
}

/* Чипы-плашки (сравнение) */
.chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  white-space: nowrap;                 /* чипы всегда в одну строку */
}
/* THE OLD ROUTINE длиннее — поджимаем трекинг/поля, чтобы влезло в одну строку */
.chip--old {
  background: var(--chip-old-bg);
  color: var(--chip-old-text);
  letter-spacing: .08em;
  padding-inline: 13px;
}
.chip--better { background: var(--crimson); color: var(--white); }

/* ============================================================
   02 — PROBLEM
   ============================================================ */
.section--problem { background: var(--cream); }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
  margin: 24px 0 var(--gap-text-btn);
}
.compare__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.compare__box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare__box--old {
  background: var(--problem-box-bg);
  border: 2px solid var(--problem-box-border);
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 2 / 3;                 /* вертикальная плашка (ПРАВКИ-06 п.1): высота вровень с банкой справа */
}
/* Фото «старой рутины» (old_routine.webp + png в <picture>). object-fit:cover
   заполняет плашку 2:3. Крест рисуется кодом поверх и центрируется flex'ом плашки. */
.compare__old-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__cross {
  position: relative;
  z-index: 1;
  /* эталон: крест ~143×145px в плашке ~167px, штрих 11px, скруглённый */
  width: 88%;
  height: 88%;
  stroke: var(--problem-cross);
  stroke-width: 7.6;                    /* 7.6 ед. viewBox × масштаб ≈ 11px */
  stroke-linecap: round;
}
/* «Лучший путь» — банка выше старой плашки (торчит вверх), как на эталоне;
   высота ~250px при ширине колонки 167 → aspect 2/3, банка заполняет по высоте */
.compare__box--better { aspect-ratio: 2 / 3; padding: 0; position: relative; }
.compare__box--better img {
  position: absolute;                  /* абсолют — банка не растит плашку, высоту держит aspect-ratio */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--ds-can-problem);
}

/* ============================================================
   03 — FLAVOURS INTRO
   ============================================================ */
.section--flavours-intro { background: var(--cream); }
.section--flavours-intro .lead { margin-bottom: 0; }

/* ============================================================
   03a–03d — МИРЫ ВКУСОВ
   ============================================================ */
.flavour {
  padding: var(--sec-pt) 0 var(--sec-pb);  /* единые промежутки секций (ПРАВКИ-04 п.3) */
  background: var(--fl-grad);
  overflow: hidden;
}
.flavour--cola {
  --fl-grad: linear-gradient(170deg, var(--cola-g1), var(--cola-g2), var(--cola-g3));
  --fl-name: var(--cola-name); --fl-body: var(--cola-name); --fl-index: var(--cola-name);
  --fl-btn-bg: var(--cola-btn-bg); --fl-btn-text: var(--cola-btn-text);
  --fl-rot: -2deg;
}
.flavour--cherry {
  --fl-grad: linear-gradient(170deg, var(--cherry-g1), var(--cherry-g2), var(--cherry-g3));
  --fl-name: var(--cherry-name); --fl-body: var(--cherry-dark-1); --fl-index: var(--cherry-dark-1);
  --fl-btn-bg: var(--cherry-btn-bg); --fl-btn-text: var(--cherry-btn-text);
  --fl-rot: 2deg;
}
.flavour--grape {
  --fl-grad: linear-gradient(170deg, var(--grape-g1), var(--grape-g2), var(--grape-g3));
  --fl-name: var(--grape-name); --fl-body: var(--grape-dark-1); --fl-index: var(--grape-dark-1);
  --fl-btn-bg: var(--grape-btn-bg); --fl-btn-text: var(--grape-btn-text);
  --fl-rot: -2deg;
}
.flavour--cream {
  --fl-grad: linear-gradient(170deg, var(--cream-g1), var(--cream-g2), var(--cream-g3));
  --fl-name: var(--cream-name); --fl-body: var(--cream-dark-1); --fl-index: var(--cream-name);
  --fl-btn-bg: var(--cream-btn-bg); --fl-btn-text: var(--cream-btn-text);
  --fl-rot: 2deg;
}
.flavour__index {
  margin: 0 0 6px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 15px;                 /* spec §6.4: Anton 15, прозрачность 50% */
  color: var(--fl-index);
  opacity: .5;
}
.flavour__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-flavour);
  line-height: var(--lh-flavour);
  text-transform: uppercase;
  color: var(--fl-name);
}
.flavour__style {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: italic;
  font-size: var(--fs-flavour-style);
  color: var(--fl-body);
}
.flavour__desc {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-flavour-desc);
  line-height: 1.5;
  color: var(--fl-body);
}
.flavour__scene {
  position: relative;
  width: 100%;
  /* было 78/97 (485px) — лишний воздух над банкой; сцена подогнана под высоту
     банки (~428px) по эталону, чтобы убрать разрыв между текстом и банкой */
  aspect-ratio: 390 / 440;
  margin: 20px 0 16px;             /* ТЗ 11.09 §2: поворот ±2° поднимает угол банки на ~4px → зазор от текста ≈16 */
}
/* Банка задаётся высотой сцены (файлы банок разной пропорции) — верх у всех четырёх на одной линии,
   ширины 216–224 px на 390 (ТЗ 11.09 §2). ≥1024 — то же (height:100%; width:auto) ниже. */
.flavour__can {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: auto;
  height: 100%;
  width: auto;
  transform: translateX(-50%) rotate(var(--fl-rot));
  filter: var(--ds-can-flavour);
  z-index: 2;
}
.flavour__obj {
  position: absolute;
  width: 44%;
  height: auto;
  z-index: 1;
}
.flavour__obj--tr { top: 6%; right: -6%; }
.flavour__obj--bl { bottom: 8%; left: -8%; }
.flavour__cta {
  height: var(--h-btn-flavour);
  background: var(--fl-btn-bg);
  color: var(--fl-btn-text);
}
.flavour__cta:active { transform: translateY(2px); opacity: .9; }

/* ============================================================
   03e — FULL MIX
   ============================================================ */
.section--fullmix { background: var(--green); }
.fullmix__title { color: var(--cream); }
.fullmix__sub { color: var(--fullmix-text-2); margin-bottom: 0; }
.fullmix__cans {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 28px 0 20px;
  padding-inline: var(--pad-side);
}
.fullmix__can { height: auto; filter: var(--ds-can-fullmix); }
.fullmix__can--1 { width: 24%; z-index: 1; transform: rotate(-6deg); }
.fullmix__can--2 { width: 29%; z-index: 3; margin-left: -3%; transform: rotate(-2deg); }
.fullmix__can--3 { width: 29%; z-index: 2; margin-left: -3%; transform: rotate(2deg); }
.fullmix__can--4 { width: 24%; z-index: 1; margin-left: -3%; transform: rotate(6deg); }
.fullmix__micro {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-promo);
  text-transform: uppercase;
  color: var(--fullmix-micro);
}

/* ============================================================
   04 — SODA FIRST
   ============================================================ */
.section--sodafirst { background: var(--dark-section); }
.pill-chips {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  gap: 12px;
}
.pill-chip {
  flex: 1;
  text-align: center;
  padding: 14px 6px;
  border: 1.5px solid rgba(248, 241, 231, .35); /* spec §6.6 */
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--cream);
}
.photo-duo {
  display: flex;
  gap: 12px;
  margin: 0 0 var(--gap-text-btn);
}
.photo {
  width: 50%;
  height: auto;                 /* перебиваем height-атрибут, чтобы работал aspect-ratio */
  aspect-ratio: 17 / 30;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-photo);
}

/* ============================================================
   05 — WHAT'S INSIDE
   ============================================================ */
.section--inside { background: var(--cream); }
/* Факты — тот же компонент .badges/.badge, что в hero (ТЗ 11.09 §4): 4 бейджа + строка «330 ML · ALUMINIUM CAN» */
.facts-badges { margin: 0 0 8px; }
.facts-can {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 20px;
}
.facts-can .badge__num { color: var(--green); }
.facts-can .badge__cap { color: var(--muted-3); }
.inside__cans {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 24px;
}
/* <1024: обе банки одной высоты (ТЗ 11.09 §5): 390 → 320px; ≥1024 — 420px ниже */
.inside__can { height: clamp(260px, 82vw, 340px); width: auto; filter: var(--ds-can-inside); }

/* Аккордеон (нативный details — работает без JS) */
.accordion { border-top: 1.5px solid var(--card-border); }
.accordion__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-faq-q);
  line-height: var(--lh-faq-q);
  color: var(--ink);
}
.accordion__q::-webkit-details-marker { display: none; }
.accordion__sign {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--crimson);
}
.accordion__sign::after { content: "+"; }
details[open] > summary .accordion__sign::after { content: "\2212"; }
.accordion__a {
  padding: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-faq-a);
  line-height: var(--lh-faq-a);
  color: var(--muted-2);
}
.accordion__a p { margin: 0; }
.chip-allergen {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 10px;
  border-radius: var(--r-chip);
  background: var(--allergen-bg);
  color: var(--allergen-text);
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================
   06 — LIFESTYLE
   ============================================================ */
.section--lifestyle { background: var(--cream); }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lifestyle);
  margin: 0 0 16px;
}
.tile { position: relative; margin: 0; overflow: hidden; }
.tile--life { aspect-ratio: 1 / 1; border-radius: var(--r-tile-life); }
.tile__photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Банка теперь вшита прямо в фотографию (ПРАВКИ-06 п.1) — отдельного слоя банки нет. */
.tile__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(23, 19, 16, .72);   /* spec §6.8 */
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-badge-cap);
  letter-spacing: var(--ls-badge-cap);
  text-transform: uppercase;
}

/* ============================================================
   07 — REVIEWS (отзывы, CSS-карусель без JS-слайдера)
   ============================================================ */
.section--reviews { background: var(--cream); }
.reviews-defs { position: absolute; width: 0; height: 0; }

/* Дорожка карусели: горизонтальный скролл + scroll-snap, без скриптов.
   touch-action: pan-x — вертикальный скролл страницы НЕ перехватывается
   во встроенных браузерах TikTok/Instagram; overscroll-behavior — не тянет back-жест. */
.reviews {
  display: flex;
  gap: 12px;
  margin: 4px 0 16px;
  padding-inline: var(--pad-side);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad-side);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 330px;                     /* ширина карточки 330px */
  scroll-snap-align: center;
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 18px;
}
.review-card__photo {
  width: 100%;
  height: auto;                        /* перебиваем height-атрибут → работает aspect-ratio */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-tile-social);
  margin-bottom: 14px;
}
.review-card__text {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-2);
  height: calc(1.55em * 4);            /* фикс. высота ровно 4 строки — карточки не прыгают */
  overflow: hidden;
}
.review-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.review-card__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.review-card__stars {
  display: inline-flex;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--crimson);
}
.review-card__stars .star { display: block; width: 14px; height: 14px; fill: currentColor; }

/* Точки-индикаторы: без JS статичны, с JS переключает IntersectionObserver.
   Ширину/фон не анимируем (правило: анимации только transform/opacity). */
.reviews-dots { display: flex; justify-content: center; gap: 6px; }
.reviews-dots__dot { width: 6px; height: 6px; border-radius: 3px; background: var(--card-border); }
.reviews-dots__dot.is-active { width: 12px; background: var(--crimson); }

/* ============================================================
   08 — BUILD YOUR 4-PACK
   ============================================================ */
.section--build { background: var(--dark-builder); }
.step {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-step);
  letter-spacing: var(--ls-step);
  text-transform: uppercase;
  color: var(--crimson);
}
.config {
  background: var(--cream-2);
  border-radius: var(--r-config);
  padding: 26px 20px 24px;
}

/* Список пачек (ТЗ 11.09 §6): пять строк, в каждой степпер. Бюджет ширины на 390:
   307 − поля 28 = 279; миниатюра 22 + 12; степпер 96 + 12 → под текст 137 px. */
.packs {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border: 1.5px solid var(--card-border-2);
  border-radius: var(--r-row);
  overflow: hidden;
}
.frow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;                  /* эталон: строка вкуса 64px */
  background: var(--white);
}
.frow + .frow { border-top: 1.5px solid var(--card-border-2); }
.frow img { height: 44px; width: auto; }   /* эталон: высота миниатюры 44px */
.frow__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.frow__name { font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--muted-2); }
.frow__style { font-family: var(--font-body); font-weight: 500; font-style: italic; font-size: var(--fs-micro); color: var(--muted-3); }
/* Строка с количеством > 0 */
.frow.is-selected { background: var(--cream-2); }
.frow.is-selected .frow__name { color: var(--ink); }
.frow.is-selected .stepper__btn { background: var(--white); }   /* на кремовой строке кремовые кнопки пропали бы */

/* Full Mix: четыре банки внахлёст — первая снизу, последняя сверху; ≈ 22 + 3×9 = 49 px */
.frow__thumbs { display: flex; height: 44px; flex: 0 0 auto; }
.frow__thumbs img { position: relative; height: 44px; width: auto; }
.frow__thumbs img + img { margin-left: -13px; }
.frow__thumbs img:nth-child(1) { z-index: 1; }
.frow__thumbs img:nth-child(2) { z-index: 2; }
.frow__thumbs img:nth-child(3) { z-index: 3; }
.frow__thumbs img:nth-child(4) { z-index: 4; }

/* Степпер: 36 + 2 + 20 + 2 + 36 = 96 px; область нажатия кнопок 44×44 через ::before */
.stepper { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.stepper__btn {
  position: relative;
  width: var(--size-counter);          /* 36px */
  height: var(--size-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-counter);
  background: var(--cream-2);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease);
}
.stepper__btn::before { content: ""; position: absolute; inset: -4px; }
.stepper__btn:active { transform: translateY(1px); }
.stepper__btn:disabled { opacity: .35; pointer-events: none; }
.stepper__num {
  width: 20px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--muted-4);
}
.frow.is-selected .stepper__num { color: var(--ink); }

/* Итог (ТЗ 11.09 §7): слева TOTAL · N packs; справа сверху зачёркнутая сумма и «−20%», под ними крупная сумма */
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.total__label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-step);
  letter-spacing: var(--ls-step);
  text-transform: uppercase;
  color: var(--ink);
}
.total__packs {
  display: block;                      /* «1 pack» под словом TOTAL — правая часть остаётся в одну строку даже на 360 */
  font-weight: 600;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted-3);
}
.total__right {
  display: flex;                       /* правка Жени 11.09: старая цена, скидка и итог в одну строку */
  align-items: baseline;
  gap: 8px;
  text-align: right;
}
.total__was {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-price-old);      /* 14px */
  text-decoration: line-through;
  color: var(--muted-4);
  white-space: nowrap;
}
.total__now {
  font-family: var(--font-body);       /* правка Жени 11.09: не Anton 40, а Inter жирный, чуть крупнее остального */
  font-weight: 700;
  font-size: var(--fs-price);
  line-height: var(--lh-price);
  color: var(--ink);
  white-space: nowrap;
}
.chip--off {
  padding: 5px 10px;
  border-radius: var(--r-chip);
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-micro);
  white-space: nowrap;
}
/* <button>: display:block, а не flex — иначе текст и <span> суммы становятся flex-элементами
   и между «AED» и числом появляется gap 10px; контент <button> центрируется по вертикали сам */
.config__cta { margin-bottom: 12px; display: block; }
/* Кнопки-заглушки: «PICK YOUR FLAVOURS» при 0 пачек, «SENDING…» при отправке */
.btn:disabled { opacity: .5; box-shadow: none; pointer-events: none; }
.config__micro {
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  color: var(--muted-3);
}

/* ============================================================
   09 — REASSURANCE + FAQ
   ============================================================ */
.section--faq { background: var(--cream); }
.reassure { display: flex; flex-direction: column; gap: 12px; margin: 0 0 32px; }
.reassure__card {
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 18px;
}
.reassure__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-reassure);   /* 17px — измерено по эталону */
  text-transform: uppercase;
  color: var(--green);
}
.reassure__text { margin: 0; font-family: var(--font-body); font-size: var(--fs-faq-a); color: var(--muted-2); }

.faq { margin-top: 4px; }
.faq__item { border-bottom: 1.5px solid var(--card-border); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-faq-q);
  line-height: var(--lh-faq-q);
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__a {
  padding: 12px 0 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-faq-a);
  line-height: var(--lh-faq-a);
  color: var(--muted-2);
}
.faq__a p { margin: 0; }

/* ============================================================
   10 — FOOTER
   ============================================================ */
.section--footer { background: var(--dark-section); padding-bottom: calc(var(--sec-pb) + env(safe-area-inset-bottom)); }
.footer__brand {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-footer-brand);
  text-transform: uppercase;
  color: var(--cream);
}
.footer__tagline { margin: 0 0 16px; font-family: var(--font-body); font-size: var(--fs-footer-link); color: var(--footer-link); }
.footer__logo {
  display: block;
  height: 60px;                        /* было 44 — тёмный на тёмном терялся (правка заказчика) */
  width: auto;
  margin: 0 0 28px;
}
.footer__cols { margin: 0 0 24px; }    /* было 2 колонки — теперь аккордеоны в столбик (ПРАВКИ-06 п.4) */
/* Колонки-аккордеоны (нативный details — работает без JS). По умолчанию все свёрнуты. */
.footer__col { display: flex; flex-direction: column; }
.footer__col + .footer__col { border-top: 1px solid rgba(248, 241, 231, .14); } /* разделитель между колонками */
.footer__col[open] { padding-bottom: 8px; }
.footer__col-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);       /* Inter 11 / 800, uppercase — как прежний заголовок колонки */
  font-weight: 800;
  font-size: var(--fs-footer-legal);
  letter-spacing: var(--ls-step);
  text-transform: uppercase;
  color: var(--cream);
}
.footer__col-sum::-webkit-details-marker { display: none; }
.footer__col-sign {                    /* знак +/− справа: Anton 18, цвет ссылок футера */
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  color: var(--footer-link);
}
.footer__col-sign::after { content: "+"; }
.footer__col[open] > .footer__col-sum .footer__col-sign::after { content: "\2212"; }
.footer__col a {
  display: block;                      /* details оборачивает контент в ::details-content — блок, чтобы ссылки шли в столбик */
  padding: 4px 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-footer-link);
  line-height: var(--lh-footer-link);
  color: var(--footer-link);
  transition: opacity var(--dur-fast) var(--ease);
}
.footer__col a:active { opacity: .6; }
/* Сноска «*» про доставку (ТЗ 11.09 §9) — перед разделителем */
.footer__note {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: var(--fs-footer-legal);   /* 12px */
  line-height: 1.5;
  color: var(--footer-link);
}
.footer__divider { border: 0; border-top: 1px solid rgba(248, 241, 231, .14); margin: 4px 0 20px; } /* spec §6.10 */
/* Соцсети — на месте прежних реквизитов (ПРАВКИ-06 п.3). Иконки currentColor, 22px. */
.footer__social { display: flex; justify-content: center; gap: 20px; }
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;                         /* область нажатия ≥44×44 */
  height: 44px;
  color: var(--footer-link);
  transition: color var(--dur-fast) var(--ease);
}
.footer__social-link svg { display: block; width: 22px; height: 22px; }
.footer__social-link:active { color: var(--cream); }

/* Десктоп-hover — только украшение (обязательный :active уже есть) */
@media (hover: hover) {
  .footer__col a:hover { color: var(--cream); }
}

/* ============================================================
   ПОПАП ЗАКАЗА + «СПАСИБО» (ТЗ 11.09 §8)
   Анимации: только opacity фона и transform панели. Без JS остаётся скрытым (hidden).
   <1024 — лист на весь экран, блоки в порядке DOM: форма → сводка → кнопка. ≥1024 — см. ниже.
   ============================================================ */
.order {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.order.is-open { opacity: 1; }
.order__backdrop { position: fixed; inset: 0; background: var(--overlay); }
.order__panel {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  padding: 20px var(--pad-side) calc(24px + env(safe-area-inset-bottom));
  transform: translateY(12px);
  transition: transform var(--dur) var(--ease);
}
.order.is-open .order__panel { transform: translateY(0); }
.order__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; }
.order__title { margin: 0 0 12px; padding-right: 44px; }
.order__lead { margin: 0 0 20px; }

/* Поля формы */
.field { display: block; margin: 0 0 14px; }
.field__label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}
.field__input {
  display: block;
  width: 100%;
  height: var(--h-input);              /* 52px */
  padding: 0 16px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--r-input);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;                     /* 16 — чтобы iOS не зумил поле */
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: var(--input-placeholder); }
.field__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field.is-invalid .field__input { border-color: var(--crimson); }
.field__error {
  display: block;
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  color: var(--crimson);
}
.field__error:empty { display: none; }

/* Сводка заказа */
.order__summary {
  background: var(--cream-2);
  border-radius: var(--r-config);
  padding: 18px;
  margin: 20px 0 16px;
}
.order__lines {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
}
.order__lines li { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; }
.order__lines b { font-weight: 700; white-space: nowrap; }
.order__lines span {
  margin-left: auto;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted-3);
  white-space: nowrap;
}
.order__total {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  margin: 0 0 12px;
  border-top: 1.5px solid var(--card-border);
}
.order__total .total__now { margin-left: auto; }
.order__pay, .order__delivery {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-faq-a);
  line-height: var(--lh-faq-a);
  color: var(--muted-2);
}
.order__pay b { color: var(--ink); }
.order__delivery { margin-top: 4px; font-weight: 600; }
.order__delivery:empty { display: none; }

/* Кнопка и ошибка отправки */
.order__error { margin: 0 0 10px; text-align: center; }
.order__submit { margin: 0; display: block; }   /* см. .config__cta */

/* «Спасибо» */
.order__thanks { text-align: center; padding: 24px 0 0; }
.order__thanks .h2 { margin-bottom: 12px; }
.order__thanks .lead { margin-bottom: 24px; }
.order__thanks .btn--secondary { margin-bottom: 0; }

/* Пока попап открыт — страница под ним не прокручивается (как is-menu-open) */
body.is-modal-open { overflow: hidden; }

/* ============================================================
   УЗКИЕ ЭКРАНЫ (≤383) — чипы сравнения не ниже 12 px (ТЗ 11.09 §10).
   Размещено в конце файла НАМЕРЕННО: базовые правила чипов идут выше.
   Граница 383, а не 359: «THE BETTER WAY» на 12/.16em = 163,6 px, а колонка
   сравнения на 360–383 = 152–163 px — nowrap-чип раздвигал сетку за поле на 8 px.
   На 390 чипы остаются как утверждены.
   ============================================================ */
@media (max-width: 383px) {
  .chip--old, .chip--better { font-size: 12px; letter-spacing: .01em; padding-inline: 8px; }
}

/* ════════════════════════════════════════════════════════════
   ТЗ-03 — ВЕРСИЯ ДЛЯ НОУТБУКОВ. Только min-width; мобильная
   версия (<600) не затрагивается ни одним правилом ниже.
   Переменные шрифтов переопределяем здесь (не в tokens.css);
   style.css грузится после tokens.css → эти правила побеждают
   по порядку источника. Главное ограничение — ВЫСОТА: первый
   экран и каждая секция вкуса должны влезать в ~700px.
   ════════════════════════════════════════════════════════════ */

/* Десктопные элементы, которых нет в мобильной вёрстке (пункты меню в шапке,
   кнопка оффера, стрелки карусели) — по умолчанию скрыты, чтобы мобильная версия
   не менялась ни на пиксель. Показываются только в min-width-медиазапросах ниже. */
.nav__links,
.nav__offer,
.rv-arrow { display: none; }

/* ───────── ПЛАНШЕТ 600–1023 ───────── */
@media (min-width: 600px) {
  :root {
    --fs-h1: 72px; --fs-h2: min(48px, 8.4vw); --fs-flavour: 60px;   /* 600 → 48 (8.4vw = 50,4), ТЗ 11.09 §3 */
    --fs-body: 16px; --fs-sub-hero: 17px;
  }
  .page { max-width: 720px; }
  .wrap { padding-inline: 32px; }
  /* Факты What's Inside: тот же вид, блок по центру (ТЗ 11.09 §4) */
  .facts-badges, .facts-can { max-width: 560px; margin-inline: auto; }
}

/* ───────── НОУТБУК 1024+ ───────── */
@media (min-width: 1024px) {
  :root {
    --fs-h1: 88px; --fs-h2: min(56px, 8.4vw); --fs-flavour: 68px;   /* на ≥1024 всегда 56 — формула для единообразия */
    --fs-body: 17px; --fs-sub-hero: 19px; --fs-price: 20px;
    --fs-faq-q: 16px; --fs-faq-a: 15px;
  }

  /* Контейнер: страница во всю ширину окна (фоны секций до краёв),
     контент — max-width 1200 по центру, поля 40. >1600 контейнер не растёт. */
  .page { max-width: none; }
  .wrap { max-width: 1200px; margin-inline: auto; padding-inline: 40px; }

  /* ═══ 00. Навигация — три зоны, бургер и меню-оверлей скрыты ═══ */
  .nav {
    position: relative;
    height: 72px;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 40px;
    justify-content: flex-start;
    gap: 16px;
  }
  .nav__burger { display: none; }
  .nav__links { display: flex; align-items: center; gap: 28px; margin-right: auto; }
  .nav__links a {
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    color: var(--ink); text-decoration: none;
    transition: opacity var(--dur-fast) var(--ease);
  }
  .nav__brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav__brand img { height: 40px; }
  .nav__offer {
    display: inline-flex; align-items: center; height: 40px;
    padding-inline: 18px; border-radius: var(--r-pill);
    background: var(--crimson); color: var(--white);
    font-family: var(--font-body); font-weight: 700; font-size: 13px;
    letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
    white-space: nowrap;
  }
  .menu { display: none; }
  @media (hover: hover) {
    .nav__links a:hover { opacity: .6; }
    .nav__offer:hover { opacity: .92; }
  }

  /* ═══ 01. Первый экран — две колонки (текст слева 46 / композиция справа 54) ═══
     Высота: цель ≤700px. Композиция ограничена по высоте, поля секции урезаны. */
  .hero {
    max-width: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 46fr 54fr;   /* fr — учитывает column-gap, без переполнения */
    column-gap: 48px;
    align-items: center;
    align-content: center;
    text-align: left;
    padding: 20px 40px;
    background:
      radial-gradient(70% 60% at 26% 40%, var(--hero-radial), transparent 60%);
  }
  .d-hero__head { grid-column: 1; }
  .hero__badges { grid-column: 1; justify-content: flex-start; margin-inline: 0; }
  .d-hero__cta  { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__trust  { grid-column: 1; justify-content: flex-start; }
  .hero-scene   { grid-column: 2; grid-row: 1 / 5; align-self: center; margin: 0; }
  .hero-scene img { height: 460px; width: auto; max-width: 100%; margin-inline: auto; }
  /* Кнопки: по содержимому, слева, в порядке источника (основная → строка
     предложения → вторичная — как в списке порядка §01). «В одну строку рядом»
     геометрически невозможно: одна основная кнопка ~310px, а левая колонка ~493px
     (см. отчёт), поэтому кнопки стоят в столбик. */
  .d-hero__cta .btn { width: auto; margin: 0; flex: 0 0 auto; }
  .d-hero__cta .hero__offer { margin: 0; text-align: left; }
}

/* ───────── НОУТБУК 1024+ : промо, секции 02–10, футер ───────── */
@media (min-width: 1024px) {
  /* Промо-бар: плашка во всю ширину, содержимое по центру в контейнере */
  .promo__inner { max-width: 1200px; margin-inline: auto; padding-inline: 40px; }

  /* Внутренние .wrap внутри флекс/грид-обёрток не должны добавлять свой контейнер */
  .d-flavour__grid > .wrap { max-width: none; margin-inline: 0; padding-inline: 0; }

  /* ═══ 02. Problem — текст в колонке 720 слева, ниже плашка + банка ═══ */
  .section--problem .eyebrow,
  .section--problem .h2,
  .section--problem .lead { max-width: 720px; }
  .section--problem .compare { max-width: 720px; margin-inline: 0; gap: 40px; }
  .section--problem .compare__box { height: 420px; aspect-ratio: auto; }

  /* ═══ 03. Миры вкусов — две колонки, чередование (влезают в ~700px) ═══ */
  .flavour { position: relative; }
  .flavour__index {
    position: absolute; top: 20px; margin: 0; z-index: 3;
    right: max(40px, calc(50% - 560px));
  }
  .d-flavour__grid {
    max-width: 1200px; margin-inline: auto; padding-inline: 40px;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
    align-items: center;
  }
  /* нечётные (Cola, Grape): текст+кнопка слева, банка справа */
  .d-flavour__grid > .wrap:first-of-type  { grid-column: 1; grid-row: 1; align-self: end; text-align: left; }
  .d-flavour__grid > .flavour__scene      { grid-column: 2; grid-row: 1 / span 2; }
  .d-flavour__grid > .wrap:last-of-type   { grid-column: 1; grid-row: 2; align-self: start; text-align: left; }
  /* чётные (Cherry, Cream): банка слева, текст справа */
  .flavour--cherry .d-flavour__grid > .wrap:first-of-type,
  .flavour--cream  .d-flavour__grid > .wrap:first-of-type { grid-column: 2; }
  .flavour--cherry .d-flavour__grid > .flavour__scene,
  .flavour--cream  .d-flavour__grid > .flavour__scene { grid-column: 1; }
  .flavour--cherry .d-flavour__grid > .wrap:last-of-type,
  .flavour--cream  .d-flavour__grid > .wrap:last-of-type { grid-column: 2; }
  /* банка высотой 460, ширина авто */
  .flavour__scene { aspect-ratio: auto; height: 460px; margin: 0; }
  .flavour__can { width: auto; height: 100%; bottom: 0; }
  .flavour__cta { width: auto; display: inline-flex; align-items: center; justify-content: center; padding-inline: 30px; }

  /* ═══ 03e. Full Mix — контент 820, 4 банки в ряд по 280 ═══ */
  .section--fullmix .wrap--center { max-width: 820px; }
  .fullmix__cans { gap: 24px; margin: 32px 0 24px; align-items: flex-end; }
  .fullmix__can,
  .fullmix__can--1, .fullmix__can--2, .fullmix__can--3, .fullmix__can--4 {
    width: auto; height: 280px; margin: 0; transform: none;
  }

  /* ═══ 04. Soda First — текст 760 слева, фото в ряд по 460 ═══ */
  .section--sodafirst .eyebrow,
  .section--sodafirst .h2,
  .section--sodafirst .lead,
  .pill-chips { max-width: 760px; }
  .photo-duo { gap: 24px; }
  .photo { width: calc(50% - 12px); aspect-ratio: auto; height: 460px; }

  /* ═══ 05. What's Inside — заголовок по центру, 5 фактов в ряд, банки 420 ═══ */
  .section--inside .eyebrow,
  .section--inside .h2,
  .section--inside .lead { text-align: center; }
  .inside__cans { gap: 40px; }
  .inside__can { height: 420px; width: auto; }
  .accordion { max-width: 820px; margin-inline: auto; }

  /* ═══ 06. Craving moments — три колонки ═══ */
  .grid-2 { grid-template-columns: repeat(3, 1fr); }

  /* ═══ 07. Отзывы — карточка 360, стрелки только при наличии мыши ═══ */
  .section--reviews { position: relative; }
  .reviews { padding-inline: max(40px, calc(50% - 560px)); }
  .review-card { flex: 0 0 360px; }
  .rv-arrow {
    position: absolute; top: 46%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    background: var(--white); border: 1.5px solid var(--card-border);
    color: var(--ink); cursor: pointer; z-index: 4; padding: 0;
  }
  .rv-arrow svg { width: 22px; height: 22px; }
  .rv-arrow--prev { left: max(8px, calc(50% - 600px)); }
  .rv-arrow--next { right: max(8px, calc(50% - 600px)); }
  @media (pointer: fine) { .rv-arrow { display: inline-flex; } }

  /* ═══ 08. Build — заголовок и конфигуратор 560 по центру, миниатюры 56 ═══ */
  .section--build .eyebrow,
  .section--build .h2,
  .section--build .lead { text-align: center; }
  .config { max-width: 560px; margin-inline: auto; }
  .frow img { height: 56px; }
  .frow__thumbs { height: 56px; }
  .frow__thumbs img + img { margin-left: -17px; }

  /* ═══ 09. Reassurance в ряд + FAQ по центру 820 ═══ */
  .reassure { flex-direction: row; gap: 20px; align-items: stretch; }
  .reassure__card { flex: 1; }
  .section--faq .h2 { text-align: center; }
  .faq { max-width: 820px; margin-inline: auto; }

  /* ═══ 10. Футер — бренд слева, три колонки ссылок справа (аккордеоны раскрыты) ═══ */
  .section--footer .wrap {
    display: grid; grid-template-columns: auto 1fr; column-gap: 64px; align-items: start;
  }
  .footer__brand   { grid-column: 1; grid-row: 1; }
  .footer__tagline { grid-column: 1; grid-row: 2; }
  .footer__logo    { grid-column: 1; grid-row: 3; }
  .footer__social  { grid-column: 1; grid-row: 4; justify-content: flex-start; margin-top: 8px; }
  .footer__cols {
    grid-column: 2; grid-row: 1 / span 5; margin: 0; align-self: start;
    display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; align-items: start;
  }
  .footer__divider { display: none; }
  /* Колонки раскрыты всегда: каждый details — обычная колонка, маркер +/− скрыт,
     тоггл выключен. ::details-content раскрывает содержимое закрытого details. */
  .footer__col { display: block; }
  .footer__col + .footer__col { border-top: 0; }
  .footer__col::details-content { content-visibility: visible; }
  .footer__col-sum { cursor: default; pointer-events: none; margin: 0 0 12px; }
  .footer__col-sign { display: none; }
  .d-foot__links { display: flex; flex-direction: column; }
  /* Сноска «*» — внизу футера на всю ширину (в сетке футера бренд слева, колонки справа) */
  .footer__note { grid-column: 1 / -1; grid-row: 6; margin: 24px 0 0; }

  /* ═══ Попап заказа (ТЗ 11.09 §8.2) — панель 860 по центру, две колонки:
     форма слева, сводка и кнопка «PLACE MY ORDER» справа под сводкой ═══ */
  .order { overflow: auto; }
  .order__panel {
    position: relative;
    inset: auto;
    width: calc(100% - 80px);
    max-width: 860px;
    margin: 6vh auto;
    overflow: visible;
    border-radius: var(--r-config);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-areas: "form summary" "form actions";
    column-gap: 32px;
    align-items: start;
  }
  .order__form { grid-area: form; }
  .order__summary { grid-area: summary; margin: 0; }
  .order__actions { grid-area: actions; align-self: start; margin-top: 16px; }
  .order__thanks { grid-column: 1 / -1; }
  .order__close { top: 16px; right: 16px; }
  .order__title { padding-right: 0; }          /* крест справа над сводкой, а не над заголовком */
}

/* ───────── ПЛАНШЕТ 600–1023 (упрощённо, без двухколоночных сцен) ───────── */
@media (min-width: 600px) and (max-width: 1023px) {
  .grid-2 { grid-template-columns: repeat(3, 1fr); }
  .reassure { flex-direction: row; gap: 16px; align-items: stretch; }
  .reassure__card { flex: 1; }
  .review-card { flex: 0 0 340px; }
}

/* ==== ТЗ 14.09, заход 2 ====
   thanks.html и privacy / cookies / delivery.html: подвал прижат к низу экрана (§2.3);
   строка «Privacy Policy · Cookie Policy · Delivery & Returns» в подвале (§4.7);
   текст документов (§4.2). Цвета и кегли — токены сайта, новых нет. ==== */
/* .page уже min-height:100dvh; подвал сайта лежит внутри <main> — main тоже колонка, подвал уходит вниз */
html[data-yyt-page="thanks"] .page,html[data-yyt-page="legal"] .page{display:flex;flex-direction:column}
html[data-yyt-page="thanks"] .page>main,html[data-yyt-page="legal"] .page>main{flex:1 0 auto;display:flex;flex-direction:column}
html[data-yyt-page="thanks"] .page>main>.section--footer,html[data-yyt-page="legal"] .page>main>.section--footer{margin-top:auto}
.footer__policies{margin:16px 0 0;font-family:var(--font-body);font-size:var(--fs-footer-legal);line-height:1.6;color:var(--footer-link);text-align:center}
.footer__policies a{text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
@media (hover:hover){.footer__policies a:hover{color:var(--cream)}}
@media (min-width:1024px){.footer__policies{grid-column:1/-1;grid-row:7;margin-top:12px;text-align:left}}
.legal .h2{margin-bottom:6px}
.legal .legal__date{margin:0 0 8px;font-size:var(--fs-micro);line-height:var(--lh-micro);color:var(--muted-3)}
.legal h2.lead{margin:24px 0 6px}
.legal__list{margin:0 0 16px;padding-left:1.2em;font-family:var(--font-body);font-size:var(--fs-body);line-height:var(--lh-body);color:var(--muted-1)}
.legal__list li+li{margin-top:4px}
.legal a{text-decoration:underline;text-underline-offset:3px}
@media (min-width:1024px){.legal__col{max-width:820px;margin-inline:auto}}
