/* =========================================================================
   Podlevskikh — VIP tutor landing. Token-driven design system.
   Axes (set as data-* on <html>):
     data-theme   = dark | light
     data-accent  = gold | green | blue
     data-density = compact | comfortable | airy
     data-font    = elegant | grotesk | classic
   Chosen preset: light · gold · comfortable · elegant («Oxford»).
   ========================================================================= */

/* ---- Base reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; margin: 0; letter-spacing: var(--display-tracking); }
p { margin: 0; }
em { font-style: italic; }

/* =========================================================================
   THEME TOKENS
   ========================================================================= */
:root {
  --maxw: 1200px;
  --radius: 4px;
  --radius-lg: 8px;

  /* density (overridden) */
  --gutter: 28px;
  --section-y: 120px;
  --stack: 22px;
  --display-scale: 1;
  --display-tracking: -0.01em;

  /* font families (overridden by data-font) */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
}

/* ---------- DARK ---------- */
html[data-theme="dark"] {
  --bg:        #0e1014;
  --bg-2:      #14171d;
  --bg-3:      #1b1f27;
  --bg-inset:  #0a0c0f;
  --ink:       #f2efe7;
  --ink-soft:  #d4d2cb;
  --muted:     #969ba5;
  --faint:     #6b7078;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.14);
  --card:      #15181e;
  --card-hi:   #1a1e25;
  --shadow:    0 30px 80px -30px rgba(0,0,0,.7);
  --hero-grad: radial-gradient(120% 90% at 80% 0%, rgba(255,255,255,.04), transparent 60%);
}
/* ---------- LIGHT ---------- */
html[data-theme="light"] {
  --bg:        #f6f3ec;
  --bg-2:      #fbfaf5;
  --bg-3:      #efeae0;
  --bg-inset:  #efeadd;
  --ink:       #16181a;
  --ink-soft:  #34373b;
  --muted:     #5f6360;
  --faint:     #908d84;
  --line:      rgba(20,20,15,0.12);
  --line-2:    rgba(20,20,15,0.18);
  --card:      #fffdf8;
  --card-hi:   #fffefb;
  --shadow:    0 30px 70px -34px rgba(40,36,24,.34);
  --hero-grad: radial-gradient(120% 90% at 80% 0%, rgba(0,0,0,.03), transparent 60%);
}

