/* Bubble Cups — франшиза. Палитра: assets/palettes.json (v2); старт = matcha-latte.
   Текст и логотип всегда Ink (WCAG), контуры/тени — по напитку (--outline / --shadow). */
@font-face { font-family: "GCond"; src: url("../assets/fonts/gothamcond_black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/gotham_black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/gotham_medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Знак ₸: в Gotham его нет — один глиф из Montserrat ExtraBold (SIL OFL 1.1, assets/fonts/Montserrat-OFL.txt),
   подогнан по высоте к Gotham, для Cond — сжат по ширине (_tools/tenge.py). Подключается только на U+20B8. */
@font-face { font-family: "GCond"; src: url("../assets/fonts/tenge-cond.woff2") format("woff2"); font-weight: 900; unicode-range: U+20B8; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/tenge-gotham.woff2") format("woff2"); font-weight: 500 900; unicode-range: U+20B8; font-display: swap; }

:root {
  /* matcha-latte (совпадает с js/palettes.js) */
  --bg-1: #73C3B2; --bg-2: #CDE4CC; --bg-3: #FFFFFF;
  --text: #2B2B2A;
  --accent: #DD81B3; --accent-text: #2B2B2A;
  --sticker-bg: #EBB3D2; --sticker-text: #2B2B2A;
  --marquee-bg: #2B2B2A; --marquee-text: #CDE4CC;
  --outline: #2B2B2A; --shadow: #2B2B2A; --logo: #2B2B2A;
  --text-muted: color-mix(in srgb, var(--text) 78%, transparent);

  --hdr: 72px;
  --pad: 64px;
  --bw: 4px;              /* толщина контура */
  --sh: 8px;              /* жёсткая тень */
  --logo-w: min(580px, 40.3vw, calc((100svh - 362px) / 0.8055));
  --logo-x: calc(var(--logo-w) * 0.16631);           /* охранное поле 1X */
  --logo-h: calc(var(--logo-w) * 0.47289);
  /* логотип + стакан (до 1.612 W) по центру экрана, но не ближе охранного поля к краю */
  --logo-left: calc(var(--logo-x) + 24px);
  --ease: cubic-bezier(.44, 0, .56, 1);
}
@media (max-width: 899.98px) {
  :root { --hdr: 56px; --pad: 20px; --bw: 3px; --sh: 6px; --logo-w: min(220px, 56.4vw); --logo-left: var(--logo-x); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-1); color: var(--text);
  font: 500 17px/1.45 "Gotham", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, label, .round, .tab, .dot, .sticker { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
.nowrap { white-space: nowrap; }
.m-only { display: none; }
@media (max-width: 899.98px) { .m-only { display: inline; } .d-only { display: none; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* ---------- кнопки ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 30px;
  border: var(--bw) solid var(--outline); border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font: 900 17px/1 "Gotham"; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  box-shadow: var(--sh) var(--sh) 0 var(--shadow);
  transform: translate(var(--tx), var(--ty));
  transition: transform .25s cubic-bezier(.34, 1.8, .64, 1), box-shadow .25s cubic-bezier(.34, 1.8, .64, 1);
}
.btn .arr { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
@media (hover: hover) {
  .btn:hover { --tx: -3px; --ty: -3px; box-shadow: calc(var(--sh) + 3px) calc(var(--sh) + 3px) 0 var(--shadow); }
  .btn:hover .arr { transform: translateX(4px); }
}
.btn:active { --tx: var(--sh); --ty: var(--sh); box-shadow: 0 0 0 var(--shadow); transition-duration: .08s; }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 14px; --sh: 5px; }
.btn--wide { width: 100%; justify-content: center; }

.round {
  width: 80px; height: 80px; border-radius: 50%; border: var(--bw) solid var(--outline);
  background: var(--bg-3); display: grid; place-items: center; cursor: pointer;
  box-shadow: 5px 5px 0 var(--shadow); transition: transform .25s cubic-bezier(.34, 1.8, .64, 1), box-shadow .25s;
}
.round svg { width: 30px; height: 30px; fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .round:hover { transform: translate(-2px, -2px) scale(1.05); box-shadow: 7px 7px 0 var(--shadow); } }
.round:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--shadow); }

.link { font-weight: 900; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- заголовки ---------- */
.kicker { display: inline-block; font: 900 14px/1 "Gotham"; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.h1, .h2 { font-family: "GCond", "Arial Narrow", sans-serif; font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; }
.h2 { font-size: clamp(44px, 6.4vw, 96px); }
.h2--xl { font-size: clamp(56px, 9.6vw, 150px); }
.h2--xxl { font-size: clamp(72px, 13vw, 200px); }
.lead { font-size: 19px; max-width: 34em; margin-top: 20px; color: var(--text-muted); }
.sec-head { position: relative; z-index: 3; padding: 0 var(--pad); }

/* ---------- шапка ---------- */
.hdr {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad);
}
.hdr__nav { display: flex; gap: 28px; }
.hdr__nav a, .hdr__tag { font: 900 14px/1 "Gotham"; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.hdr__nav a { padding: 15px 0; }
@media (hover: hover) { .hdr__nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; } }
.hdr__tag { position: absolute; left: 50%; transform: translateX(-50%); }

/* ---------- 1. первый экран ---------- */
.hero {
  position: relative; z-index: 1; min-height: max(100svh, 760px); background: var(--bg-1);
  padding-top: var(--hdr); display: flex; flex-direction: column; overflow: hidden;
}
/* охранное поле = padding; ничего, кроме стакана (схема A), в него не заходит */
.logo-zone { position: relative; z-index: 2; width: calc(var(--logo-w) + 2 * var(--logo-x)); margin-left: calc(var(--logo-left) - var(--logo-x)); padding: var(--logo-x); }
.logo-stage { position: relative; width: var(--logo-w); aspect-ratio: 1346.88 / 636.92; }
.logo-layer { position: absolute; inset: 0; will-change: transform; } /* свой слой: сложный путь логотипа не перерисовывается */
.logo { display: block; width: 100%; height: 100%; color: var(--logo); overflow: visible; }

/* Стакан стоит вне охранного поля логотипа: справа (десктоп) или под ним (телефон). */
.hero-cup { position: absolute; z-index: 2; left: calc(100% + var(--logo-x) + 28px); top: calc(var(--logo-w) * -.14); height: calc(var(--logo-w) * 1.1); aspect-ratio: 342 / 900; }
.hero-cup[data-tara="glass"] { top: calc(var(--logo-w) * -.06); height: calc(var(--logo-w) * .95); aspect-ratio: 638 / 900; }
.hero-cup img { display: block; height: 100%; width: 100%; object-fit: contain; object-position: left top; will-change: transform; transform-origin: 50% 100%; }
.hero-cup__shadow {
  position: absolute; left: -12%; right: -12%; bottom: -2.5%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--text) 32%, transparent), transparent);
}

.hero__copy { position: relative; z-index: 4; padding: 0 var(--pad); max-width: calc(var(--logo-left) + var(--logo-w) + var(--logo-x)); }
.h1 { font-size: clamp(46px, 4.2vw, 62px); }
.h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.h1 .ln > span { display: inline-block; white-space: nowrap; }
.hero__side { display: grid; gap: 14px; justify-items: start; margin-top: 18px; }
.hero__sub { font-size: 20px; line-height: 1.35; }
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.dots { display: flex; gap: 12px; }
.dot {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 3px solid var(--outline);
  background: var(--c); cursor: pointer; position: relative; transition: transform .3s cubic-bezier(.34, 1.8, .64, 1);
}
.dot::after { content: ""; position: absolute; inset: -10px; } /* зона касания ≥ 44 px */
.dot[aria-pressed="true"] { transform: scale(1.25); box-shadow: 0 0 0 3px var(--bg-1), 0 0 0 6px var(--outline); }
@media (hover: hover) { .dot:hover { transform: scale(1.18); } }

.hero__decor { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__fg { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.dec { position: absolute; height: auto; pointer-events: none; will-change: transform; }
/* декор только вне охранного поля логотипа */
.dec--t1 { display: none; } /* только телефон */
.dec--t2 { width: 64px; right: 9%; top: 68%; }
.dec--fly { width: 160px; right: 2%; top: 39%; }
/* размытые шарики: слева под охранным полем (рядом с H1, не на тексте) и справа над лентой */
.fg--1 { width: 170px; left: -112px; top: 60%; }
.fg--2 { width: 230px; right: -64px; top: 46%; }

/* стикер */
.sticker {
  position: absolute; z-index: 6; width: 176px; height: 176px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(var(--rot, -10deg));
}
.sticker svg { width: 100%; height: 100%; overflow: visible; display: block; will-change: transform; }
.st-sh { fill: var(--shadow); }
.st-bg { fill: var(--sticker-bg); stroke: var(--outline); stroke-width: 4; }
.st-ring { font: 900 15px "Gotham"; letter-spacing: .06em; fill: var(--sticker-text); }
.st-big { font: 900 58px "GCond"; fill: var(--sticker-text); }
.st-big--word { font-size: 40px; }
.st-small { font: 900 14px "Gotham"; fill: var(--sticker-text); text-transform: uppercase; letter-spacing: .06em; }
.sticker--hero { right: 3%; top: calc(var(--hdr) + 5%); }

/* бегущая строка */
.marquee {
  position: relative; z-index: 5; width: 112%; margin-left: -6%; overflow: hidden;
  background: var(--marquee-bg); color: var(--marquee-text);
  border-block: var(--bw) solid var(--outline); transform: rotate(-3deg);
}
.marquee--hero { margin-top: auto; margin-bottom: 84px; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: 30px; padding: 16px 30px 12px 0; white-space: nowrap; font: 900 44px/1 "GCond"; text-transform: uppercase; }
.boba { width: .42em; height: .42em; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-.06em); }

/* волнистый край секции (облака-скалопы, как у Johnny's), цвет = фон секции */
.scallop {
  --r: 64px;
  position: absolute; left: 0; right: 0; top: calc(-1 * var(--r) + 1px); height: var(--r); background: inherit; pointer-events: none;
  -webkit-mask: radial-gradient(circle var(--r) at 50% 100%, #000 98%, transparent 100%) 0 0 / calc(2 * var(--r)) var(--r) repeat-x;
          mask: radial-gradient(circle var(--r) at 50% 100%, #000 98%, transparent 100%) 0 0 / calc(2 * var(--r)) var(--r) repeat-x;
}

/* ---------- 2. вкусы ---------- */
.flavors { position: relative; z-index: 2; background: var(--bg-2); padding: 120px 0 120px; overflow-x: clip; }
.why, .apply, .band, .foot { overflow-x: clip; }
.flavors .sec-head { display: flex; flex-direction: column; align-items: flex-start; }
.tabs { position: relative; z-index: 4; display: flex; gap: 10px; padding: 36px var(--pad) 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 64px; padding: 6px 16px 6px 6px;
  border: var(--bw) solid var(--outline); border-radius: 999px; background: var(--bg-3); cursor: pointer;
  font: 900 14px/1.1 "Gotham"; text-transform: uppercase; letter-spacing: .02em; text-align: left;
  box-shadow: 4px 4px 0 var(--shadow); transition: transform .25s cubic-bezier(.34, 1.8, .64, 1), box-shadow .25s, background-color .3s;
}
.tab img { width: 44px; height: 52px; object-fit: contain; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-text); }
@media (hover: hover) { .tab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); } }
.tab:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow); }

