:root {
  --paper: #FDFDF9;
  --ink: #212121;
  --accent: #6C4AB6;
  --accent-dark: #57379c;
  --accent-tint: #f3eefb;
  --green: #2E933C;
  --green-dark: #256e31;
  --marker: #FFD60A;
  --muted: #5f5e56;
  --line: #e7e5da;
  --card: #ffffff;
  --error: #c23b3b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 30px -18px rgba(60, 42, 110, 0.3);
  --font-display: "Unbounded", "Verdana", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 214, 10, 0.65); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.6em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.7rem, 1rem + 2.6vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.05rem); }
h3 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; overflow: clip; padding-block: 80px; }

.grid-bg {
  background-image:
    linear-gradient(rgba(108, 74, 182, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 74, 182, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mark {
  background-image: linear-gradient(rgba(255, 214, 10, 0.5), rgba(255, 214, 10, 0.5));
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 78%;
  padding-inline: 0.06em;
  white-space: nowrap;
}

.hand-note {
  position: absolute;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent);
  transform: rotate(-6deg);
  pointer-events: none;
}

.margin-formula {
  position: absolute;
  width: 220px;
  height: 60px;
  opacity: 0.6;
  pointer-events: none;
}

.margin-formula text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 24px;
  fill: rgba(108, 74, 182, 0.16);
}

.formula-1 { top: 40px; right: 2%; }
.formula-2 { bottom: 30px; left: 1%; }
.formula-3 { top: 46px; right: 3%; }
.formula-4 { bottom: 26px; right: 2%; }
.formula-5 { top: 30px; left: 2%; width: 260px; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 12px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(108, 74, 182, 0.8);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 16px;
}

.site-header.shrunk { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(33, 33, 33, 0.4); }
.site-header.shrunk .header-inner { padding-block: 8px; }

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.logo-sub { font-size: 0.72rem; color: var(--muted); }

.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 9px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-link:hover { background: var(--accent-tint); color: var(--accent-dark); }

.header-cta { min-height: 44px; padding: 10px 16px; font-size: 0.92rem; white-space: nowrap; }
.nav-extra { display: none; }

.burger {
  display: none;
  position: relative;
  z-index: 46;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-menu { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero { padding-block: 72px 88px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 440px);
  gap: 56px;
  align-items: start;
}

.hero-sub { font-size: 1.08rem; max-width: 58ch; }

.hero-bullets {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 60ch;
}

.icon.check { color: var(--green); margin-top: 2px; }

.hero-cta { margin-top: 32px; }

.cta-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-card { position: relative; padding: 32px 28px 28px; }

.hand-note-hero { top: -18px; right: 22px; font-size: 2rem; }

.hero-card-title { font-size: 1.3rem; margin-bottom: 8px; }
.hero-card-sub { font-size: 0.92rem; color: var(--muted); margin-bottom: 20px; }

/* Forms */
.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label { font-weight: 600; font-size: 0.9rem; }

.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #d8d5c9;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder { color: #6d6c64; }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.2);
}

.field input[aria-invalid="true"] { border-color: var(--error); }

.field-error { margin: 0; font-size: 0.82rem; color: var(--error); min-height: 0; }

.field-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.88rem;
}

.field-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.field-consent label { font-weight: 400; }
.field-consent .field-error { grid-column: 1 / -1; }

/* Pains */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pain-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pain-grid .pain-card:nth-child(odd) { transform: rotate(-0.4deg); }
.pain-grid .pain-card:nth-child(even) { transform: rotate(0.4deg); }
.pain-card:hover { transform: rotate(0deg) translateY(-4px); }

.pain-icon { color: var(--accent); width: 32px; height: 32px; margin-bottom: 14px; }

.pain-answer {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f2f8f0;
  border-radius: var(--radius-sm);
}

.pain-answer strong { color: var(--green-dark); }

/* Format */
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step { padding: 28px; }
.step-icon { color: var(--accent); width: 32px; height: 32px; margin-bottom: 14px; }

.step h3 { display: flex; align-items: baseline; gap: 10px; }

.step-num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1em;
}

