/* Gudo для бизнеса — «Сцена кейноута»: стиль презентации Apple. Чёрная сцена, слайды с настоящими экранами, огромные слова, светлый финал. */

@font-face { font-family: "Onest"; src: url("fonts/Onest-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* сцена */
  --stage: #000000;
  --graphite: #161617;
  --tile: #1D1D1F;
  --fg: #F5F5F7;
  --fg-2: #A1A1A6;
  --dim: #86868B;
  --hair-d: rgba(255, 255, 255, 0.14);
  --glass-d: rgba(42, 42, 45, 0.72);
  /* продукт */
  --lime: #8CFF00;
  --lime-hover: #A4FF3D;
  --lime-deep: #6FB800;
  --on-lime: #0A1400;
  /* светлый финал */
  --light: #F5F5F7;
  --paper: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --hair-l: rgba(0, 0, 0, 0.12);
  --field: #D2D2D7;
  --danger: #D70015;

  --f-text: "Onest", -apple-system, "SF Pro Text", system-ui, sans-serif;
  /* одна шкала на всю страницу, как у Apple: пять размеров, два начертания (600 и 400) */
  --t-hero: 600 clamp(3rem, 1.4rem + 5.6vw, 6rem)/1.04 var(--f-text);
  --t-h2: 600 clamp(2.25rem, 1.3rem + 3.2vw, 4rem)/1.08 var(--f-text);
  --t-lead: 600 clamp(1.3125rem, 1.05rem + 0.9vw, 1.75rem)/1.25 var(--f-text);
  --t-body: 400 1.0625rem/1.5 var(--f-text);
  --t-small: 400 0.875rem/1.45 var(--f-text);
  --ls-hero: -0.035em; --ls-h2: -0.03em; --ls-lead: -0.015em; --ls-body: -0.01em;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 52px;
  --slide-top: clamp(110px, 16vh, 180px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --focus: var(--lime);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: #3A3A3C var(--stage); }
body {
  margin: 0; background: var(--stage); color: var(--fg);
  font: var(--t-body); letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
input, textarea { caret-color: var(--lime-deep); }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dim { color: var(--dim); }
.w { color: var(--fg); }
.nw { white-space: nowrap; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; border-radius: 12px; background: var(--lime); color: var(--on-lime); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.fn { font: 600 0.55em/0 var(--f-text); vertical-align: super; margin-left: 0.1em; color: inherit; text-decoration: none; }
.fn:hover { text-decoration: underline; }

/* ---------- кнопки: капсулы Apple ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  font: var(--t-body); font-weight: 600; line-height: 1; letter-spacing: var(--ls-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--lime { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover { background: var(--lime-hover); }
.btn--lg { min-height: 56px; padding: 0 34px; }
.btn--sm { min-height: 32px; padding: 0 16px; font: var(--t-small); font-weight: 600; line-height: 1; }
.btn--block { width: 100%; }
.btn--ghost { background: #E8E8ED; color: var(--ink); }
.btn--ghost:hover { background: #DCDCE1; }
.more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--lime); font: var(--t-body); font-weight: 600; line-height: 1; text-decoration: none; }
.more .i { width: 1em; height: 1em; stroke-width: 2.4; transition: transform 200ms var(--ease-out); }
.more:hover { text-decoration: underline; }
.more:hover .i { transform: translateX(2px); }

/* ---------- верхняя панель: название продукта, разделы, действие ---------- */

.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); --nav-bg: rgba(0, 0, 0, 0.74); --nav-line: var(--hair-d); }
/* стекло — на подложке, чтобы у меню разделов на телефоне было своё размытие страницы */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg); border-bottom: 1px solid var(--nav-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 260ms ease, border-color 260ms ease;
}
.nav__in { max-width: calc(var(--wrap) + var(--gutter) * 2); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav__brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.nav__brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav__name { font: var(--t-body); font-weight: 600; line-height: 1; letter-spacing: var(--ls-body); transition: color 260ms ease; }
.nav__sub { font: var(--t-small); line-height: 1; color: var(--fg-2); transition: color 260ms ease; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { font: var(--t-small); color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: color 150ms ease; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--fg); }
.nav__toggle { display: none; }
.nav-curtain { display: none; }
/* над светлым финалом панель тоже светлая — как у Apple над белыми секциями */
.nav--light { --nav-bg: rgba(245, 245, 247, 0.82); --nav-line: var(--hair-l); --focus: var(--ink); }
.nav--light .nav__name { color: var(--ink); }
.nav--light .nav__sub, .nav--light .nav__links a { color: var(--ink-2); }
.nav--light .nav__links a:hover, .nav--light .nav__links a[aria-current="true"] { color: var(--ink); }

@media (max-width: 1000px) {
  .nav__in { gap: 4px; }
  .nav__brand { gap: 7px; margin-right: auto; }
  .nav__brand img { width: 24px; height: 24px; border-radius: 7px; }
  .nav__cta { position: relative; padding: 0 14px; margin-left: 4px; }
  .nav__cta::after { content: ""; position: absolute; inset: -6px -2px; }
  /* шеврон разделов, как в локальной панели apple.com на телефоне */
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: none; color: var(--fg-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle .i { width: 20px; height: 20px; stroke-width: 2.2; transition: transform 380ms var(--ease-out); }
  .nav.is-open .nav__toggle { color: var(--fg); }
  .nav.is-open .nav__toggle .i { transform: rotate(180deg); }
  .nav--light .nav__toggle { color: var(--ink-2); }
  .nav--light.is-open .nav__toggle { color: var(--ink); }

  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: 6px var(--gutter) 22px; background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--nav-line);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 320ms var(--ease-in), visibility 0s linear 320ms;
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 -2px 0); visibility: visible; transition: clip-path 460ms var(--ease-out), visibility 0s; }
  .nav__links a {
    display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--nav-line);
    font: var(--t-lead); letter-spacing: var(--ls-lead);
    opacity: 0; transform: translateY(-8px); transition: opacity 200ms ease, transform 200ms ease, color 150ms ease;
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav.is-open .nav__links a { opacity: 1; transform: none; transition: opacity 360ms ease calc(60ms + var(--i, 0) * 35ms), transform 480ms var(--ease-out) calc(60ms + var(--i, 0) * 35ms), color 150ms ease; }
  .nav--light .nav__links { --nav-bg: rgba(245, 245, 247, 0.94); }

  .nav-curtain {
    display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden; transition: opacity 320ms ease, visibility 0s linear 320ms;
  }
  .nav-curtain.is-on { opacity: 1; visibility: visible; transition: opacity 320ms ease, visibility 0s; }
}
@media (max-width: 359px) { .nav__sub { display: none; } }

/* ---------- iPhone 17 Pro: рамка в процентах ширины, один и тот же везде ---------- */

.device { width: 100%; }
.iphone {
  position: relative; aspect-ratio: 0.4765; padding: 2.8%;
  border-radius: 17.5% / 8.34%; background: #1C1C1E;
  box-shadow: 0 0 0 1px #48484A, 0 28px 60px -24px rgba(0, 0, 0, 0.75);
}
.iphone__screen { position: relative; width: 100%; height: 100%; border-radius: 15.6% / 7.2%; overflow: hidden; background: #000; }
.iphone__screen > img, .iphone__screen > video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* Dynamic Island поверх кадра: на записях он уже есть, на снимках — нет; так телефон всегда один */
.iphone__screen::after { content: ""; position: absolute; z-index: 4; top: 1.26%; left: 50%; width: 31.3%; height: 4.23%; transform: translateX(-50%); border-radius: 999px; background: #000; pointer-events: none; }
/* кадр держится, пока запись не пошла, затем — наплыв */
.shot > img, .shot > video { position: absolute; inset: 0; }
.shot > video { opacity: 0; transition: opacity 260ms ease; }
.shot.is-playing > video { opacity: 1; }

/* выноска к экрану, как подпись к продукту на слайде */
.callout {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  width: calc(100% - var(--x) + 230px); display: flex; align-items: center;
  transform: translateY(-50%); pointer-events: none;
}
.callout::before { content: ""; flex: none; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.7); }
.callout::after { content: ""; order: 1; flex: 1; height: 1px; background: rgba(245, 245, 247, 0.55); }
.callout__label { order: 2; flex: none; max-width: 200px; padding-left: 12px; font: var(--t-small); font-weight: 600; color: var(--fg); text-wrap: balance; }
.callout--l { left: auto; right: calc(100% - var(--x)); width: calc(var(--x) + 230px); flex-direction: row-reverse; }
.callout--l::before { margin: 0 -5px 0 0; }
.callout--l .callout__label { padding: 0 12px 0 0; text-align: right; }

/* ---------- первый слайд: заголовок и пара телефонов «гость — вы» ---------- */

.open { padding: clamp(36px, 7vh, 88px) 0 0; text-align: center; overflow-x: clip; }
.open__copy { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.open__title { font: var(--t-hero); letter-spacing: var(--ls-hero); text-wrap: balance; }
.open__title .dim { display: block; }
.open__offer { margin-top: 32px; font: var(--t-body); font-weight: 600; color: var(--lime); text-wrap: balance; }
.open__actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; }

.pair { --pw: min(42vw, 300px); margin-top: clamp(44px, 8vh, 88px); }
.pair__phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 3.4vw, 52px); }
.pair__phone { position: relative; width: var(--pw); }
.pair__phone--guest { margin-bottom: calc(var(--pw) * 0.24); }
.pair__phone--work { z-index: 2; margin-top: calc(var(--pw) * 0.24); }
.pair__caption { max-width: 34ch; margin: 24px auto 0; padding: 0 var(--gutter); font: var(--t-small); color: var(--dim); text-wrap: balance; }
@media (min-width: 1180px) { .pair__caption { display: none; } }
@media (max-width: 1179px) { .pair .callout { display: none; } }