/* слово целиком внизу сцены, стакан стоит ПЕРЕД ним и закрывает только верх букв (≤ ~25 % высоты) */
.fstage { position: relative; height: 700px; margin-top: 10px; }
.fword {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 24px;
  display: flex; justify-content: center; white-space: nowrap; pointer-events: none;
  font: 900 250px/.8 "GCond"; text-transform: uppercase; letter-spacing: -.01em; color: var(--text);
  padding: .06em 0 .02em; overflow: hidden;
}
.fword .ch { display: inline-block; will-change: transform; }

.fcup-scroll { position: absolute; z-index: 2; left: 50%; bottom: 200px; width: 0; height: 540px; pointer-events: none; }
.fcup-swap { position: absolute; bottom: 0; left: 0; height: 100%; transform: translateX(-50%); aspect-ratio: 342 / 900; transform-origin: 50% 85%; }
.fcup-swap[data-tara="glass"] { height: 82%; aspect-ratio: 638 / 900; }
.fcup { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; will-change: transform; }
/* сплэш — только у верха стакана, над словом */
.fsplash { position: absolute; z-index: 0; will-change: transform; height: 52%; width: auto; left: 58%; top: -8%; transform: rotate(14deg); }
.fcup-swap[data-tara="glass"] .fsplash { height: 56%; left: 62%; top: -14%; }
.dec--f2 { width: 230px; right: 5%; top: 2%; z-index: 0; }
.round--prev, .round--next { position: absolute; z-index: 5; top: 34%; }
.round--prev { left: var(--pad); }
.round--next { right: var(--pad); }

