/* lalabet.biz — свой дизайн «отдалённо LalaBet» (вариант A из research/brand/design.md):
   тёмно-индиговая рамка (шапка, первый экран, CTA, подвал) + светлая лавандовая зона чтения,
   жёлтая кнопка, розовый — только метка активного, мотив «ступенька» по низу первого экрана. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/pjs-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/pjs-latin-italic-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink-0: #150e3a;
  --ink-1: #1c1349;
  --ink-2: #261a5e;
  --ink-line: #3a2d85;
  --on-ink: #ffffff;
  --on-ink-2: #c9c2f2;
  --paper: #f5f3ff;
  --card: #ffffff;
  --card-2: #ece9fb;
  --line: #dcd6f5;
  --row-line: #e6e1f8;
  --text: #1d1547;
  --text-2: #4a4370;
  --text-3: #6e6893;
  --link: #5b3fd1;
  --yellow: #ffd23f;
  --yellow-hi: #ffe066;
  --on-yellow: #1c1349;
  --pink: #ff7ab5;
  --pink-ink: #c2266b;
  --pink-tint: #ffe3ef;
  --violet: #7b5cff;
  --green: #0afe87;
  --step: linear-gradient(90deg, #ff7ab5, #7b5cff);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --wrap: 1120px;
  --gutter: 24px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.topbar :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .drawer :focus-visible, .cta-box :focus-visible { outline-color: var(--green); }
button { font: inherit; color: inherit; }
.ico { width: 20px; height: 20px; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; border-radius: var(--r-s); font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  background: var(--yellow); color: var(--on-yellow);
  font: 700 16px/1.2 var(--font); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; transition: background-color .15s;
}
.btn:hover { background: var(--yellow-hi); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-alt { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--on-ink-2); }
.btn-alt:hover { background: var(--ink-2); }

/* ---------- шапка: одна строка ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--ink-0); color: var(--on-ink); }
.topbar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.logo-word { width: 120px; height: 28px; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav > ul > li > a, .main-nav .sub-head > a, .main-nav > ul > li > .sub-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 8px; color: var(--on-ink-2); text-decoration: none;
  font: 600 15px/1 var(--font); background: none; border: 0; cursor: pointer;
}
.main-nav .ico { display: none; }
.main-nav .sub-chev, .main-nav .sub-toggle .ico:last-child { display: inline-flex; }
.main-nav .sub-chev { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--on-ink-2); cursor: pointer; display: inline-flex; align-items: center; }
.main-nav .sub-chev .ico, .main-nav .sub-toggle .ico:last-child { display: block; width: 16px; height: 16px; transition: transform .15s; }
.main-nav .sub-head { display: inline-flex; align-items: center; }
.main-nav a:hover, .main-nav .sub-toggle:hover, .main-nav .sub-chev:hover { color: var(--on-ink); }
.main-nav [aria-current="page"], .main-nav [aria-current="true"], .main-nav .active > .sub-head > a { color: var(--on-ink); }
/* активный пункт — мини-«ступенька» под словом */
.main-nav > ul > li > a[aria-current]::after,
.main-nav .sub-head > a[aria-current]::after,
.main-nav > ul > li > .sub-toggle[aria-current]::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 8px;
  background:
    linear-gradient(90deg, #ff7ab5, #ff7ab5) 0 0 / 55% 2px no-repeat,
    linear-gradient(90deg, #a96bff, #7b5cff) 100% 100% / 40% 2px no-repeat;
  border-radius: 1px;
}
.main-nav > ul > li > a[aria-current]::before,
.main-nav .sub-head > a[aria-current]::before,
.main-nav > ul > li > .sub-toggle[aria-current]::before {
  content: ""; position: absolute; left: calc(8px + (100% - 16px) * .55 - 1px); bottom: 6px;
  width: 6px; height: 8px; border-top: 2px solid #ff7ab5; border-right: 2px solid #b36bff; border-top-right-radius: 5px;
  transform: translateX(-1px);
}
.has-sub.open .sub-chev .ico, .has-sub.open > .sub-toggle .ico:last-child { transform: rotate(180deg); }
.main-nav .sub {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  min-width: 210px; margin: 0; padding: 8px; list-style: none;
  background: var(--ink-1); border: 1px solid var(--ink-line); border-radius: var(--r-m);
  box-shadow: 0 16px 40px rgba(10, 6, 30, .45);
}
/* невидимый «мостик» над подменю: курсор, идущий от пункта к подменю, не выходит за пределы пункта */
.main-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
.main-nav .has-sub.open > .sub { display: block; }
.main-nav .sub a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--r-s);
  color: var(--on-ink-2); text-decoration: none; font: 600 15px/1.2 var(--font);
}
.main-nav .sub a .ico { display: block; color: var(--pink); }
.main-nav .sub a:hover, .main-nav .sub a[aria-current] { background: var(--ink-2); color: var(--on-ink); }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--ink-line); border-radius: 10px; color: var(--on-ink); cursor: pointer; flex: none;
}
.burger .ico { width: 22px; height: 22px; }
.burger .ico + .ico, .menu-open .burger .ico:first-child { display: none; }
.menu-open .burger .ico + .ico { display: block; }

