:root {
  --bg:#f7f7f5;
  --card:#ffffff;
  --text:#171717;
  --muted:#62625e;
  --line:#d9d9d2;
  --soft:#efefe9;
  --orange:#fc4c02;
  --orange-dark:#d93f00;
  --accent-text:#ad3300;
  --accent-soft:#fff0e8;
  --success:#246239;
  --warning:#805400;
  --danger:#a52626;
  --radius:6px;
  --shadow:none;
  --font:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Подключить тот же локальный Inter, что используется в ЛК. */
*,
*::before,
*::after {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.5 var(--font);
  font-variant-numeric:tabular-nums;
}

.landing {
  overflow-wrap:break-word;
}

.landing [hidden] {
  display:none !important;
}

.landing :where(h1,h2,h3,p,figure) {
  margin:0;
}

.landing h1 {
  font-size:clamp(30px,4vw,44px);
  font-weight:800;
  line-height:1.08;
  letter-spacing:-.045em;
}

.landing h2 {
  font-size:clamp(24px,2.7vw,32px);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.035em;
}

.landing h3 {
  font-size:20px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:-.02em;
}

.landing a {
  color:var(--accent-text);
  text-underline-offset:4px;
  text-decoration-thickness:1px;
}

.landing a:hover {
  text-decoration-thickness:2px;
}

.landing :where(button,input,select,textarea) {
  font:inherit;
}

.landing button {
  cursor:pointer;
}

.landing :where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline:3px solid var(--accent-text);
  outline-offset:4px;
}

.landing :where(input,select,textarea):focus-visible {
  outline-offset:2px;
}

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

.landing svg {
  flex-shrink:0;
}