.finfo { position: relative; z-index: 4; max-width: 760px; margin: 28px auto 0; padding: 0 var(--pad); text-align: center; }
.finfo__num { font: 900 14px/1 "Gotham"; letter-spacing: .14em; }
.finfo__name { font: 900 clamp(34px, 3.6vw, 52px)/1 "GCond"; text-transform: uppercase; margin: 10px 0 12px; }
.finfo__text { font-size: 18px; color: var(--text-muted); min-height: 2.9em; }

/* ---------- 3. почему ---------- */
.why { position: relative; z-index: 3; background: var(--bg-3); padding: 120px 0 150px; }
.why .sec-head { max-width: 1000px; }
.sticker--why { right: 7%; top: 120px; --rot: 9deg; width: 190px; height: 190px; }
.cards {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 36px;
  padding: 70px var(--pad) 0; perspective: 900px;
}
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 30px 32px;
  border: var(--bw) solid var(--outline); border-radius: 26px; box-shadow: 10px 10px 0 var(--shadow);
  transform: rotate(var(--tilt)); transition: box-shadow .3s; transform-style: preserve-3d;
}
@media (hover: hover) { .card:hover { box-shadow: 16px 16px 0 var(--shadow); } }
.card--a { background: var(--bg-2); color: var(--text); }
.card--b { background: var(--accent); color: var(--accent-text); }
.card--c { background: var(--sticker-bg); color: var(--sticker-text); }
.card--d { background: var(--marquee-bg); color: var(--marquee-text); }
.card p { font-size: 17px; }
.card__big { font: 900 clamp(64px, 7.4vw, 120px)/.85 "GCond"; letter-spacing: -.01em; white-space: nowrap; }
.card--b .card__big { font-size: clamp(54px, 5.4vw, 86px); }
.card__cap { font: 900 17px/1.2 "Gotham"; text-transform: uppercase; letter-spacing: .04em; }
.card__title { font: 900 clamp(34px, 3.4vw, 52px)/.92 "GCond"; text-transform: uppercase; }
.card__note { font-size: 13px; margin-top: auto; opacity: .85; }
.card__pill { align-self: flex-start; padding: 6px 12px; border: 3px solid currentColor; border-radius: 999px; font: 900 12px/1 "Gotham"; text-transform: uppercase; letter-spacing: .1em; }
.dec--w1 { width: 240px; left: -186px; top: 40%; z-index: 1; } /* выглядывает из-за края, на карточки не заходит */
.dec--w2 { width: 100px; right: 2%; top: 60px; z-index: 4; } /* над заголовком, не на карточках */

