/**
 * ============================================================
 * MASTEROK — САЙТ: ДИЗАЙН-СИСТЕМА (2026, полная переделка)
 * ============================================================
 * Мобильный первый: базовые стили — для телефона, @media (min-width)
 * достраивают десктоп. Две темы: тёмная по умолчанию, светлая — по
 * переключателю в шапке (html[data-theme="light"]).
 * Живость сайта — CSS-анимации, а без JavaScript страница обязана
 * читаться: всё прячется только под html.js.
 *
 * Данные макетов экранов приложения (имена, рейтинги, цены услуг) —
 * вымышленные, для иллюстрации; разметка экранов — layout/app_screens.php.
 */

/* ============================================================
   1. ТОКЕНЫ
   ============================================================ */
:root {
  color-scheme: dark;

  /* Палитра: синий бренда приложения (#2196F3), тёплый акцент. */
  --bg: #0a1120;
  --bg-2: #0d1526;
  --surface: #121c31;
  --surface-2: #17233c;
  --line: #22304e;
  --line-2: #2c3c60;
  --text: #e9effc;
  --muted: #97a7c9;
  --brand: #6aa6ff;
  --brand-deep: #3f83f7;
  --brand-soft: #16264a;
  --aqua: #3ed3ee;
  --accent: #ffb054;
  --accent-soft: #33230e;
  --ok: #3ddc97;
  --danger: #e5484d;
  --gold: #ffc95c;

  --grad: linear-gradient(120deg, #3f83f7 0%, #22c3de 100%);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 2px 10px -2px rgb(0 0 0 / .5);
  --shadow-md: 0 2px 6px -2px rgb(0 0 0 / .5), 0 18px 44px -18px rgb(0 0 0 / .65);
  --shadow-lg: 0 4px 12px -4px rgb(0 0 0 / .55), 0 36px 80px -28px rgb(0 0 0 / .8);
  --glow: 0 12px 44px -12px rgb(63 131 247 / .5);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --w-container: 1120px;
  --head-h: 64px;

  /* Размеры текста: fluent-шкала, на телефоне компактнее. */
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.135rem;
  --fs-h3: clamp(1.15rem, 1rem + .8vw, 1.45rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 2vw, 2.3rem);
  --fs-h1: clamp(2.05rem, 1.35rem + 3.4vw, 3.4rem);

  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* Светлая палитра. Включается только переключателем в шапке: атрибут
   data-theme="light" ставит site.js и запоминает выбор в localStorage.
   Без JavaScript сайт остаётся тёмным — это тема по умолчанию. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --line: #e3e9f4;
  --line-2: #d4dcec;
  --text: #101a30;
  --muted: #5b6b8c;
  --brand: #1f7cf0;
  --brand-deep: #0f5fd6;
  --brand-soft: #e8f1fe;
  --aqua: #00b8d9;
  --accent: #ff8a00;
  --accent-soft: #fff2e0;
  --ok: #17a86b;
  --gold: #f5a623;

  --grad: linear-gradient(120deg, #1f7cf0 0%, #00b8d9 100%);

  --shadow-sm: 0 1px 2px rgb(16 26 48 / .05), 0 2px 8px -2px rgb(16 26 48 / .08);
  --shadow-md: 0 2px 6px -2px rgb(16 26 48 / .08), 0 16px 40px -16px rgb(16 26 48 / .22);
  --shadow-lg: 0 4px 12px -4px rgb(16 26 48 / .1), 0 32px 72px -24px rgb(16 26 48 / .3);
  --glow: 0 12px 40px -12px rgb(31 124 240 / .55);
}

/* ============================================================
   2. БАЗА
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0 0 1em; padding: 0; list-style: none; }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .92em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .38em;
  overflow-wrap: anywhere;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.container { width: min(var(--w-container), calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -56px; z-index: 120;
  background: var(--surface); color: var(--text);
  padding: 10px 18px; border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ============================================================
   3. КНОПКИ И ИКОНКИ
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid transparent; cursor: pointer;
  border-radius: var(--pill);
  padding: 11px 22px;
  font: inherit; font-weight: 650; font-size: var(--fs-sm);
  color: var(--text); background: var(--surface);
  text-decoration: none; text-align: left;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-title { display: block; line-height: 1.25; }
.btn-sub { display: block; font-size: var(--fs-xs); font-weight: 500; opacity: .82; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 16px 48px -12px rgb(31 124 240 / .65); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 14px 28px; font-size: var(--fs-md); }
.btn-block { display: flex; width: 100%; justify-content: center; text-align: center; }
.btn-disabled { opacity: .6; pointer-events: none; }
.btn .ic { flex: none; }

/* Выбор сборки одной капсулой: «Обычная | Лёгкая». Две отдельные кнопки
   занимали два ряда и отодвигали содержимое; здесь это один компактный
   переключатель, а размеры обеих сборок остаются на виду. */
.dl-switch {
  display: flex; width: 100%; align-items: stretch; gap: 4px;
  padding: 4px; border: 1px solid var(--line-2); border-radius: var(--pill);
  background: var(--surface); box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.dl-switch-ic {
  width: 18px; height: 18px; flex: none;
  align-self: center; margin: 0 4px 0 8px; color: var(--muted);
}
.dl-opt {
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  flex: 1 1 0; min-width: 0; padding: 6px 12px; border-radius: var(--pill);
  color: var(--text); text-decoration: none; line-height: 1.15;
  transition: background .18s, transform .18s var(--ease);
}
.dl-opt:hover { text-decoration: none; background: var(--surface-2); }
.dl-opt:active { transform: scale(.99); }
.dl-opt-name { font-size: var(--fs-sm); font-weight: 680; white-space: nowrap; }
.dl-opt-size { font-size: var(--fs-xs); font-weight: 500; opacity: .72; white-space: nowrap; }
.dl-opt-main { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.dl-opt-main:hover { background: var(--grad); color: #fff; transform: translateY(-1px); }
.dl-opt-main .dl-opt-size { opacity: .9; }
@media (min-width: 640px) {
  .dl-switch { display: inline-flex; width: auto; }
  .dl-opt { flex: 0 0 auto; padding: 6px 16px; }
}

/* Инлайновые иконки-глифы. */
.ic {
  width: 1.2em; height: 1.2em; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   4. ШАПКА
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-head { background: var(--bg); }
}
.site-head[data-scrolled="1"] { box-shadow: var(--shadow-sm); }

.head-in {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--head-h);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em;
  color: var(--text); margin-right: auto;
}
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
/* Значок приложения — синий квадрат с белой «М»: он виден и на светлой
   шапке, и на тёмной, поэтому один и тот же файл в обеих темах. Белая
   эмблема без подложки годилась только для светлой шапки, а в тёмной
   теме теряла синий фон — от неё отказались. */
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Навигация. Без JavaScript на телефоне это прокручиваемая полоса
   ссылок под шапкой; с JavaScript полоса прячется и работает меню. */
.head-nav {
  display: flex; align-items: center; gap: 4px;
  font-size: var(--fs-sm); font-weight: 570;
}
.head-nav a {
  padding: 8px 13px; border-radius: var(--pill);
  color: var(--muted); white-space: nowrap;
}
.head-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.head-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 680; }

.head-actions { display: flex; align-items: center; gap: 8px; }
.head-cta { display: none; }
/* В шапке размеры не показываем: места мало, а обе сборки и их размеры
   перечислены на страницах скачивания. Здесь достаточно самого выбора. */
.head-cta.dl-switch .dl-opt { padding-block: 8px; }
.head-cta.dl-switch .dl-opt-size { display: none; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); cursor: pointer;
  transition: background .2s, transform .18s var(--ease);
}
.theme-btn:hover { transform: translateY(-1px); }
.theme-btn .ic { width: 19px; height: 19px; }
.theme-btn .ic-moon { display: none; }
.theme-btn .ic-sun { display: block; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }

/* Кнопка меню — только с JavaScript и только на телефоне. */
.menu-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle .ic { width: 20px; height: 20px; }
.menu-toggle .ic-close { display: none; }
html.js .menu-toggle { display: inline-flex; }
body[data-menu="1"] .menu-toggle .ic-burger { display: none; }
body[data-menu="1"] .menu-toggle .ic-close { display: block; }

/* Полоса прогресса чтения под шапкой. Ведёт её скрипт (переменная
   --scroll-p); где браузер умеет сам — анимация от прокрутки. */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad);
  transform: scaleX(var(--scroll-p, 0)); transform-origin: 0 50%;
}

