/* Мостик: сайт mostik.top. Цвета и шрифт логотипа: тёмно-синий, мятный, Montserrat. */
/* шрифт логотипа Мостика; у выпавших шрифтов нет кириллицы  taste-skill-ignore */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Golos"; src: url("/fonts/golos.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
/* Запасные шрифты той же ширины, пока грузятся свои: строки не перескакивают (11.11.2026, сдвиг вёрстки на телефоне) */
@font-face { font-family: "Montserrat fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"), local("Liberation Sans"); size-adjust: 110%; }
@font-face { font-family: "Golos fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"), local("Liberation Sans"); size-adjust: 106%; }

:root {
  --navy: #0A2B4A;
  --navy-2: #0F375D;
  --navy-3: #164673;
  --ink: #F3F6F8;
  --ink-soft: #B4C4D2;
  --mint: #22CCA8;
  --paper: #EEF3F6;
  --paper-2: #DDE7EE;

  --display: "Montserrat", "Montserrat fallback", system-ui, sans-serif;
  --text: "Golos", "Golos fallback", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem);
  --step-head: clamp(2.125rem, 1.2rem + 3.6vw, 4.5rem);
  --step-display: clamp(3.4rem, 0.6rem + 10vw, 10.5rem);
  --step-sub: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);

  --margin: clamp(16px, 2.4vw, 36px);
  --gap-section: clamp(80px, 9vw, 168px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
::selection { background: var(--mint); color: var(--navy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-inline: var(--margin); max-width: 1640px; margin-inline: auto; width: 100%; }
.field-2 { background: var(--navy-2); }
.field-paper { background: var(--paper); color: var(--navy); }
.field-mint { background: var(--mint); color: var(--navy); }
.h-head { font: 700 var(--step-head)/1.02 var(--display); letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; }

/* Кнопка: одна форма на весь сайт, полностью круглая, как арка */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  padding: 0 30px; border-radius: 999px; background: var(--mint); color: var(--navy);
  font: 700 var(--step-body)/1 var(--display); text-decoration: none; letter-spacing: -0.01em;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: #3DDDBB; transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-dark { background: var(--navy); color: var(--mint); }
.btn-dark:hover { background: var(--navy-3); }

/* Шапка */
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; position: relative; z-index: 2; }
.bar-logo { display: block; color: var(--ink); }
.logo { display: block; height: 30px; width: auto; }
.bar-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.bar-nav a, .foot-links a { text-decoration: none; font-weight: 500; padding-block: 6px; position: relative; }
.bar-nav a::after, .foot-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.foot-links a::after { background: var(--navy); }
.bar-nav a:hover::after, .foot-links a:hover::after { transform: scaleX(1); }
/* Вход в личный кабинет: единственная кнопка в шапке */
.bar-nav a.bar-login { padding: 6px 16px; border-radius: 999px; background: var(--mint); color: var(--navy); font-weight: 700; transition: background-color .18s var(--ease); }
.bar-nav a.bar-login::after { display: none; }
.bar-nav a.bar-login:hover { background: #3DDDBB; }
/* Настоящие снимки Happ */
.frag-shot { padding: 0; overflow: hidden; background: #1b1846; }
.frag-shot img { width: 100%; }
.dev-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 620px; margin-inline: auto; border-radius: var(--radius); }
.dev-photo figcaption { margin-top: 12px; text-align: center; font-size: var(--step-small); color: var(--ink-soft); }
.cab-mock-title { margin-top: 18px; font: 700 var(--step-lead)/1.15 var(--display); letter-spacing: -0.015em; }

/* Первый экран: фраза, в которой вместо слова стоит мост */
.hero { min-height: min(calc(100svh - 74px), 860px); display: flex; flex-direction: column; justify-content: center; padding-block: 6vh 8vh; }
.hero-title { font: 700 var(--step-display)/0.98 var(--display); letter-spacing: -0.045em; }
.hero-line { display: flex; align-items: center; gap: 0.22em; }
.hero-line > span:first-child { white-space: nowrap; }
.hero-line + .hero-line { margin-top: 0.04em; }
.hero-line { position: relative; z-index: 1; }
.hero-line:first-child { z-index: 0; }
/* мост чуть выше первой строки и заходит под вторую (просьба Андрея 31.10) */
.hero-strip { flex: 0 1 4.7em; min-width: 1.6em; height: 0.8em; position: relative; }
.hero-pic { position: absolute; left: 0; right: 0; top: -0.62em; bottom: -0.78em; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); }
.hero-pic picture, .hero-pic img { width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 50% 50%; }
/* текст и кнопка одним блоком под заголовком (Андрей: «кучнее») */
.hero-foot { display: grid; gap: 28px; margin-top: 44px; justify-items: start; }
.hero-foot .lead { max-width: 40ch; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-price { color: var(--ink-soft); font-size: var(--step-small); max-width: 52ch; margin-top: -12px; }
.hero-devices { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-devices a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--navy-2); text-decoration: none; font-weight: 500; transition: background-color .18s var(--ease), color .18s var(--ease); }
.hero-devices a:hover { background: var(--mint); color: var(--navy); }

/* Проверка адреса: живая часть страницы */
.check { padding-block: var(--gap-section); }
.check-title { font: 700 var(--step-lead)/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink-soft); }
.check-line { margin-top: 12px; }
.check-input {
  width: 100%; border: 0; background: transparent; padding: 0; outline: none;
  font: 700 var(--step-display)/1.1 var(--display); letter-spacing: -0.045em;
  color: var(--ink); caret-color: var(--mint);
}
.check-input:focus-visible { outline: none; }
.check-line { position: relative; }
.check-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; border-radius: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.check-line:focus-within::after { transform: scaleX(1); }
.check-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 48px; }
.route { grid-column: 1 / 8; background: var(--navy); border-radius: var(--radius); padding: 28px 28px 30px; }
.route-verdict { font: 700 var(--step-lead)/1.1 var(--display); color: var(--mint); letter-spacing: -0.02em; }
.route.is-direct .route-verdict { color: var(--ink); }
.route-path { display: flex; align-items: flex-end; gap: 0; margin-top: 22px; font-weight: 500; }
.route-path li { padding: 10px 14px; background: var(--navy-2); border-radius: 999px; white-space: nowrap; }
.route-path li + li { margin-left: 46px; position: relative; }
.route-path li + li::before {
  content: ""; position: absolute; left: -42px; bottom: 18px; width: 38px; height: 18px;
  border: 4px solid var(--mint); border-bottom: 0; border-radius: 19px 19px 0 0;
}
.route-path .route-span { background: var(--mint); color: var(--navy); }
.route.is-direct .route-path li + li::before { height: 0; border-width: 4px 0 0; border-color: var(--ink-soft); border-radius: 0; bottom: 21px; }
.route-note { margin-top: 20px; color: var(--ink); max-width: 44ch; }
.check-side { grid-column: 9 / 13; display: grid; align-content: start; gap: 18px; }
.check-try { color: var(--ink-soft); margin-top: 6px; }
.check-examples { display: flex; flex-wrap: wrap; gap: 10px; }
.check-examples button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--navy-3);
  font-weight: 500; cursor: pointer; transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.check-examples button:hover { background: var(--mint); color: var(--navy); }