/* ---------- 4. условия франшизы ---------- */
.terms { position: relative; z-index: 3; background: var(--bg-1); padding: 140px 0 150px; overflow-x: clip; }
.sticker--terms { right: 8%; top: 110px; --rot: -12deg; width: 180px; height: 180px; }
.sticker--terms .st-big { font-size: 84px; }
.tcards { position: relative; z-index: 3; display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px 40px; padding: 60px var(--pad) 0; max-width: 1440px; }
.tcard {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0;
  padding: 30px 34px 34px; border: var(--bw) solid var(--outline); border-radius: 28px; box-shadow: 12px 12px 0 var(--shadow);
  transform: rotate(var(--tilt)); container-type: inline-size;
}
/* денежные условия — во всю ширину: гигантские цифры */
.tcard--a, .tcard--b { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.tcard--a .tcard__label, .tcard--b .tcard__label { flex: 1 1 200px; max-width: 260px; padding-bottom: 14px; }
.tcard--b { width: 94%; justify-self: end; }
.tcard--a { background: var(--bg-3); }
.tcard--b { background: var(--accent); color: var(--accent-text); }
.tcard--c { background: var(--sticker-bg); color: var(--sticker-text); }
.tcard--d { background: var(--marquee-bg); color: var(--marquee-text); justify-content: center; }
.tcard__label { font: 900 18px/1.2 "Gotham"; text-transform: uppercase; letter-spacing: .06em; }
.tcard__num { font: 900 140px/.86 "GCond"; letter-spacing: -.005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcard__text { font: 900 clamp(30px, 3vw, 46px)/1 "GCond"; text-transform: uppercase; }
.tcard__text + .tcard__text { margin-top: 18px; padding-top: 18px; border-top: 3px solid currentColor; }
/* ---------- «Не только напитки» (внутри «Почему») ---------- */
.more { position: relative; z-index: 3; padding: 90px var(--pad) 0; }
.more__title { font: 900 clamp(44px, 5.6vw, 84px)/.9 "GCond"; text-transform: uppercase; margin-bottom: 40px; }
.more__grid { display: grid; grid-template-columns: 1.35fr 1.1fr .85fr; gap: 40px; align-items: start; } /* карточки по контенту — без пустых низов */
.mcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  border: var(--bw) solid var(--outline); border-radius: 26px; box-shadow: 10px 10px 0 var(--shadow);
  background: var(--bg-2); transform: rotate(var(--tilt));
}
/* корндог: вырезка шире карточки, правые ~30 % уходят за край (там в исходнике загиб бумаги и паутинка) */
.mcard__stage--cd { position: relative; overflow: hidden; display: block; padding: 0; aspect-ratio: 1 / .7; min-height: 0; background: var(--sticker-bg); }
.mcard__cd { position: absolute; left: -4%; top: -9%; width: 168%; height: auto; max-width: none; filter: drop-shadow(0 12px 14px color-mix(in srgb, var(--text) 28%, transparent)); }
.mcard__stage { position: relative; }
.mcard__cap { position: absolute; left: 14px; bottom: 12px; padding: 6px 12px; border: 3px solid var(--outline); border-radius: 999px; background: var(--bg-3); font: 900 13px/1 "Gotham"; text-transform: uppercase; letter-spacing: .06em; }
.mcard__also { font-size: 16px; }
.mcard--ramen .mcard__photo { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 860; object-fit: cover; border-bottom: var(--bw) solid var(--outline); }
.mcard__mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font: 900 12px/1.4 "Gotham"; text-transform: uppercase; letter-spacing: .03em; }
.mcard__mini li + li::before { content: "• "; }
.card--wide { grid-column: span 2; }
.mcard__also b { font-weight: 900; }
.mcard__stage { display: grid; place-items: end center; padding: 26px 20px 0; background: var(--accent); border-bottom: var(--bw) solid var(--outline); min-height: 300px; }
.mcard__jar { display: block; width: auto; height: 270px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px color-mix(in srgb, var(--text) 25%, transparent)); }
.mcard__body { padding: 20px 24px 24px; display: grid; gap: 8px; }
.mcard__body p { font-size: 17px; }
.mcard__tag { font: 900 clamp(34px, 3.2vw, 48px)/.95 "GCond"; text-transform: uppercase; }
/* ---------- «Место впечатлений» (интерьер) ---------- */
.place { position: relative; z-index: 3; padding: 90px var(--pad) 0; }
.place__grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; align-items: center; max-width: 1312px; }
.pframe { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border: var(--bw) solid var(--outline); border-radius: 26px; box-shadow: 12px 12px 0 var(--shadow); transform: rotate(var(--tilt)); background: var(--bg-2); }
.pframe img { display: block; width: 100%; height: 110%; object-fit: cover; will-change: transform; }
.band { position: relative; z-index: 4; height: 0; }
.marquee--band { position: absolute; top: -48px; transform: rotate(2.5deg); }

