/* Абакидо — сайт для родителей. Цвета и шрифты — те же, что в приложении (src/styles.css), тон спокойнее.
   Шрифты локальные (OFL, @fontsource 5.3.0): Nunito — текст, Rubik — заголовки и кнопки. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/nunito-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/nunito-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/nunito-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/nunito-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/rubik-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/rubik-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/rubik-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/rubik-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* знак рубля: файл грузится, только если на странице есть ₽ */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/rubik-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+20BD; }

:root {
  --bg: #fdf6e8;
  --surface: #ffffff;
  --tint: #f6eedd;
  --ink: #1f2e47;
  --ink-2: #56647a;
  --line: #eadfcb;
  --primary: #e2641a;
  --primary-hover: #cc5510;
  --primary-shadow: #a8460c;
  --primary-ink: #b64e10;
  --peach: #ffe5cf;
  --sky: #d3f1ff;
  --mint: #cdf6e3;
  --sun: #f7cc4b;
  --green: #12b382;
  --blue: #45aade;
  --indigo: #24266b;
  --indigo-deep: #191b4d;
  --gold: #ffd373;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 0 rgba(31, 46, 71, .04), 0 16px 36px -24px rgba(31, 46, 71, .35);
  --shadow-phone: 0 40px 70px -36px rgba(31, 46, 71, .55), 0 14px 28px -18px rgba(144, 80, 42, .35);
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Rubik", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --container: 1200px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(31px, 4.1vw, 54px); line-height: 1.08; letter-spacing: -.015em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.12; letter-spacing: -.01em; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }

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

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 600 18px/1.1 var(--font-display); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 5px 0 var(--primary-shadow); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--primary-shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #d8c7a9; }
.btn-gold { background: var(--gold); color: var(--indigo-deep); box-shadow: 0 5px 0 #c9961f; }
.btn-gold:hover { background: #ffdc8c; }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 2px 0 #c9961f; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: 0 3px 0 var(--primary-shadow); }
.btn-block { width: 100%; }

.eyebrow { font: 600 14px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 14px; }
.eyebrow-gold { color: var(--gold); }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-top: 18px; max-width: 40em; }
@media (min-width: 1024px) { .lead { font-size: 20px; } }

/* ── шапка ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 246, 232, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(234, 223, 203, .7); }
.header-row { display: flex; align-items: center; gap: 12px; height: 68px; }
.logo { display: block; flex: none; }
/* логотип «Пятёрка» (знак + АБАКИДО, 4,97 : 1) — по высоте: на узком телефоне кнопка «Открыть приложение»
   должна остаться в одну строку рядом с ним */
.logo img { width: auto; height: 24px; }
@media (max-width: 389px) { .header-row .btn-small { padding: 0 14px; font-size: 14px; } }
@media (min-width: 360px) { .header-row .btn-small { white-space: nowrap; } }
@media (min-width: 390px) { .logo img { height: 28px; } }
@media (min-width: 768px) { .header-row { gap: 24px; } .logo img { height: 30px; } }
.nav a { padding: 8px 12px; border-radius: 999px; font: 600 15px/1 var(--font-display); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--peach); }
.nav-wide { display: none; gap: 2px; margin-left: auto; }
/* узкий экран: меню — строкой под шапкой (не липкой), листается вбок; без скриптов */
.nav-narrow { background: var(--bg); border-bottom: 1px solid rgba(234, 223, 203, .7); }
.nav-narrow-row { display: flex; gap: 2px; overflow-x: auto; padding-top: 6px; padding-bottom: 6px; scrollbar-width: none; }
.nav-narrow-row::-webkit-scrollbar { display: none; }
.nav-narrow a { flex: none; padding: 8px 11px; font-size: 14px; }
.header-row .btn-small { margin-left: auto; }
@media (min-width: 1024px) {
  .logo img { height: 34px; }
  .nav-wide { display: flex; }
  .nav-narrow { display: none; }
  .header-row .btn-small { margin-left: 8px; }
}

/* ── телефон ── */
.phone {
  --pw: 280px;
  position: relative; width: var(--pw); flex: none;
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .155);
  background: linear-gradient(160deg, #2c3448, #161b28 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow-phone);
}
.phone::after { /* боковая кнопка */
  content: ""; position: absolute; right: -2px; top: 22%; width: 3px; height: 9%;
  border-radius: 0 3px 3px 0; background: #2c3448;
}
.phone img { width: 100%; border-radius: calc(var(--pw) * .125); background: var(--peach); }

/* ── 1. первый экран ── */
.hero { padding: 24px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.facts li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink); }
.facts .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--surface); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--line); stroke-width: 1.8; }
.hero-stage {
  position: relative; height: 470px; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 85% 10%, #d9f0fb 0%, rgba(217, 240, 251, 0) 60%),
    radial-gradient(110% 80% at 10% 95%, #d8f3e6 0%, rgba(216, 243, 230, 0) 55%),
    linear-gradient(160deg, #ffe9d6, #fbe3c9);
}
.hero-stage .phone { position: absolute; }
.phone-back { --pw: 168px; left: 5%; top: 52px; transform: rotate(-4deg); }
.phone-front { --pw: 188px; right: 5%; top: 30px; transform: rotate(2deg); }
@media (min-width: 560px) {
  .hero-stage { height: 560px; }
  .phone-back { --pw: 220px; left: 10%; }
  .phone-front { --pw: 240px; right: 10%; }
}
@media (max-width: 559px) { .actions .btn { width: 100%; } .actions { margin-top: 26px; gap: 12px; } }
@media (min-width: 560px) {
  .facts { display: flex; flex-wrap: wrap; gap: 14px 22px; }
  .facts li { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; }
  .facts span { white-space: nowrap; }
}
@media (min-width: 640px) { .actions .btn { min-width: 230px; } }
@media (min-width: 1024px) {
  .hero { padding: 44px 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .facts { margin-top: 32px; }
  .hero-stage { height: 680px; }
  .phone-back { --pw: 244px; left: 3%; top: 76px; }
  .phone-front { --pw: 280px; right: 3%; top: 36px; }
}

/* ── секции ── */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; }
.section-head-center { margin: 0 auto; text-align: center; }
.section-head-center .lead { margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .section { padding: 112px 0; } .hero + .section { padding-top: 80px; } }

/* ── 2. занятие ── */
.timeline { margin-top: 40px; max-width: 880px; }
.timeline-bar { display: flex; gap: 4px; height: 16px; }
.seg { display: block; border-radius: 999px; }
.timeline-bar .seg-in { flex: .5; } .timeline-bar .seg-warm { flex: 2.5; } .timeline-bar .seg-new { flex: 5; }
.timeline-bar .seg-mix { flex: 4; } .timeline-bar .seg-mind { flex: 2; } .timeline-bar .seg-end { flex: 1; }
.seg-in, .seg-end { background: #cfc2ab; }
.seg-warm { background: var(--sun); }
.seg-new { background: var(--primary); }
.seg-mix { background: var(--blue); }
.seg-mind { background: #7b5fd3; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.timeline-legend li { display: flex; align-items: center; gap: 8px; }
.timeline-legend b { color: var(--ink); font-weight: 700; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

.steps { display: grid; gap: 28px; margin-top: 48px; counter-reset: step; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; align-content: start; }
.phone-step { --pw: 138px; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; font: 700 17px/1 var(--font-display); margin-bottom: 12px;
}
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--ink-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
  .step { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .phone-step { --pw: 200px; margin: 0 auto; }
  .step-text { position: relative; padding-top: 4px; }
}
@media (min-width: 1200px) { .phone-step { --pw: 224px; } }

/* ── 3. путь ── */
.path-head { display: grid; gap: 32px; align-items: center; }
.scene img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.scene figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 1024px) { .path-head { grid-template-columns: minmax(0, 1fr) 560px; gap: 56px; } }

.belts { display: grid; gap: 10px; margin-top: 44px; counter-reset: belt; }
.belt {
  --belt: #efe4cf; --belt-ink: var(--ink);
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 14px 16px 14px 14px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
}
.belt::before { content: none; }
.belt-num {
  grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--belt); color: var(--belt-ink); font: 700 19px/1 var(--font-display);
}
.belt h3 { font-size: 17px; }
.belt p { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.belt-0 { --belt: #efe4cf; }
.belt-1 { --belt: #f7cc4b; }
.belt-2 { --belt: #f6a04d; }
.belt-3 { --belt: #12b382; --belt-ink: #fff; }
.belt-4 { --belt: #308fd5; --belt-ink: #fff; }
.belt-5 { --belt: #7b5fd3; --belt-ink: #fff; }
.belt-6 { --belt: #9c613f; --belt-ink: #fff; }
.belt-7 { --belt: #1f2e47; --belt-ink: #fff; }
@media (min-width: 640px) { .belts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .belts { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 56px; }
  .belt { grid-template-columns: 1fr; padding: 0 14px 18px; overflow: hidden; align-content: start; }
  .belt::before { content: ""; display: block; height: 10px; margin: 0 -14px 16px; background: var(--belt); }
  .belt-num { grid-row: auto; width: 40px; height: 40px; font-size: 18px; margin-bottom: 12px; }
  .belt h3 { font-size: 16px; margin-bottom: 4px; }
  .belt p { font-size: 14px; }
}

.mind-track {
  margin-top: 12px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(100deg, #2a2d7a, #3d3299 55%, #5b3fae);
  color: #fff;
}
.mind-label { font: 600 17px/1.35 var(--font-display); margin-bottom: 12px; }
.mind-steps { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mind-steps li {
  position: relative; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); font-weight: 700; font-size: 15px; line-height: 1.2;
}
.mind-steps li + li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -4px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
@media (min-width: 1024px) {
  .mind-track { padding: 18px 20px 20px 24px; }
  .mind-steps { flex-wrap: nowrap; gap: 24px; }
  .mind-steps li { flex: 1 1 0; justify-content: center; padding: 10px 12px; white-space: nowrap; }
  .mind-steps li + li::before { left: -16px; }
}

.path-facts { display: grid; gap: 12px; margin-top: 36px; }
.path-facts li { padding: 18px 20px; background: var(--surface); border-radius: var(--radius-sm); color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.path-facts b { color: var(--ink); }
.note { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) { .path-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

/* ── 4. родителю ── */
.parents-grid { display: grid; gap: 40px; align-items: center; }
.features { display: grid; gap: 22px; margin-top: 36px; }
.features li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.features .icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--peach); color: var(--primary-ink); }
.features li:nth-child(2) .icon { background: var(--sky); color: #1f6f9c; }
.features li:nth-child(3) .icon { background: var(--mint); color: #0b7d5b; }
.features li:nth-child(4) .icon { background: #e7e4fb; color: #4b3fa6; }
.features h3 { font-size: 19px; margin-bottom: 4px; }
.features p { color: var(--ink-2); }
.parents-stage {
  position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 14px; padding: 32px 12px 40px;
  border-radius: var(--radius-lg);
  background: radial-gradient(100% 80% at 90% 0%, #d6efe3, rgba(214, 239, 227, 0) 60%), linear-gradient(170deg, #e4f4fb, #f3ecdc);
}
.phone-parent { --pw: 160px; }
.phone-parent-b { margin-top: 40px; }
@media (min-width: 560px) { .phone-parent { --pw: 220px; } .parents-stage { gap: 24px; } }
@media (min-width: 1024px) {
  .parents-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 64px; }
  .parents-stage { height: 700px; padding: 0; display: block; }
  .parents-stage .phone { position: absolute; }
  .phone-parent { --pw: 250px; }
  .phone-parent-a { left: 5%; top: 52px; }
  .phone-parent-b { right: 5%; top: 120px; margin: 0; }
}

/* ── 5. книга ── */
.section-book {
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 14%, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(2px 2px at 64% 82%, rgba(255, 211, 115, .7), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 88%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(90% 120% at 80% 0%, #33368f 0%, rgba(51, 54, 143, 0) 60%),
    linear-gradient(180deg, var(--indigo), var(--indigo-deep));
  color: #e9e6f7;
}
.book-grid { display: grid; gap: 40px; align-items: center; }
.book-cover { justify-self: center; width: min(210px, 56vw); }
.book-cover img {
  width: 100%; border-radius: 6px 12px 12px 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 60px -20px rgba(0, 0, 0, .65), 0 0 90px -10px rgba(255, 211, 115, .35);
}
.book-text h2 { color: #fff; }
.book-sub { margin-top: 12px; font: 600 19px/1.4 var(--font-display); color: var(--gold); }
.book-text > p:not(.eyebrow):not(.book-sub) { margin-top: 16px; color: #d9d6ee; max-width: 36em; }
.book-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.book-meta li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 15px; color: #fff; }
@media (min-width: 900px) {
  .book-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; }
  .book-cover { width: 320px; }
}

/* ── 6. тарифы ── */
.owner-note {
  margin: 36px auto 0; max-width: 880px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: #fff6c7; border: 2px dashed #e0b400; color: #5c4a00; font-size: 15px; line-height: 1.5;
}
.plans { display: grid; gap: 16px; margin-top: 32px; }
.plan {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px;
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.plan h3 { font-size: 20px; }
.price { font: 700 32px/1.1 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.price span { font: 400 16px/1 var(--font-body); color: var(--ink-2); letter-spacing: 0; }
.plan-desc { color: var(--ink-2); font-size: 16px; line-height: 1.5; flex: 1; }
.plan .btn { margin-top: 10px; padding: 0 16px; font-size: 16px; }
.plan-book { position: relative; }
.plan-cover { position: absolute; right: 20px; top: -18px; width: 64px; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 20px -8px rgba(31, 46, 71, .5); transform: rotate(6deg); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* ── 7. вопросы ── */
.faq-wrap { display: grid; gap: 28px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 20px 60px 20px 22px;
  font: 600 18px/1.35 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 2.5px; margin-top: -1px;
  border-radius: 2px; background: var(--primary-ink); transition: transform .18s ease;
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 46em; }
.faq details p + p { padding-top: 0; margin-top: -8px; }
@media (min-width: 1024px) {
  .faq-wrap { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: 110px; }
}

/* ── призыв ── */
.section-cta { padding-top: 64px; }
.cta {
  display: grid; gap: 8px; align-items: center; overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(90% 120% at 100% 100%, #d8f3e6, rgba(216, 243, 230, 0) 60%), linear-gradient(150deg, #ffe3cb, #ffd9b7);
}
.cta-text { padding: 32px 24px 0; }
.cta-text p { margin: 14px 0 26px; color: #4f4235; font-size: 18px; max-width: 30em; }
.cta-owl { width: 100%; justify-self: center; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
@media (min-width: 900px) {
  .section-cta { padding-top: 112px; }
  .cta { grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; }
  .cta-text { padding: 56px 0 56px 64px; }
  .cta-owl { align-self: stretch; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
}

/* ── подвал ── */
.site-footer { padding: 56px 0 28px; background: #f1e8d6; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: auto; height: 34px; }
.footer-brand p { margin-top: 14px; max-width: 26em; }
.footer-app { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--ink); }
.footer-title { font: 600 15px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--ink); }
address { font-style: normal; }
.footer-bottom { margin-top: 36px; font-size: 14px; }
.footer-bottom p { padding-top: 20px; border-top: 1px solid #e0d3bb; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr .6fr .9fr 1.3fr; gap: 40px; } }

.nw { white-space: nowrap; }

/* ══ страницы сайта (21.11.2026): тарифы, ранний доступ, приложение, книга, документы ══════════════ */

/* ── заголовок внутренней страницы ── */
.page-hero { padding: 40px 0 8px; }
.page-hero h1 { max-width: 18em; }
.page-hero .lead a { color: var(--ink); }
.page-hero .actions { margin-top: 28px; }
.page-hero-solo { padding: 64px 0 96px; }
.section-tight { padding-top: 36px; }
.section-first { padding-top: 40px; }
@media (min-width: 1024px) {
  .page-hero { padding: 72px 0 8px; }
  .page-hero-solo { padding: 112px 0 140px; }
  .section-first { padding-top: 64px; }
  .section-tight { padding-top: 48px; }
}

/* ── тарифы ── */
.plan { position: relative; }
.plan-trial { margin-top: -4px; font-weight: 700; font-size: 15px; line-height: 1.35; color: #0b7d5b; }
.plan-best { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-card); }
.plan-badge {
  position: absolute; top: -13px; left: 22px; padding: 6px 12px; border-radius: 999px;
  background: var(--primary); color: #fff; font: 600 13px/1 var(--font-display); letter-spacing: .02em;
}
.plan-free { background: #fffaf2; box-shadow: inset 0 0 0 2px var(--line); }
.plans-after { display: grid; gap: 8px; max-width: 780px; margin: 26px auto 0; text-align: center; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.plans-after a { color: var(--ink); }
.plans-after b { color: var(--ink); }
@media (min-width: 1100px) { .plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin-left: auto; margin-right: auto; } }
.book-text > p.book-prices { margin: -8px 0 28px; font-size: 16px; color: #d9d6ee; }
.book-prices b { color: #fff; white-space: nowrap; }

/* ── ступени: что бесплатно, что по подписке, что пока в книге ── */
.belt-tag {
  justify-self: start; margin-top: 6px; padding: 3px 9px; border-radius: 999px;
  background: #f3ead8; color: var(--ink-2); font: 600 12px/1.25 var(--font-display); letter-spacing: .02em;
}
.belt-tag.tag-free { background: var(--mint); color: #0b7d5b; }
.belt-tag.tag-later { background: transparent; box-shadow: inset 0 0 0 1.5px #d8c7a9; }
.belt-later { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1.5px #e2d4bb; }
.belt-later h3, .belt-later p { opacity: .85; }
@media (min-width: 1024px) { .belt-tag { margin-top: 10px; } }
.mind-steps li.mind-now { background: var(--gold); color: var(--indigo-deep); }
.mind-note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* ── ранний доступ: блок и форма ── */
.section-lead { background: linear-gradient(180deg, #fff1e1 0%, var(--bg) 70%); }
.lead-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .lead-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; } }
.lead-points { display: grid; gap: 10px; margin-top: 24px; }
.lead-points li { position: relative; padding-left: 30px; color: var(--ink-2); }
.lead-points li::before {
  content: ""; position: absolute; left: 3px; top: .5em; width: 13px; height: 7px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.lead-form {
  position: relative; display: grid; gap: 20px; padding: 24px 18px;
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
@media (min-width: 560px) { .lead-form { padding: 32px; } }
.choices { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.choices legend { padding: 0; margin-bottom: 10px; font: 600 18px/1.3 var(--font-display); color: var(--ink); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin: -9px 0 0; opacity: 0; }
.choice-body {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  padding: 13px 16px 13px 46px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow .12s ease, background-color .12s ease;
}
.choice-body::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #c9b896; transition: box-shadow .12s ease;
}
.choice-body b { font: 600 16px/1.3 var(--font-display); color: var(--ink); }
.choice-price { font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink); }
.choice-price span { font-weight: 400; color: var(--ink-2); }
.choice:hover .choice-body { box-shadow: inset 0 0 0 2px #d8c7a9; }
.choice input:checked + .choice-body { background: #fff7ef; box-shadow: inset 0 0 0 2px var(--primary); }
.choice input:checked + .choice-body::before { box-shadow: inset 0 0 0 5.5px var(--primary); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--blue); outline-offset: 2px; }
.field { display: grid; gap: 8px; }
.field-label { font: 600 18px/1.3 var(--font-display); color: var(--ink); }
.field input {
  width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 14px;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font: 400 18px/1.2 var(--font-body);
}
.field input::placeholder { color: #a39784; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.form-note a { color: var(--ink); }

/* ── страница тарифа в раннем доступе ── */
.chosen { max-width: 460px; margin-top: 24px; padding: 18px 20px 20px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-card); }
.chosen-name { font: 600 14px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink); }
.chosen .price { margin-top: 8px; }
.chosen-desc { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.next-steps { display: grid; gap: 12px; margin-top: 24px; counter-reset: ns; }
.next-steps li { position: relative; padding-left: 42px; color: var(--ink-2); counter-increment: ns; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--peach); color: var(--primary-ink); font: 700 15px/1 var(--font-display);
}
.next-steps a { color: var(--ink); font-weight: 700; }

/* ── карточки подробностей (приложение, книга, тарифы) ── */
.detail-cards { display: grid; gap: 16px; margin-top: 40px; }
.detail-cards li { padding: 22px 22px 24px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.detail-cards h3 { margin-bottom: 8px; font-size: 19px; }
.detail-cards p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 900px) {
  .detail-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .detail-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .detail-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.howto { display: grid; gap: 16px; margin-top: 36px; counter-reset: how; }
.howto li { padding: 22px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); counter-increment: how; }
.howto li::before {
  content: counter(how); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--primary); color: #fff; font: 700 17px/1 var(--font-display);
}
.howto h3 { margin-bottom: 6px; font-size: 19px; }
.howto p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.howto a { color: var(--ink); }
@media (min-width: 640px) { .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .howto { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* ── приложение: путь и счёт в уме ── */
.phone-path { --pw: 200px; justify-self: center; }
@media (min-width: 1024px) { .phone-path { --pw: 250px; } }
.mind-grid { display: grid; gap: 40px; align-items: center; }
.phone-mind { --pw: 210px; justify-self: center; order: 2; }
@media (min-width: 900px) {
  .mind-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
  .phone-mind { --pw: 260px; order: 0; }
}
.mind-path { display: grid; gap: 12px; margin-top: 30px; }
.mind-path li { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.mind-path b { color: var(--ink); }
.mind-path li.mind-path-now { box-shadow: inset 0 0 0 2px #7b5fd3, var(--shadow-card); }
.pill {
  display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; vertical-align: 1px; white-space: nowrap;
  background: #e7e4fb; color: #4b3fa6; font: 600 12px/1.45 var(--font-display);
}
.pill-later { background: #f3ead8; color: var(--ink-2); }

/* ── книга ── */
.book-hero { padding-top: 40px; }
.book-hero h1 { color: #fff; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.1; }
.book-hero .actions { margin-top: 0; }
@media (min-width: 1024px) { .book-hero { padding: 72px 0 96px; } }
.btn-ghost-dark { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .32); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .14); }
.chapter-flow { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; counter-reset: cf; }
.chapter-flow li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-card); font: 600 15px/1.2 var(--font-display); counter-increment: cf;
}
.chapter-flow li::before {
  content: counter(cf); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--peach); color: var(--primary-ink); font-size: 13px;
}
.spreads { display: grid; gap: 32px; margin-top: 40px; }
.spread img { width: 100%; border-radius: 4px; background: #fff; box-shadow: 0 1px 0 rgba(31, 46, 71, .06), 0 26px 50px -30px rgba(31, 46, 71, .55); }
.spread figcaption { max-width: 48em; margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.spread figcaption b { color: var(--ink); }
@media (min-width: 1024px) { .spreads { gap: 48px; } }
.toc { display: grid; gap: 16px; margin-top: 40px; }
.toc-part { padding: 22px 22px 24px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.toc-part h3 { font-size: 19px; }
.toc-part h3 span {
  display: block; margin-bottom: 6px; font: 600 13px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink);
}
.toc-part > p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.toc-part ol { display: grid; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.toc-part ol li { font-size: 15px; line-height: 1.4; }
.toc-appendix { background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 700px) { .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .toc { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* ── таблица сведений: выходные данные, реквизиты ── */
.facts-table { display: grid; max-width: 880px; margin: 28px 0 0; overflow: hidden; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.facts-table div { display: grid; gap: 2px 24px; padding: 14px 20px; border-top: 1px solid var(--line); }
.facts-table div:first-child { border-top: 0; }
.facts-table dt { font-weight: 700; font-size: 15px; color: var(--ink); }
.facts-table dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.facts-table a { color: var(--ink); }
@media (min-width: 640px) { .facts-table div { grid-template-columns: 210px minmax(0, 1fr); } }

/* ── контакты ── */
.contact-cards { display: grid; gap: 16px; }
.contact-cards li { padding: 24px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.contact-cards .icon { width: 46px; height: 46px; margin-bottom: 14px; padding: 11px; border-radius: 13px; background: var(--peach); color: var(--primary-ink); }
.contact-cards li:nth-child(2) .icon { background: var(--sky); color: #1f6f9c; }
.contact-cards li:nth-child(3) .icon { background: var(--mint); color: #0b7d5b; }
.contact-cards h2 { margin-bottom: 6px; font-size: 20px; }
.contact-cards p { color: var(--ink-2); }
.contact-cards p a { font-weight: 700; font-size: 19px; color: var(--ink); }
.contact-note { margin-top: 8px; font-size: 15px; }
@media (min-width: 900px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ── вопросы ── */
.faq details p a { color: var(--ink); }
.faq-more {
  display: block; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 2px var(--line);
  font: 600 16px/1.4 var(--font-display); color: var(--primary-ink); text-decoration: none;
}
.faq-more::after { content: " →"; }
.faq-more:hover { box-shadow: inset 0 0 0 2px #d8c7a9; }

/* ── спасибо ── */
.cta-thanks h1 { font-size: clamp(30px, 3.6vw, 46px); }
.cta-thanks .cta-text { padding-bottom: 8px; }
.cta-thanks .cta-text p:not(.eyebrow) { margin: 14px 0 0; }
.cta-text p.eyebrow { margin: 0 0 14px; font-size: 14px; color: var(--primary-ink); }
.cta-thanks .actions { margin-top: 28px; }
@media (min-width: 900px) { .cta-thanks .cta-text { padding-bottom: 56px; } }

/* ── документы: оферта и политика ── */
.legal { padding-bottom: 96px; }
.prose { max-width: calc(840px + 2 * var(--gutter)); }
.prose h1 { font-size: clamp(30px, 3.4vw, 44px); }
.legal-sub { margin-top: 10px; font: 600 19px/1.4 var(--font-display); color: var(--ink-2); }
.legal-date { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.prose h2 { margin: 40px 0 10px; font-size: 23px; scroll-margin-top: 90px; }
.prose p { margin-top: 10px; font-size: 16px; line-height: 1.65; }
.prose ul { display: grid; gap: 6px; margin-top: 10px; padding-left: 22px; list-style: disc; }
.prose li { font-size: 16px; line-height: 1.6; }
.prose a { color: var(--primary-ink); }
.prose .facts-table { margin-top: 14px; }
.table-wrap { margin-top: 14px; overflow-x: auto; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { border-top: 0; background: var(--tint); font: 600 14px/1.3 var(--font-display); }
.prose td.num { white-space: nowrap; font-weight: 700; }
.draft-note { margin-bottom: 28px; padding: 16px 20px; border: 2px dashed #d9541e; border-radius: var(--radius-sm); background: #ffe9df; color: #7a2a08; }
.draft-note p { margin: 0; }
.draft-todo { padding: 1px 4px; border-radius: 4px; background: #fff0a0; color: #5c4a00; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
p.draft-todo { display: block; padding: 10px 14px; }
.consent-text { margin-top: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.consent-text p:first-child { margin-top: 0; }