.check-examples button:active { transform: scale(.97); }

/* Пролёты: строки с фото на правом поле */
.spans { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: var(--gap-section); }
.spans-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 32px; display: grid; gap: 24px; }
.spans-sub { color: var(--ink-soft); max-width: 30ch; }
.spans-rows { grid-column: 5 / 13; display: grid; gap: clamp(72px, 9vw, 120px); }
.span-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 24px; align-items: start; }
.span-text { grid-column: 1 / 5; }
.span-text h3 { font: 700 var(--step-sub)/1.05 var(--display); letter-spacing: -0.03em; }
.span-text p { margin-top: 16px; max-width: 36ch; }
.span-pic { grid-column: 5 / 9; justify-self: end; }
.span-pic img { border-radius: var(--radius); width: 100%; }
.span-pic figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--ink-soft); }
.pic-a { width: min(100%, 260px); }
.pic-b { width: min(100%, 360px); }
.pic-c { width: min(100%, 210px); }
.pic-d { width: min(100%, 300px); }

/* Мосты по всему миру: названия городов с мостом внутри строки, как на первом экране */
.cities { padding-block: var(--gap-section); }
.cities-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.cities-head h2 { grid-column: 1 / 7; }
.cities-head p { grid-column: 8 / 13; max-width: 44ch; }
.chain { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 28px; margin-top: 64px; }
.chain-node { display: flex; align-items: flex-start; color: #7F9AB4; }
.chain-body { display: grid; gap: 6px; }
.chain-city { display: inline-flex; align-items: center; gap: 0.3em; font: 700 clamp(1.6rem, 0.9rem + 2.4vw, 3.4rem)/1.1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.chain-meta { font-size: var(--step-small); color: #A3B7CA; padding-left: 2px; }
.chain-pic { width: 2.1em; height: 0.95em; object-fit: cover; border-radius: 10px; opacity: .65; transition: opacity .25s var(--ease), transform .25s var(--ease); }
/* пролёт между городами: чем больше расстояние, тем длиннее арка */
.chain-arch { flex: none; width: min(calc(0.9em + var(--gap) / 1500 * 1em), 3.6em); height: 0.55em; margin: 0.42em 0.35em 0; border: 4px solid #3E5C7A; border-bottom: 0; border-radius: 999px 999px 0 0; font: 700 clamp(1.6rem, 0.9rem + 2.4vw, 3.4rem)/1 var(--display); }
.chain-node.is-home .chain-city { color: var(--ink); }
.chain-node.is-home .chain-meta { color: var(--mint); }
.chain-node.is-live { color: var(--ink); }
.chain-node.is-live .chain-meta { color: var(--mint); font-weight: 600; }
.chain-node.is-live .chain-arch { border-color: var(--mint); }
.chain-node.is-live .chain-pic { opacity: 1; outline: 3px solid var(--mint); outline-offset: 3px; }
.chain-node:hover .chain-pic { opacity: 1; transform: scale(1.06); }

/* Тариф одной фразой */
.price { padding-block: var(--gap-section); }
.price-title { font: 700 min(var(--step-display), 9.4vw)/0.98 var(--display); letter-spacing: -0.045em; }
.price-title > span { display: block; }
.price-tag { display: inline-block; background: var(--mint); color: var(--navy); padding: 0 0.15em; border-radius: var(--radius); }
/* цена, условия и кнопка одним блоком, как на первом экране */
.price-foot { display: grid; gap: 28px; margin-top: 48px; justify-items: start; }
.price-table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.price-table th, .price-table td { padding: 16px 12px 16px 0; text-align: left; vertical-align: top; border-top: 1px solid rgba(10, 43, 74, 0.2); }
.price-table thead th { padding-top: 0; border-top: 0; font-size: var(--step-small); font-weight: 500; color: #3B5873; }
.price-table tbody th { font-weight: 600; }
.price-table b { display: block; font: 700 var(--step-sub)/1.1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.price-table small { display: block; margin-top: 4px; font-size: var(--step-small); color: #3B5873; }
.price-incl { width: 100%; margin: 0; padding: 0; list-style: none; }
.price-incl li { padding: 16px 0; border-top: 1px solid rgba(10, 43, 74, 0.2); font-size: var(--step-body); line-height: 1.35; }
.price-incl li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .price-foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 96px); }
  .price-act { grid-column: 1 / -1; }
}
.price-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.price-more { color: #3B5873; max-width: 40ch; }

/* Подключение: три шага в ряд, между номерами пролёты моста */
.how { padding-block: var(--gap-section); }
.scheme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 88px); counter-reset: step; }
.scheme-step { counter-increment: step; display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 14px; position: relative; }
.scheme-step::before { content: counter(step); font: 700 var(--step-head)/1 var(--display); color: var(--mint); letter-spacing: -0.03em; }
.scheme-step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--step-head) * 0.12); left: calc(var(--step-head) * 0.9); right: calc(var(--step-head) * 0.2 - 24px); height: calc(var(--step-head) * 0.42); border: 5px solid var(--mint); border-bottom: 0; border-radius: 999px 999px 0 0; }
.scheme-step h3 { font: 700 var(--step-lead)/1.15 var(--display); letter-spacing: -0.015em; }
.scheme-step > p { max-width: 34ch; }
.scheme-step .frag { margin-top: 10px; align-self: start; }
.frag { width: 100%; background: var(--paper); color: var(--navy); border-radius: var(--radius); padding: 24px; position: relative; }
.chat-from { display: flex; align-items: center; gap: 12px; font: 700 var(--step-body)/1 var(--display); }
.chat-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--navy) url("/favicon.svg") center / 34px no-repeat; }
.chat-msg { margin-top: 18px; background: var(--paper-2); border-radius: 4px var(--radius) var(--radius) var(--radius); padding: 14px 16px; }
.chat-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.chat-btns > * { display: grid; place-items: center; text-align: center; padding: 6px 10px; line-height: 1.2; min-height: 46px; border-radius: 10px; background: var(--navy); color: var(--ink); text-decoration: none; font-weight: 500; }
.chat-btns span { background: var(--paper-2); color: var(--navy); }
.frag-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 700 var(--step-body)/1.2 var(--display); }
.frag-title span { font: 400 var(--step-small)/1 var(--text); color: #46607A; }
.apps { margin-top: 18px; display: grid; gap: 8px; }
.apps a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 10px; background: var(--paper-2); text-decoration: none; font-weight: 500; transition: background-color .18s var(--ease); }
.apps a span { color: #0E6F5C; font-weight: 600; }
.apps a:hover { background: var(--mint); }
.apps a:hover span { color: var(--navy); }
.power { display: grid; justify-items: center; text-align: center; padding-block: 18px 8px; }
.power-ring { width: 150px; height: 150px; border-radius: 50%; border: 14px solid var(--mint); display: grid; place-items: center; }
.power-ring::after { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); }
.power-state { margin-top: 22px; font: 700 var(--step-lead)/1 var(--display); letter-spacing: -0.02em; }
.power-meta { margin-top: 12px; color: #46607A; }

/* Что вы получаете: шесть обещаний, у каждого арка моста */
.gets { padding-block: var(--gap-section); }
.gets-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(48px, 5vw, 72px) 24px; margin-top: clamp(48px, 6vw, 88px); }
.gets-list h3 { font: 700 var(--step-sub)/1.08 var(--display); letter-spacing: -0.025em; }
.gets-list h3::before { content: ""; display: block; width: 56px; height: 24px; margin-bottom: 18px; border: 5px solid var(--mint); border-bottom: 0; border-radius: 999px 999px 0 0; }
.gets-list p { margin-top: 14px; max-width: 34ch; }