/* ---------- 4. заявка ---------- */
.apply { position: relative; z-index: 3; background: var(--bg-2); padding: 150px var(--pad) 130px; }
.apply__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; max-width: 1320px; margin: 0 auto; }
.apply .lead { color: var(--text); }
.apply .link { margin-top: 22px; }
.form {
  position: relative; display: grid; gap: 18px; padding: 40px 36px 32px; background: var(--bg-3);
  border: var(--bw) solid var(--outline); border-radius: 30px; box-shadow: 12px 12px 0 var(--shadow);
}
.form__title { font: 900 40px/.95 "GCond"; text-transform: uppercase; padding-right: 120px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font: 900 13px/1 "Gotham"; text-transform: uppercase; letter-spacing: .08em; padding: 0; margin-bottom: 8px; }
/* поля формы всегда в контуре Ink — граница поля должна давать контраст ≥ 3:1 */
.field input[type="text"], .field input[type="tel"] {
  height: 58px; padding: 0 18px; border: 3px solid var(--text); border-radius: 16px; background: #FFFFFF; color: var(--text);
  font: 500 18px "Gotham"; outline: none; transition: box-shadow .2s, transform .2s;
}
.field input:focus { box-shadow: 5px 5px 0 var(--shadow); transform: translate(-2px, -2px); }
.field input[aria-invalid="true"] { box-shadow: 5px 5px 0 var(--accent); }
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border: 3px solid var(--text); border-radius: 999px;
  font: 900 15px/1 "Gotham"; text-transform: uppercase; letter-spacing: .03em; transition: background-color .2s, transform .2s;
}
.chip input:checked + span { background: var(--accent); color: var(--accent-text); }
.chip input:focus-visible + span { outline: 3px solid var(--text); outline-offset: 3px; }
.form__msg { font: 900 17px/1.3 "Gotham"; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 3px solid var(--outline); }
.form__legal { font-size: 13px; color: var(--text-muted); }
.sticker--form { right: -44px; top: -64px; --rot: 12deg; width: 160px; height: 160px; }