/* ---------- ACCENTS ---------- */
/* gold */
html[data-accent="gold"][data-theme="dark"]  { --accent:#c9a24b; --accent-bright:#dcb766; --accent-ink:#1a1408; --accent-soft:rgba(201,162,75,.14); --accent-line:rgba(201,162,75,.42); }
html[data-accent="gold"][data-theme="light"] { --accent:#9a7724; --accent-bright:#b08c34; --accent-ink:#fffdf5; --accent-soft:rgba(154,119,36,.12); --accent-line:rgba(154,119,36,.40); }
/* green */
html[data-accent="green"][data-theme="dark"]  { --accent:#5fae84; --accent-bright:#79c79c; --accent-ink:#06150d; --accent-soft:rgba(95,174,132,.14); --accent-line:rgba(95,174,132,.40); }
html[data-accent="green"][data-theme="light"] { --accent:#1f6b45; --accent-bright:#2a7d53; --accent-ink:#f3fbf6; --accent-soft:rgba(31,107,69,.11); --accent-line:rgba(31,107,69,.36); }
/* blue */
html[data-accent="blue"][data-theme="dark"]  { --accent:#6ea2d8; --accent-bright:#8bb9e6; --accent-ink:#06101c; --accent-soft:rgba(110,162,216,.14); --accent-line:rgba(110,162,216,.40); }
html[data-accent="blue"][data-theme="light"] { --accent:#235a93; --accent-bright:#2e6aa8; --accent-ink:#f2f8ff; --accent-soft:rgba(35,90,147,.11); --accent-line:rgba(35,90,147,.36); }

/* ---------- DENSITY ---------- */
html[data-density="compact"]     { --gutter:22px; --section-y:84px;  --stack:16px; }
html[data-density="comfortable"] { --gutter:28px; --section-y:120px; --stack:22px; }
html[data-density="airy"]        { --gutter:34px; --section-y:168px; --stack:30px; }

/* ---------- FONT PAIRS ---------- */
html[data-font="elegant"] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --display-scale: 1.16;
  --display-tracking: 0;
}
html[data-font="grotesk"] {
  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --display-scale: 0.9;
  --display-tracking: -0.022em;
}
html[data-font="classic"] {
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Spectral', Georgia, serif;
  --display-scale: 0.98;
  --display-tracking: -0.005em;
}

/* =========================================================================
   LAYOUT PRIMITIVES
   ========================================================================= */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--accent-line); }
.section-title { font-size: clamp(30px, 4.4vw, calc(52px * var(--display-scale))); max-width: 17ch; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; margin-top: var(--stack); line-height: 1.62; }
.hr-rule { height:1px; background: var(--line); border:0; margin:0; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .01em; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--accent-line); color: var(--accent);
  font-family: var(--font-display); font-size: 17px; font-weight: 600; border-radius: 3px;
}
.brand-name { font-family: var(--font-body); font-size: 15.5px; }
.brand-name b { font-weight: 600; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 8px; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; transition: all .2s ease; letter-spacing: .005em;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; overflow: hidden; padding-block: 0; }
.hero::before { content:""; position:absolute; inset:0; background: var(--hero-grad); pointer-events:none; }
.hero-inner {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center;
  padding-block: clamp(34px, 4.5vw, 60px) clamp(64px, 9vw, 116px);
}
.hero-flag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 7px 14px 7px 12px; border: 1px solid var(--accent-line); border-radius: 100px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--accent);
  background: var(--accent-soft);
}
.hero-flag .star { font-size: 13px; }
.hero h1 {
  font-size: clamp(34px, 5.1vw, calc(60px * var(--display-scale)));
  letter-spacing: var(--display-tracking);
}
.hero h1 em { color: var(--accent); font-style: italic; }
html[data-font="grotesk"] .hero h1 em { font-style: normal; }
.hero-sub { color: var(--ink-soft); font-size: clamp(17px, 1.7vw, 20px); max-width: 52ch; margin-top: 28px; line-height: 1.6; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px;
  border-top: 1px solid var(--line);
}
.hero-meta > div { padding: 18px 26px 0 0; margin-right: 26px; border-right: 1px solid var(--line); }
.hero-meta > div:last-child { border-right: 0; }
.hero-meta b { font-family: var(--font-display); font-size: 24px; font-weight: 600; display: block; }
.hero-meta span { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }

/* portrait */
.portrait-wrap { position: relative; }
.portrait { position: relative; }
.portrait-pic {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  background:
    repeating-linear-gradient(135deg, var(--bg-3) 0 14px, var(--bg-2) 14px 28px);
}
.portrait-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 43% 26%; }
.portrait--placeholder::before {
  content: "headshot.jpg"; position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; font-family: ui-monospace, Menlo, monospace;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.portrait-frame { position:absolute; inset: 10px; border: 1px solid var(--accent-line); border-radius: 4px; pointer-events:none; z-index: 3; mix-blend-mode: screen; }
html[data-theme="light"] .portrait-frame { mix-blend-mode: multiply; }
.portrait-badge {
  position: absolute; right: -14px; bottom: 26px; z-index: 4;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 18px; border-radius: 4px; box-shadow: var(--shadow);
  max-width: 188px;
}
.portrait-badge .big { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.portrait-badge .small { font-size: 11.5px; font-weight: 600; letter-spacing: .03em; margin-top: 6px; line-height: 1.3; }
.portrait-cap {
  margin-top: 16px; font-size: 13.5px; color: var(--muted); letter-spacing: .015em; line-height: 1.4;
}
.portrait-cap b { color: var(--ink); font-weight: 600; }

/* credential ticker under hero */
.cred-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cred-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-block: 22px; }
.cred-strip .lbl { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.cred-chip { font-size: 13.5px; color: var(--muted); display:inline-flex; gap:8px; align-items:center; }
.cred-chip b { color: var(--ink); font-weight: 600; }
.cred-chip::before { content:""; width:5px; height:5px; border-radius:50%; background: var(--accent); }

/* =========================================================================
   GENERIC CARD GRID
   ========================================================================= */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--card-hi); }