/* Мобильная панель меню: без JavaScript её нет, вместо неё — полоса
   ссылок (см. выше). Появляется с лёгким сдвигом. */
.mnav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 10px 20px 18px;
}
html.js body[data-menu="1"] .mnav { display: block; animation: mnav-in .22s var(--ease); }
@keyframes mnav-in { from { opacity: 0; translate: 0 -8px; } }
.mnav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 6px; font-weight: 620; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mnav a:last-of-type { border-bottom: 0; }
.mnav .btn { margin-top: 12px; width: 100%; justify-content: center; }
.mnav .btn-lite { margin-top: 8px; }
.mnav .dl-switch { margin-top: 12px; }
.mnav .dl-opt {
  padding: 6px 12px; border-bottom: 0; gap: 1px;
  justify-content: center; text-align: center;
}
.mnav a[aria-current="page"] { color: var(--brand); }

/* ============================================================
   5. СЕКЦИИ
   ============================================================ */
.section { padding: 64px 0; }
.section-tint {
  background:
    radial-gradient(60% 90% at 85% 0%, rgb(31 124 240 / .07), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgb(0 184 217 / .07), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 720; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: var(--pill);
  padding: 6px 14px; margin-bottom: 14px;
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead { color: var(--muted); font-size: var(--fs-lg); margin: 0; }

/* ============================================================
   6. ГЕРОЙ
   ============================================================ */
.hero { position: relative; padding: 44px 0 56px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 150%;
  background:
    radial-gradient(38% 42% at 78% 18%, rgb(31 124 240 / .16), transparent 70%),
    radial-gradient(30% 36% at 12% 8%, rgb(0 184 217 / .13), transparent 70%),
    radial-gradient(26% 30% at 88% 70%, rgb(255 138 0 / .1), transparent 70%);
  filter: saturate(1.1);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr;
}
.hero h1 { font-size: var(--fs-h1); font-weight: 820; letter-spacing: -.03em; margin-bottom: .45em; }
.hero .lead { font-size: var(--fs-lg); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  color: var(--muted); font-size: var(--fs-sm);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ic { width: 16px; height: 16px; color: var(--ok); }
.hero-stats {
  display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap;
}
.hero-stats li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  padding: 10px 16px; min-width: 118px;
}
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; display: block; }

/* Плашки-«плавающие карточки» у телефона. */
.hero-art { position: relative; display: flex; justify-content: center; }
.chip-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 9px 13px; font-size: var(--fs-xs); font-weight: 620;
  animation: floaty 5.2s ease-in-out infinite;
}
.chip-float small { display: block; font-weight: 500; color: var(--muted); }
.chip-float .ic { width: 17px; height: 17px; }
.chip-a { top: 6%; left: max(-8px, 2%); animation-delay: .4s; }
.chip-b { bottom: 12%; right: max(-8px, 0%); animation-delay: 1.6s; }
.chip-a .ic { color: var(--ok); }
.chip-b .ic { color: var(--gold); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* ============================================================
   7. КАРТОЧКИ, BENTO, ШАГИ
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

/* Плитки: на телефоне — в один столбец. В два столбца подписи не влезают
   (плитка ~160 px), заголовки рвутся, и колонка «широкой» плитки растягивает
   сетку. Колонки добавляются с планшета (см. раздел 15). */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
.tile {
  position: relative; overflow: clip;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile h3 { font-size: var(--fs-h3); margin: 0; }
.tile p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.tile-ic {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: 6px;
}
.tile-ic .ic { width: 22px; height: 22px; }
.tile-warm .tile-ic { background: var(--accent-soft); color: var(--accent); }
.tile-ok .tile-ic { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
/* «Широкая» плитка занимает два столбца — но только там, где их два и больше
   (на телефоне столбец один: span 2 создал бы неявный второй). */
.tile-wide { grid-column: auto; }

/* Мини-визуалы внутри плиток (полоски дней, пузыри, кольцо). */
.tile-visual { margin-top: auto; padding-top: 12px; }
.mini-week { display: flex; gap: 5px; }
.mini-week i {
  flex: 1; height: 34px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  position: relative;
}
.mini-week i::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px;
  height: var(--h, 50%); border-radius: 3px; background: var(--brand);
  opacity: .75;
}
.mini-week i.hot::after { background: var(--accent); }
.mini-week i.off::after { opacity: .18; }

/* Шаги «как это работает». */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 20px 20px 20px 66px;
}
.step-num {
  position: absolute; left: 18px; top: 20px;
  width: 34px; height: 34px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.02rem; color: #fff;
  background: var(--grad); box-shadow: var(--glow);
}
.step h3 { font-size: var(--fs-h3); margin: 0 0 4px; }
.step p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
/* Картинки шага: макеты окон в рамке телефона (site/layout/app_screens.php).
   Стоят под текстом, по центру карточки — отступ слева компенсирован, иначе
   телефон уезжал бы вправо на половину места под номер шага. */
.step-shots {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center;
  margin: 18px -20px 0 -66px;
}
.step-shots .phone { width: clamp(176px, 48vw, 202px); }

/* ============================================================
   8. БЕГУЩАЯ СТРОКА УСЛУГ
   ============================================================ */
/* Лента листается пальцем, а мышью — перетаскиванием: на время жеста
   site.js гасит анимацию, а отпустив ленту, запускает её с того же места.
   touch-action: pan-y — горизонтальный жест наш, вертикальный отдаём
   странице (иначе на телефоне не прокрутить экран через ленту). */
.strip {
  overflow: clip;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 13px 0;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track {
  display: flex; gap: 10px; width: max-content;
  animation: marquee 30s linear infinite;
  user-select: none; -webkit-user-select: none;
}
.strip:hover .strip-track { animation-play-state: paused; }
.strip.is-dragging { cursor: grabbing; }
.strip-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 620; white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: 7px 15px; background: var(--surface-2);
}
.strip-item .ic { width: 15px; height: 15px; color: var(--brand); }
@keyframes marquee { to { translate: -50% 0; } }

/* ============================================================
   9. КАРУСЕЛЬ ЭКРАНОВ
   ============================================================ */
.screens-track {
  display: flex; gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  scrollbar-width: none;
}
.screens-track::-webkit-scrollbar { display: none; }
.screens-slide {
  flex: 0 0 auto; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 0;
}
.screens-slide figcaption {
  font-size: var(--fs-sm); color: var(--muted);
  text-align: center; max-width: 250px; line-height: 1.45;
}
.screens-slide figcaption b { color: var(--text); display: block; font-size: var(--fs-md); }
.screens-nav { display: none; gap: 10px; justify-content: center; margin-top: 6px; }
.screens-nav button {
  width: 42px; height: 42px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease);
}
.screens-nav button:hover { transform: translateY(-1px); }