/* ---------- футер ---------- */
.foot { position: relative; z-index: 3; background: var(--bg-3); display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 0 var(--pad); flex-wrap: wrap; }
.foot__logo { width: 240px; margin: 40px; } /* 240 px + охранное поле 1X = 40 px */
.foot__info { display: flex; gap: 0 28px; flex-wrap: wrap; font-size: 15px; padding: 24px 0; }
.foot__info > * { display: inline-flex; align-items: center; min-height: 44px; }
.foot__info a { text-decoration: none; }

.btn--float { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); justify-content: center; display: none; }

/* ---------- состояния до первого появления (только при JS и без reduced-motion) ----------
   .is-in ставится, как только стартует анимация появления — дальше видимостью управляет только GSAP */
.js:not(.rm) .reveal { opacity: 0; }
.js:not(.rm):not(.is-in) .hero-cup img, .js:not(.rm):not(.is-in) .hero__decor .dec, .js:not(.rm):not(.is-in) .hero__fg .dec,
.js:not(.rm):not(.is-in) .sticker--hero, .js:not(.rm):not(.is-in) .hero__side { opacity: 0; }
.js:not(.rm):not(.is-in) .logo-layer { clip-path: inset(100% 0 0 0); }
.js:not(.rm) .h1:not(.is-split) { opacity: 0; }