.card .kicker { font-size: 12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color: var(--accent); }
.card h3 { font-size: clamp(21px, 2vw, calc(27px * var(--display-scale))); margin-top: 14px; }
.card p { color: var(--muted); margin-top: 12px; font-size: 15.5px; line-height: 1.58; }

/* =========================================================================
   METHOD (numbered steps)
   ========================================================================= */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.step { padding: 34px 26px 34px 0; margin-right: 26px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.step-n { font-family: var(--font-display); font-size: 15px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.step::before { content:""; position:absolute; top:-1px; left:0; width: 46px; height: 2px; background: var(--accent); }
.step h3 { font-size: clamp(20px, 2vw, calc(25px * var(--display-scale))); margin-top: 18px; }
.step p { color: var(--muted); margin-top: 12px; font-size: 15px; line-height: 1.56; }
.parent-note {
  margin-top: 48px; display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 30px; border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.parent-note .ico { font-size: 22px; line-height: 1; }
.parent-note p { color: var(--ink-soft); font-size: 16px; max-width: 80ch; }
.parent-note b { color: var(--ink); }

/* =========================================================================
   PACKAGES
   ========================================================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: border-color .25s, transform .25s;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.price-card.featured { border-color: var(--accent); background: var(--card-hi); box-shadow: var(--shadow); }
.price-tag-top {
  position: absolute; top: -11px; left: 26px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.price-name { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-card.featured .price-name { color: var(--accent); }
.price-amt { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 700; margin-top: 14px; letter-spacing: -0.01em; }
.price-amt small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-desc { color: var(--muted); font-size: 14.5px; margin-top: 10px; min-height: 42px; line-height: 1.5; }
.price-feats { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.price-feats li { font-size: 14px; color: var(--ink-soft); display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.45; }
.price-feats li::before { content:"✓"; color: var(--accent); font-weight: 700; font-size: 13px; }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.pricing-foot { margin-top: 30px; color: var(--muted); font-size: 14.5px; max-width: 78ch; text-align: center; margin-inline: auto; }

/* =========================================================================
   RESULTS / TESTIMONIALS
   ========================================================================= */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 52px; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; position: relative;
}
.quote .mark { font-family: var(--font-display); font-size: 56px; color: var(--accent-line); line-height: .6; height: 28px; }
.quote p { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, calc(26px * var(--display-scale))); line-height: 1.32; color: var(--ink); }
html[data-font="grotesk"] .quote p { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; }
.quote .who { margin-top: 20px; font-family: var(--font-body); font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }
.results-bar {
  margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px;
  padding: 22px; border: 1px solid var(--accent-line); border-radius: var(--radius-lg); background: var(--accent-soft);
  text-align: center;
}
.results-bar .stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; }
.results-bar span { font-size: 15px; color: var(--ink-soft); }
.results-bar b { color: var(--ink); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--ink);
  padding: 26px 0; display: flex; align-items: center; gap: 20px; font-family: var(--font-display);
  font-size: clamp(19px, 2vw, calc(24px * var(--display-scale))); font-weight: 600; letter-spacing: var(--display-tracking);
}
.faq-q .plus { margin-left: auto; color: var(--accent); font-size: 22px; transition: transform .3s; flex-shrink: 0; font-family: var(--font-body); }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 60px 28px 0; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 84ch; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* =========================================================================
   BOOK / CTA
   ========================================================================= */