.landing-container {
  width:min(1184px,calc(100% - 64px));
  margin-inline:auto;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

.icon-sprite {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.icon {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.skip-link {
  position:fixed;
  z-index:100;
  top:12px;
  left:12px;
  padding:12px 16px;
  background:var(--card);
  border:2px solid var(--text);
  transform:translateY(-160%);
}

.skip-link:focus {
  transform:none;
}

.topbar {
  display:grid;
  grid-template-columns:160px 1fr auto;
  align-items:center;
  gap:24px;
  min-height:96px;
  border-bottom:2px solid var(--text);
}

/* Высота знака одна на весь сайт: 48 px в шапке, 40 px на узком экране —
   как было на главной. Ширину не фиксируем: в коробке 160×48 с
   object-fit:contain знак вписывался, а в блоге и кабинете был мельче. */
.brand {
  display:inline-flex;
  align-items:center;
  height:48px;
}

.brand img {
  height:48px;
  width:auto;
}

.topbar-nav {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:24px;
}

.topbar-nav > a {
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}

.topbar-nav > a:hover {
  text-decoration:underline;
}

.locale-switch {
  display:flex;
  align-items:center;
  gap:2px;
}

.locale-switch a {
  display:grid;
  place-items:center;
  min-width:44px;
  min-height:44px;
  padding:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  border-bottom:2px solid transparent;
}

.locale-switch a[aria-current="true"] {
  color:var(--text);
  border-bottom-color:var(--orange);
}

.locale-switch a:hover {
  background:var(--soft);
}

.landing .button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:11px 20px;
  border:1px solid var(--text);
  border-radius:var(--radius);
  color:var(--text);
  background:var(--card);
  font-weight:700;
  line-height:1.4;
  text-align:center;
  text-decoration:none;
}

/* Белый на --orange не достигает 4.5:1; используем тёмный токен. */
.landing .button--primary {
  color:#fff;
  background:var(--orange-dark);
  border-color:var(--orange-dark);
}

.landing .button--primary:hover {
  background:var(--accent-text);
  border-color:var(--accent-text);
}

.landing .button--secondary:hover {
  background:var(--soft);
}

/* Кнопка входа в шапке — как в блоге и справке: тёмная плашка без скругления,
   на наведении оранжевая. Оттенок тёмный: белый на чистом --orange не даёт
   контраста 4.5:1. */
.topbar > .button {
  min-height:44px;
  padding:9px 18px;
  color:var(--bg);
  background:var(--text);
  border-color:var(--text);
  border-radius:0;
}

.topbar > .button:hover {
  color:#fff;
  background:var(--orange-dark);
  border-color:var(--orange-dark);
}

/* Фото идёт первым: на ноутбуке 13-14 дюймов (окно ~800 px по высоте) при
   обратном порядке оно целиком уходило за сгиб и первый экран его не вмещал.
   Высота фото ограничена, иначе заголовок и лид уезжают вниз сами. */
.hero {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  /* Первый экран — одно фото: заголовок, иконки магазинов, текст и панель
     входа лежат внутри .hero-photo, отдельных областей сетки у них нет. */
  grid-template-areas:
    "photo";
  align-items:start;
  gap:28px;
  padding-block:32px 48px;
}

/* Текстовый блок переехал под иконки магазинов внутрь .hero-overlay, поэтому
   на фото весь его текст перекрашивается в белый (правила ниже, у .hero-overlay). */
.hero-copy {
  margin-top:24px;
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px !important;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.eyebrow::before {
  content:"";
  width:8px;
  height:8px;
  flex:0 0 8px;
  background:var(--orange);
}

.hero h1 span {
  display:block;
}

.hero-lead {
  max-width:57ch;
  margin-top:20px !important;
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}

.text-link {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  font-weight:700;
}

.hero-copy > .text-link {
  margin-top:12px;
}

.hero-features {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 20px;
  margin:24px 0 0;
  padding:22px 0 0;
  border-top:1px solid var(--line);
  list-style:none;
}

.hero-feature {
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  font-weight:600;
}

.hero-feature .icon {
  width:20px;
  height:20px;
  margin-top:1px;
  color:var(--accent-text);
}

.hero-photo {
  grid-area:photo;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  /* Фото — подложка всего первого блока: на нём лежат и заголовок, и форма
     входа. Высота не фиксируется, а растёт под содержимое сцены, иначе форма
     регистрации (она вдвое выше формы входа) вылезала бы за кадр. */
  width:100%;
  min-height:clamp(420px, 62vh, 620px);
  background:var(--soft);
  border:1px solid var(--text);
  border-radius:4px;
}

/* Сцена поверх фото: слева заголовок, справа панель входа. */
.hero-stage {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,352px);
  /* По центру, а не по низу: в режиме регистрации форма вдвое выше, сцена
     вытягивается, и прижатый к низу заголовок уезжал к самому краю кадра. */
  align-items:center;
  gap:32px;
  min-height:inherit;
  padding:28px 32px;
}

/* Заголовок поверх фото. Прижат вниз-влево: там у кадра тёмный склон, и белый
   текст читается лучше, чем на небе. */
/* Ширину не ограничиваем в ch: единица считается по кеглю самого блока (15 px),
   и заголовок в 44 px рвался посреди строки. Колонку и так держит сетка сцены. */
.hero-overlay {
  color:#fff;
}

.hero-overlay .eyebrow {
  color:rgba(255,255,255,.86);
  margin-bottom:10px !important;
}

/* Текст под иконками магазинов лежит на фото: серый var(--muted) на кадре не
   читается, поэтому вся колонка перекрашивается в белый. */
.hero-overlay .hero-lead {
  margin-top:0 !important;
  color:rgba(255,255,255,.88);
  /* Тень страхует на светлых участках кадра: на узком экране абзац попадает
     на небо, где одного затемнения не хватает. */
  text-shadow:0 1px 8px rgba(0,0,0,.6);
}

.hero-overlay .text-link,
.hero-overlay .text-link span {
  color:#ffd0a3;
}

.hero-overlay .hero-features {
  border-top-color:rgba(255,255,255,.28);
}

.hero-overlay .hero-feature {
  color:#fff;
}

.hero-overlay .hero-feature .icon {
  color:#ffb27a;
}

.hero-overlay h1 {
  margin:0;
  color:#fff;
  /* Тень мягкая: она страхует на кадрах посветлее, а не рисует «объём». */
  text-shadow:0 2px 12px rgba(0,0,0,.45);
}

/* Кадр шире контейнера, поэтому режется по вертикали. Точка привязки смещена
   вверх: при 50% бегуну срезало голову. Затемнение поверх — не украшение, без
   него белый заголовок пропадает на светлом небе, а форма теряет границу. */
.hero-bg {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 22%;
}

.hero-photo::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.68) 0%, rgba(0,0,0,.34) 40%, rgba(0,0,0,.06) 100%);
}