/* ============================================================
   10. ТЕЛЕФОН-МАКЕТ И ЭКРАНЫ ПРИЛОЖЕНИЯ
   ============================================================
   Макет — не картинка, а HTML: чёткий на любом экране и в обеих темах.
   Внутренние цвета экрана зафиксированы (как на настоящем скриншоте):
   светлая тема приложения с его брендовым синим #2196F3.
   Данные внутри — вымышленные. */
.phone {
  --s-bg: #f3f5f9;
  --s-card: #ffffff;
  --s-text: #17223b;
  --s-muted: #8391ad;
  --s-line: #e7ebf3;
  --s-chip: #eef2f8;
  --s-brand: #2196f3;
  --s-brand-2: #1565c0;
  --s-accent: #ff9800;
  --s-ok: #34a853;
  --s-gold: #f7b500;

  position: relative;
  width: clamp(216px, 62vw, 268px);
  aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2a3752, #0c1526 55%);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgb(255 255 255 / .06);
  flex: none;
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; translate: -50% 0;
  width: 27%; height: 15px; border-radius: var(--pill);
  background: #0c1526; z-index: 5;
}
.phone::after {
  content: ""; position: absolute; inset: 3px; border-radius: 35px;
  border: 1px solid rgb(255 255 255 / .1); pointer-events: none;
}
.scr {
  position: absolute; inset: 9px;
  border-radius: 30px; overflow: hidden;
  background: var(--s-bg); color: var(--s-text);
  display: flex; flex-direction: column;
  font-size: 10.5px; line-height: 1.35;
  user-select: none;
}
.scr * { min-width: 0; }