/* мобильная панель под шапкой */
.drawer { display: none; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10, 6, 30, .55); }
.scrim[hidden] { display: none; }

@media (max-width: 1099px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .topbar-in { justify-content: space-between; gap: 12px; }
  .top-actions { margin-left: auto; }
  .drawer {
    display: block; position: fixed; left: 0; right: 0; top: 68px; z-index: 45;
    max-height: calc(100dvh - 68px); overflow-y: auto;
    background: var(--ink-1); color: var(--on-ink); border-top: 1px solid var(--ink-line);
    padding: 8px var(--gutter) 24px;
    visibility: hidden; transform: translateY(-8px); opacity: 0; transition: opacity .15s, transform .15s, visibility 0s .15s;
  }
  .menu-open .drawer { visibility: visible; transform: none; opacity: 1; transition: opacity .15s, transform .15s; }
  .drawer-nav > ul { margin: 0; padding: 0; list-style: none; max-width: var(--wrap); margin-inline: auto; }
  .drawer-nav li { border-bottom: 1px solid var(--ink-line); }
  .drawer-nav li li { border: 0; }
  .drawer-nav a, .drawer-nav .sub-toggle {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px;
    color: var(--on-ink); text-decoration: none; font: 600 16px/1.2 var(--font); background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
  }
  .drawer-nav .ico { color: var(--pink); }
  .drawer-nav .sub-head { display: flex; align-items: center; }
  .drawer-nav .sub-head > a { flex: 1; }
  .drawer-nav .sub-chev { width: 48px; justify-content: center; padding: 0; }
  .drawer-nav .sub-chev .ico, .drawer-nav .sub-toggle .ico:last-child { color: var(--on-ink-2); margin-left: auto; transition: transform .15s; }
  .drawer-nav .has-sub.open .sub-chev .ico { transform: rotate(180deg); }
  .drawer-nav .sub { display: none; margin: 0 0 8px; padding: 0 0 0 16px; list-style: none; }
  .drawer-nav .has-sub.open > .sub { display: block; }
  .drawer-nav .sub a { color: var(--on-ink-2); min-height: 44px; font-size: 15px; }
  .drawer-nav [aria-current="page"] { color: var(--on-ink); }
  .drawer-nav [aria-current="page"] .ico { color: var(--green); }
  .drawer-cta { max-width: var(--wrap); margin: 20px auto 0; }
  .drawer-cta .btn { width: 100%; }
  .drawer-note { max-width: var(--wrap); margin: 14px auto 0; color: var(--on-ink-2); font-size: 14px; display: flex; gap: 8px; align-items: center; }
}
@media (max-width: 420px) {
  .top-actions .btn { padding: 10px 14px; font-size: 14px; }
}

.badge-18 {
  display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 32px; padding: 0 6px;
  border-radius: 4px; background: var(--pink); color: var(--ink-0); font: 800 12px/1 var(--font);
}

/* ---------- первый экран ---------- */
.hero {
  position: relative; background: var(--ink-1); color: var(--on-ink);
  padding: 28px 0 76px; margin-bottom: 8px;
}
/* «ступенька»: прямой край, плавный спуск на 20 px на 62 % ширины, по краю — линия-градиент.
   Левая часть — полоса цвета бумаги, «вырезанная» из низа первого экрана; изгиб — SVG фиксированной ширины. */