/* Иконки магазинов на первом экране. Плашка полупрозрачная, как панель входа:
   на фото она не спорит с кадром, но остаётся кликабельно-выпуклой. */
.hero-apps {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.hero-app {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:7px 16px 7px 13px;
  color:#fff;
  background:rgba(10,12,16,.46);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.34);
  border-radius:8px;
  font-size:17px;
  font-weight:700;
  line-height:1.1;
  text-decoration:none;
}

.hero-app span {
  display:grid;
}

.hero-app small {
  font-size:10px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.8;
}

a.hero-app:hover {
  background:rgba(10,12,16,.7);
  border-color:#fff;
}

/* Приложения для Android ещё нет — плашка остаётся информационной. */
.hero-app--soon {
  opacity:.72;
}

/* Панель лежит поверх фото: подложка полупрозрачная с размытием, весь текст
   внутри — белый. Размытие обязательно: без него кадр просвечивает сквозь
   подложку и форма перестаёт читаться. */
.auth-panel {
  align-self:center;
  min-width:0;
  padding:18px 20px;
  color:#fff;
  background:rgba(10,12,16,.52);
  -webkit-backdrop-filter:blur(18px) saturate(1.1);
  backdrop-filter:blur(18px) saturate(1.1);
  border:1px solid rgba(255,255,255,.28);
  border-top:3px solid var(--orange);
  border-radius:var(--radius);
  box-shadow:0 18px 44px rgba(0,0,0,.4);
  scroll-margin-top:24px;
}

/* Первый экран — в стилистике блога: прямые углы у фото, плашек магазинов,
   панели входа и всего, что внутри неё. Селекторы полные, а не :where:
   базовые правила полей и кнопки задают var(--radius). */
.hero-photo,
.hero-app,
.auth-panel {
  border-radius:0;
}

.auth-panel .auth-card input,
.auth-panel .auth-card select,
.auth-panel .auth-card textarea,
.auth-panel .auth-form .btn,
.auth-panel .social,
.auth-panel .legal-consent,
.auth-panel .error,
.auth-panel .auth-message {
  border-radius:0;
}

/* Нулевая специфичность :where — точечные правила ниже (ссылки, ошибки)
   перебивают её без !important. */
.auth-panel :where(h2,p,label,span,a,small,strong,.divider,.auth-note,.check,.auth-row,.store-status) {
  color:#fff;
}

/* Обычные селекторы, а не :where: базовые правила (.auth-intro p, .auth-note)
   задают серый var(--muted), и нулевая специфичность им проигрывала. */
.auth-panel .auth-intro p,
.auth-panel .auth-note,
.auth-panel .auth-row,
.auth-panel .divider,
.auth-panel .legal-consent,
.auth-panel .legal-consent span {
  color:rgba(255,255,255,.82);
}

/* Ссылки светло-оранжевые и подчёркнутые: на закатном кадре чистый оранжевый
   сливался с фоном даже сквозь подложку. */
.auth-panel .auth-link,
.auth-panel .legal-consent a,
.auth-panel .auth-note a {
  color:#ffd0a3;
  text-decoration:underline;
}

/* Компактная форма: панель лежит на фото, и каждый лишний отступ выталкивает
   кадр вниз. Поля остаются не ниже 44 px — иначе не попасть пальцем. */
.auth-panel .auth-card :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
  select,
  textarea
) {
  min-height:44px;
  padding:9px 12px;
  color:#fff;
  background:rgba(0,0,0,.34);
  border-color:rgba(255,255,255,.44);
}

.auth-panel .auth-card input::placeholder {
  color:rgba(255,255,255,.6);
}

/* Автозаполнение в Chrome красит поле в белый и текст в чёрный — возвращаем
   тёмную подложку, иначе половина формы выглядит чужеродно. */