.book { background: var(--bg-2); border-top: 1px solid var(--line); }
.book-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.book h2 { font-size: clamp(32px, 4.6vw, calc(56px * var(--display-scale))); }
.book h2 em { color: var(--accent); font-style: italic; }
html[data-font="grotesk"] .book h2 em { font-style: normal; }
.book-card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.book-card .row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.book-card .btn { flex: 1; justify-content: center; min-width: 140px; }
.book-card .fine { font-size: 13px; color: var(--faint); margin-top: 18px; line-height: 1.5; }
.book-card .fine a { color: var(--accent); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.footer .copy { font-size: 13.5px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer .loc { width: 100%; font-size: 12.5px; color: var(--faint); letter-spacing: .04em; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* tablet landscape & down */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .hero-inner { gap: 44px; }
}

/* tablet portrait — stack hero, two-up grids */
@media (max-width: 940px) {
  html { --section-y: clamp(72px, 11vw, 104px); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; align-items: start; padding-block: 28px 0; }
  .hero-copy { order: 1; }
  .portrait-wrap { order: 2; max-width: 460px; }
  .hero h1 { font-size: clamp(36px, 7vw, 60px); }
  .hero-sub { max-width: 60ch; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); row-gap: 4px; }
  .step:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .step { border-right: 0; margin-right: 0; padding-right: 0; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .book-inner { grid-template-columns: 1fr; gap: 34px; }
}

/* large phone */
@media (max-width: 680px) {
  body { font-size: 16px; }
  html { --section-y: clamp(60px, 14vw, 84px); --gutter: 20px; }
  .nav-inner { height: 62px; gap: 14px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .brand-name { font-size: 14px; }
  .hero-flag { font-size: 11.5px; padding: 6px 12px 6px 10px; }
  .cols-2, .cols-3, .cols-4, .method-grid, .pricing-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 0; }
  .hero-meta > div { flex: 1 1 44%; min-width: 130px; border-right: 0; margin-right: 0; padding: 16px 16px 0 0; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding: 26px 0; }
  .method-grid { border-top: 0; }
  .parent-note { flex-direction: column; gap: 10px; padding: 22px; }
  .portrait-badge { right: 0; bottom: 16px; padding: 11px 14px; max-width: 158px; }
  .portrait-badge .big { font-size: 24px; }
  .portrait-badge .small { font-size: 10.5px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .results-bar { flex-direction: column; gap: 8px; }
  .footer-links { margin-left: 0; width: 100%; }
}

/* small phone */
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .price-amt { font-size: 30px; }
  .nav-cta { padding: 9px 13px; font-size: 12.5px; }
}

/* =========================================================================
   MOBILE HOTFIX 2026-07-02 — mobile-only overrides, desktop untouched.
   ========================================================================= */
@media (max-width: 767.98px) {
  /* P0: both footer variants set grid-template-columns inline
     (homepage repeat(3,1fr); content pages 1.4fr 1fr 1fr). Those inline
     rules never collapsed on mobile, so the third column (Resources / Book /
     Telegram) was clipped past the right edge (scrollWidth 527px @ 390vw).
     !important is required to beat the inline declaration. */
  .footer > .wrap { grid-template-columns: 1fr !important; }
  /* P2: on scroll the translucent, blurred sticky nav left a "ghost" band
     bleeding over the Telegram/WhatsApp CTAs. Make the mobile nav opaque. */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
  /* P0 (residual): the final-CTA button label is non-wrapping (.btn is
     white-space:nowrap). Long RU labels ("📅 Выбрать время в Calendly")
     forced the single-column grid track wider than the viewport (ege 405px).
     Let the CTA button wrap on mobile so nothing pushes past the edge. */
  .book-card .btn { white-space: normal; min-width: 0; }
  /* P0 (residual): wide comparison tables (.spec-table, e.g. olympiad-physics
     441px) pushed the page past the viewport. Standard responsive pattern —
     the table scrolls inside its own box instead of widening the document.
     Tables that already fit keep width:100% and look unchanged. */
  .spec-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
