/* Практикум SkoreHood: стиль по бренд-буку skorehood.com
   (бумага #FAF9F7, графит #232327, алый #F0271C, песок #EEEBE4; Oswald + Inter + Hanken Grotesk).
   Тёмная тема включается по системной настройке. */

:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --sand: #EEEBE4;
  --ink: #232327;
  --text: #2A2520;
  --muted: #6B6357;
  --soft: #4A4339;
  --line: rgba(22,19,15,0.09);
  --line-strong: rgba(22,19,15,0.18);
  --accent: #F0271C;
  --accent-text: #C81E14;
  --accent-ink: #FFFFFF;
  --dark: #232327;
  --on-dark: #FAF9F7;
  --on-dark-muted: rgba(250,249,247,0.68);
  --on-dark-line: rgba(250,249,247,0.14);
  --btn: #232327;
  --btn-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(22,19,15,0.05), 0 18px 40px -28px rgba(22,19,15,0.45);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', 'Hanken Grotesk', system-ui, sans-serif;
  --ui: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --surface: #1E1E22;
    --sand: #222226;
    --ink: #F2F0EC;
    --text: #E6E2DC;
    --muted: #A39C92;
    --soft: #C9C3BA;
    --line: rgba(250,249,247,0.09);
    --line-strong: rgba(250,249,247,0.2);
    --accent: #FF3B2F;
    --accent-text: #FF5A4E;
    --dark: #0E0E10;
    --btn: #F2F0EC;
    --btn-ink: #161618;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 18px 40px -28px rgba(0,0,0,0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ---------- Шапка ---------- */
.nav { position: sticky; top: 0; z-index: 20; padding: 14px 24px 0; }
.nav-bar {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border-radius: 20px; padding: 10px 10px 10px 24px;
  box-shadow: 0 8px 34px rgba(24,18,52,0.08); font-family: var(--ui);
}
@media (prefers-color-scheme: dark) { .nav-bar { box-shadow: 0 0 0 1px var(--line), 0 8px 34px rgba(0,0,0,0.4); } }
.logo { display: inline-flex; align-items: center; font: 600 22px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.logo i { display: inline-block; width: 2px; height: 16px; background: var(--accent); margin: 0 5px 0 3px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; color: var(--soft); }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 22px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font: 600 16px/1.2 var(--ui); cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--accent); color: #fff; box-shadow: 0 14px 36px -10px rgba(240,39,28,0.55); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--on-dark); color: #232327; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 15px; }
.btn:active { transform: translateY(1px); }

/* Обводка-перелив, как у CTA на skorehood.com */
@property --cta-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cta-glow { position: relative; isolation: isolate; }
.cta-glow::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--cta-a), transparent 0deg, transparent 205deg, rgba(240,39,28,0.75) 280deg, #ff5a48 320deg, #ffffff 346deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: cta-rotate 3.2s linear infinite;
}
@keyframes cta-rotate { to { --cta-a: 360deg; } }