/* ---------- телефон ---------- */
@media (max-width: 899.98px) {
  body { font-size: 16px; }
  .hdr__nav { display: none; }
  .hdr__tag { position: static; transform: none; font-size: 12px; white-space: nowrap; }
  .hdr .btn--sm { min-height: 44px; padding: 0 16px; font-size: 12px; --sh: 4px; }
  .hero { min-height: max(100svh, 900px); }
  /* стакан под охранным полем, в правой колонке; слева — точки, стикер, тапиока */
  .hero-cup { left: calc(var(--logo-w) * .78); top: calc(var(--logo-w) * .639 + 8px); height: calc(var(--logo-w) * 1.5); }
  .hero-cup[data-tara="glass"] { left: calc(var(--logo-w) * .70); top: calc(var(--logo-w) * .639 + 8px); height: calc(var(--logo-w) * 1.25); } /* ≥ 12 px от точек */
  /* текст начинается под банкой */
  .hero__copy { max-width: none; margin-top: calc(var(--logo-w) * 1.5 + 22px); }
  .h1 { font-size: min(46px, 11.8vw); }
  .hero__side { margin-top: 14px; gap: 14px; }
  .hero__sub { font-size: 17px; max-width: 18em; }
  .btn { min-height: 56px; padding: 0 24px; font-size: 15px; }
  /* точки — в левой колонке под логотипом, рядом с банкой */
  .hero__copy, .hero__side, .hero__actions { position: static; }
  .dots { position: absolute; z-index: 6; left: var(--pad); top: calc(var(--hdr) + 2 * var(--logo-x) + var(--logo-h) + 16px); gap: 8px; }
  .dot { width: 22px; height: 22px; }
  .sticker--hero { width: 118px; height: 118px; left: 26px; right: auto; top: calc(var(--hdr) + 2 * var(--logo-x) + var(--logo-h) + 66px); }
  .marquee__item { font-size: 30px; gap: 20px; padding: 12px 20px 9px 0; }
  .marquee--hero { margin-bottom: 56px; margin-top: auto; }
  .dec--t1 { display: block; width: 44px; left: 150px; top: calc(var(--hdr) + 2 * var(--logo-x) + var(--logo-h) + 190px); }
  .dec--t2 { width: 30px; left: 30px; right: auto; top: calc(var(--hdr) + 2 * var(--logo-x) + var(--logo-h) + 200px); }
  .dec--fly, .fg--1 { display: none; }
  /* один размытый шарик — в левой колонке под стикером, не на тексте */
  .fg--2 { width: 96px; left: -34px; right: auto; top: calc(var(--hdr) + 2 * var(--logo-x) + var(--logo-h) + 236px); }

  .scallop { --r: 40px; }
  .flavors { padding: 80px 0 70px; }
  .tabs { gap: 10px; padding-top: 24px; padding-bottom: 8px; }
  .tab { min-height: 56px; font-size: 13px; padding-right: 16px; }
  .tab img { width: 36px; height: 44px; }
  .fstage { height: 540px; }
  .fword { font-size: 200px; bottom: 10px; }
  .fcup-scroll { height: 380px; }
  .dec--f2 { width: 120px; right: -10px; top: 0; }
  .round { width: 56px; height: 56px; box-shadow: 4px 4px 0 var(--shadow); }
  .round svg { width: 24px; height: 24px; }
  .round--prev, .round--next { top: 30%; }
  .round--prev { left: 12px; }
  .round--next { right: 12px; }
  .finfo { margin-top: 14px; }
  .finfo__text { font-size: 16px; }

  .why { padding: 90px 0 110px; }
  .sticker--why { width: 116px; height: 116px; right: 14px; top: -64px; }
  .cards { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .card { padding: 24px 22px 26px; box-shadow: 8px 8px 0 var(--shadow); }
  .card__big { font-size: 88px; }
  .card--b .card__big { font-size: 64px; }
  .dec--w1 { width: 130px; left: -30px; top: 30%; }
  .dec--w2 { display: none; }
  .marquee--band { top: -36px; }
  .more { padding-top: 70px; }
  .more__grid { grid-template-columns: 1fr; gap: 30px; }
  .card--wide { grid-column: auto; }
  .mcard__cd { width: 172%; top: -12%; }
  .place { padding-top: 70px; padding-left: 0; padding-right: 0; }
  .place .more__title { padding: 0 var(--pad); }
  .place__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pframe { border-radius: 0; border-left: 0; border-right: 0; box-shadow: 0 8px 0 var(--shadow); transform: none; }
  .pframe--big { order: -1; grid-column: 1 / -1; } /* телефон: главный кадр во всю ширину, два — парой ниже */
  .place__grid .pframe:not(.pframe--big) { border-radius: 18px; border: var(--bw) solid var(--outline); box-shadow: 6px 6px 0 var(--shadow); }
  .place__grid .pframe:nth-child(1) { margin-left: 14px; }
  .place__grid .pframe:nth-child(3) { margin-right: 14px; }
  .mcard { box-shadow: 8px 8px 0 var(--shadow); }
  .mcard__jar { height: 240px; }

  .terms { padding: 100px 0 100px; }
  .sticker--terms { width: 104px; height: 104px; right: 16px; top: 92px; }
  .tcards { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; }
  .tcard { padding: 22px 20px 26px; box-shadow: 8px 8px 0 var(--shadow); }
  .tcard--a, .tcard--b { flex-direction: column; align-items: stretch; width: auto; justify-self: stretch; }
  .tcard--a .tcard__label, .tcard--b .tcard__label { flex: none; max-width: none; padding-bottom: 0; }
  .tcard__label { font-size: 15px; }
  /* «от» — отдельной строкой, чтобы сами цифры были крупнее */
  .tcard--b .tcard__num .pre { display: block; font-size: .5em; line-height: 1; margin-bottom: .06em; }
  .tcard__text { font-size: 32px; }  .apply { padding: 110px var(--pad) 100px; }
  .apply__grid { grid-template-columns: 1fr; gap: 80px; }
  .form { padding: 30px 20px 24px; box-shadow: 8px 8px 0 var(--shadow); }
  .form__title { font-size: 34px; padding-right: 70px; }
  .sticker--form { width: 112px; height: 112px; right: -8px; top: -60px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 30px; }
  .foot__logo { width: 180px; margin: 30px; } /* 180 + 1X = 30 px */
  .btn--float { display: inline-flex; transform: translateY(140%); transition: transform .45s cubic-bezier(.34, 1.4, .64, 1); }
  .btn--float.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