.hero-step { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; pointer-events: none; }
.hs-l { position: absolute; left: 0; width: 62%; bottom: 0; height: 21px; background: var(--paper); border-top: 2px solid #ff7ab5; }
.hs-c { position: absolute; left: 62%; bottom: 0; width: 24px; height: 22px; }
.hs-r { position: absolute; left: calc(62% + 24px); right: 0; bottom: 0; height: 2px; background: #7b5cff; }
.hs-r { bottom: 1px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 14px; color: var(--on-ink-2); }
.crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--on-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--on-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--on-ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.hero .lead { margin: 0 0 14px; color: var(--on-ink-2); font-size: 17px; line-height: 1.65; max-width: 62ch; }
.hero .lead a { color: var(--on-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--on-ink-2); font-size: 14px; }
.hero-legal { padding-bottom: 64px; }

/* картинка первого экрана */
.hero-art2 { position: relative; margin: 0; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.art-phone {
  position: relative; width: 236px; flex: none; padding: 9px; border-radius: 34px;
  background: #0d0828; box-shadow: 0 0 0 1px var(--ink-line), 0 24px 60px rgba(5, 2, 20, .55);
}
.art-phone img { width: 100%; border-radius: 26px; }
.art-phone .notch { position: absolute; top: 16px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 3px; background: rgba(255, 255, 255, .14); z-index: 1; }
.lay-phone-cards { justify-content: flex-start; padding-left: 8%; }
.lay-phone-cards .ui-card { position: absolute; right: 0; bottom: 34px; width: min(270px, 62%); }
.lay-cards { flex-direction: column; align-items: stretch; gap: 16px; max-width: 420px; margin-left: auto; }
.ui-card {
  position: relative; background: var(--ink-2); color: var(--on-ink); border-radius: var(--r-l);
  padding: 18px 20px; box-shadow: 0 0 0 1px var(--ink-line), 0 18px 40px rgba(5, 2, 20, .4);
}
.ui-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: var(--step); border-radius: 0 0 2px 2px; }
.ui-eyebrow { margin: 0 0 12px; font: 700 13px/1.3 var(--font); color: var(--pink); letter-spacing: .02em; }
.ui-big { margin: 0 0 8px; font: italic 800 30px/1.1 var(--font); }
.ui-dl { margin: 0; display: grid; gap: 10px; }
.ui-dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--ink-line); }
.ui-dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.ui-dl dt { color: var(--on-ink-2); font-size: 13px; }
.ui-dl dd { margin: 0; font-weight: 700; font-size: 14px; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ui-chips li { padding: 6px 10px; border-radius: var(--r-s); background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--ink-line); font: 600 13px/1.2 var(--font); }
.ui-note { margin: 12px 0 0; color: var(--on-ink-2); font-size: 13px; }
.ui-opts, .ui-ol, .mk-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ui-opts li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); background: var(--ink-1); }
.ui-opts .opt-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-0); color: var(--green); flex: none; }
.ui-opts .opt-ico svg { width: 20px; height: 20px; }
.ui-opts b { display: block; font-size: 15px; }
.opt-sub { color: var(--on-ink-2); font-size: 13px; }
.ui-ol li { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); background: var(--ink-1); }
.ui-ol b { font-size: 15px; }
.ui-ol li > span { color: var(--on-ink-2); font-size: 13px; margin-left: auto; text-align: right; }
.mk-rows > li { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--r-m); background: var(--ink-1); }
.mk-label { color: var(--on-ink-2); font-size: 13px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mk-chips li { padding: 6px 10px; border-radius: var(--r-s); background: var(--ink-0); box-shadow: inset 0 0 0 1px var(--ink-line); font: 700 13px/1.2 var(--font); }
.crash-curve { width: 100%; height: 120px; color: var(--yellow); margin: 0 0 14px; }
.lay-404 { min-height: 260px; }
.big-404 { margin: 0; font: italic 800 clamp(96px, 16vw, 180px)/1 var(--font); background: var(--step); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- страница: текст + оглавление справа ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 72px; }
.page.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.content { min-width: 0; }
.toc-side { position: sticky; top: 92px; font-size: 14px; }
.toc-title { margin: 0 0 10px; font: 800 13px/1.3 var(--font); color: var(--text-2); letter-spacing: .02em; }
.toc-side ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc-side a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.toc-side a:hover { color: var(--text); border-left-color: var(--text-3); }
.toc-side a.active { color: var(--pink-ink); border-left-color: var(--pink-ink); font-weight: 700; }
.toc-mob { display: none; margin: 0 0 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); }
.toc-mob summary { cursor: pointer; padding: 14px 16px; font-weight: 800; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.toc-mob summary::-webkit-details-marker { display: none; }
.toc-mob summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.toc-mob[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.toc-mob ol { margin: 0; padding: 0 16px 12px 36px; }
.toc-mob li { padding: 4px 0; }
.toc-mob a { display: inline-block; min-height: 32px; padding: 4px 0; }
@media (max-width: 1099px) {
  .page.has-toc { display: block; }
  .toc-side { display: none; }
  .toc-mob { display: block; }
}

/* разделы */
.content > section, .content > .legal-block { padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); position: relative; }
.content > section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.content h2 { position: relative; margin: 0 0 18px; padding-top: 18px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.content h2::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--pink-ink); }
.content h3 { margin: 28px 0 10px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.content p { margin: 0 0 14px; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 22px; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--pink-ink); }
.content strong, .content b { font-weight: 700; }
.meta-line { margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }

/* таблицы — главный формат */
.table-wrap {
  margin: 18px 0 22px; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  background-image: linear-gradient(to right, var(--card), var(--card)), linear-gradient(to left, var(--card), var(--card)),
    linear-gradient(to right, rgba(29, 21, 71, .12), transparent), linear-gradient(to left, rgba(29, 21, 71, .12), transparent);
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat; background-size: 24px 100%, 24px 100%, 12px 100%, 12px 100%; background-attachment: local, local, scroll, scroll;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 12px 16px 0; font-weight: 700; color: var(--text-2); }
thead th { background: var(--card-2); text-align: left; font: 700 14px/1.35 var(--font); color: var(--text); padding: 12px 16px; white-space: nowrap; }
tbody th, tbody td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--row-line); }
tbody th { font-weight: 600; }
thead + tbody tr:first-child th, thead + tbody tr:first-child td { border-top: 0; }
@media (max-width: 640px) {
  .table-wrap:has(table.stack) { background: none; border: 0; overflow: visible; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); margin: 0 0 12px; padding: 4px 0; }
  table.stack tbody th { border: 0; padding: 12px 16px 6px; font-weight: 800; }
  table.stack td { border: 0; border-top: 1px solid var(--row-line); padding: 8px 16px; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; }
  table.stack td::before { content: attr(data-label); color: var(--text-3); font-size: 13px; font-weight: 600; }
  table.stack td > .cv { min-width: 0; }
}