.s-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 4px; font-size: 8.5px; font-weight: 700;
}
.s-appbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 8px; font-size: 12.5px; font-weight: 800;
}
.s-appbar .ic { width: 14px; height: 14px; color: var(--s-muted); }
.s-appbar .s-spacer { margin-left: auto; }
.s-body { flex: 1; padding: 2px 11px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.s-nav {
  border-top: 1px solid var(--s-line);
  background: var(--s-card);
  display: flex; padding: 5px 4px 8px;
}
.s-nav span {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 7.6px; font-weight: 650; color: var(--s-muted);
}
.s-nav span .ic { width: 15px; height: 15px; }
.s-nav span.on { color: var(--s-brand); }

.s-card {
  background: var(--s-card); border-radius: 13px;
  box-shadow: 0 1px 3px rgb(23 34 59 / .07);
  padding: 9px;
}
.s-row { display: flex; align-items: center; gap: 8px; }
.s-grow { flex: 1; }
.s-name { font-weight: 750; font-size: 11px; }
.s-sub { color: var(--s-muted); font-size: 9px; }
.s-price { font-weight: 750; font-size: 10.5px; white-space: nowrap; }
.s-chip {
  display: inline-flex; align-items: center;
  background: var(--s-chip); color: var(--s-muted);
  border-radius: var(--pill); padding: 3.5px 9px;
  font-size: 8.8px; font-weight: 650; white-space: nowrap;
}
.s-chip.on { background: var(--s-brand); color: #fff; }
.s-chip-row { display: flex; gap: 5px; overflow: hidden; }
.s-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--s-brand); color: #fff;
  border-radius: 11px; padding: 8px 10px;
  font-size: 10.5px; font-weight: 750;
  box-shadow: 0 4px 10px -3px rgb(33 150 243 / .55);
}
.s-btn.ghost { background: var(--s-chip); color: var(--s-brand-2); box-shadow: none; }
.s-sec-title { font-size: 11.5px; font-weight: 800; margin-top: 2px; }
/* Имя и подпись в карточке идут друг под другом (в приложении это Column):
   строчными элементами они слипались бы в одну строку. */
