/* MH Scales — общий стилевой слой лендинга.
   Палитра и радиусы взяты из приложения (apps/mobile/lib/design/tokens.dart),
   чтобы страница и продукт выглядели одним изделием.
   Внешних ресурсов нет сознательно: ни шрифтов, ни CDN. */

:root {
  /* марка */
  --cobalt: #0A49C9;
  --cobalt-deep: #0B36A8;
  --cobalt-soft: #E7EFFF;
  --cobalt-pale: #F2F6FF;
  --marine-black: #111827;
  --sea-mist: #F1F5F9;
  --sea-wave: #159B79;
  --sea-foam: #A8F0D7;
  --aqua: #43CDB8;
  --aqua-soft: #E8F8F4;
  --coral: #FF675A;
  --coral-soft: #FFEDEA;
  --sand: #FEF3C7;

  /* поверхности и текст */
  --bg: #FFFFFF;
  --bg-app: #F8FAFD;
  --text: var(--marine-black);
  --text-2: #566173;
  --text-3: #5F6A7C;
  --border: #E3E8EF;
  --border-control: #7B8798;
  --divider: #EDF1F6;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .05);
  --shadow-md: 0 2px 6px rgba(17, 24, 39, .06), 0 22px 48px rgba(10, 73, 201, .10);
  --maxw: 1120px;
  --maxw-doc: 820px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-doc { max-width: var(--maxw-doc); margin: 0 auto; padding: 0 24px; }

/* ─────────────────────────── шапка ─────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--divider);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--cobalt), var(--cobalt-deep));
  color: #fff; flex: 0 0 auto;
}
.brand .mark svg { width: 19px; height: 19px; }
.site-nav { display: flex; align-items: center; gap: 26px; min-width: 0; }
.site-nav a { color: var(--text-2); font-weight: 600; font-size: 15px; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 860px) { .site-nav .hide-sm { display: none; } }
/* на узком экране шапка перестаёт помещаться: бренд и две ссылки шире 360 px */
@media (max-width: 480px) {
  .site-header .bar { padding: 0 16px; gap: 12px; }
  .site-nav { gap: 14px; }
}
@media (max-width: 430px) {
  .site-nav a { font-size: 14px; }
  .brand { font-size: 16px; }
}
@media (max-width: 360px) {
  /* 320 px (старый iPhone SE): бренд + две ссылки не помещаются.
     Прячем текст марки, значок остаётся — ссылки при этом никуда не деваются */
  .brand { font-size: 0; gap: 0; }
  .brand .mark { font-size: 18px; }
}

/* ─────────────────────────── кнопки ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px; font-weight: 650; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; text-align: center; line-height: 1.6;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 20px rgba(10, 73, 201, .24); }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-control); }
.btn-ghost:hover { background: var(--sea-mist); }
.btn-quiet { background: var(--sea-mist); color: var(--text); }
.btn[aria-disabled="true"] {
  background: var(--sea-mist); color: var(--text-3); cursor: default;
  box-shadow: none; border-color: var(--border-control);
}
.btn[aria-disabled="true"]:hover { transform: none; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.pill-soon { background: var(--sand); color: #8A5A0C; }
.pill-live { background: var(--aqua-soft); color: #0B7A63; }

/* ─────────────────────────── типографика секций ─────────────────────────── */

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-app); }

.kicker {
  font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 12px;
}
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.028em; font-weight: 780; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.14; letter-spacing: -.022em; font-weight: 760; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.012em; font-weight: 700; }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); line-height: 1.55; }
.sub { color: var(--text-2); margin-top: 14px; max-width: 62ch; }
.note { color: var(--text-3); font-size: 15px; }

/* ─────────────────────────── герой ─────────────────────────── */

.hero { padding: 72px 0 64px; background:
  radial-gradient(1100px 480px at 82% -8%, var(--cobalt-pale), transparent 62%),
  radial-gradient(760px 420px at 6% 4%, var(--aqua-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; font-size: clamp(32px, 4.4vw, 50px); }
.hero .accent { color: var(--cobalt); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; gap: 16px; } }
.stat b { display: block; font-size: 26px; font-weight: 760; letter-spacing: -.02em; }
.stat span { font-size: 14px; color: var(--text-3); }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 44px; }
}

