/* thealexantonov.tech — landing v7 */

:root {
  color-scheme: only light;
  --bg: #f4f4f6;
  --surface: #ffffff;
  --ink: #101318;
  --body: #3b3f48;
  --muted: #6c7079;
  --line: #dfe1e6;
  --line-strong: #c9ccd3;
  --accent: #0a2fb8;
  --accent-hover: #08258f;
  --accent-tint: #e9edfb;
  --navy: #0c1633;
  --navy-text: #c9d0e4;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --paper: var(--surface);
  --bar: #fafafb;
  --fill: var(--navy);
  --on-fill: #ffffff;
  --err: #b3261e;
  --accent-deep: var(--accent-hover);
  --fg: var(--ink);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 760px;
  --shadow: 0 1px 2px rgba(16, 19, 24, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.03em; }
.nw { white-space: nowrap; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 15px; line-height: 1.4; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: 12px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--body); max-width: 60ch; }
.hint { font-size: 14px; color: var(--muted); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-on-dark { background: #fff; color: var(--navy); border-color: #fff; }
.btn-on-dark:hover { background: #e9edfb; border-color: #e9edfb; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: #fff; border-color: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 246, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 17px; margin-right: auto; color: var(--ink); }
.top-row:has(.progress-count:not([hidden])) .brand { margin-right: 12px; }
.top-row:has(.progress-count:not([hidden])) .progress-count { margin-right: auto; }
header.top .btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  width: auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: none;
}
.top .brand, .top .nav a { color: inherit; }
.top .brand { color: var(--ink); }
.top .nav a { color: var(--body); }
.top .nav a:hover { color: var(--ink); }
.top .top-cta, .top .nav-cta { color: #fff; }
header.top > .wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  max-width: var(--wrap);
  padding: 0;
  margin-inline: auto;
}
.top .btn { width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--body); }
.nav a:hover { color: var(--ink); }
.nav .nav-cta, .nav .nav-close { display: none; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-copy h1 { max-width: 22ch; }
.hero-copy .lead { margin-top: 24px; max-width: 54ch; }
.hero-copy .actions { margin-top: 32px; }
.hero-copy .hint { margin-top: 16px; max-width: 48ch; }

/* offer document */
.doc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 19, 24, .04), 0 24px 48px -28px rgba(16, 19, 24, .22);
  overflow: hidden;
}
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.doc-tag { color: var(--accent); font-weight: 600; }
.doc-body { padding: 24px 24px 8px; }
.doc-role { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.doc-rows { margin: 0; }
.doc-rows > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.doc-rows dt { color: var(--muted); }
.doc-rows dd { margin: 0; color: var(--body); }
.doc-rows dd b { display: block; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
.doc-rows dd span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.doc-foot { padding: 14px 24px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: #fafafb; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line-strong); }
.fact { padding: 24px 24px 0 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 22ch; }

/* ---------- thesis ---------- */
.thesis { margin-top: clamp(64px, 9vw, 120px); background: var(--navy); color: var(--navy-text); padding: clamp(56px, 7vw, 96px) 0; }
.thesis-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.thesis h2 { color: #fff; max-width: 20ch; }
.thesis p { font-size: 17px; line-height: 1.6; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }

/* who */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.who { padding: 28px 28px 0 0; border-right: 1px solid var(--line); }
.who + .who { padding-left: 28px; }
.who:last-child { border-right: 0; }
.who h3 { font-size: 19px; }
.who p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--body); }

/* how */
.how-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { font-size: 15px; font-weight: 600; color: var(--accent); padding-top: 3px; }
.step h3 { font-size: 20px; }
.step p { margin-top: 8px; color: var(--body); font-size: 16px; max-width: 58ch; }
.how-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.note { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.note h3 { font-size: 17px; }
.note p { margin-top: 8px; font-size: 15px; color: var(--body); }
.plain { margin: 10px 0 0; padding-left: 18px; font-size: 15px; color: var(--body); }
.plain li { margin-top: 6px; }

/* compare */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); color: var(--body); }
.compare thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--muted); background: #fafafb; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare .is-main { background: var(--accent-tint); color: var(--ink); font-weight: 500; }
.compare thead .is-main { color: var(--accent); font-weight: 700; }

/* results */
.case-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.case-meta { font-size: 14px; color: var(--muted); }
.case-copy h3 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 10px; letter-spacing: -0.02em; }
.case-copy > p { margin-top: 16px; color: var(--body); }
.case-steps { margin: 20px 0 24px; padding-left: 22px; color: var(--body); font-size: 16px; }
.case-steps li { margin-top: 10px; padding-left: 4px; }
.case-steps li::marker { color: var(--accent); font-weight: 600; }
.case-side { display: grid; gap: 20px; }
.shot { margin: 0; }
.shot button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.quote { margin: 0; padding: 20px 24px; border-left: 2px solid var(--accent); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.quote p { font-size: 18px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 64px); }
.shots-4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case-copy .quote { margin: 4px 0 24px; }