/* Устройства: крупные названия, каждое ведёт на свою инструкцию */
.devs { padding-block: var(--gap-section); }
.devs-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.devs-head h2 { grid-column: 1 / 8; }
.devs-head p { grid-column: 9 / 13; max-width: 40ch; }
.devs-list { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 8px; }
.devs-list a { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 24px; align-items: baseline; padding: 22px 28px; border-radius: var(--radius); background: var(--navy); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.devs-name { grid-column: 1 / 7; font: 700 var(--step-sub)/1.05 var(--display); letter-spacing: -0.03em; }
.devs-meta { grid-column: 7 / 13; color: var(--ink-soft); }
.devs-meta::after { content: "  →"; white-space: pre; color: var(--mint); }
.devs-list a:hover { background: var(--mint); color: var(--navy); }
.devs-list a:hover .devs-meta, .devs-list a:hover .devs-meta::after { color: var(--navy); }

/* Планшет */
@media (max-width: 1100px) {
  .gets-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scheme { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .scheme-step:not(:last-child)::after { display: none; }
  .scheme-step .frag { max-width: 440px; }
  .devs-head h2 { grid-column: 1 / 13; }
  .devs-head p { grid-column: 1 / 10; }
  /* проверка адреса: путь и пояснение друг под другом, иначе путь налезает на текст */
  .route, .check-side { grid-column: 1 / 13; }
}

/* Приведи друга */
.friend { padding-block: var(--gap-section); }
.friend-title { font: 700 var(--step-display)/0.98 var(--display); letter-spacing: -0.045em; }
.friend-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 48px; }
.friend-foot p { max-width: 52ch; }

/* Вопросы: открытая таблица */
.faq { padding-block: var(--gap-section); }
.faq-table { display: grid; gap: clamp(44px, 4.5vw, 64px); }
.faq-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: baseline; }
.faq-q { grid-column: 1 / 7; font: 600 var(--step-sub)/1.12 var(--display); letter-spacing: -0.025em; }
.faq-head { color: var(--ink-soft); font-weight: 700; }
.faq-a { grid-column: 8 / 13; max-width: 42ch; }