/* ---------- слайды ---------- */

.slide { padding-top: var(--slide-top); scroll-margin-top: calc(var(--slide-top) * -1 + 28px); }
.slide__title { max-width: 22ch; font: var(--t-h2); letter-spacing: var(--ls-h2); text-wrap: balance; }

/* ---------- галерея: лента слайдов со снапом, точки и пауза как у apple.com ---------- */

.gal { --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2)); --gap: clamp(12px, 1.6vw, 24px); }
.gal__track {
  position: relative; display: flex; gap: var(--gap); margin: clamp(32px, 5vh, 56px) 0 0; padding: 0 var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__item { flex: none; scroll-snap-align: start; }
.gal__controls {
  position: sticky; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; pointer-events: none;
}
.gal__controls > * { pointer-events: auto; }
.gal__dots {
  display: flex; align-items: center; height: 52px; padding: 0 12px; border-radius: 999px; contain: layout;
  background: var(--glass-d); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.dot {
  display: grid; place-items: center; width: 22px; height: 44px; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: width 460ms var(--ease-out);
}
.dot__bar {
  position: relative; display: block; width: 8px; height: 8px; border-radius: 4px; overflow: hidden;
  background: rgba(245, 245, 247, 0.42); transition: width 460ms var(--ease-out), background-color 200ms ease;
}
.dot__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.dot:hover .dot__bar { background: rgba(245, 245, 247, 0.7); }
.dot[aria-current="true"] { width: 60px; }
.dot[aria-current="true"] .dot__bar { width: 44px; background: rgba(245, 245, 247, 0.42); }
.dot:focus-visible { outline-offset: -4px; border-radius: 999px; }
.gal__play {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: var(--glass-d); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.gal__play:hover { background: rgba(66, 66, 69, 0.82); }
.gal__play:active { transform: scale(0.92); }
.gal__play .i { width: 18px; height: 18px; stroke-width: 2.4; }
.gal__play[data-state="play"] .i { fill: currentColor; stroke-width: 1; }
.gal__note { margin: 18px auto 0; padding: 0 var(--gutter); text-align: center; font: var(--t-small); color: var(--dim); }
.gal.is-static .gal__controls { display: none; }
/* контролы «Главного» липнут к низу экрана, только пока на экране сама лента — не поверх заголовка */
.gal[data-autoplay="true"] .gal__controls { transition: opacity 240ms ease, visibility 0s; }
.gal[data-autoplay="true"].is-ready:not(.is-inview) .gal__controls { opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }

/* «Главное»: слайды кейноута — подпись слева, телефон с записью справа */
.hl__card {
  width: min(var(--wrap), calc(100vw - var(--edge) - var(--gutter) - 56px));
  height: clamp(520px, calc(100svh - var(--nav-h) - 190px), 700px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
  padding: clamp(36px, 4vw, 60px) clamp(36px, 4vw, 60px) 0; border-radius: 28px; background: var(--graphite); overflow: hidden;
}
.hl__text { align-self: start; max-width: 16ch; font: var(--t-lead); letter-spacing: var(--ls-lead); color: var(--fg-2); text-wrap: pretty; }
.hl__text b { font-weight: 600; color: var(--fg); }
/* телефон выше карточки и уходит за её нижний край — как продукт на слайде Apple */
.hl__media { min-height: 0; display: flex; justify-content: center; align-items: flex-start; }
.hl__media .device { width: auto; height: 114%; aspect-ratio: 0.4765; }
@media (min-width: 735px) {
  .hl .gal__controls { justify-content: flex-start; padding-left: calc(var(--edge) + clamp(36px, 4vw, 60px)); }
}
@media (max-width: 734px) {
  .hl__card {
    width: calc(100vw - var(--edge) - 36px); height: auto; scroll-snap-stop: always;
    display: flex; flex-direction: column; gap: 22px; padding: 26px 22px 28px;
  }
  .hl__text { max-width: none; }
  .hl__media { margin-top: auto; }
  .hl__media .device { width: min(60%, 230px); height: auto; }
  .dot { width: 32px; }
  .dot[aria-current="true"] { width: 60px; }
}

/* ---------- экосистема: слова загораются по одному, как на слайде кейноута ---------- */

.eco__words { margin-top: clamp(36px, 6vh, 64px); display: grid; gap: 0.06em; font: var(--t-hero); letter-spacing: var(--ls-hero); color: var(--fg); }
.eco__lead { margin-top: clamp(28px, 5vh, 48px); font: var(--t-lead); letter-spacing: var(--ls-lead); color: var(--fg-2); }
.eco .lineup__row { margin-top: clamp(40px, 7vh, 72px); }

/* ---------- всё для работы: экран и восемь коротких строк ---------- */

.kit__grid { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(40px, 8vw, 128px); align-items: center; }
.kit__phone .device { width: 100%; }
.kit__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.kit__list li { padding: 18px 0; border-top: 1px solid var(--hair-d); text-wrap: pretty; }
.kit__list b { font-weight: 600; }
.kit__list span { color: var(--fg-2); }
@media (max-width: 760px) {
  .kit__grid { grid-template-columns: 1fr; gap: 28px; }
  .kit__phone .device { width: min(62%, 240px); margin: 0 auto; }
  .kit__list { gap: 0 20px; }
  .kit__list li { padding: 16px 0; }
}

/* ---------- Gudo AI: списки строками на волосках ---------- */

.ai__head { padding-bottom: 16px; border-bottom: 1px solid var(--hair-d); font: var(--t-lead); letter-spacing: var(--ls-lead); }
.ai__row { padding: 18px 0; border-bottom: 1px solid var(--hair-d); text-wrap: pretty; }
.ai__row b { font-weight: 600; }
.ai__row span { max-width: 52ch; color: var(--fg-2); text-wrap: pretty; }

/* ---------- Gudo AI: что уже работает и что скоро ---------- */

.ai__grid { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ai__group + .ai__group { margin-top: clamp(32px, 5vh, 48px); }
.ai__group--soon .ai__head { color: var(--dim); }
.ai__demo { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 14px; }
.ai__chat { display: grid; gap: 10px; padding: 18px 22px 22px; border-radius: 28px; background: var(--tile); }
.ai__chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--hair-d); font: var(--t-small); font-weight: 600; }
.ai__badge { font: var(--t-small); font-weight: 600; line-height: 1; color: var(--dim); white-space: nowrap; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 20px; font: var(--t-body); line-height: 1.38; text-wrap: pretty; }
.bubble--in { justify-self: start; background: #2C2C2E; color: var(--fg); border-bottom-left-radius: 6px; }
.bubble--out { justify-self: end; background: var(--fg); color: var(--ink); border-bottom-right-radius: 6px; }
.bubble__who { display: block; margin-bottom: 4px; font: var(--t-small); font-weight: 600; line-height: 1; color: var(--ink-2); }
.ai__demo figcaption { font: var(--t-small); color: var(--dim); text-align: center; }
@media (max-width: 900px) {
  .ai__grid { grid-template-columns: 1fr; }
  .ai__demo { position: static; }
}

/* ---------- для кого: пять телефонов в ряд, на телефоне — лента со снапом ---------- */

.lineup__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); align-items: start; overflow: visible; }
.lineup__item { display: grid; justify-items: center; gap: 6px; text-align: center; }
.lineup__item .device { width: min(100%, 190px); margin-bottom: 12px; }
.lineup__name { font: var(--t-body); font-weight: 600; }
.gal__controls--plain { position: static; }
.gal__controls--plain .gal__dots { background: var(--tile); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 820px) {
  .lineup__row { display: flex; overflow-x: auto; gap: 16px; }
  .lineup__item { width: min(46vw, 210px); }
  .lineup__item .device { width: 100%; }
}

/* ---------- «И ещё одно»: оффер как финальный слайд кейноута ---------- */

.reveal { --reveal-top: clamp(130px, 22vh, 240px); padding: var(--reveal-top) 0 clamp(96px, 14vh, 160px); text-align: center; scroll-margin-top: calc(var(--reveal-top) * -1 + 40px); }
.reveal__title { display: grid; justify-items: center; gap: 14px;  text-wrap: balance; }
.reveal__lead { font: var(--t-lead); letter-spacing: var(--ls-lead); color: var(--dim); }
.reveal__big { display: block; max-width: 12ch; font: var(--t-hero); letter-spacing: var(--ls-hero); color: var(--lime); }
.reveal__text { max-width: 40ch; margin: 26px auto 30px; font: var(--t-lead); letter-spacing: var(--ls-lead); color: var(--fg-2); text-wrap: balance; }
.steps__title { margin-top: clamp(96px, 14vh, 150px); font: var(--t-lead); letter-spacing: var(--ls-lead); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: 32px; text-align: left; }
.step { counter-increment: step; display: grid; align-content: start; gap: 8px; padding-top: 20px; border-top: 1px solid var(--hair-d); }
.step::before { content: counter(step); margin-bottom: 10px; font: var(--t-lead); letter-spacing: var(--ls-lead); color: var(--lime); }
.step b { font-weight: 600; }
.step span { color: var(--fg-2); text-wrap: pretty; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px 0; }
  .step::before { grid-row: span 2; margin: 0; }
}

/* ---------- светлый финал: вопросы и заявка ---------- */

.finale { --focus: var(--ink); color-scheme: light; background: var(--light); color: var(--ink); padding: clamp(80px, 11vw, 136px) 0; }
.finale__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(40px, 6vw, 88px); align-items: start; }
.qa__title { font: var(--t-h2); letter-spacing: var(--ls-h2); margin-bottom: 30px; }
.qa__item { border-top: 1px solid var(--hair-l); }
.qa__item:last-of-type { border-bottom: 1px solid var(--hair-l); }
.qa__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; font: var(--t-body); font-weight: 600; }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__icon { width: 22px; height: 22px; color: var(--ink-2); transition: transform 260ms var(--ease-out); }
.qa__item[open] .qa__icon { transform: rotate(45deg); }
.qa__item summary:hover .qa__icon { color: var(--ink); }
.qa__item p { max-width: 60ch; padding: 0 44px 24px 0; color: var(--ink-2);  text-wrap: pretty; }
.ask {
  position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; padding: 32px 30px 30px; border-radius: 28px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 22px 50px -32px rgba(0, 0, 0, 0.3);
}
.ask__title { font: var(--t-lead); letter-spacing: var(--ls-lead); text-wrap: balance; }
.ask__text { color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 900px) {
  .finale__grid { grid-template-columns: 1fr; }
  .ask { position: static; padding: 26px 22px 24px; }
}

