/* Цвета: брендбук RabbitPay (переменные коллекции Color в Figma) и градиент из презентаций */
:root {
  --bg: #ffffff;
  --muted: #f4f6fa;
  --neutral-soft: #f0f2f6;
  --border-strong: #d9e3f5;
  --inverse: #0b1220;
  --text: #0b1220;
  --text-2: #495265;
  --text-3: #7b8598;
  --border: #edeff4;
  --border-base: #dce0e8;
  --accent: #79baf2;
  --accent-soft: #e7edfe;
  --success: #74d591;
  --brand-gradient: linear-gradient(140deg, #0468bf 0%, #79baf2 100%);
  --font: "Manrope", Arial, sans-serif;
  --ease: cubic-bezier(0.333, 1, 0.667, 1);
  --side: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font: 500 14px/20px var(--font); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.h1 { font: 500 80px/1 var(--font); letter-spacing: -0.045em; max-width: 760px; }
.h2 { font: 500 56px/1.05 var(--font); letter-spacing: -0.04em; }
.h3 { font: 500 32px/1.1 var(--font); letter-spacing: -0.03em; }
.overline { font: 600 14px/20px var(--font); color: var(--text-3); margin-bottom: 16px; }
.lead { font: 500 16px/24px var(--font); letter-spacing: -0.01em; color: var(--text-2); max-width: 520px; }
.small { font: 500 13px/18px var(--font); color: var(--text-3); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; font: 600 14px/20px var(--font); transition: opacity 0.2s; }
.btn--dark { background: var(--inverse); color: #fff; }
.btn--dark:hover { opacity: 0.88; }
.btn--dark:active { opacity: 0.76; }
.btn--dark:disabled { opacity: 0.32; cursor: default; }
.btn--wide { width: 100%; height: 48px; border-radius: 12px; }

/* Шапка: всегда на месте, без подложки и размытия, как у рефа */
.header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 80px; padding: 0 var(--side); display: flex; align-items: center; gap: 48px; }
.logo { display: flex; align-items: center; gap: 12px; font: 600 20px/1 var(--font); letter-spacing: -0.03em; }
.logo img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border-base); }
.nav { display: flex; gap: 36px; font: 600 14px/20px var(--font); }
.nav a:hover { color: var(--text-3); }
.header { transition: color 0.2s; --hbg: #ffffff; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hbg); box-shadow: 0 0 10px 8px var(--hbg); clip-path: inset(-56px var(--hr, 0px) -24px var(--hl, 0px)); }
.header.is-inverse { color: #fff; }
.header.is-inverse .lang { color: rgba(255,255,255,0.5); }
.header.is-inverse .lang .is-active { color: #fff; }
.header.is-inverse .btn--dark { background: #fff; color: var(--inverse); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.lang { display: flex; gap: 8px; font: 600 14px/20px var(--font); color: var(--text-3); }
.lang .is-active { color: var(--text); }

/* Первый экран */
.hero { position: relative; height: 100vh; min-height: 780px; padding: 0 var(--side); display: flex; align-items: center; overflow: hidden; }
.hero__content { position: relative; z-index: 2; margin-top: 24px; }
.hero .h1 { margin-bottom: 48px; }

/* Два телефона: задний выезжает из-за переднего лесенкой, как на рефе Revolut */
.hero__phones { position: absolute; z-index: 1; right: calc(var(--side) + 24px); bottom: 112px; width: 460px; height: 700px; perspective: 2400px; pointer-events: none; }
.hp-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.hp { position: absolute; left: 0; bottom: 0; height: min(560px, calc(100vh - 340px)); aspect-ratio: 1368 / 2800; will-change: transform; }
.hp img { display: block; width: 100%; height: 100%; }
.hp--front { z-index: 1; }

/* Панель с вкладками */
.cta { width: 464px; }
.cta { --tab-bg: var(--accent-soft); }
.cta__tabs { position: relative; display: flex; }
/* Язычок активной вкладки: переезжает пружиной, как кружок в таббаре приложения */
.cta__ink { position: absolute; left: 0; bottom: 0; height: 48px; border-radius: 20px 20px 0 0; background: var(--tab-bg); transform-origin: 50% 100%; pointer-events: none; will-change: transform; }
.cta__ink::before, .cta__ink::after { content: ""; position: absolute; bottom: 0; }
.cta__ink::after { right: -20px; width: 20px; height: 20px; background: radial-gradient(circle at 100% 0, transparent 20px, var(--tab-bg) 20.5px); }
.cta__ink::before { left: calc(-1 * var(--tl, 0px)); width: var(--tl, 0px); height: var(--tl, 0px); background: radial-gradient(circle at 0 0, transparent var(--tl, 0px), var(--tab-bg) calc(var(--tl, 0px) + 0.5px)); }
.cta__tab { position: relative; height: 48px; padding: 0 24px; font: 600 14px/20px var(--font); color: var(--text-2); border-radius: 20px 20px 0 0; transition: color 0.3s; }
.cta__tab.is-active { color: var(--text); }
.cta__field { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; /* кнопка 48 в 8 от трёх краёв */ background: var(--accent-soft); border-radius: 20px; border-top-left-radius: var(--tl, 0px); }
.cta__field input { flex: 1; height: 48px; border: 0; outline: 0; background: transparent; font: 500 15px/20px var(--font); color: var(--text); }
.cta__field input::placeholder { color: var(--text-3); }
.cta__icon { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.8; }
.cta__go { width: 48px; height: 48px; border-radius: 12px; background: var(--inverse); display: grid; place-items: center; transition: opacity 0.2s; }
.cta__go:hover { opacity: 0.88; }
.cta__go svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.facts { position: absolute; z-index: 2; left: var(--side); right: var(--side); bottom: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts li { display: flex; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-base); }
.facts b { font: 600 28px/1 var(--font); letter-spacing: -0.04em; }
.facts span { color: var(--text-2); }

/* Карточки подхода */
.cards { position: relative; z-index: 1; padding: 156px var(--side) 212px; perspective: 1600px; }
.cards--back { padding: 120px var(--side) 132px; }
.cards__row { display: grid; grid-template-columns: repeat(4, 300px); gap: 16px; justify-content: center; }
.card { position: relative; height: 400px; border-radius: 36px; padding: 32px; display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; }
.card--blue { --bgc: linear-gradient(180deg, #f1f4ff, #e7edfe); --tag: rgba(121,186,242,0.24); --ink: #0b1220; --sh: rgba(39,95,206,0.07); }
.card--grey { --bgc: linear-gradient(180deg, #f6f7fa, #f0f2f6); --tag: rgba(123,133,152,0.14); --ink: #0b1220; --sh: rgba(67,88,112,0.06); }
.card--dark { --bgc: linear-gradient(180deg, #1a2234, #0b1220); --tag: rgba(255,255,255,0.12); --ink: #ffffff; --sh: rgba(11,18,32,0.18); }
.card--brand { --bgc: var(--brand-gradient); --tag: rgba(255,255,255,0.2); --ink: #ffffff; --sh: rgba(4,104,191,0.2); }
.card, .card__face, .quote { background: var(--bgc); color: var(--ink); }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 1000px; background: var(--tag); font: 600 12px/16px var(--font); }
.card__title { margin-top: auto; font: 600 30px/1.08 var(--font); letter-spacing: -0.04em; }
.card__num { margin-top: 56px; align-self: flex-end; font: 600 16px/1 var(--font); opacity: 0.5; }
.cards--back .card { background: none; box-shadow: none; padding: 0; }
.card__face { position: absolute; inset: 0; border-radius: 36px; padding: 32px; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card__inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.card__face--back { transform: rotateY(180deg); }
.card__face--back p { font: 500 15px/22px var(--font); letter-spacing: -0.01em; }
.card__foot { margin-top: auto; height: 56px; font: 600 14px/20px var(--font); padding-top: 16px; border-top: 1px solid var(--tag); }

/* Концептуальный посыл: панель раскрывается на весь экран и сжимается обратно */
.story { position: relative; z-index: 3; }
.story__panel { position: relative; height: 100vh; min-height: 760px; background: var(--neutral-soft); clip-path: inset(0 16px round 72px); will-change: clip-path; }
.story__inner { position: absolute; inset: 0; padding: 103px var(--side) 100px; display: grid; grid-template-columns: 489px 720px; justify-content: space-between; align-items: start; }
.story__title { position: relative; z-index: 2; font-size: 60px; line-height: 1.06; letter-spacing: -0.04em; }
.story__title span { display: inline-block; white-space: nowrap; will-change: transform; }
.story__text { font: 500 34px/1.32 var(--font); letter-spacing: -0.03em; color: var(--text); display: grid; gap: 45px; }
.story__text mark { background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat 0 100% / 0% 100%; color: inherit; padding: 0 4px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Шаги Rabbit Pay */
.steps { position: relative; }
.steps__pin { position: relative; height: calc(100vh + 96px); min-height: 856px; }
.steps__surface { position: absolute; inset: 0; background: var(--muted); clip-path: inset(0 16px round 72px); will-change: clip-path; }
.steps__inner { position: relative; height: 100vh; min-height: 760px; padding: 0 var(--side); display: grid; grid-template-columns: 608px 1fr; align-items: center; }
.steps__text { position: relative; height: 420px; transition: color 0.6s; }
.steps__pin.is-dark .steps__text { color: #fff; }
.steps__pin.is-dark .lead { color: rgba(255,255,255,0.64); }
.steps__pin.is-dark .overline { color: rgba(255,255,255,0.5); }
.step { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; width: 100%; opacity: 0; pointer-events: none; }
.step .h2 { margin-bottom: 24px; }
.steps__dots { position: absolute; left: 0; bottom: -80px; display: flex; gap: 8px; }
.steps__dots li { width: 24px; height: 4px; border-radius: 4px; background: rgba(11,18,32,0.12); transition: background 0.4s, width 0.4s var(--ease); }
.steps__dots li.is-active { width: 48px; background: var(--inverse); }
.steps__pin.is-dark .steps__dots li { background: rgba(255,255,255,0.2); }
.steps__pin.is-dark .steps__dots li.is-active { background: #fff; }
.steps__visual { position: relative; height: 100%; padding-top: 80px; display: grid; place-items: center; }


/* Мокап телефона */
.mock { position: relative; height: min(760px, calc(100vh - 200px)); aspect-ratio: 1369 / 2800; }
.mock img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.mock img.is-active { opacity: 1; }

/* Правовая модель: схема на сетке */
.model { position: relative; padding: 160px var(--side) 80px; display: grid; grid-template-columns: 1fr 840px; gap: 48px; align-items: center; }
.model .h2 { margin-bottom: 24px; }
.model__scheme { position: relative; width: 840px; height: 500px; }
.model__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.line { fill: none; stroke: var(--border-base); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.line--dash { stroke: var(--accent); stroke-dasharray: 2 8; }
.puck { position: absolute; left: var(--x); top: var(--y); width: 240px; height: 56px; margin: -28px 0 0 -120px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 10px; border-radius: 1000px; background: #fff; border: 1px solid var(--border-base); white-space: nowrap; }
.puck img, .puck i { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.puck i { display: grid; place-items: center; background: var(--accent-soft); font: 700 14px/1 var(--font); font-style: normal; }
.puck span { display: flex; flex-direction: column; font: 700 14px/18px var(--font); letter-spacing: -0.01em; }
.puck small { font: 500 12px/16px var(--font); color: var(--text-3); }
.puck--rt { width: 280px; margin-left: -140px; background: var(--inverse); color: #fff; border-color: var(--inverse); }
.puck--rt img { background: #fff; }
.puck--rt small { color: rgba(255,255,255,0.56); }

/* Правовая модель: четыре положения строкой под схемой */
.facts-row { padding: 0 var(--side) 160px; }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-base); }
.spec > div { padding: 24px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.spec > div + div { padding-left: 24px; border-left: 1px solid var(--border-base); }
.spec dt { font: 600 14px/20px var(--font); color: var(--text-3); }
.spec dd { font: 600 20px/28px var(--font); letter-spacing: -0.02em; }

/* Кому: по сетке манифеста, заголовок слева, пункты справа */
.audience { padding: 0 var(--side) 160px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.audience__head { display: grid; gap: 24px; position: sticky; top: 120px; }
.audience__head .small { max-width: 360px; }
.audience__list li { display: grid; grid-template-columns: 56px 1fr; padding: 32px 0 40px; border-top: 1px solid var(--border-base); }
.audience__list li:last-child { border-bottom: 1px solid var(--border-base); }
.audience__num { font: 600 16px/44px var(--font); color: var(--text-3); }
.audience__title { font: 500 34px/1.32 var(--font); letter-spacing: -0.03em; }
.audience__note { margin-top: 16px; font: 500 16px/24px var(--font); color: var(--text-2); }

/* Раскрытие пунктов (статусы) */
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.acc__body > * { overflow: hidden; min-height: 0; }
.is-open > .acc__body { grid-template-rows: 1fr; }
.acc__body p { font: 500 16px/24px var(--font); color: var(--text-2); }
.acc__body p::after { content: ""; display: block; height: 24px; }

/* Акцентная панель */
.accent { position: relative; margin: 0 16px; padding-top: 120px; }
.accent__surface { position: absolute; inset: 0; border-radius: 72px 72px 0 0; background: var(--neutral-soft); }
.status, .apply, .footer { position: relative; }
.faq { display: grid; gap: 4px; margin-bottom: 24px; }
.faq__item { border-radius: 20px; background: #fff; }
.faq__head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 24px 32px; text-align: left; font: 600 18px/24px var(--font); letter-spacing: -0.02em; }
.faq__head span { flex: 1; }
.plus { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; transition: transform 0.4s var(--ease); }
.faq__item.is-open .plus { transform: rotate(45deg); }
.faq .acc__body p { padding: 0 32px; }
/* Где мы сейчас: диаграмма этапов, полосы по сетке из 12 колонок */
.status { padding: 0 48px 160px; }
.gantt__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-bottom: 36px; margin-bottom: 48px; border-bottom: 1px solid var(--border-base); }
.gantt__top .h2 { margin-bottom: 0; }
.gantt__aside { display: grid; gap: 24px; justify-items: end; }
.gantt__aside .lead { text-align: right; }
.gantt__legend { display: flex; gap: 24px; font: 600 14px/20px var(--font); color: var(--text-2); }
.gantt__legend li { display: flex; align-items: center; gap: 8px; }
.gantt__legend li::before { content: ""; width: 24px; height: 12px; border-radius: 4px; }
.gantt__legend .is-done::before { background: var(--inverse); }
.gantt__legend .is-work::before { background: var(--brand-gradient); }
.gantt__legend .is-next::before { background: #fff; }
.gantt { --cols: 12; position: relative; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(5, 56px) 72px auto; row-gap: 8px; }
.gantt__lines { position: absolute; inset: 0 0 0 0; pointer-events: none; }
.gantt__lines i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--border-base); transform-origin: top; }
.gantt__lines i:nth-child(n) { left: calc(100% / var(--cols) * (var(--k) - 1)); }
.bar { position: relative; z-index: 1; display: flex; align-items: center; padding: 0 24px; border-radius: 16px; font: 600 16px/24px var(--font); letter-spacing: -0.01em; text-align: left; white-space: nowrap; }
.bar.is-done { background: var(--inverse); color: #fff; }
.bar.is-work { background: linear-gradient(90deg, #0468bf 0%, var(--accent) var(--p), var(--accent-soft) var(--p)); color: #fff; }
.bar.is-next { background: #fff; color: var(--text); }
.gantt__now { grid-column: 9; grid-row: 1 / 7; justify-self: start; position: relative; z-index: 2; width: 2px; margin: -24px 0 16px -1px; background: var(--accent); transform-origin: top; pointer-events: none; }
.gantt__now em { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 1000px; background: var(--accent); color: #fff; font: 600 13px/20px var(--font); font-style: normal; white-space: nowrap; }
.gantt__end { grid-column: 11 / 13; grid-row: 6; justify-self: end; align-self: center; display: flex; align-items: center; gap: 8px; font: 600 14px/20px var(--font); color: var(--text-2); }
.gantt__end svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note { grid-row: 7; position: relative; z-index: 1; display: grid; align-content: start; gap: 8px; padding: 0 24px 0 16px; }
.note p { font: 500 15px/22px var(--font); color: var(--text-2); }
.gantt__scroll + .small { margin-top: 48px; }
.st { font: 600 14px/20px var(--font); font-style: normal; }
.st--done { color: var(--success); }
.st--work { color: var(--accent); }
.st--next { color: var(--text-3); }

.apply { display: grid; grid-template-columns: 1fr 624px; gap: 48px; padding: 0 48px 160px; }
.apply .h2 { margin-bottom: 24px; }
.formats { display: grid; gap: 24px; margin-top: 48px; max-width: 520px; }
.formats h3 { font: 600 20px/28px var(--font); letter-spacing: -0.02em; margin-bottom: 4px; }
.formats p { color: var(--text-2); font: 500 15px/22px var(--font); }
.form { --tab-bg: #fff; }
.form__body { background: #fff; }
.form__body { padding: 32px; border-radius: 20px; border-top-left-radius: var(--tl, 0px); display: grid; gap: 16px; }
.field { display: grid; gap: 8px; font: 600 13px/18px var(--font); color: var(--text-2); }
.field input { height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-base); background: #fff; font: 500 16px/20px var(--font); color: var(--text); outline: 0; transition: border-color 0.2s; }
.field input:focus { border-color: var(--accent); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font: 500 13px/18px var(--font); color: var(--text-2); cursor: pointer; margin: 8px 0; }
.check input { position: absolute; opacity: 0; }
.check i { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--border-base); transition: background 0.2s, border-color 0.2s; }
.check input:checked + i { background: var(--inverse) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--inverse); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.form__done[hidden], .form__body[hidden] { display: none; }
.form__done { padding: 64px 32px; border-radius: 20px; background: #fff; text-align: center; display: grid; justify-items: center; gap: 8px; }
.form__done svg { width: 48px; height: 48px; fill: none; stroke: var(--success); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.form__done h3 { font: 600 32px/1.1 var(--font); letter-spacing: -0.03em; }
.form__done p { color: var(--text-2); font-size: 16px; }

/* Подвал */
.footer { padding: 0 48px 48px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-top: 64px; border-top: 1px solid var(--border-base); }
.footer__intro p { margin-top: 16px; color: var(--text-2); max-width: 340px; font-size: 15px; line-height: 22px; }
.footer__col h4 { font: 700 14px/20px var(--font); margin-bottom: 16px; }
.footer__col p { display: grid; gap: 2px; margin-bottom: 16px; font-size: 15px; line-height: 22px; }
.footer__col span { font-size: 13px; line-height: 18px; color: var(--text-3); }
.footer__col a:hover { color: var(--text-3); }
.footer__disclaimer { margin-top: 64px; max-width: 960px; color: var(--text-3); font-size: 13px; line-height: 20px; }
.footer__bottom { margin-top: 24px; display: flex; align-items: center; gap: 24px; font-size: 13px; color: var(--text-3); }
.footer__bottom a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.req { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-right: auto; }
.req li + li::before { content: "·"; margin-right: 8px; }
.footer__word { margin-top: 56px; font: 700 196px/0.8 var(--font); letter-spacing: -0.06em; color: var(--text); white-space: nowrap; text-align: left; margin-left: -0.0625em; padding-bottom: 8px; }
.footer__word .char { display: inline-block; will-change: transform; }

/* Появление: параметры из бандла рефа */
[data-reveal], [data-intro] { opacity: 0; transform: translateY(24px); filter: blur(4px); }
.is-in { opacity: 1 !important; transform: none !important; filter: blur(0) !important; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }

/* Политика */
.policy { padding: 160px var(--side) 120px; display: grid; grid-template-columns: 280px 1fr; gap: 48px; max-width: 1312px; margin: 0 auto; }
.policy__toc { position: sticky; top: 120px; align-self: start; display: grid; gap: 12px; font-size: 15px; color: var(--text-2); }
.policy__toc a:hover { color: var(--text); }
.policy__body { border-radius: 48px; background: var(--neutral-soft); padding: 64px; }
.policy__meta { display: flex; gap: 8px; color: var(--text-3); font: 600 14px/20px var(--font); margin-bottom: 16px; }
.policy__body .h2 { margin-bottom: 48px; }
.policy__body section { padding: 24px 0; border-top: 1px solid var(--border-base); }
.policy__body h3 { font: 600 22px/1.25 var(--font); letter-spacing: -0.02em; margin-bottom: 8px; }
.policy__body p { font: 500 16px/24px var(--font); color: var(--text-2); max-width: 720px; }

/* Мобильная раскладка */
@media (max-width: 1100px) {
  :root { --side: 24px; }
  .nav, .lang { display: none; }
  .h1 { font-size: 46px; }
  .h2 { font-size: 36px; }
  .hero { flex-direction: column; justify-content: center; height: auto; min-height: 100vh; padding-top: 120px; padding-bottom: 200px; }
  .hero__phones { position: relative; right: auto; bottom: auto; margin: 48px auto 0; width: 300px; height: 460px; }
  .hp { height: 380px; }
  .ui-layer--to { top: 150px; } .ui-layer--list { top: 320px; }
  .cta { width: 100%; max-width: 464px; }
  .facts { grid-template-columns: 1fr; gap: 8px; bottom: 24px; }
  .cards { padding: 96px 16px; }
  .cards__row { grid-template-columns: 1fr 1fr; }
  .card { height: 320px; }
  .card__title { font-size: 24px; }
  .story__panel { height: auto; min-height: 0; clip-path: inset(0 8px round 36px); }
  .story__inner { position: relative; grid-template-columns: 1fr; padding: 64px 24px; gap: 32px; }
  .story__title { font-size: 36px; }
  .story__text { font-size: 20px; gap: 20px; }
  .story__title span { white-space: normal; }
  .steps__pin { height: auto; }
  .steps__surface { clip-path: inset(0 8px round 36px); }
  .steps__inner { height: auto; min-height: 0; grid-template-columns: 1fr; padding: 64px 24px; gap: 24px; }
  .steps__text { height: auto; display: grid; gap: 48px; }
  .step { position: static; opacity: 1; pointer-events: auto; }
  .steps__dots { display: none; }
  .mock { height: 520px; }
  .model, .status, .apply { grid-template-columns: 1fr; gap: 48px; padding-left: 24px; padding-right: 24px; }
  .gantt__top { flex-direction: column; align-items: flex-start; }
  .gantt__aside { justify-items: start; }
  .gantt__aside .lead { text-align: left; }
  .gantt__scroll { overflow-x: auto; margin: 0 -24px; padding: 32px 24px 0; }
  .gantt { min-width: 1040px; }
  .spec { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .audience { grid-template-columns: 1fr; gap: 32px; }
  .audience__head { position: static; }
  .audience__title { font-size: 22px; }
  .model__scheme { transform: scale(0.4); transform-origin: left top; height: 200px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__word { font-size: 17vw; }
  .policy { grid-template-columns: 1fr; padding-top: 120px; }
  .policy__toc { position: static; }
  .policy__body { padding: 32px; border-radius: 36px; }
}

/* Cookies: тёмная плашка снизу слева и настройки поверх страницы */
.cookie__bar { position: fixed; z-index: 90; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 24px; border-radius: 16px; background: var(--inverse); color: #fff; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translate(-50%, 24px); filter: blur(4px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.cookie__bar.is-shown { opacity: 1; transform: translate(-50%, 0); filter: none; }
.cookie__bar .cookie__text { margin-right: 16px; font: 500 15px/20px var(--font); color: rgba(255,255,255,0.88); white-space: nowrap; }
.cookie__text { font: 500 14px/20px var(--font); color: rgba(255,255,255,0.64); }
.cookie__text a, .cookie__link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie__bar .cookie__text a, .cookie__bar .cookie__link { color: rgba(255,255,255,0.56); transition: color 0.2s; }
.cookie__bar .cookie__text a:hover, .cookie__bar .cookie__link:hover { color: #fff; }
.cookie__link { font: inherit; padding: 0; }
.cookie__actions { display: flex; align-items: center; gap: 8px; }
.cookie__btn { flex: none; height: 40px; padding: 0 16px; border-radius: 8px; font: 600 14px/20px var(--font); transition: opacity 0.2s; }
.cookie__btn:hover { opacity: 0.88; }
.cookie__btn:active { opacity: 0.76; }
.cookie__bar .cookie__btn--primary { background: #fff; color: var(--inverse); }
.cookie__bar .cookie__btn--secondary { background: rgba(255,255,255,0.12); color: #fff; }
.cookie__modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(11,18,32,0.4); opacity: 0; transition: opacity 0.3s var(--ease); }
.cookie__modal.is-shown { opacity: 1; }
.cookie__dialog { position: relative; width: 560px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 36px; border-radius: 36px; background: #fff; color: var(--text); display: grid; gap: 16px; transform: translateY(24px) scale(0.98); transition: transform 0.4s var(--ease); }
.cookie__modal.is-shown .cookie__dialog { transform: none; }
.cookie__dialog .cookie__text { color: var(--text-2); }
.cookie__h { font: 600 24px/32px var(--font); letter-spacing: -0.02em; padding-right: 48px; }
.cookie__close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 1000px; display: grid; place-items: center; background: var(--neutral-soft); }
.cookie__close svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.cookie__row { display: flex; align-items: flex-start; gap: 24px; padding: 16px 0; border-top: 1px solid var(--border-base); cursor: default; }
label.cookie__row { cursor: pointer; }
.cookie__row > div { flex: 1; display: grid; gap: 4px; }
.cookie__name { font: 600 16px/24px var(--font); }
.cookie__desc { font: 500 14px/20px var(--font); color: var(--text-2); }
.cookie__always { font: 600 14px/24px var(--font); color: var(--success); white-space: nowrap; }
.cookie__switch { position: relative; flex: none; width: 44px; height: 24px; }
.cookie__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cookie__switch i { position: absolute; inset: 0; border-radius: 1000px; background: var(--border-base); transition: background 0.3s var(--ease); pointer-events: none; }
.cookie__switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.cookie__switch input:checked + i { background: var(--inverse); }
.cookie__switch input:checked + i::after { transform: translateX(20px); }
.cookie__switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie__dialog .cookie__btn--primary { background: var(--inverse); color: #fff; }
.cookie__dialog .cookie__btn--secondary { background: var(--neutral-soft); color: var(--text); }
.cookie__dialog .cookie__actions { margin-top: 8px; }
.footer__bottom button { color: var(--text); text-decoration: underline; text-underline-offset: 2px; font: inherit; }
@media (max-width: 600px) {
  .cookie__bar { left: 16px; right: 16px; bottom: 16px; flex-wrap: wrap; padding: 16px; transform: translateY(24px); }
  .cookie__bar.is-shown { transform: none; }
  .cookie__bar .cookie__text { flex-basis: 100%; margin: 0 0 8px; white-space: normal; }
  .cookie__bar .cookie__btn { flex: 1; }
  .cookie__dialog { padding: 24px; border-radius: 24px; }
  .cookie__close { top: 16px; right: 16px; }
}

.policy__table { width: 100%; max-width: 720px; margin: 16px 0; border-collapse: collapse; font: 500 14px/20px var(--font); color: var(--text-2); }
.policy__table th { text-align: left; font-weight: 600; color: var(--text); padding: 8px 16px 8px 0; border-bottom: 1px solid var(--border-base); }
.policy__table td { vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border-base); }
.policy__table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.policy__body section p + p { margin-top: 12px; }
.veil { position: fixed; inset: 0; z-index: 80; background: var(--muted); opacity: 0; pointer-events: none; }
.cookie [hidden] { display: none !important; }