/* рамка «планшет» вокруг скриншота */
.device {
  border-radius: 26px; padding: 10px; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.device img { border-radius: 18px; }
.device-sm { border-radius: 20px; padding: 7px; box-shadow: var(--shadow-sm); }
.device-sm img { border-radius: 14px; }

/* ─────────────────────────── шаги ─────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 24px; }
.step .n {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cobalt-soft); color: var(--cobalt-deep); font-weight: 780; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 16px; }
.step .shot { margin-top: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ─────────────────────────── разбор экранов ─────────────────────────── */

.screen { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 46px 0; border-top: 1px solid var(--divider); }
.screen:first-of-type { border-top: 0; }
.screen.flip .screen-media { order: -1; }
.screen h3 { font-size: clamp(22px, 2.6vw, 29px); letter-spacing: -.018em; margin-bottom: 12px; }
.screen p { color: var(--text-2); }
.screen ul { margin: 16px 0 0 0; list-style: none; }
.screen li { position: relative; padding-left: 26px; margin: 9px 0; color: var(--text-2); }
.screen li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px;
  border-radius: 3px; background: var(--aqua);
}
@media (max-width: 900px) {
  .screen { grid-template-columns: 1fr; gap: 28px; padding: 34px 0; }
  .screen.flip .screen-media { order: 0; }
}

/* ─────────────────────────── отчёт ─────────────────────────── */

.report-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory;
}
.report-strip figure { scroll-snap-align: start; }
.report-strip img { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.report-strip figcaption { font-size: 14px; color: var(--text-3); margin-top: 9px; }
@media (min-width: 900px) {
  /* на широком экране лента разворачивается в сетку: в прокрутке шестой лист
     не виден вовсе, а подпись пятого обрывалась посреди слова */
  .report-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
    overflow: visible; scroll-snap-type: none; }
}
@media (max-width: 600px) { .report-strip { grid-auto-columns: 74%; } }
.report-strip:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }

.report-pages { display: grid; gap: 34px; margin-top: 34px; }
.report-pages figure { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.report-pages img { border-radius: 8px; }
.report-pages figcaption { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.report-pages .sheet-no { font-weight: 700; color: var(--text); }

/* ─────────────────────────── каналы получения ─────────────────────────── */

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.channel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.channel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.channel h3 { font-size: 19px; }
.channel p { color: var(--text-2); font-size: 15.5px; margin: 10px 0 20px; }
.channel .btn { width: 100%; }
.channel ul { list-style: none; margin-top: 18px; }
.channel li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text-3); margin: 7px 0; }
.channel li::before { content: "—"; position: absolute; left: 0; color: var(--border); }
.channel .spacer { flex: 1; }
@media (max-width: 900px) { .channels { grid-template-columns: 1fr; } }

/* ─────────────────────────── карточки/заметки ─────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 38px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 15px; background: var(--cobalt-soft); color: var(--cobalt-deep); }
.card .ic svg { width: 21px; height: 21px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

.callout {
  background: var(--bg-app); border: 1px solid var(--border); border-left: 4px solid var(--cobalt);
  border-radius: var(--radius-sm); padding: 22px 24px; margin-top: 32px;
}
.callout p { color: var(--text-2); }

/* финальный блок */
.cta-final { background: linear-gradient(140deg, var(--cobalt), var(--cobalt-deep)); color: #fff; padding: 84px 0; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final .sub { color: rgba(255, 255, 255, .82); margin: 16px auto 30px; }
.cta-final .btn-primary { background: #fff; color: var(--cobalt-deep); box-shadow: none; }
.cta-final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .62); }
.cta-final .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.cta-final .cta-row { justify-content: center; }

/* ─────────────────────────── подвал ─────────────────────────── */

.site-footer { border-top: 1px solid var(--divider); padding: 44px 0 56px; color: var(--text-3); font-size: 14.5px; background: #fff; }
.foot-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); font-weight: 600; display: inline-block; padding: 11px 0; }
.legal { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--divider); line-height: 1.55; }
.disclaimer { margin-top: 12px; color: var(--text-3); font-size: 14px; max-width: 78ch; }

/* ─────────────────────────── юридические страницы ─────────────────────────── */

.doc { padding: 52px 0 76px; }
.doc h1 { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 10px; }
.doc .meta { color: var(--text-3); font-size: 15px; margin-bottom: 8px; }
.doc h2 { font-size: 23px; font-weight: 740; letter-spacing: -.012em; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { margin: 10px 0 10px 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc .card { background: var(--sea-mist); border: 0; border-radius: var(--radius-sm); padding: 20px 22px; margin: 16px 0; }
.doc .card p:first-child { margin-top: 0; }
.doc .card p:last-child { margin-bottom: 0; }
.doc-table-wrap { overflow-x: auto; margin: 14px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.doc th { color: var(--text); font-weight: 700; }

/* видимый фокус: без него лента листов и кнопки теряются при обходе с клавиатуры */
a:focus-visible, .btn:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cobalt); outline-offset: 3px;
}
.btn-primary:focus-visible { outline-color: #fff; outline-offset: 2px; }
.cta-final a:focus-visible, .cta-final .btn:focus-visible { outline-color: #fff; }

/* A9 — таблицы политики на телефоне помещаются без прокрутки */
@media (max-width: 700px) {
  .doc table { min-width: 0; }
  .doc th, .doc td { padding: 8px; }
}

/* уважение к системным настройкам движения */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