/* форма в стиле Apple Store */
.form { display: grid; gap: 16px; color: var(--ink); }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { padding: 0; font: var(--t-small); font-weight: 600; color: var(--ink-2); }
.field legend { margin-bottom: 7px; }
.field input {
  width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--field); border-radius: 12px; background: var(--paper);
  font: var(--t-body); line-height: 1.3; color: var(--ink); outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder { color: var(--ink-2); }
.field input:focus { border-color: var(--lime-deep); box-shadow: 0 0 0 4px rgba(140, 255, 0, 0.35); }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(215, 0, 21, 0.12); }
.field__err, .form__error { font: var(--t-small); font-weight: 600; color: var(--danger); }
.form__error { padding: 12px 14px; border-radius: 12px; background: rgba(215, 0, 21, 0.07); }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.picks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick { position: relative; }
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 10px; border-radius: 12px;
  border: 1px solid var(--field); background: var(--paper); text-align: center; font: var(--t-small); font-weight: 600; line-height: 1.2;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 120ms var(--ease-out);
}
.pick input:hover + span { border-color: #86868B; }
.pick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.pick input:active + span { transform: scale(0.97); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font: var(--t-small); color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid #A1A1A6; border-radius: 6px; background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.consent input::after { content: ""; width: 11px; height: 6px; border: solid var(--on-lime); border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 180ms var(--ease-out); }
.consent input:checked { background: var(--lime); border-color: var(--lime-deep); }
.consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent a { color: var(--ink); font-weight: 600; }
.consent.is-invalid input { border-color: var(--danger); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-submit { min-height: 56px; margin-top: 4px; position: relative; }
.btn__spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(10, 20, 0, 0.25); border-top-color: var(--on-lime); animation: spin 700ms linear infinite; }
.lead-submit[aria-busy="true"] .btn__label { opacity: 0.6; }
.lead-submit[aria-busy="true"] .btn__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__promise { font: var(--t-small); color: var(--ink-2); text-align: center; }
.done { display: grid; justify-items: center; gap: 12px; padding: 8px 0 4px; text-align: center; color: var(--ink); outline: none; }
.done__mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); animation: donePop 520ms var(--ease-out); }
.done__mark .i { width: 36px; height: 36px; stroke-width: 2.6; }
.done h3 { font: var(--t-lead); letter-spacing: var(--ls-lead); }
.done p { max-width: 36ch; color: var(--ink-2); }
.done .btn { margin-top: 8px; }
@keyframes donePop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- подвал со сносками ---------- */