.shot-carousel { margin-top: clamp(40px, 6vw, 64px); }
.shot-carousel-viewport {
  overflow: hidden;
  container-type: inline-size;
}
.shot-carousel-track {
  display: flex;
  gap: 28px;
  align-items: start;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.shot-carousel-track.is-jump { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .shot-carousel-track { transition: none; }
}
.shot-carousel .shot {
  flex: 0 0 calc((100cqi - 28px) / 2);
  min-width: 0;
}
.shot-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.shot-carousel-dots { display: flex; align-items: center; gap: 8px; }
.shot-carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line-strong); cursor: pointer;
}
.shot-carousel-dots button.is-on { width: 22px; background: var(--accent); }
.case-side .shot button { border: 0; background: transparent; }
.hr { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.hr h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.hr .lead { margin-top: 12px; font-size: 17px; }
.hr .shots { margin-top: 32px; }

/* author */
.author { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.author-photo img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.author-copy .lead { margin-top: 16px; }
.facts-list { list-style: none; margin: 28px 0 0; padding: 0; }
.facts-list li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); font-size: 16px; color: var(--body); }
.facts-list li:last-child { border-bottom: 1px solid var(--line); }
.facts-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.quote-inline { margin-top: 28px; }
.quote-inline p { font-size: 17px; font-weight: 400; color: var(--body); }
.author-copy .link { display: inline-block; margin-top: 24px; }