/* ---------- Типографика ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--ink); margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(40px, 6vw, 78px); line-height: 0.98; letter-spacing: -0.015em; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.01em; }
.h3 { font-size: 24px; line-height: 1.1; letter-spacing: 0; }
.kicker { font: 700 13px/1 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--soft); max-width: 34em; }
.muted { color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; display: inline-block; }

.section { padding: 104px 0; scroll-margin-top: 80px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.section-head .lead { justify-self: end; font-size: 17px; }

/* ---------- Первый экран ---------- */
.hero { padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero .h1 { max-width: 13ch; }
.hero .h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 26px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; line-height: 1.4; color: var(--soft); }
.cta-note li { display: flex; gap: 9px; align-items: flex-start; }
.cta-note svg { flex: none; color: var(--accent); margin-top: 1px; }
.cta-note b { color: var(--ink); font-weight: 600; }
.tasks-note { font: 600 13px/1.3 var(--ui); color: var(--on-dark-muted); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.tasks-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.save { color: var(--accent-text); font-weight: 600; }
.price-alt { font: 500 20px/1 var(--display); color: var(--on-dark-muted); }
.section-faq { padding-top: 0; }
.faq-title { margin-bottom: 40px; }
.dark .kicker { color: #FF5A4E; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts b { display: block; font: 600 28px/1 var(--display); color: var(--ink); letter-spacing: 0.01em; }
.facts span { font-size: 14px; color: var(--muted); }

.portrait { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.portrait-img { border-radius: 22px; overflow: hidden; aspect-ratio: 3/4; background: #1a1a1e; box-shadow: var(--shadow); }
.portrait-img img { width: 100%; height: 100%; object-fit: cover; }
.portrait-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; border-radius: 0 0 22px 22px; background: linear-gradient(transparent, rgba(14,13,12,0.82)); color: #FAF9F7; }
.portrait-cap b { display: block; font: 600 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.portrait-cap span { font-size: 14px; color: rgba(250,249,247,0.75); }
.badge {
  position: absolute; top: -14px; left: 18px; display: inline-flex; align-items: center; gap: 8px;
  background: #232327; color: #fff; font: 700 11px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 999px; box-shadow: 0 12px 26px -10px rgba(22,19,15,0.5);
}
.badge .dot { animation: blip 1.6s ease-in-out infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Что на выходе (тёмная секция) ---------- */
.dark { background: var(--dark); color: var(--on-dark);
  background-image: linear-gradient(rgba(250,249,247,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(250,249,247,0.035) 1px, transparent 1px);
  background-size: 46px 46px; }
.dark .h2, .dark .h3 { color: var(--on-dark); }
.dark .lead { color: var(--on-dark-muted); }
.result-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.result-grid .lead { margin-top: 22px; }
.need { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--on-dark-line); font-size: 16px; color: var(--on-dark-muted); max-width: 30em; }
.need b { color: var(--on-dark); font-weight: 600; }
.tasks { display: flex; flex-direction: column; }
.task { padding: 26px 0; border-top: 1px solid var(--on-dark-line); }
.task:last-child { border-bottom: 1px solid var(--on-dark-line); }
.task-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; cursor: pointer; padding: 2px 0; }
.task-top::-webkit-details-marker { display: none; }
.task-top::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--on-dark-line); display: inline-flex; align-items: center; justify-content: center; font: 400 22px/1 var(--body); color: var(--accent); transition: transform .2s ease, border-color .2s ease; }
.task-top:hover::after { border-color: var(--accent); }
.task[open] .task-top::after { transform: rotate(45deg); }
.task[open] .task-top { margin-bottom: 16px; }
.task { padding: 22px 0; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.flow li { font-size: 15px; line-height: 1.45; color: var(--on-dark); background: rgba(250,249,247,0.05); border: 1px solid var(--on-dark-line); border-radius: 10px; padding: 12px 14px; }
.flow li small { display: block; font: 600 11px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 6px; }
.flow .arr { background: none; border: 0; padding: 0; display: flex; align-items: center; color: var(--accent); }
.flow li.out { border-color: rgba(240,39,28,0.55); }

.result-head { margin-bottom: 44px; }
.ab { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: stretch; margin-bottom: 72px; }
.ab-card { border-radius: 20px; padding: 28px 30px; border: 1px solid var(--on-dark-line); }
.ab-a { background: rgba(250,249,247,0.03); }
.ab-b { background: rgba(240,39,28,0.07); border-color: rgba(240,39,28,0.5); box-shadow: 0 30px 70px -40px rgba(240,39,28,0.55); }
.ab-label { font: 700 12px/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 12px; }
.ab-b .ab-label { color: #FF5A4E; }
.ab-title { font: 600 26px/1.1 var(--display); text-transform: uppercase; color: var(--on-dark); margin: 0 0 20px; }
.ab-a .ab-title { color: rgba(250,249,247,0.75); }
.ab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.45; }
.ab-list li { display: flex; gap: 12px; align-items: flex-start; }
.ab-list svg { flex: none; margin-top: 4px; }
.ab-a .ab-list { color: var(--on-dark-muted); }
.ab-a .ab-list svg { color: rgba(250,249,247,0.4); }
.ab-b .ab-list { color: var(--on-dark); }
.ab-b .ab-list svg { color: var(--accent); }
.ab-arrow { position: relative; display: flex; align-items: center; justify-content: flex-end; color: var(--accent); padding: 0 8px; }
.ab-line { position: absolute; left: 8px; right: 18px; top: 50%; height: 2px; background: linear-gradient(90deg, rgba(240,39,28,0.1), var(--accent)); transform-origin: left; }
.tasks-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 18px; }
.tasks-head .need { margin: 0; border-top: 0; padding-top: 0; justify-self: end; max-width: 30em; }

/* ---------- Программа ---------- */
.meta-line { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 40px; font-size: 15px; color: var(--soft); }
.meta-line span { display: inline-flex; align-items: center; gap: 8px; }
.plan { display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; border-top: 2px solid var(--ink); }
.step { padding: 22px 22px 6px 0; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step-date { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.step-date b { font: 600 44px/0.9 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.step-date span { font: 600 13px/1.2 var(--ui); color: var(--muted); text-transform: lowercase; }
.step h3 { font: 700 17px/1.3 var(--body); margin: 0 0 8px; color: var(--ink); }
.step p { font-size: 15px; line-height: 1.5; color: var(--soft); }
.step-n { font: 700 12px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; display: block; }
.step.support { background: var(--sand); border-left: 0; padding: 22px 22px 22px; border-radius: 0 0 16px 16px; }
.step.support .step-date b { font-size: 32px; }

/* ---------- Цены ---------- */
.pricing { background: var(--sand); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan-card.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-name { font: 600 26px/1.05 var(--display); text-transform: uppercase; color: var(--ink); margin: 0; }
.seats { font: 700 12px/1 var(--ui); letter-spacing: 0.04em; padding: 7px 11px; border-radius: 999px; background: var(--ink); color: var(--bg); white-space: nowrap; }
.price { margin: 26px 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price b { font: 600 54px/1 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.price s { font: 500 22px/1 var(--display); color: var(--muted); text-decoration-thickness: 1.5px; }
.price-note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.plan-list { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; font-size: 16px; line-height: 1.45; }
.plan-list li { display: flex; gap: 12px; }
.plan-list svg { flex: none; margin-top: 3px; color: var(--accent); }
.plan-card .btn { margin-top: auto; align-self: flex-start; }

.booking { margin-top: 20px; border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; background: var(--dark); color: var(--on-dark); }
.booking .price b { color: var(--on-dark); }
.booking .h3 { color: var(--on-dark); }
.booking .price-note { color: var(--on-dark-muted); margin-bottom: 0; }
.booking-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.booking-list li { font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); padding-left: 16px; border-left: 2px solid var(--accent); }
.booking-list b { display: block; color: var(--on-dark); font-weight: 600; font-size: 16px; margin-bottom: 2px; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.promise { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.promise-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
@media (prefers-color-scheme: dark) { .promise-ic { background: var(--sand); } }
.promise b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.promise p { font-size: 15px; line-height: 1.5; color: var(--soft); }
.cond-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font: 600 16px/1.3 var(--ui); color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.cond-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Автор ---------- */
.author { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.video-big { display: block; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s ease, transform .2s ease; }
.video-big:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.video-big .video-thumb { border-radius: 0; }
.video-big .video-thumb > span { align-items: flex-end; justify-content: flex-end; padding: 16px; }
.video-big .video-thumb span i { width: 64px; height: 64px; box-shadow: 0 14px 36px -10px rgba(240,39,28,0.6); }
.video-cap { display: block; padding: 18px 22px 20px; }
.video-cap b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.video-cap small { font-size: 14px; color: var(--muted); }
.author .lead { margin: 22px 0 0; }
.video { margin-top: 32px; display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; padding: 12px; padding-right: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); max-width: 560px; transition: border-color .2s ease, box-shadow .2s ease; }
.video:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.video-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-thumb span i { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; }
.video b { display: block; color: var(--ink); font-size: 16px; line-height: 1.35; margin-bottom: 4px; }
.video small { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 18px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; font-weight: 400; color: var(--accent); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 70ch; }
.faq details p + p { padding-top: 0; margin-top: -12px; }

/* ---------- Финал ---------- */
.final { padding: 96px 0; }
.final-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: end; }
.final .lead { margin-top: 22px; }
.final-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.final-side small { font-size: 14px; color: var(--on-dark-muted); }

.footer { padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer nav a { padding: 10px 0; }
.footer a:hover { color: var(--accent); }

/* ---------- Страница условий ---------- */
.doc-hero { padding: 56px 0 40px; }
.doc-hero .h1 { font-size: clamp(34px, 5vw, 64px); max-width: 20ch; }
.doc-hero .lead { margin-top: 20px; }
.doc-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 2px solid var(--ink); }
.doc-meta div { padding: 18px 20px 0 0; }
.doc-meta div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.doc-meta b { display: block; font: 600 24px/1.05 var(--display); color: var(--ink); text-transform: uppercase; margin-bottom: 6px; }
.doc-meta span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }
.doc { padding: 24px 0 88px; }
.doc-row { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.doc-row:last-of-type { border-bottom: 1px solid var(--line); }
.doc-row h2 { font: 600 24px/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin: 0; }
.doc-row ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 62ch; }
.doc-row li { position: relative; padding-left: 20px; }
.doc-row li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc-row p { max-width: 62ch; }
.doc-row strong { color: var(--ink); font-weight: 600; }
.doc-row a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.doc-row a:hover { color: var(--accent); border-color: var(--accent); }
.doc-end { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.doc-end p { font-size: 15px; color: var(--muted); }
.doc-end a.link { color: var(--ink); border-bottom: 1px solid var(--line-strong); }

/* ---------- Анимация при прокрутке (класс .fx ставит скрипт в <head>) ---------- */
.fx [data-rv], .fx [data-stagger] > * {
  opacity: 0; transform: translateY(22px); filter: blur(8px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1), filter .7s cubic-bezier(.16,1,.3,1);
}
.fx [data-rv].in, .fx [data-stagger].in > * { opacity: 1; transform: none; filter: none; }
.fx [data-stagger].in > *:nth-child(2) { transition-delay: .08s; }
.fx [data-stagger].in > *:nth-child(3) { transition-delay: .16s; }
.fx [data-stagger].in > *:nth-child(4) { transition-delay: .24s; }
.fx [data-stagger].in > *:nth-child(5) { transition-delay: .32s; }
.fx [data-stagger].in > *:nth-child(n+6) { transition-delay: .4s; }
/* А -> Б в такт прокрутке: --p от 0 до 1 считает скрипт, без него всё в финальном виде */
.ab { --p: 1; }
.ab-a .ab-list li { position: relative; }
.ab.scrub .ab-a .ab-list li { --k: clamp(0, (var(--p) - 0.08 - var(--i) * 0.07) * 5, 1); opacity: calc(1 - var(--k) * 0.55); }
.ab.scrub .ab-a .ab-list li { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(250,249,247, calc(var(--k) * 0.7)); }
.ab.scrub .ab-line { transform: scaleX(clamp(0, (var(--p) - 0.3) * 3.5, 1)); }
.ab.scrub .ab-arrow svg { opacity: clamp(0, (var(--p) - 0.5) * 8, 1); }
.ab.scrub .ab-b { --g: clamp(0, (var(--p) - 0.45) * 3, 1); border-color: rgba(240,39,28, calc(0.12 + var(--g) * 0.45)); box-shadow: 0 30px 70px -40px rgba(240,39,28, calc(var(--g) * 0.6)); background: rgba(240,39,28, calc(0.02 + var(--g) * 0.06)); }
.ab.scrub .ab-b .ab-list li { --k: clamp(0, (var(--p) - 0.5 - var(--i) * 0.07) * 6, 1); opacity: calc(0.25 + var(--k) * 0.75); transform: translateX(calc((1 - var(--k)) * 10px)); }
.ab.scrub .ab-b .ab-list svg { transform: scale(var(--k)); }
.ab.scrub .ab-b .ab-title { opacity: calc(0.4 + var(--g) * 0.6); }

/* Заголовок первого экрана по словам */
.fx .hero .h1 .w { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(6px); animation: word-in .7s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(0.1s + var(--i) * 0.08s); }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* Программа: линия тянется по датам */
.fx .plan[data-line] { border-top-color: transparent; position: relative; }
.fx .plan[data-line]::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.65,0,.35,1); }
.fx .plan[data-line].in::before { transform: scaleX(1); }
.fx .plan[data-line].in > *:nth-child(2) { transition-delay: .2s; }
.fx .plan[data-line].in > *:nth-child(3) { transition-delay: .4s; }
.fx .plan[data-line].in > *:nth-child(4) { transition-delay: .6s; }
.fx .plan[data-line].in > *:nth-child(5) { transition-delay: .8s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .plan { grid-template-columns: 1fr 1fr; }
  .step { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
  .step + .step { padding-left: 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .step.support { grid-column: 1 / -1; border-radius: 16px; margin-top: 16px; padding: 22px; border-left: 0; }
  .booking { grid-template-columns: 1fr; gap: 26px; }
  .promises { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 10px 10px 0; }
  .nav-bar { padding: 8px 8px 8px 16px; border-radius: 16px; }
  .nav-links { display: none; }
  .logo { font-size: 19px; }
  .section { padding: 72px 0; }
  .hero { padding: 36px 0 64px; }
  .hero-grid, .result-grid, .author, .final-grid, .section-head, .tasks-head { grid-template-columns: 1fr; gap: 36px; }
  .tasks-head { gap: 12px; }
  .tasks-head .need { justify-self: start; }
  .section-head { gap: 16px; margin-bottom: 36px; }
  .section-head .lead { justify-self: start; }
  .portrait { justify-self: start; max-width: 340px; }
  .plans, .promises { grid-template-columns: 1fr; }
  .booking-list { grid-template-columns: 1fr; }
  .ab { grid-template-columns: 1fr; margin-bottom: 56px; }
  .ab-card { padding: 22px; }
  .ab-arrow { height: 56px; justify-content: center; padding: 0; }
  .ab-arrow svg { transform: rotate(90deg); }
  .ab-line { left: 50%; right: auto; top: 6px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(240,39,28,0.1), var(--accent)); transform-origin: top; }
  .ab.scrub .ab-line { transform: scaleY(clamp(0, (var(--p) - 0.3) * 3.5, 1)); }
  .ab-list { font-size: 16px; }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow .arr { display: none; }
  .flow li { background: none; border: 0; border-left: 2px solid var(--on-dark-line); border-radius: 0; padding: 2px 0 2px 14px; }
  .flow li.out { border-left-color: var(--accent); }
  .portrait-img { aspect-ratio: 4/3; }
  .portrait-img img { object-position: 50% 22%; }
  .portrait { max-width: none; }
  .doc-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .doc-meta { grid-template-columns: 1fr 1fr; }
  .doc-meta div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
  .doc-meta div + div { padding-left: 0; border-left: 0; }
  .doc-meta div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .facts li { padding: 16px 14px 0 0; margin-right: 14px; }
  .facts b { font-size: 22px; }
  .facts span { font-size: 13px; line-height: 1.35; display: block; }
  .hero-cta .btn { width: 100%; }
  .plan { grid-template-columns: 1fr; }
  .step, .step:nth-child(even) { padding: 18px 0; border-left: 0; }
  .step-date b { font-size: 38px; }
  .plan-card, .booking { padding: 24px; }
  .price b { font-size: 46px; }
  .plan-card .btn, .final-side .btn { width: 100%; }
  .video { grid-template-columns: 1fr; padding: 12px; }
  .nav-right .btn-sm { padding: 9px 14px; font-size: 14px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