.foot { background: var(--light); color: var(--ink-2); font: var(--t-small); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.foot__notes { list-style: decimal; margin: 0; padding: 20px 0 0 1.3em; border-top: 1px solid var(--hair-l); display: grid; gap: 8px; }
.foot__notes li { max-width: 90ch; scroll-margin-top: calc(var(--nav-h) + 24px); }
.foot__notes li:target { color: var(--ink); }
.foot__bar { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hair-l); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.foot__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: var(--t-body); font-weight: 600; line-height: 1; text-decoration: none; }
.foot__brand img { border-radius: 6px; }
.foot a { color: var(--ink); }
.foot :focus-visible { outline-color: var(--ink); }

/* ---------- окно заявки: только по кнопке ---------- */

.sheet { --focus: var(--ink); color-scheme: light; padding: 0; border: 0; margin: 0; background: transparent; color: var(--ink); width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 320ms ease; }
.sheet.is-in::backdrop { opacity: 1; }
.sheet__panel {
  position: absolute; left: 50%; top: 50%; width: min(520px, calc(100% - 32px)); max-height: min(880px, calc(100% - 40px));
  overflow-y: auto; overscroll-behavior: contain; padding: 30px 28px 24px; border-radius: 28px; background: var(--paper);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -47%) scale(0.96); opacity: 0;
  transition: transform 460ms var(--ease-out), opacity 260ms ease;
}
.sheet.is-in .sheet__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sheet.is-out .sheet__panel { transition: transform 240ms var(--ease-in), opacity 200ms ease; }
.sheet__grab { display: none; }
.sheet__close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: #E8E8ED; color: var(--ink); cursor: pointer; transition: transform 140ms var(--ease-out);
}
.sheet__close:active { transform: scale(0.9); }
.sheet__close .i { width: 16px; height: 16px; stroke-width: 2.4; }
.sheet__title { padding-right: 44px; font: var(--t-lead); letter-spacing: var(--ls-lead); }
.sheet__sub { margin: 8px 0 22px; color: var(--ink-2); }
@media (max-width: 640px) {
  .sheet__panel {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: calc(100% - 24px);
    border-radius: 28px 28px 0 0; padding: 0 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%); opacity: 1;
  }
  .sheet.is-in .sheet__panel { transform: translateY(var(--drag, 0px)); }
  .sheet.is-dragging .sheet__panel { transition: none; }
  .sheet__grab { position: sticky; top: 0; z-index: 2; display: grid; place-items: center; height: 26px; margin: 0 -20px 8px; background: var(--paper); cursor: grab; touch-action: none; }
  .sheet__grab span { width: 40px; height: 5px; border-radius: 3px; background: #C7C7CC; }
  .sheet__close { top: 30px; }
}