.s-grow > .s-name, .s-grow > .s-sub { display: block; }

/* Аватары: градиентный круг + инициалы (у каждого пользователя свой цвет). */
.ava {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 750;
  width: 30px; height: 30px; font-size: 10px;
  background: linear-gradient(135deg, #6a8dff, #9a5cf5);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35);
}
.ava-sm { width: 24px; height: 24px; font-size: 8.5px; }
.ava-lg { width: 44px; height: 44px; font-size: 14px; }
.ava-xl { width: 62px; height: 62px; font-size: 19px; }
.ava-2 { background: linear-gradient(135deg, #ff9966, #ff5e62); }
.ava-3 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.ava-4 { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.ava-5 { background: linear-gradient(135deg, #396afc, #2948ff); }
.ava-6 { background: linear-gradient(135deg, #ec6ead, #3494e6); }
.ava-7 { background: linear-gradient(135deg, #43cea2, #185a9d); }
.ava-8 { background: linear-gradient(135deg, #f953c6, #b91d73); }

/* Слоты времени. */
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.slot {
  text-align: center; padding: 6px 0; border-radius: 9px;
  border: 1px solid var(--s-line); background: var(--s-card);
  font-size: 9.6px; font-weight: 700;
}
.slot.busy { background: #e5484d; border-color: #e5484d; color: #fff; }
.slot.sel { background: var(--s-brand); border-color: var(--s-brand); color: #fff; box-shadow: 0 4px 10px -3px rgb(33 150 243 / .55); }

/* Чат. */
.bub { max-width: 80%; padding: 7px 10px; border-radius: 13px; font-size: 9.8px; }
.bub-them { align-self: flex-start; background: var(--s-card); box-shadow: 0 1px 3px rgb(23 34 59 / .07); border-bottom-left-radius: 5px; }
.bub-me { align-self: flex-end; background: var(--s-brand); color: #fff; border-bottom-right-radius: 5px; }
.bub small { display: block; font-size: 7.4px; opacity: .65; margin-top: 3px; }
.s-typing { display: inline-flex; gap: 3px; align-items: center; }
.s-typing i { width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--s-muted); animation: blink-typing 1.2s infinite; }
.s-typing i:nth-child(2) { animation-delay: .18s; }
.s-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink-typing { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }

/* Лента дня и статистика. */
.s-time { width: 34px; flex: none; font-size: 8.6px; font-weight: 750; color: var(--s-muted); text-align: right; }
.s-line-v { width: 1.5px; flex: none; align-self: stretch; background: var(--s-line); border-radius: 2px; }
.s-break { color: var(--s-muted); font-size: 9px; display: flex; align-items: center; gap: 6px; }
.s-bars { display: flex; align-items: flex-end; gap: 6px; height: 58px; }
.s-bars i {
  flex: 1; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--s-brand), #7db8f7);
  opacity: .9;
}
.s-bars i.hot { background: linear-gradient(180deg, var(--s-accent), #ffc37a); }
.s-days { display: flex; gap: 6px; font-size: 7.6px; color: var(--s-muted); font-weight: 650; }
.s-days span { flex: 1; text-align: center; }

/* Сетка услуг на главном экране клиента: три плитки в ряд (как в приложении). */
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s-tile {
  background: var(--s-card); border-radius: 12px; padding: 8px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center;
  box-shadow: 0 1px 3px rgb(23 34 59 / .07);
}
.s-tile .ic { width: 20px; height: 20px; color: var(--s-brand); }
.s-tile b { font-size: 8.6px; font-weight: 650; line-height: 1.2; }
.s-tile i { font-style: normal; font-size: 7.8px; font-weight: 600; color: var(--s-brand-2); }

/* Строка места: «📍 Курашим» и число мастеров рядом. */
.s-place {
  display: flex; align-items: center; gap: 6px;
  background: #e8f1fe; border-radius: 10px; padding: 6px 9px;
}
.s-place .ic { width: 13px; height: 13px; color: var(--s-brand); }
.s-place b { font-size: 10px; font-weight: 650; }
.s-badge {
  margin-left: auto; font-size: 8.2px; font-weight: 700;
  color: var(--s-brand-2); background: #fff; border-radius: var(--pill); padding: 2px 7px;
}

/* Галочка «услуги мастеров рядом» — как CheckboxListTile в приложении. */
.s-check { display: flex; align-items: flex-start; gap: 7px; }
.s-check .s-box {
  width: 11px; height: 11px; border-radius: 3px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--s-muted);
}
.s-check b { display: block; font-size: 9.2px; font-weight: 650; }
.s-check span { display: block; font-size: 8px; color: var(--s-muted); }

/* Заголовок шага записи: «Шаг 2 из 3 · Дата и время» и полоса прогресса. */
.s-steps { display: flex; align-items: center; gap: 7px; }
.s-step-badge {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: var(--s-brand); color: #fff;
  font-size: 8.6px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.s-steps b { font-size: 10px; font-weight: 700; }
.s-progress { height: 4px; border-radius: 3px; background: var(--s-line); overflow: hidden; }
.s-progress i { display: block; height: 100%; background: var(--s-brand); }

/* Полоса вкладок кабинета мастера: «Сегодня / Предстоящие / История». */
.s-tabs { display: flex; gap: 3px; background: var(--s-line); border-radius: 9px; padding: 3px; }
.s-tabs span {
  flex: 1; text-align: center; padding: 4px 2px; border-radius: 7px;
  font-size: 8.6px; font-weight: 650; color: var(--s-muted);
}
.s-tabs span.on { background: var(--s-card); color: var(--s-brand-2); }

/* Быстрые действия мастера: «Мои услуги», «Перерывы». */
.s-quick { display: flex; gap: 6px; }
.s-quick span {
  flex: 1; display: flex; align-items: center; gap: 5px;
  background: var(--s-card); border-radius: 11px; padding: 8px 7px;
  font-size: 8.8px; font-weight: 650;
  box-shadow: 0 1px 3px rgb(23 34 59 / .07);
}
.s-quick .ic { width: 13px; height: 13px; color: var(--s-brand); }

/* Плашки статуса записи — цвета как у статусов в приложении. */
.s-chip.warn { background: #fff2df; color: #a86a00; }
.s-chip.ok { background: #e3f6ec; color: #12805a; }
.s-chip.done { background: #e6efff; color: #2b5fbf; }
.s-chip.bad { background: #fdeaea; color: #b3282d; }

/* Плитка цифры (KPI) и итог записи внизу экрана. */
.s-kpi { display: flex; gap: 6px; }
.s-kpi span {
  flex: 1; background: var(--s-card); border-radius: 11px; padding: 7px 8px;
  box-shadow: 0 1px 3px rgb(23 34 59 / .07);
}
.s-kpi b { display: block; font-size: 10.5px; font-weight: 800; }
.s-kpi i { font-style: normal; font-size: 7.6px; color: var(--s-muted); }
.s-sum {
  margin-top: auto; border-top: 1px solid var(--s-line); padding-top: 7px;
  display: flex; align-items: center; gap: 8px;
}
.s-sum b { display: block; font-size: 10.5px; color: var(--s-brand-2); }
.s-btn.sm { padding: 6px 11px; font-size: 9px; }

/* Системные окна телефона на странице «Как установить»: диалог поверх
   экрана, переключатель настроек, адресная строка браузера, уведомление
   и значок приложения. Цвета — те же, что у экранов приложения. */
.s-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgb(23 34 59 / .42);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.s-dialog {
  width: 100%; padding: 12px;
  background: var(--s-card); border-radius: 16px;
  box-shadow: 0 12px 26px -10px rgb(23 34 59 / .5);
}
.s-dialog-t { display: block; font-size: 11px; font-weight: 800; }
.s-dialog-p { display: block; margin-top: 5px; font-size: 9px; line-height: 1.45; color: var(--s-muted); }
.s-dialog-actions { display: flex; justify-content: flex-end; gap: 3px; margin-top: 10px; }
.s-dialog-btn { padding: 5px 8px; border-radius: 8px; font-size: 9px; font-weight: 750; color: var(--s-brand-2); }
.s-dialog-btn.primary { background: var(--s-brand); color: #fff; }
.s-url {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--s-chip); border-radius: var(--pill);
  padding: 4px 10px; font-size: 8.6px; font-weight: 650; color: var(--s-muted);
}
.s-notif {
  display: flex; align-items: center; gap: 8px;
  background: var(--s-card); border-radius: 13px; padding: 8px 9px;
  box-shadow: 0 1px 3px rgb(23 34 59 / .07);
}
.s-appicon {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #2196f3, #1565c0);
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 10px -4px rgb(33 150 243 / .6);
}
.s-appicon.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.s-switch {
  position: relative; flex: none;
  width: 30px; height: 17px; border-radius: var(--pill);
  background: var(--s-brand);
}
.s-switch::after {
  content: ""; position: absolute; top: 2px; right: 2px;
  width: 13px; height: 13px; border-radius: 50%; background: #fff;
}
.s-switch.off { background: #cfd6e4; }
.s-switch.off::after { right: auto; left: 2px; }

/* Лента дат записи: подпись дня и число, выбранный день залит синим. */
.s-dates { display: flex; gap: 5px; }
.s-date {
  flex: 1; text-align: center; padding: 4px 2px; border-radius: 10px;
  background: var(--s-card); box-shadow: 0 1px 3px rgb(23 34 59 / .07);
  font-size: 7.8px; color: var(--s-muted);
}
.s-date b { display: block; font-size: 10.5px; font-weight: 750; color: var(--s-text); }
.s-date.on { background: var(--s-brand); box-shadow: 0 4px 10px -3px rgb(33 150 243 / .55); color: #fff; }
.s-date.on b { color: #fff; }
.s-legend { display: flex; align-items: center; gap: 5px; }
.s-legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }

/* Смена экранов в шапке героя — стек экранов, морфинг по кругу на CSS.
   Первый экран в разметке остаётся в потоке (он же задаёт высоту), но в круге
   он участник наравне с остальными: слот у каждого свой — четыре секунды.
   Раньше первый экран был виден всегда (animation: none), а окна соседей цикл
   не закрывали — в промежутках проступал первый, и переход шёл «1 → 2 → 1 → 3».
   Слотов в круге четыре (экранов меньше — phone_hero_stack повторяет их). */
.phone-screens { position: relative; }
.phone-screens .phone { position: absolute; inset: 0 0 auto; opacity: 0; animation: hero-screen 16s infinite; }
.phone-screens .phone:first-child { position: relative; }
@keyframes hero-screen {
  0% { opacity: 0; translate: 0 10px; scale: .985; }
  3%, 28% { opacity: 1; translate: 0 0; scale: 1; }
  34%, 100% { opacity: 0; translate: 0 10px; scale: .985; }
}
.phone-screens .phone:nth-child(2) { animation-delay: 4s; }
.phone-screens .phone:nth-child(3) { animation-delay: 8s; }
.phone-screens .phone:nth-child(4) { animation-delay: 12s; }
.phone-screens .phone:nth-child(n + 5) { display: none; }

/* ============================================================
   11. ОТЗЫВЫ, FAQ, СКАЧИВАНИЕ
   ============================================================ */
.reviews {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
.review { display: flex; flex-direction: column; gap: 10px; }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .who b { display: block; font-size: var(--fs-sm); }
.review .who span { font-size: var(--fs-xs); color: var(--muted); }
.review p { margin: 0; font-size: var(--fs-sm); color: var(--text); }
.review .stars { color: var(--gold); font-size: var(--fs-xs); letter-spacing: 2px; }

.faq { display: grid; gap: 10px; max-width: 760px; margin-inline: auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: clip;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 680; font-size: var(--fs-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  rotate: 45deg; transition: rotate .2s var(--ease);
}
.faq-item[open] summary::after { rotate: 225deg; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); font-size: var(--fs-sm); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Список изменений выпуска («Что нового»): пункты с булитом и текстом мельче
   основного — в выпуске их бывает два десятка, а крупным шрифтом такой список
   читают «по диагонали». Разметку собирает site/releases.php
   (site_changelog_list), остаток прячется в <details class="release-more">. */
.ticks { list-style: none; display: grid; gap: 6px; margin: 8px 0 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 15px;
  font-size: var(--fs-sm); line-height: 1.5;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.release-more { margin-top: 10px; }
.release-more > summary {
  list-style: none; cursor: pointer; width: fit-content;
  font-size: var(--fs-sm); font-weight: 650; color: var(--brand);
}
.release-more > summary::-webkit-details-marker { display: none; }
.release-more > summary::after { content: " ↓"; }
.release-more[open] > summary::after { content: " ↑"; }

/* Карточка скачивания. */
.dl-card {
  position: relative; overflow: clip;
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(31 124 240 / .16), transparent 55%),
    radial-gradient(50% 90% at 0% 100%, rgb(0 184 217 / .13), transparent 55%),
    var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 4vw, 40px);
  display: grid; gap: 26px; align-items: center;
}
.dl-card h2 { font-size: var(--fs-h2); }
.dl-meta { display: grid; gap: 8px; margin: 18px 0; font-size: var(--fs-sm); }
.dl-meta > div { display: flex; gap: 10px; align-items: baseline; }
.dl-meta dt { color: var(--muted); flex: none; width: 118px; }
.dl-meta dd { margin: 0; font-weight: 620; overflow-wrap: anywhere; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 12px; }

/* ============================================================
   12. ЛИПКАЯ КНОПКА И «НАВЕРХ» (только с JavaScript)
   ============================================================ */
.cta-dock {
  visibility: hidden;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
html.js .cta-dock[data-shown="1"] { transform: translateY(0); visibility: visible; }
.cta-dock .btn { flex: 1; justify-content: center; text-align: center; }
/* Лёгкая сборка — соседняя кнопка, а не вторая главная: обычная остаётся
   широкой (flex: 1 выше), лёгкая занимает свой размер. Правило стоит после
   .cta-dock .btn — иначе оно проиграет ему по порядку. */
.cta-dock .btn-lite { flex: 0 0 auto; }
.cta-dock .dl-switch { flex: 1; }
.cta-dock .dl-opt { align-items: center; text-align: center; }
.cta-dock small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }

.to-top-fab {
  display: none;
  position: fixed; right: 18px; bottom: 84px; z-index: 89;
  width: 46px; height: 46px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); cursor: pointer; box-shadow: var(--shadow-md);
  align-items: center; justify-content: center;
}
html.js .to-top-fab[data-shown="1"] { display: inline-flex; }

/* ============================================================
   13. ПОДВАЛ И ТЕКСТОВЫЕ СТРАНИЦЫ
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 44px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: var(--fs-sm);
}
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.foot h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--text); }
.foot a:hover { color: var(--brand); }
.foot-about { max-width: 300px; color: var(--muted); }
.foot-about .logo { margin-bottom: 12px; }
.foot-bottom {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--muted); font-size: var(--fs-xs);
  justify-content: space-between;
}

/* Документы (политика, соглашение) и «О приложении». */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-h3); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.4em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: var(--fs-sm); }

.page-hero { padding: 44px 0 10px; }
.page-hero h1 { font-size: var(--fs-h1); }
.page-hero .lead { color: var(--muted); font-size: var(--fs-lg); max-width: 40em; }

/* ============================================================
   14. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ============================================================
   Блоки помечены data-reveal. Без JavaScript ничего не прячется:
   скрытие только под html.js. Если внешний скрипт не загрузился,
   встроенный в шапке таймер снимает класс .js (см. header.php). */
html.js [data-reveal] { opacity: 0; translate: 0 22px; }
html.js [data-reveal].is-visible {
  opacity: 1; translate: 0 0;
  transition: opacity .6s var(--ease), translate .6s var(--ease);
}
html.js [data-reveal][data-reveal-delay="1"].is-visible { transition-delay: .08s; }
html.js [data-reveal][data-reveal-delay="2"].is-visible { transition-delay: .16s; }
html.js [data-reveal][data-reveal-delay="3"].is-visible { transition-delay: .24s; }

/* ============================================================
   15. ПЛАНШЕТ И ДЕСКТОП
   ============================================================ */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .head-cta { display: inline-flex; }
  .dl-card { grid-template-columns: 1.2fr .8fr; }
  .section { padding: 88px 0; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 84px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 24px; }
  .screens-nav { display: flex; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .cta-dock { display: none; }
}

/* Шапка: на телефоне прячем полосу ссылок, показываем бургер.
   Кнопка «Наверх» тут тоже не нужна: внизу экрана уже висит кнопка
   скачивания, и две плавающие кнопки в одном углу читаются как дубль. */
@media (max-width: 959px) {
  html.js .head-nav { display: none; }
  html.js .to-top-fab[data-shown="1"] { display: none; }
}

/* ============================================================
   16. ДОСТУПНОСТЬ: МЕНЬШЕ ДВИЖЕНИЯ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1; translate: 0 0; }
  .strip-track { translate: 0; animation: none; }
  /* Без движения анимация стоит в конце цикла (opacity: 0) — первый экран
     оставляем видимым, иначе в шапке героя пусто. */
  .phone-screens .phone:first-child { animation: none; opacity: 1; }
}