/* price: term sheet */
.terms { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.terms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 32px; border-bottom: 1px solid var(--line); }
.terms-head h3 { font-size: 26px; letter-spacing: -0.02em; }
.terms-head p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 44ch; }
.terms-price { text-align: right; flex: none; }
.terms-price b { display: block; font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.terms-price span { display: block; margin-top: 8px; font-size: 15px; color: var(--accent); font-weight: 600; }
.terms-body { display: grid; grid-template-columns: 1fr 1fr; }
.pay { padding: 32px; border-right: 1px solid var(--line); }
.included { padding: 32px; }
.terms h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.pay-steps { list-style: none; margin: 0; padding: 0; counter-reset: pay; }
.pay-steps li { position: relative; display: grid; gap: 4px; padding: 0 0 22px 44px; counter-increment: pay; }
.pay-steps li::before { content: counter(pay); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pay-steps li::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--line-strong); }
.pay-steps li:last-child { padding-bottom: 0; }
.pay-steps li:last-child::after { display: none; }
.pay-steps b { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.pay-steps span { font-size: 15px; color: var(--body); }
.pay-note { margin-top: 24px; padding: 16px 18px; background: var(--accent-tint); border-radius: var(--radius-sm); font-size: 15px; color: var(--ink); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 30px; font-size: 15px; color: var(--body); border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; padding-top: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checklist li:first-child::before { top: 4px; }
.terms-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-top: 1px solid var(--line); background: #fafafb; }
.guarantee { display: flex; gap: 16px; align-items: flex-start; color: var(--accent); max-width: 62ch; }
.guarantee svg { flex: none; margin-top: 2px; }
.guarantee h4 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.guarantee p { font-size: 15px; color: var(--body); }

/* season */
.season .section-head { max-width: 760px; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.months span { display: block; padding: 14px 0 12px; text-align: center; font-size: 13px; color: var(--muted); border-top: 3px solid var(--line); }
.months .is-on { color: var(--ink); font-weight: 600; border-top-color: var(--accent); }
.season-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; max-width: 900px; }
.season-notes p { font-size: 16px; color: var(--body); }
.season-notes b { color: var(--ink); }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 400; color: var(--muted); font-size: 18px; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 60px 22px 0; color: var(--body); font-size: 16px; max-width: 64ch; }

/* final */
[data-final] { padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 9vw, 120px); }
.final { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(40px, 6vw, 72px); }
.final h2 { color: #fff; max-width: 18ch; }
.final .lead { color: var(--navy-text); margin-top: 16px; }
.final .actions { margin-top: 32px; }
.final .hint { margin-top: 16px; color: rgba(255,255,255,.55); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot b { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .copy { margin-left: auto; }

/* sticky cta (mobile) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(244,244,246,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s var(--ease); display: none; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-on { transform: none; }
body.has-sticky .site-footer { padding-bottom: 96px; }

/* form view */
[data-view="form"] { width: min(100% - 2 * var(--gutter), 520px); margin: 48px auto 96px; }
[data-view="form"] h1 { font-size: 32px; }
[data-view="form"] .note { margin-top: 12px; background: transparent; border: 0; padding: 0; color: var(--body); }
.form { display: grid; gap: 16px; margin-top: 28px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.err { color: #b3261e; font-size: 14px; }
.done { margin-top: 28px; display: grid; gap: 20px; font-size: 18px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(12, 22, 51, .9); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb img { max-width: min(100%, 1100px); max-height: 100%; border-radius: var(--radius-sm); background: #fff; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.22); }

.ym-pixel { position: absolute; left: -9999px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .who-grid { grid-template-columns: 1fr 1fr; }
  .who { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
  .who:nth-child(2n) { border-right: 0; padding-left: 24px; }
  .who:nth-child(2n+1) { padding-left: 0; }
  .who:nth-last-child(-n+2) { border-bottom: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; padding-left: 20px; }
  .fact:nth-child(2n+1) { padding-left: 0; }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 899px) {
  html { overflow-x: clip; }
  .top-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 0; z-index: 60; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 32px var(--gutter); background: var(--bg); transform: translateX(100%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .25s var(--ease); }
  /* backdrop-filter делает шапку контейнером для fixed-меню: меню сжимается до высоты шапки и вылезает вправо. На мобиле шапка просто сплошная */
  .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .nav a, .top .nav a { font-size: 28px; font-weight: 600; color: var(--ink); padding: 8px 0; }
  .nav .nav-cta, .top .nav .nav-cta { display: inline-flex; margin-top: 24px; font-size: 17px; font-weight: 600; color: #fff; background: var(--accent); padding: 0 24px; min-height: 52px; align-items: center; border-radius: 999px; }
  .nav .nav-close { display: inline-flex; position: absolute; top: 12px; right: var(--gutter); }

  .hero-grid, .thesis-grid, .how-grid, .case-main, .author, .faq-wrap { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .hero-visual { max-width: 520px; }
  .how-side { position: static; }
  .shots, .shots-4 { grid-template-columns: 1fr; gap: 20px; }
  .terms-head { flex-direction: column; }
  .terms-price { text-align: left; }
  .terms-body { grid-template-columns: 1fr; }
  .pay { border-right: 0; border-bottom: 1px solid var(--line); }
  .terms-foot { flex-direction: column; align-items: flex-start; }
  .terms-foot .btn { width: 100%; }
  .season-notes { grid-template-columns: 1fr; gap: 16px; }
  .months { gap: 4px; }
  .months span { font-size: 11px; padding: 10px 0 8px; }
  .sticky-cta { display: block; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
}

@media (max-width: 700px) {
  .shot-carousel-track { gap: 16px; }
  .shot-carousel .shot { flex-basis: 100cqi; }
  .compare { min-width: 0; table-layout: fixed; }
  .compare th:nth-child(3), .compare td:nth-child(3) { display: none; }
  .compare th, .compare td { padding: 12px 10px; font-size: 13px; overflow-wrap: break-word; hyphens: auto; }
  .compare thead th:first-child, .compare tbody th { width: 36%; }
  .compare th:nth-child(2), .compare td:nth-child(2) { width: 23%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .hero { padding-top: 32px; }
  .hero-copy .actions .btn { width: 100%; }
  .who-grid, .facts { grid-template-columns: 1fr; }
  .who, .fact { padding: 20px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .who:last-child, .fact:last-child { border-bottom: 0; }
  .doc-rows > div { grid-template-columns: 1fr; gap: 2px; }
  .doc-body, .doc-head, .doc-foot { padding-left: 18px; padding-right: 18px; }
  .step { grid-template-columns: 36px 1fr; }
  .pay, .included, .terms-head, .terms-foot { padding: 24px 20px; }
  .final .actions .btn { width: 100%; }
  .foot .copy { margin-left: 0; }
}

/* ---------- inner pages ---------- */
.page-main,
.shell-registry,
.shell-guide {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) 0 clamp(64px, 8vw, 96px);
}
.shell-test {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) 0 clamp(64px, 8vw, 96px);
}

.page-hero,
.guide-hero {
  max-width: 760px;
}

.page-hero h1,
.guide-hero h1,
.post h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  max-width: 16ch;
}

.page-lead,
.guide-lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  max-width: 60ch;
}

.guide-kicker,
.kicker,
.post .chip {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.post .date {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.post h2 {
  margin: 48px 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
}

.post > p,
.prose {
  max-width: 760px;
}
.post > p,
.prose p {
  margin: 0 0 16px;
  color: var(--body);
}

.story-steps {
  margin: 20px 0 24px;
  padding-left: 22px;
  color: var(--body);
}

.story-steps li { margin-top: 10px; }
.story-steps li::marker { color: var(--accent); font-weight: 600; }

.story-quote {
  margin: 20px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.post .final { margin-top: 48px; }
.post .fits { margin-top: 16px; display: grid; gap: 10px; }
.post .check { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.post .check svg { flex: none; margin-top: 2px; color: var(--accent); }

.prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(24px, 3vw, 32px);
}
.prose h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}
.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
  max-width: 64ch;
  display: grid;
  gap: 8px;
}
.prose a { color: var(--accent); text-decoration: none; font-weight: 500; }
.prose a:hover { border-bottom: 1px solid currentColor; }
.guide-sign { margin-top: 18px; color: var(--muted); }

.glossary {
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.glossary .term {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.glossary dt { font-weight: 600; color: var(--ink); }
.glossary dd { margin: 4px 0 0; color: var(--body); font-size: 15px; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }

.progress-count {
  margin: 0 auto 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.progress-count[hidden] { display: none; }
.progress-count b { color: var(--ink); }
.progress-track {
  width: 100%;
  height: 3px;
  background: var(--line);
  position: relative;
}
.progress-track[hidden] { display: none; }
.progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background: var(--accent);
  transform-origin: left center;
}

.nav-row .btn,
.cta-row .btn,
.consult-panel .btn,
.shell-test .form .btn,
.shell-registry .cta-row .btn { width: 100%; }