/* ---------- движение по прокрутке: пара телефонов расходится, оффер проявляется ---------- */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .pair__phone--guest { animation: pairGuest linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
    .pair__phone--work { animation: pairWork linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
    .pair .callout { animation: calloutIn linear both; animation-timeline: scroll(root); animation-range: 28vh 55vh; }
    .reveal__big { animation: revealIn linear both; animation-timeline: view(); animation-range: entry 15% cover 42%; }
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .eco__words li { animation: ecoLight linear both; animation-timeline: view(); animation-range: entry 30% cover 48%; }
  }
}
@keyframes ecoLight { from { color: #3A3A3C; } to { color: var(--fg); } }
@keyframes pairGuest { from { transform: translateX(30%) translateY(4%) scale(0.94); } to { transform: none; } }
@keyframes pairWork { from { transform: translateX(-30%) translateY(-4%) scale(0.94); } to { transform: none; } }
@keyframes calloutIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes revealIn { from { opacity: 0.06; transform: translateY(0.2em) scale(0.96); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- доступность ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  @media (max-width: 640px) { .sheet__panel { transform: none !important; opacity: 0; } .sheet.is-in .sheet__panel { opacity: 1; } }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { --nav-bg: #000; }
  .nav--light { --nav-bg: var(--light); }
  .nav::before, .nav__links, .gal__dots, .gal__play { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gal__dots, .gal__play { background: #2C2C2E; }
  .sheet::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, 0.75); }
}
@media (prefers-contrast: more) {
  :root { --dim: #B0B0B5; --fg-2: #C7C7CC; --ink-2: #48484A; --hair-d: rgba(255, 255, 255, 0.3); --hair-l: rgba(0, 0, 0, 0.3); }
}