.auth-panel .auth-card input:-webkit-autofill {
  -webkit-text-fill-color:#fff;
  -webkit-box-shadow:0 0 0 1000px rgba(18,20,24,.98) inset;
  caret-color:#fff;
}

.auth-panel .auth-form {
  gap:12px;
}

.auth-panel .auth-form label {
  font-size:13px;
  font-weight:700;
}

.auth-panel .auth-form .btn {
  min-height:46px;
}

.auth-panel .auth-tabs {
  margin-bottom:14px;
  border-bottom-color:rgba(255,255,255,.28);
}

.auth-panel .auth-tab {
  min-height:40px;
  color:rgba(255,255,255,.72);
  font-size:14px;
}

.auth-panel .auth-tab.active {
  color:#fff;
  border-bottom-color:var(--orange);
}

.auth-panel .divider {
  margin:14px 0;
}

.auth-panel .divider::before,
.auth-panel .divider::after {
  background:rgba(255,255,255,.3);
}

.auth-panel .social {
  min-height:40px;
  padding:8px 12px;
  color:#fff;
  background:rgba(0,0,0,.3);
  border-color:rgba(255,255,255,.3);
  font-size:12px;
}

.auth-panel .social-stack {
  gap:8px;
}

.auth-panel .check {
  min-height:36px;
}

/* Согласие остаётся видимым целиком (это юридический текст, прятать его под
   скролл нельзя), поэтому уменьшаем кегль и убираем светлую плашку. */
.auth-panel .legal-consent {
  padding:10px;
  background:rgba(0,0,0,.3);
  border-color:rgba(255,255,255,.28);
  font-size:11.5px;
  line-height:1.45;
}

.auth-panel .auth-note {
  margin-top:12px;
  font-size:12px;
}

.auth-panel .error,
.auth-panel .auth-message {
  margin-bottom:12px;
  padding:9px 10px;
  background:rgba(0,0,0,.42);
}