/* сетка фактов */
dl.facts { margin: 18px 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
dl.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
dl.facts dt { color: var(--text-3); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
dl.facts dd { margin: 0; font: italic 800 20px/1.25 var(--font); color: var(--text); }

/* карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.card h3, .card h4 { margin: 10px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card-ico { display: inline-flex; color: var(--text); }
.card-ico .ico { width: 28px; height: 28px; stroke-width: 1.75; }
.card-ico .ico [fill="currentColor"] { fill: var(--pink-ink); }

/* шаги: крупная курсивная цифра без кружков */
ol.steps { list-style: none; padding: 0; margin: 18px 0 24px; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
ol.steps > li { counter-increment: st; position: relative; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 58px 18px 18px; color: var(--text-2); font-size: 15px; }
ol.steps > li::before { content: counter(st); position: absolute; left: 18px; top: 10px; font: italic 800 40px/1 var(--font); color: #b7aee8; }
ol.steps > li b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
ol.steps.shots { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
ol.steps.shots > li.has-shot { padding-top: 18px; }
ol.steps.shots > li.has-shot::before { top: 18px; left: 18px; z-index: 1; color: var(--yellow); text-shadow: 0 2px 10px rgba(10, 6, 30, .5); }
.step-shot { display: block; margin: 0 0 14px; border-radius: 18px; overflow: hidden; background: #0d0828; padding: 6px; }
.step-shot img { width: 100%; border-radius: 14px; }

/* экраны в рамке телефона */
.phones { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 24px; }
.phone-shot { margin: 0; width: 220px; }
.phone-shot .pf { display: block; padding: 7px; border-radius: 28px; background: #0d0828; }
.phone-shot img { border-radius: 22px; }
.phone-shot figcaption { margin-top: 8px; color: var(--text-2); font-size: 14px; }

/* две колонки инструкций */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.howto-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; }
.howto-card h3 { margin-top: 0; }
.howto-card ol { margin-bottom: 0; }

/* чипы */
ul.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 18px; }
ul.chips li { margin: 0; padding: 7px 12px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }

/* выноски */
.note { margin: 18px 0 22px; padding: 16px 18px; border-radius: var(--r-m); background: var(--card-2); border-left: 4px solid var(--violet); }
.note p:last-child { margin-bottom: 0; }
.note.tip { background: #eafaf2; border-left-color: #12a861; }
.note.warn { background: var(--pink-tint); border-left-color: var(--pink-ink); }

/* блок с кнопкой */
.cta-box {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 26px 0; padding: 26px 24px 22px; border-radius: var(--r-l); background: var(--ink-1); color: var(--on-ink);
}
.cta-box::before { content: ""; position: absolute; left: 24px; top: 0; width: 72px; height: 3px; border-radius: 0 0 2px 2px; background: var(--step); }
.cta-box p { margin: 0; display: grid; gap: 4px; }
.cta-title { font-size: 19px; font-weight: 800; }
.cta-sub { color: var(--on-ink-2); font-size: 14px; }

/* FAQ: список с волосяными линиями */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; font-size: 17px; font-weight: 700; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--pink-ink); border-bottom: 2px solid var(--pink-ink); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > div { padding: 0 0 16px; color: var(--text-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* юридические страницы */
.content.legal { max-width: 820px; }
.content.legal h2 { font-size: 24px; }

/* ---------- подвал ---------- */
.site-footer { background: var(--ink-0); color: var(--on-ink-2); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-about p { margin: 16px 0; line-height: 1.6; max-width: 34ch; }
.site-footer h2 { margin: 0 0 12px; color: var(--on-ink); font: 800 15px/1.3 var(--font); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a { display: inline-block; padding: 5px 0; color: var(--on-ink-2); text-decoration: none; line-height: 1.5; }
.site-footer li a:hover { color: var(--on-ink); text-decoration: underline; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--on-ink-2); font-size: 13px; font-weight: 600; }
.badge-y { background: var(--pink); color: var(--ink-0); box-shadow: none; font-weight: 800; }
.disclaimer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--ink-line); font-size: 13px; line-height: 1.6; }
.disclaimer p { margin: 0 0 8px; }
.disclaimer a { color: var(--on-ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--on-ink); text-decoration: underline; cursor: pointer; font-size: 13px; min-height: 24px; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  /* на телефоне и планшете ссылки подвала и «Cookie-instellingen» — цели касания не меньше 44 px */
  .site-footer li a, .link-btn { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-top: 0; padding-bottom: 0; }
}

/* ---------- cookie-баннер ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin-left: auto;
  background: var(--ink-1); color: var(--on-ink); border-radius: var(--r-l); padding: 18px 20px;
  box-shadow: 0 0 0 1px var(--ink-line), 0 20px 50px rgba(5, 2, 20, .5); font-size: 14px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; color: var(--on-ink-2); }
.consent a { color: var(--on-ink); }
.consent-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- кнопка «наверх» ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--ink-1); color: var(--on-ink);
  border: 1px solid var(--ink-line); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }

/* ---------- адаптив ---------- */
@media (max-width: 860px) {
  .hero { padding: 20px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-art2 { min-height: 0; }
  .lay-phone-cards { justify-content: center; padding: 0 0 0; flex-direction: column; gap: 18px; }
  .lay-phone-cards .ui-card { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; margin-top: -60px; }
  .lay-cards { max-width: none; margin: 0; }
  .art-phone { width: 210px; }
  .page { padding-top: 44px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero .lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .content > section, .content > .legal-block { padding-top: 32px; margin-top: 32px; }
  .cta-box .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  ol.steps { grid-template-columns: minmax(0, 1fr); }
  .consent { left: 8px; right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