/* Подвал: приглашение и обрезанное имя */
.foot { position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; }
@media (max-width: 1100px) { .foot { min-height: 0; } }
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-top: clamp(72px, 9vw, 140px); }
.foot-invite { grid-column: 1 / 8; display: grid; gap: 32px; justify-items: start; }
.foot-title { font: 700 var(--step-head)/1 var(--display); letter-spacing: -0.035em; max-width: 14ch; }
.foot-links { grid-column: 10 / 13; display: grid; gap: 10px; align-content: start; font-weight: 600; }
.foot-legal { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--step-small); padding-top: 64px; }
.foot-legal p { max-width: 70ch; }
.foot-name { font: 800 clamp(8rem, 34vw, 40rem)/0.8 var(--display); letter-spacing: -0.06em; white-space: nowrap; margin: 0 0 0 calc(var(--margin) - 0.04em); transform: translateY(24%); margin-top: -0.06em; }

/* Телефон */
@media (max-width: 760px) {
  .hide-s { display: none; }
  .logo { height: 24px; }
  .hero { min-height: 0; padding-block: 11vh 12vh; }
  .hero-title { font-size: clamp(2.9rem, 12.6vw, 5rem); }
  .hero-foot { margin-top: 32px; gap: 24px; }
  .hero-act { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-act .btn { width: 100%; }
  .hero-strip { flex: 1 1 0; min-width: 0; }
  .check-grid, .spans, .faq-row, .foot-top, .cities-head { grid-template-columns: 1fr; }
  .hero-price { margin-top: 0; }
  .cities-head h2, .cities-head p { grid-column: 1; }
  .chain { flex-direction: column; flex-wrap: nowrap; row-gap: 0; margin-top: 40px; }
  .chain-node { display: grid; grid-template-columns: 40px 1fr; align-items: start; }
  .chain-node.is-home { grid-template-columns: 1fr; margin-bottom: 4px; }
  .chain-body { padding-block: 6px; }
  .chain-city { font-size: clamp(1.5rem, 7.4vw, 2rem); }
  /* на телефоне пролёт стоит вертикально, его высота растёт с расстоянием */
  .chain-arch { width: 18px; height: min(calc(26px + var(--gap) * 0.008px), 64px); margin: 0 0 0 6px; border: 4px solid #3E5C7A; border-left: 0; border-radius: 0 999px 999px 0; font-size: 1rem; }
  .route, .check-side, .spans-head, .spans-rows, .faq-q, .faq-a, .foot-invite, .foot-links { grid-column: 1; }
  .route { padding: 22px 18px; }
  .route-path { flex-direction: column; align-items: flex-start; }
  .route-path li + li { margin-left: 0; margin-top: 30px; }
  .route-path li + li::before { left: 22px; bottom: auto; top: -24px; width: 34px; height: 18px; }
  .route.is-direct .route-path li + li::before { left: 38px; top: -26px; width: 0; height: 22px; border-width: 0 0 0 4px; }
  .spans-head { position: static; }
  .span-row { grid-template-columns: 1fr; }
  .span-text, .span-pic { grid-column: 1; }
  .pic-a { width: 100%; justify-self: stretch; }
  .pic-b { width: 72%; justify-self: end; }
  .pic-c { width: 58%; justify-self: start; }
  .pic-d { width: 80%; justify-self: end; }
  .friend-title { font-size: clamp(2.9rem, 12.6vw, 5rem); }
  .foot { min-height: 0; }
  .check-input { font-size: clamp(2.9rem, 12.6vw, 5rem); }
  .span-pic figcaption { display: none; }
  .dev-photo figcaption { display: none; }
  .price-act { flex-direction: column; align-items: stretch; width: 100%; }
  .price-act .btn, .friend-foot .btn, .foot-invite .btn { width: 100%; }
  .scheme, .gets-list, .devs-head, .devs-list a { grid-template-columns: 1fr; }
  .scheme { gap: 56px; }
  /* на телефоне у шагов 1 и 3 хватает текста, окно оставляем только со списком приложений */
  .scheme-step:not(:nth-child(2)) .frag { display: none; }
  .scheme-step:not(:last-child)::after { display: none; }
  .devs-head h2, .devs-head p, .devs-name, .devs-meta { grid-column: 1; }
  .devs-list a { padding: 18px 20px; }
  .faq-row { gap: 12px; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .foot-name { font-size: 29vw; }
}

/* Движение */
.js [data-reveal] > *, .js [data-reveal].solo { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in > *, .js [data-reveal].solo.is-in { opacity: 1; transform: none; }
.js .shutter { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.1s var(--ease); }
.js .shutter img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.js .shutter.is-open { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .shutter.is-open img { transform: scale(1); }
.hero-pic img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] > *, .js [data-reveal].solo { opacity: 1; transform: none; transition: none; }
  .js .shutter, .js .shutter img { clip-path: none; transform: none; transition: none; }
  .btn, .check-examples button { transition: none; }
}

/* Документы */
.docs { padding-block: 48px var(--gap-section); max-width: calc(760px + 2 * var(--margin)); margin-inline: auto; }
.docs-title { font: 700 var(--step-head)/1 var(--display); letter-spacing: -0.035em; }
.docs-lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.45; max-width: 44ch; }
.doc { margin-top: clamp(72px, 8vw, 120px); }
.doc h2 { font: 700 var(--step-sub)/1.1 var(--display); letter-spacing: -0.025em; max-width: 24ch; }
.doc h3 { margin-top: 32px; font: 600 var(--step-body)/1.3 var(--display); color: var(--mint); }
.doc p { margin-top: 12px; max-width: 66ch; }
.doc-list { margin-top: 18px; display: grid; gap: 10px; }
.doc-list a { color: var(--mint); }
.docs-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 40px 56px; background: var(--navy-2); }

/* Happ на iPhone: шаги с крупными номерами */
.ios-steps { margin-top: clamp(72px, 8vw, 120px); display: grid; gap: clamp(48px, 6vw, 72px); counter-reset: step; }
.ios-steps > li { counter-increment: step; display: grid; grid-template-columns: 1.6em 1fr; column-gap: clamp(12px, 2vw, 24px); font-size: var(--step-body); }
.ios-steps > li::before { content: counter(step); grid-row: 1 / span 9; font: 700 var(--step-sub)/1.1 var(--display); color: var(--mint); }
.ios-steps h2 { font: 700 var(--step-sub)/1.1 var(--display); letter-spacing: -0.025em; max-width: 22ch; }
.ios-steps p { margin-top: 12px; max-width: 62ch; }
.ios-steps .ios-act { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-quiet { background: var(--navy-3); color: var(--ink); }
.btn-quiet:hover { background: var(--mint); color: var(--navy); }

/* Переходник в Happ */
.go { padding-block: 10vh 14vh; display: grid; gap: 24px; justify-items: start; max-width: calc(720px + 2 * var(--margin)); }
.go-title { font: 700 var(--step-head)/1 var(--display); letter-spacing: -0.035em; }
.go-lead { font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; }
.go-sub { margin-top: 40px; font: 600 var(--step-lead)/1.2 var(--display); }
.go-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.go-apps a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--navy-3); text-decoration: none; font-weight: 500; }
.go-apps a:hover { background: var(--mint); color: var(--navy); }
/* Кнопки страниц оплаты: главная мятная, как на всём сайте, вторая тихая (правило .go-apps a выше иначе красит обе в тёмно-синий) */
.go-apps a.btn { background: var(--mint); color: var(--navy); font-weight: 700; }
.go-apps a.btn:hover { background: #3DDDBB; }
.go-apps a.btn-quiet { background: var(--navy-3); color: var(--ink); font-weight: 500; }
.go-apps a.btn-quiet:hover { background: var(--mint); color: var(--navy); }
.go-note { color: var(--ink-soft); }

/* Страницы устройств: заголовок с окном Happ, шаги с окнами того, что будет на экране */
.dev { padding-block: 24px var(--gap-section); }
.dev-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; min-height: min(calc(100svh - 80px), 760px); padding-block: 24px 48px; }
.dev-text { grid-column: 1 / 8; display: grid; justify-items: start; }
.dev-shot { grid-column: 9 / 13; }
.dev-title { font: 700 min(var(--step-display), 7.2vw)/0.98 var(--display); letter-spacing: -0.045em; max-width: 12ch; }
.dev-lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.45; max-width: 40ch; }
.dev-act { margin-top: 32px; }
.dev-price { margin-top: 16px; }
.dev-how { margin-top: clamp(48px, 6vw, 96px); }
.dev-steps { max-width: 1180px; margin-top: clamp(40px, 5vw, 64px); }
.dev-steps > li { grid-template-columns: 1.6em minmax(0, 1fr) minmax(0, 360px); }
.dev-steps > li > .frag { grid-column: 3; grid-row: 1 / span 9; align-self: start; }
.dev-doc { max-width: 760px; }
.dev-other { margin-top: 20px; }
.servers { margin-top: 18px; display: grid; gap: 8px; }
.servers li { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 10px; background: var(--paper-2); font-weight: 500; }
.servers li span { color: #46607A; font-size: var(--step-small); }
.servers li.is-sel { background: var(--navy); color: var(--ink); }
.servers li.is-sel span { color: var(--mint); }
.power-sm .power-ring { width: 104px; height: 104px; border-width: 11px; }
.power-sm .power-ring::after { width: 30px; height: 30px; }
.power-sm .power-state { margin-top: 16px; }
.chat-btns .is-on { background: var(--navy); color: var(--ink); }
.chat-one { grid-template-columns: 1fr; }
.store-row { display: flex; align-items: center; gap: 14px; }
.store-ico { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: var(--mint); display: grid; place-items: center; font: 800 26px/1 var(--display); }
.store-row > div { flex: 1; min-width: 0; }
.store-name { font: 700 var(--step-body)/1.2 var(--display); }
.store-dev { color: #46607A; font-size: var(--step-small); overflow-wrap: anywhere; }
.store-btn { margin-left: auto; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: var(--ink); font-weight: 600; font-size: var(--step-small); }
.tv-hint { margin-top: 10px; color: #46607A; }
.tv-qr { width: 148px; aspect-ratio: 1; margin: 18px auto 4px; border-radius: 12px; background: var(--paper-2); border: 10px solid var(--navy); display: grid; place-items: center; text-align: center; color: #46607A; font-size: var(--step-small); line-height: 1.3; }
.tv-code { margin-top: 8px; font: 700 2.6rem/1 var(--display); color: var(--navy); }
@media (max-width: 1100px) {
  .dev-text { grid-column: 1 / 13; }
  .dev-shot { grid-column: 1 / 9; }
  .dev-top { min-height: 0; }
}
@media (max-width: 760px) {
  .dev-top { grid-template-columns: 1fr; padding-block: 12px 24px; }
  .dev-text, .dev-shot { grid-column: 1; }
  .dev-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .dev-act { flex-direction: column; align-items: stretch; width: 100%; }
  .dev-act .btn { width: 100%; }
  .dev-steps > li { grid-template-columns: 1.6em minmax(0, 1fr); }
  .dev-steps > li > .frag { grid-column: 2; grid-row: auto; margin-top: 18px; }
}

/* Плашка cookie (её добавляет metrika.html): одна строка внизу справа, где на первом экране пусто;
   на телефоне во всю ширину и не выше 56 px */
.cookie-bar {
  position: fixed; z-index: 50; left: var(--margin); right: var(--margin); bottom: 12px;
  max-width: 480px; margin-left: auto; display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--navy-3); color: var(--ink);
  font-size: var(--step-small); line-height: 1.35;
}
.cookie-bar p { flex: 1; }
.cookie-bar a { color: var(--mint); }
.cookie-bar button {
  flex: none; min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--mint); color: var(--navy); font: 700 var(--step-small)/1 var(--display);
}
.cookie-bar button:hover { background: #3DDDBB; }
body:has(.cookie-bar) { padding-bottom: 72px; }

/* Первый экран появляется анимацией CSS сразу при загрузке, без ожидания скрипта (11.11.2026, скорость на телефоне) */
.js .rise > * { animation: rise .7s var(--ease) both; }
.js .rise > :nth-child(2) { animation-delay: 80ms; }
.js .rise > :nth-child(3) { animation-delay: 160ms; }
.js .rise > :nth-child(4) { animation-delay: 240ms; }
.js .rise > :nth-child(5) { animation-delay: 320ms; }
@keyframes rise { from { opacity: .01; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .js .rise > * { animation: none; } }

/* Подписка для Happ: таблица цен на светлой карточке, как окна в шагах */
.happ-price { margin-top: 20px; }
.happ-price .price-table th, .happ-price .price-table td { padding-right: 16px; }