.auth-panel .error { color:#ff9b8f; border-color:#ff9b8f; }
.auth-panel .auth-message { color:#9ae6b4; border-color:#9ae6b4; }

.auth-intro {
  margin-bottom:14px;
}

.auth-intro h2 {
  font-size:20px;
}

.auth-intro p {
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}

/* Контракт классов для существующей EJS-карточки авторизации. */
.auth-card {
  min-width:0;
  padding:0;
  color:var(--text);
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.auth-tabs {
  display:flex;
  gap:0;
  margin-bottom:24px;
  border-bottom:1px solid var(--line);
}

.auth-tabs :where(button,a) {
  display:flex;
  justify-content:center;
  align-items:center;
  flex:1;
  min-height:48px;
  padding:10px 8px;
  color:var(--muted);
  background:transparent;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  font-weight:700;
  text-decoration:none;
}

.auth-tabs :where([aria-selected="true"],.is-active,.active) {
  color:var(--text);
  border-bottom-color:var(--orange);
}

/* Классы существующей EJS-карточки: вкладки-ссылки, строки, чекбоксы. */
.auth-tab {
  display:flex;
  justify-content:center;
  align-items:center;
  flex:1;
  min-height:48px;
  padding:10px 8px;
  color:var(--muted);
  font-weight:700;
  text-decoration:none;
  border-bottom:2px solid transparent;
}

.auth-tab.active {
  color:var(--text);
  border-bottom-color:var(--orange);
}

.auth-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:13px;
}

.auth-link {
  color:var(--accent-text);
  font-weight:700;
}

.check {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  white-space:nowrap;
}

.check input {
  width:20px;
  height:20px;
  margin:0;
  accent-color:var(--accent-text);
}

.divider {
  display:flex;
  align-items:center;
  gap:14px;
  margin:20px 0;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.divider::before,
.divider::after {
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

.social-stack {
  display:grid;
  gap:10px;
}

.social {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  padding:10px 14px;
  color:var(--text);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:13px;
  font-weight:700;
}

.social-badge {
  display:inline-grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:4px;
  color:#fff;
  font-size:12px;
  font-weight:800;
}

.garmin { background:#111; }
.telegram { background:#2aabee; }

.legal-consent {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:10px;
  align-items:flex-start;
  padding:12px;
  color:var(--muted);
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:12px;
  line-height:1.5;
}

.legal-consent input {
  width:20px;
  min-width:20px;
  height:20px;
  min-height:20px;
  margin:2px 0 0;
  padding:0;
  accent-color:var(--accent-text);
}

.legal-consent a {
  color:var(--accent-text);
  font-weight:700;
}

.auth-note {
  margin-top:16px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.error,
.auth-message {
  margin-bottom:14px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:13px;
  font-weight:700;
  line-height:1.45;
}

.error {
  color:var(--danger);
  border-color:var(--danger);
  background:var(--card);
}

.auth-message {
  color:var(--success);
  border-color:var(--success);
  background:var(--card);
}

.auth-form {
  display:grid;
  gap:16px;
}

.auth-field {
  display:grid;
  gap:6px;
  min-width:0;
}

.auth-field > label {
  font-size:14px;
  font-weight:700;
}

.auth-card :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
  select,
  textarea
) {
  width:100%;
  min-height:48px;
  padding:11px 12px;
  color:var(--text);
  background:var(--card);
  border:1px solid var(--muted);
  border-radius:var(--radius);
  box-shadow:none;
}

.auth-card input::placeholder,
.auth-card textarea::placeholder {
  color:var(--muted);
  opacity:1;
}

.auth-card [aria-invalid="true"] {
  border-color:var(--danger);
}

.auth-hint,
.auth-error {
  font-size:13px;
  line-height:1.5;
}

.auth-hint {
  color:var(--muted);
}

.auth-error {
  color:var(--danger);
}

.auth-consent {
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--muted);
  font-size:13px;
}

.auth-consent input {
  flex:0 0 20px;
  width:20px;
  height:20px;
  margin:2px 0 0;
  accent-color:var(--accent-text);
}

.auth-consent label {
  padding-block:2px;
}

.auth-submit {
  width:100%;
}

/* Кнопка отправки в существующей карточке — класс .btn.btn-primary. */
.auth-form .btn {
  width:100%;
  min-height:48px;
  padding:11px 20px;
  border:1px solid var(--orange-dark);
  border-radius:var(--radius);
  color:#fff;
  background:var(--orange-dark);
  font-weight:700;
}

.auth-form .btn:hover {
  background:var(--accent-text);
  border-color:var(--accent-text);
}

.auth-card :where(button,input)[disabled] {
  cursor:not-allowed;
  opacity:1;
  color:var(--muted);
  background:var(--soft);
  border-color:var(--line);
}

.auth-social {
  display:grid;
  gap:10px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.auth-social > p {
  color:var(--muted);
  font-size:13px;
}

.auth-social .button {
  width:100%;
}

/* Ссылка «Начать свою историю» в секции кейсов. */
.more-wrap {
  display:flex;
  justify-content:center;
  margin-top:28px;
}

.feature-strip {
  padding-block:24px;
  border-top:2px solid var(--text);
  border-bottom:1px solid var(--text);
}

.feature-list {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
}

.feature-item {
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
  padding:8px 20px;
  border-left:1px solid var(--line);
}

.feature-item:first-child {
  padding-left:0;
  border-left:0;
}

.feature-item:last-child {
  padding-right:0;
}

.feature-item .icon {
  margin-top:2px;
}

.feature-item strong,
.feature-item span {
  display:block;
}

.feature-item strong {
  font-size:14px;
}

.feature-item span {
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

.section {
  padding-block:64px;
}

.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}

.section-heading p {
  max-width:43ch;
  color:var(--muted);
}

.case-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.case-card {
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
  padding:20px;
  background:var(--card);
  border:1px solid var(--line);
  border-top-color:var(--text);
  border-radius:4px;
}

.case-person {
  display:flex;
  align-items:center;
  gap:12px;
}

.case-avatar {
  width:48px;
  height:48px;
  flex:0 0 48px;
  object-fit:cover;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--soft);
}

.case-person h3 {
  font-size:16px;
  letter-spacing:0;
}

.case-person p {
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
}

.case-result {
  padding-block:12px;
  border-block:1px solid var(--line);
  font-size:20px;
  font-weight:800;
  letter-spacing:-.025em;
}

.case-story {
  color:var(--muted);
  font-size:14px;
}

.application {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start;
  gap:48px;
  padding:32px;
  background:var(--card);
  border:1px solid var(--text);
  border-radius:var(--radius);
}

.application-copy > p:not(.eyebrow) {
  max-width:52ch;
  margin-top:16px;
  color:var(--muted);
}

.application-downloads {
  min-width:0;
}

.store-list {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:14px;
}

.store-item {
  width:190px;
  max-width:100%;
}

.store-badge {
  display:block;
  width:190px;
  max-width:100%;
  border-radius:var(--radius);
  text-decoration:none;
}

.store-badge svg {
  display:block;
  width:100%;
  height:auto;
  font-family:var(--font);
}

.store-small {
  fill:#fff;
  font-size:11px;
  font-weight:500;
}

.store-name {
  fill:#fff;
  font-size:21px;
  font-weight:700;
  letter-spacing:-.4px;
}

a.store-badge:hover {
  outline:1px solid var(--text);
  outline-offset:3px;
}

.store-badge--disabled {
  cursor:default;
}

.store-status {
  margin-top:7px !important;
  color:var(--muted);
  font-size:12px;
}

.release-note {
  margin-top:20px !important;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

/* Блоки «что умеет» и перелинковка внизу лендинга: сам подвал теперь общий
   компонент (lib/site-footer.js) со своими стилями. */
.landing-outro {
  margin-top:64px;
  padding-top:40px;
  border-top:2px solid var(--text);
}

.killer-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin:24px 0 40px;
}

/* Ссылки на страницы «ИИ-тренер по X»: перелинковка, а не навигация,
   поэтому мелкой сеткой и без карточек. */
.trainer-links-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px 20px;
  margin:20px 0 40px;
  font-weight:600;
}

.trainer-links-grid a {
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid var(--line);
  padding:6px 0;
}

.trainer-links-grid a:hover,
.trainer-links-grid a:focus-visible {
  color:var(--accent);
  border-bottom-color:var(--accent);
}

.killer-card {
  min-width:0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--card);
}

.killer-card .icon {
  margin-bottom:18px;
  color:var(--accent-text);
}

.killer-card h3 {
  font-size:16px;
  line-height:1.3;
  letter-spacing:-.01em;
}

.killer-card p {
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
}

.footer-bottom {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-block:24px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

.footer-links {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:4px 20px;
}

.footer-links a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--muted);
}

.footer-brand p {
  margin-top:6px;
}

/* Подвал: реквизиты и телефон из текущей страницы. */
.footer-legal {
  display:grid;
  gap:14px;
  min-width:0;
}

.footer-company {
  display:grid;
  gap:6px;
  line-height:1.5;
}

.footer-company strong {
  color:var(--text);
  font-weight:800;
}

.footer-contact-row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.phone-hidden {
  opacity:.5;
  filter:blur(2px);
  user-select:none;
}

.phone-visible {
  opacity:1;
  filter:none;
  user-select:text;
}

.reveal-phone {
  padding:0;
  color:var(--accent-text);
  background:transparent;
  border:0;
  font:inherit;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

.footer-disclaimer {
  max-width:52ch;
  color:var(--muted);
  line-height:1.5;
}

@media (max-width:1000px) {
  .hero-stage {
    grid-template-columns:minmax(0,1fr) minmax(290px,330px);
    gap:24px;
    padding:24px;
  }

  .hero-features {
    grid-template-columns:1fr;
    gap:12px;
  }

  .auth-panel {
    padding:16px 18px;
  }

  .feature-list {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px 0;
  }

  .feature-item:nth-child(4) {
    padding-left:0;
    border-left:0;
  }

  .case-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .application {
    gap:28px;
    padding:24px;
  }

  .killer-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:800px) {
  .landing-container {
    width:calc(100% - 40px);
  }

  .topbar {
    gap:16px;
  }

  .topbar-nav {
    gap:16px;
  }

  .hero {
    padding-top:28px;
    gap:24px;
  }

  /* С 800 px сцена складывается в одну колонку: заголовок сверху, форма под
     ним, обе поверх фото. Двухколоночная сетка тут сжимала заголовок в
     вертикальную ленту, а форму выносила за кадр. */
  .hero-stage {
    grid-template-columns:minmax(0,1fr);
    align-items:start;
    gap:20px;
    padding:24px 20px;
  }

  .hero-photo {
    width:100%;
    min-height:0;
  }

  /* В одну колонку текст занимает весь кадр, включая светлое небо, поэтому
     затемнение здесь плотнее, чем на широком экране. */
  .hero-photo::after {
    background:linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.35) 100%);
  }

  .auth-panel {
    align-self:stretch;
  }

  .hero-lead {
    font-size:15px;
  }

  .section {
    padding-block:48px;
  }

  .section-heading {
    display:block;
  }

  .section-heading > p {
    margin-top:14px;
  }

  .application {
    grid-template-columns:1fr;
  }

  .footer-bottom {
    flex-direction:column;
    gap:12px;
  }

  .footer-links {
    justify-content:flex-start;
  }

  .footer-disclaimer {
    max-width:none;
  }
}

@media (max-width:600px) {
  .landing-container {
    width:calc(100% - 32px);
  }

  .topbar {
    grid-template-columns:160px 1fr;
    min-height:96px;
    gap:4px 12px;
    padding-block:12px;
  }

  .brand,
  .brand img {
    height:40px;
  }

  .brand {
    grid-column:1;
    grid-row:1;
  }

  .topbar > .button {
    grid-column:2;
    grid-row:1;
    justify-self:end;
    min-height:44px;
    padding:10px 16px;
  }

  .topbar-nav {
    grid-column:1 / -1;
    grid-row:2;
    justify-content:space-between;
    gap:12px;
  }

  .topbar-nav > a {
    display:flex;
    align-items:center;
    min-height:44px;
  }

  .hero {
    gap:20px;
    padding-block:20px 32px;
  }

  .hero-stage {
    gap:16px;
    padding:20px 16px;
  }

  .hero-apps {
    gap:8px;
    margin-top:18px;
  }

  .hero-app {
    padding:6px 12px 6px 10px;
    font-size:15px;
  }

  .hero-lead {
    font-size:16px;
  }

  .hero-features {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px 12px;
  }

  .hero-feature {
    gap:8px;
    font-size:13px;
  }

  .auth-panel {
    padding:16px;
  }

  .feature-list {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 0;
  }

  .feature-item,
  .feature-item:nth-child(4) {
    padding:0 12px;
    border-left:1px solid var(--line);
  }

  .feature-item:nth-child(odd) {
    padding-left:0;
    border-left:0;
  }

  .feature-item:last-child {
    grid-column:1 / -1;
  }

  .feature-item .icon {
    width:20px;
    height:20px;
  }

  .section {
    padding-block:40px;
  }

  .section-heading {
    margin-bottom:24px;
  }

  .case-grid {
    grid-template-columns:1fr;
    gap:12px;
  }

  .case-card {
    padding:18px;
  }

  .application {
    padding:20px;
    gap:24px;
  }

  .store-list {
    gap:18px;
  }

  .killer-grid {
    grid-template-columns:1fr;
    gap:10px;
    margin-bottom:28px;
  }

  .killer-card {
    display:grid;
    grid-template-columns:24px minmax(0,1fr);
    gap:4px 14px;
  }

  .killer-card .icon {
    grid-column:1;
    grid-row:1 / 3;
    margin:0;
  }

  .killer-card h3,
  .killer-card p {
    grid-column:2;
  }

  .killer-card p {
    margin:0;
  }

  .landing-outro {
    margin-top:40px;
    padding-top:32px;
  }

  .footer-links {
    display:grid;
    gap:0;
  }

  .auth-row {
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
}

@media (forced-colors:active) {
  .landing :where(.button,.auth-panel,.case-card,.killer-card,.application,.social,.legal-consent) {
    border:1px solid CanvasText;
  }

  .locale-switch a[aria-current="true"],
  .auth-tabs [aria-selected="true"] {
    border-bottom-color:Highlight;
  }

  .store-badge svg {
    forced-color-adjust:none;
  }
}