.parents-note {
  position: relative;
  margin-top: 32px;
  padding: 24px 28px;
  background: #fffbea;
  border-color: #f0e6b8;
}

.parents-note .hand-note { top: -16px; left: 28px; }
.parents-note p { max-width: 75ch; }

/* Results */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin: 40px 0 48px;
}

.stat { display: flex; flex-direction: column-reverse; gap: 6px; max-width: 190px; }

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat .num { font-variant-numeric: tabular-nums; }
.num-muted { color: var(--muted); }
.num-prefix { font-size: 0.5em; font-weight: 600; }
.stat dt { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }

.chart-lead { max-width: 74ch; margin-bottom: 32px; }

.chart-figure { margin: 0; padding: 28px; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.legend-item { display: inline-flex; align-items: center; gap: 8px; }

.legend-swatch { width: 14px; height: 14px; border-radius: 4px; }
.swatch-ours { background: var(--accent); }
.swatch-country { background: #b9b7ad; }

.chart { width: 100%; height: auto; display: block; }
.chart-grid line { stroke: var(--line); stroke-dasharray: 4 6; }

.bar {
  rx: 4;
  transform: scaleY(0);
  transform-origin: bottom;
  transform-box: fill-box;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-in .bar { transform: scaleY(1); }
.chart-group:nth-child(3) .bar { transition-delay: 0.05s; }
.chart-group:nth-child(4) .bar { transition-delay: 0.1s; }
.chart-group:nth-child(5) .bar { transition-delay: 0.15s; }
.chart-group:nth-child(6) .bar { transition-delay: 0.2s; }

.bar-ours { fill: var(--accent); }
.bar-country { fill: #b9b7ad; }

.bar-val {
  font: 600 13px var(--font-body);
  fill: var(--ink);
  text-anchor: middle;
  opacity: 0;
  transition: opacity 0.5s ease 0.7s;
}

.chart-in .bar-val { opacity: 1; }
.val-country { fill: var(--muted); }

.bar-cat {
  font: 500 13px var(--font-body);
  fill: var(--muted);
  text-anchor: middle;
}

.chart-axis-note { font: 400 12px var(--font-body); fill: var(--muted); }

.chart-caption { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }

/* Guarantee */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.g-block { position: relative; padding: 28px; }
.g-block h3 { margin-bottom: 12px; }

.g-block-honest { background: #fffbea; border-color: #f0e6b8; }
.g-block-honest .hand-note { top: -16px; right: 26px; }

.check-list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list:last-child { margin-bottom: 0; }

.check-list li { position: relative; padding-left: 32px; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background-color: var(--green);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
}

.guarantee-why { margin-top: 32px; max-width: 78ch; }

/* Program */
.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 48px;
}

.module { padding: 24px 0; border-bottom: 1px dashed #d8d5c9; }

.module-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.module-head h3 { margin: 0; }

.module-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.module-months { margin-left: auto; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.module p { color: #3a3933; font-size: 0.97rem; }
.program-note { margin-top: 28px; color: var(--muted); max-width: 78ch; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.plan { padding: 32px 28px; position: relative; }

.plan-featured { border: 2px solid var(--accent); box-shadow: 0 20px 40px -22px rgba(108, 74, 182, 0.5); }

.plan-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  margin: 0;
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-per { font-size: 0.95rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.plan-desc { color: var(--muted); font-size: 0.95rem; }
.plan .check-list { font-size: 0.95rem; }

.plan-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px dashed #d8d5c9;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--muted);
}

.plans-cta { margin: 32px 0 56px; font-size: 1.02rem; max-width: 70ch; }
.plans-cta p { margin: 0 0 16px; }
.plans-cta .btn { display: inline-flex; }

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  overflow: hidden;
}

.calc-controls { padding: 32px; }
.calc-controls h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.calc-controls h3 .icon { color: var(--accent); }

.calc-tariffs { border: 0; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.calc-tariffs legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; padding: 0; }

.calc-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid #d8d5c9;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.calc-radio input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.calc-radio:hover { border-color: var(--accent); }
.calc-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

.calc-months label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.calc-months output { color: var(--accent); }

.calc-months input[type="range"] {
  width: 100%;
  height: 32px;
  accent-color: var(--accent);
  cursor: pointer;
}

.range-scale { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }

.calc-result {
  background: var(--accent-tint);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-total-label { margin: 0; font-size: 0.9rem; color: var(--muted); }

.calc-total {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.calc-line { margin: 0; font-size: 0.95rem; }
.calc-line strong { font-variant-numeric: tabular-nums; }
.calc-save strong { color: var(--green-dark); }

.calc-fine { display: block; margin: 2px 0 0; font-size: 0.78rem; color: var(--muted); }

.calc-guarantee {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.calc-guarantee .icon { margin-top: 1px; }
.calc-guarantee.off .icon { color: var(--muted); }

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 0.98rem; }
.review figcaption { color: var(--muted); font-size: 0.92rem; margin-top: auto; }
.review figcaption strong { color: var(--ink); }

.review-parent { background: #fffdf2; border-color: #eee7c8; }

/* FAQ */
.faq-container { max-width: 860px; }
.faq-list { margin-top: 36px; display: grid; gap: 12px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open { border-color: var(--accent); }

.faq-q { margin: 0; font-size: 1rem; }

.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 1.02rem/1.4 var(--font-body);
  text-align: left;
  cursor: pointer;
}

.faq-q button:hover { color: var(--accent-dark); }
.faq-q .chevron { color: var(--accent); transition: transform 0.3s ease; }
.faq-item.open .chevron { transform: rotate(180deg); }

.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner p { padding: 0 20px 20px; color: #3a3933; }

/* Final CTA */
.final-cta {
  background-color: var(--accent);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  color: #fff;
}

.final-cta .margin-formula text { fill: rgba(255, 255, 255, 0.22); }

.final-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
  gap: 56px;
  align-items: start;
}

.final-copy .icon.check { color: var(--marker); }
.final-copy .hero-bullets { margin-block: 24px; }

.final-form { padding: 32px 28px; color: var(--ink); }
.final-form .cta-note { color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfcec6;
  padding-block: 56px 32px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-title {
  font: 700 0.95rem/1.3 var(--font-body);
  color: #fff;
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfcec6;
  text-decoration: none;
  min-height: 28px;
}

.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .icon { width: 18px; height: 18px; }

.footer-legal {
  border-top: 1px solid #3a3a36;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #9c9b92;
}

.footer-legal p { margin-bottom: 6px; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }
.pain-grid .pain-card.reveal.in:nth-child(odd) { transform: rotate(-0.4deg); }
.pain-grid .pain-card.reveal.in:nth-child(even) { transform: rotate(0.4deg); }
.pain-grid .pain-card.reveal.in:hover { transform: rotate(0deg) translateY(-4px); }

/* Adaptive */
@media (max-width: 1023px) {
  html { scroll-padding-top: 84px; }

  .burger { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .logo { margin-right: 0; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 45;
    width: min(380px, 100%);
    height: 100dvh;
    background: var(--paper);
    box-shadow: -20px 0 50px -30px rgba(33, 33, 33, 0.5);
    padding: 104px 24px 32px;
    display: none;
    overflow-y: auto;
  }

  .site-nav.open { display: block; animation: nav-in 0.3s ease; }

  @keyframes nav-in {
    from { transform: translateX(64px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }

  .nav-list { flex-direction: column; gap: 2px; }
  .nav-link { font-size: 1.1rem; width: 100%; min-height: 48px; }

  .nav-extra {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
  }

  body.no-scroll { overflow: hidden; }

  .hero-inner, .final-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card, .final-form { max-width: 560px; }

  .steps { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; gap: 0; }
  .margin-formula { display: none; }

  .plans {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 16px 4px 20px;
    margin-inline: -4px;
  }

  .plan {
    flex: 0 0 min(400px, 86%);
    scroll-snap-align: center;
  }

  .calc { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  section { padding-block: 56px; }
  .container { padding-inline: 16px; }

  .header-cta { display: none; }
  .header-inner { gap: 12px; padding-block: 12px; }

  .hero { padding-block: 40px 64px; }
  .hero-card { padding: 24px 18px; }
  .hand-note-hero { right: 14px; }

  .pain-grid, .review-grid { grid-template-columns: 1fr; }

  .field-row { grid-template-columns: 1fr; }

  .stats { gap: 20px 28px; }
  .stat { max-width: 150px; }

  .chart-figure { padding: 18px 12px; }
  .chart-caption { padding-inline: 6px; }
  .bar-val { font-size: 17px; }
  .bar-cat { font-size: 17px; }
  .chart-axis-note { font-size: 15px; }

  .module-head { gap: 10px; }
  .module-months { margin-left: 0; width: 100%; }

  .calc-controls, .calc-result { padding: 22px 18px; }
  .final-form { padding: 24px 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .bar { transform: scaleY(1); }
  .bar-val { opacity: 1; }
}

/* --- Преподаватели --- */
.teachers { padding: var(--section-pad, 96px) 0; }
.teachers .section-lead { margin-top: 16px; font-size: 1.15rem; font-weight: 600; }
.teachers-intro { margin-top: 12px; max-width: 62ch; color: var(--muted, #5a5a5a); }
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.teacher { padding: 24px; }
.teacher h3 { font-size: 1.05rem; line-height: 1.35; }
.teacher-meta { margin-top: 8px; font-size: 0.9rem; color: var(--muted, #5a5a5a); }
.teacher-score { margin-top: 12px; font-size: 0.95rem; }
.teachers-note { margin-top: 24px; color: var(--muted, #5a5a5a); }
.footer-demo { margin-top: 12px; font-size: 0.82rem; line-height: 1.6; color: #9c9b92; }
.footer-demo a { color: inherit; }

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-dark); }
.btn-show-all { margin-top: 24px; }

@media (max-width: 900px) { .teacher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .teacher-grid { grid-template-columns: 1fr; } }

/* нав-меню выросло на пункт «Преподаватели»: не даём хедеру распирать вьюпорт */
@media (max-width: 1500px) {
  .nav-list { gap: 12px; }
  .nav-link { font-size: 0.88rem; }
  .header-inner { gap: 14px; }
}

/* ================================================================
   Визуальный слой: фото, макеты продукта, инфографика
   ================================================================ */

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- Растровые фото --- */
.photo { margin: 0; }

.photo picture { display: block; }

.photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  filter: sepia(0.24) saturate(0.88) contrast(1.03) brightness(1.03);
}

.photo figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

/* --- Макеты продукта в шагах --- */
.step-shot {
  margin: 0 0 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.shot { display: block; width: 100%; height: auto; }

.shot-frame { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.shot-frame-paper { fill: var(--paper); }
.shot-frame-blank { fill: #fff; stroke: #6f6d63; stroke-width: 1.2; }
.shot-hairline { stroke: var(--line); stroke-width: 1; }
.shot-dot { fill: #ddd9cc; }
.shot-board { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.shot-margin { stroke: #dba6a6; stroke-width: 1; }

.shot text { font-family: var(--font-body); }
.shot-tab { font-size: 8px; font-weight: 500; fill: var(--muted); }
.shot-tab-ink { font-size: 8.5px; fill: var(--muted); }
.shot-h { font-family: var(--font-display); font-size: 10px; font-weight: 700; fill: var(--ink); }
.shot-eq { font-size: 12px; font-weight: 500; fill: var(--ink); }
.shot-note { font-size: 7.5px; fill: var(--muted); }
.shot-note-hand { font-family: var(--font-hand); font-size: 11px; fill: var(--accent); }
.shot-marker { fill: rgba(255, 214, 10, 0.5); }
.shot-check { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shot-tile rect { fill: var(--accent-tint); stroke: none; }
.shot-tile circle, .shot-tile path { fill: none; stroke: rgba(108, 74, 182, 0.5); stroke-width: 1.4; }
.shot-tile-live rect { stroke: var(--green); stroke-width: 1.5; }
.shot-tile-live circle, .shot-tile-live path { stroke: var(--green); }

.shot-hand { font-family: var(--font-hand); font-size: 15px; fill: #2b3a67; }
.shot-hand-sm { font-size: 12px; }
.shot-mark { font-family: var(--font-hand); font-size: 12px; fill: var(--green); }
.shot-mark-warn { fill: var(--accent); }
.shot-score rect { fill: #e8f3ea; stroke: var(--green); stroke-width: 1; }
.shot-score text { font-size: 9px; font-weight: 700; fill: var(--green-dark); text-anchor: middle; }

.shot-blank-title { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; fill: var(--ink); }
.shot-blank-label { font-size: 7.5px; fill: #55534b; }
.shot-cells rect { fill: #fff; stroke: #6f6d63; stroke-width: 0.9; }
.shot-cell-digit { font-family: var(--font-display); font-size: 10px; fill: var(--ink); text-anchor: middle; }
.shot-blank-rule { stroke: #6f6d63; stroke-width: 1; }
.shot-blank-rule-thin { stroke: #cdcabe; stroke-dasharray: 3 3; }
.shot-expert rect { fill: #f6f5ef; stroke: #cdcabe; stroke-width: 0.9; }
.shot-expert-box { fill: #fff; }

/* --- Блок для родителей: текст + карта пробелов --- */
.parents-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 32px;
  align-items: center;
}

.parents-copy { max-width: 46ch; }
.gap-map { margin: 0; }
.map { display: block; width: 100%; height: auto; }
.map text { font-family: var(--font-body); }
.map-row { font-size: 13px; fill: var(--ink); text-anchor: end; }
.map-col { font-size: 12px; font-weight: 600; fill: var(--muted); text-anchor: middle; }
.map-legend-text { font-size: 11px; fill: var(--muted); }
.map-cell { stroke: rgba(108, 74, 182, 0.12); stroke-width: 1; }
.map-lvl-1 { fill: #f0edf7; }
.map-lvl-2 { fill: #ddd2ef; }
.map-lvl-3 { fill: #bda9e0; }
.map-lvl-4 { fill: #9070cd; }
.map-lvl-5 { fill: var(--accent); }
.gap-map figcaption { margin-top: 10px; font-size: 0.78rem; color: var(--muted); }

/* --- Преподаватели: монограммы --- */
.teachers-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: start;
}

.photo-board img { aspect-ratio: 3 / 2; }

.teacher-photo {
  position: relative;
  display: block;
  height: auto;
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
}

.teacher-photo picture { display: block; }

.teacher-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 24%;
  filter: grayscale(0.5) sepia(0.16) saturate(0.95) contrast(1.04);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.teacher:hover .teacher-photo img { filter: grayscale(0.15) sepia(0.06) saturate(1) contrast(1.02); }

/* --- Траектория ученика --- */
.traj-y { font: 500 12px var(--font-body); fill: var(--muted); text-anchor: end; }
.traj-x { font: 500 12px var(--font-body); fill: var(--muted); text-anchor: middle; }
.traj-threshold { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 6 5; opacity: 0.8; }
.traj-threshold-label { font: 600 12px var(--font-body); fill: var(--green-dark); }
.traj-area { fill: rgba(108, 74, 182, 0.09); }

.traj-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-in .traj-line { stroke-dashoffset: 0; }

.traj-dot { fill: #fff; stroke: var(--accent); stroke-width: 2.2; }
.traj-dot-key { fill: var(--accent); stroke: var(--paper); stroke-width: 2.5; }
.traj-val {
  font: 600 12px var(--font-body);
  fill: var(--muted);
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--card);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.traj-val-key { font-family: var(--font-display); font-size: 15px; fill: var(--ink); }
.traj-mark { fill: rgba(255, 214, 10, 0.55); }

.traj-dot, .traj-val, .traj-mark { opacity: 0; transition: opacity 0.4s ease var(--d, 0s); }
.chart-in .traj-dot, .chart-in .traj-val, .chart-in .traj-mark { opacity: 1; }

/* --- Кольца условий гарантии --- */
.rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
}

.ring { text-align: center; }
.ring svg { display: block; width: 100%; max-width: 88px; margin: 0 auto 8px; }
.ring-track { fill: none; stroke: #eae7dd; stroke-width: 3.6; }

.ring-val {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}

.ring-val-full { stroke: var(--green); }
.in .ring-val { stroke-dasharray: var(--v) 100; }
.ring-num { font: 700 9px var(--font-display); fill: var(--ink); text-anchor: middle; }
.ring-label { display: block; font-size: 0.78rem; line-height: 1.3; color: var(--muted); }

.photo-refund { margin-top: 20px; }
.photo-refund img { aspect-ratio: 16 / 9; }

/* --- Лента модулей --- */
.timeline { margin: 0 0 40px; overflow-x: auto; }
.tl { display: block; width: 100%; min-width: 760px; height: auto; }
.tl text { font-family: var(--font-body); }
.tl-edge { font-size: 13px; font-weight: 600; fill: var(--accent); }
.tl-edge-end { text-anchor: end; }

.tl-seg {
  transform-origin: left center;
  transform: scaleX(0.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}

.chart-in .tl-seg { transform: scaleX(1); }
.tl-seg-1 { fill: #efeaf9; }
.tl-seg-2 { fill: #e2d8f3; }
.tl-seg-3 { fill: #d0c1ec; }
.tl-seg-4 { fill: #b9a5e2; }
.tl-seg-5 { fill: #9d84d6; }
.tl-seg-6 { fill: var(--accent); }
.tl-num { font-family: var(--font-display); font-size: 17px; font-weight: 700; fill: var(--accent-dark); text-anchor: middle; }
.tl-num-light { fill: #fff; }
.tl-title { font-size: 13px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.tl-months { font-size: 11.5px; fill: var(--muted); text-anchor: middle; }
.tl-probe { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.tl-tail { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; }
.tl-flag { fill: var(--accent); }
.timeline .chart-caption { margin-top: 14px; }

/* --- Тарифы: текст + фото --- */
.plans-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
  max-width: none;
}

.plans-cta-copy { max-width: 48ch; }
.plans-cta-copy p { margin-bottom: 20px; }

/* --- Гарантия: разница между пробниками --- */
.delta { margin: 20px 0 0; }
.delta-svg { display: block; width: 100%; max-width: 390px; height: auto; }
.delta-base { stroke: var(--line); stroke-width: 1.5; }
.delta-bar-a { fill: #cfc8be; }
.delta-bar-b { fill: var(--accent); }
.delta-guide { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
.delta-arrow { stroke: var(--green); stroke-width: 1.6; }
.delta-head { fill: var(--green); }
.delta-mark { fill: rgba(255, 214, 10, 0.55); }
.delta-plus { font: 700 13px var(--font-display); fill: var(--ink); text-anchor: middle; }
.delta-label { font: 500 12px var(--font-body); fill: var(--muted); text-anchor: middle; }
.photo-desk img { aspect-ratio: 3 / 2; }

/* --- Адаптив визуального слоя --- */
@media (max-width: 1023px) {
  .teachers-top, .plans-cta, .parents-inner { grid-template-columns: 1fr; gap: 28px; }
  .parents-copy, .plans-cta-copy { max-width: none; }
  .photo-board, .photo-desk, .gap-map { max-width: 520px; }
  .teacher-monogram { font-size: 2.1rem; }
}

.scroll-hint { display: none; }

@media (max-width: 900px) {
  .scroll-hint { display: inline; color: var(--accent); font-weight: 600; }
}

@media (max-width: 767px) {
  .rings { gap: 8px; }
  .ring-label { font-size: 0.72rem; }
  .step-shot { margin-bottom: 16px; }
  .photo-board, .photo-desk, .gap-map { max-width: none; }
  .map-row { font-size: 17px; }
  .map-col { font-size: 15px; }
  .map-legend-text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .traj-line { stroke-dashoffset: 0; transition: none; }
  .traj-dot, .traj-val, .traj-mark { opacity: 1; transition: none; }
  .ring-val { stroke-dasharray: var(--v) 100; transition: none; }
  .tl-seg { transform: none; transition: none; }
}

.demo-note { margin-top: 8px; font-size: 0.82rem; line-height: 1.5; opacity: 0.62; font-style: normal; }
