@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/montserrat-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/montserrat-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Силас — advanced version. Light theme: white / black / red #ED1C24 / orange #F15A29 */

:root {
  --red: #ED1C24;
  --red-dark: #C41219;
  --red-darker: #A30E14;
  --orange: #F15A29;
  --orange-dark: #C43D12;
  --ink: #141414;
  --ink-soft: #3d3d3d;
  --paper: #ffffff;
  --paper-warm: #FFF7F3;
  --line: #eee6e1;
  --radius: 14px;
  --radius-sm: 8px; /* малки елементи: чипове, бадж — контейнерите остават 14 */
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: var(--red-dark) var(--paper-warm); scrollbar-width: thin; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow { max-width: 720px; }
.narrow p, .faq details p { max-width: 65ch; }
.center { text-align: center; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Max 2.8rem (беше 3.4): на 1440x900 хедлайнът чупеше на 5 реда и hero-то преливаше 100svh */
h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; margin-bottom: 0.4rem; letter-spacing: 0; }
h1, h2, .hero-punch, .promise-lead, .sreda-fact { text-wrap: balance; }
h1, .bal-formula, .hero-punch, .source-note { font-variant-numeric: tabular-nums lining-nums; }

section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.accent-red { color: var(--red); }

::selection { background: var(--red-dark); color: #fff; }
.final-cta ::selection, .site-footer ::selection { background: #fff; color: var(--red-dark); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9em 1.6em;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
  /* background-color ПОД градиента: hover анимира color→color, не image→color —
     иначе шорткътът минаваше през transparent и бутонът светваше бял (бъг 08.08) */
  background-color: var(--red-dark);
  background-image: linear-gradient(180deg, #D31820 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(163, 14, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { background-color: var(--red-darker); background-image: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(237, 28, 36, 0.25); }
.btn-light {
  background: #fff;
  color: var(--red-dark);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: none; transition-duration: 0.05s; }
.btn-primary:active { background-color: var(--red-darker); background-image: none; }
.btn-lg { font-size: 1.05rem; padding: 1.1em 2em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-icon { width: 36px; height: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
}
.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 0.2rem;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--red-dark); }
.header-cta {
  font-size: 0.9rem;
  padding-top: 0.7em;
  padding-bottom: 0.7em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* Без повдигане в 50px sticky лента — само сянка */
.header-cta:hover { transform: none; box-shadow: 0 4px 12px rgba(237, 28, 36, 0.25); }
.nav-toggle { display: none; }

/* Hero — пълен viewport под 60px sticky хедър. Padding-ът е малък (не секционният
   clamp): иначе съдържанието + 2×88px въздух надвишаваха 100svh и се скролваше. */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  display: flex;
  align-items: center;
  min-height: calc(100vh - 60px);
  min-height: calc(100svh - 60px);
  padding: clamp(0.8rem, 2vw, 1.6rem) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 2.5rem;
}
.hero-inner > * { min-width: 0; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
  margin-bottom: 0.6rem;
}
/* Live индикатор до eyebrow-а: сигнал, че приемът върви в момента (09.08).
   Нарочно без фон и рамка — гаранцията вече веднъж заприлича на бутон и
   я изчистихме; този елемент е статус, не действие. */
.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin-bottom: 0.6rem;
}
/* Мобилната заявка дава `.eyebrow { order: 1 }` за подредбата на hero-а, но тя важи
   и вътре в този flex ред и изкарваше баджа над eyebrow-а при wrap. По-висока
   специфичност я неутрализира тук, без да пипаме мобилния стек. */
.eyebrow-row .eyebrow { margin-bottom: 0; order: 0; }
.eyebrow-row .live-badge { order: 1; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-dark);
  margin: 0;
}
.live-dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--red-dark);
  flex: none;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1rem 0 1.5rem;
  max-width: 34em;
}
.hero-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }
.hero-visual img { margin: 0 auto; }

/* How — cards */
.how { background: var(--paper-warm); }
.how h2 { text-align: center; margin-bottom: 2.5rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 6px 20px rgba(196, 18, 25, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(20, 20, 20, 0.05), 0 12px 28px rgba(196, 18, 25, 0.08);
}
.card p { font-size: 0.95rem; color: var(--ink-soft); }
/* Глифовете от логото маркират картите: усмивка/плюс оранжеви, книга/play червени */
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 44px; height: 44px; display: block; }
.card-icon.glyph-red { color: var(--red); }
.card-icon.glyph-orange { color: var(--orange); }

/* About — двама преподаватели, две равни карти */
.about { background: var(--paper-warm); }
.about h2 { margin-bottom: 2.5rem; }
.teachers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}
.teacher {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.teacher > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}
.teacher h3 { margin-bottom: 0.15rem; }
.teacher-role {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
  margin-bottom: 0.9rem;
}
.teacher p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.teacher p:last-child { margin-bottom: 0; }
.teachers-note {
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto 1.6rem;
  text-align: center;
}
.about p a {
  color: var(--red-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about p a:visited { color: var(--red-darker); }
.about p a:hover { color: var(--red); }

/* Steps */
.path h2 { text-align: center; margin-bottom: 2.5rem; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.steps-3 { grid-template-columns: repeat(3, 1fr); max-width: 920px; margin: 0 auto; }
.step {
  border: none;
  border-top: 3px solid var(--line);
  border-radius: 0;
  padding: 1.4rem 0.2rem 0;
}
.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange-dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 1rem;
}
.step p { font-size: 0.95rem; color: var(--ink-soft); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0 0.8rem;
}
.faq details[open] { background: var(--paper-warm); }
.faq details[open] summary { color: var(--red-dark); }
.faq summary {
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  line-height: 1.35;
  transition: color 0.15s ease;
}
.faq summary:hover { color: var(--red-dark); }
.faq summary:hover::after { color: var(--red); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2em;
  text-align: center;
  line-height: 1;
  color: var(--orange-dark);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 0 1rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
}
.faq details[open] p {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

/* Final CTA */
.final-cta {
  /* Осветление, не смяна на цвят — 135° диагоналът четеше като AI шаблон */
  background: radial-gradient(120% 140% at 50% 0%, var(--red-dark) 0%, var(--red-darker) 100%);
  color: #fff;
}
.final-cta p { margin: 1rem 0 2rem; font-size: 1.1rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d6d6d6;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: #d6d6d6; text-decoration: none; padding: 0.6rem 0.2rem; display: inline-block; transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--orange); }
.footer-legal { width: 100%; margin-top: 0.75rem; font-size: 0.8rem; letter-spacing: 0.01em; color: #b5b5b5; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  /* Ляво подравняване на мобилен hero (F030, одобрено от Чочо) — центриран
     5-редов хедлайн четеше като шаблон; само портретът остава центриран */
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-sub { margin-left: 0; margin-right: 0; }
  .hero-visual img { max-width: 260px; margin: 0 auto; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-3 { grid-template-columns: repeat(2, 1fr); }
  .teachers { grid-template-columns: 1fr; }
}

/* Хамбургерът пада от 860px, не от 640: с петия линк („Гаранция“) хоризонталната
   навигация вече не се събира редом с логото и CTA-то на таблет (преливаше на 768). */
@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 4%;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem 0; min-height: 44px; display: flex; align-items: center; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
  }
}

@media (max-width: 640px) {
  .cards, .steps, .steps-3 { grid-template-columns: 1fr; }
  /* Един ред на телефон: пилът се чупеше на 2 реда и задръстваше 375px хедъра */
  .header-inner { gap: 0.6rem; }
  .brand-name { font-size: 1.15rem; }
  .header-cta {
    white-space: nowrap;
    font-size: 0.8rem;
    padding-left: 1.1em;
    padding-right: 1.1em;
  }
  /* По-компактен H1 на къси телефони — първият CTA излиза над fold-а */
  h1 { font-size: 1.85rem; }
  .hero-sub { margin-bottom: 1.4rem; }
  /* Български пренос на дълги думи на тесен екран — само в основния текст, не в заглавия */
  .narrow p, .card p, .step p, .faq details p {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* ---------- Advanced additions ---------- */

html { font-size: 106.25%; }

.hero-punch {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--ink);
  margin-top: 0.8rem;
}
.source-note {
  font-size: 0.8rem;
  color: #6b6b6b;
  margin-top: 1rem;
}
/* Гаранцията — редакционна бележка, не badge (09.08). Картата (рамка + сянка +
   бял фон, а под 900px и пилюла) стоеше веднага под CTA-то и четеше като втори
   бутон. Остава само червената линия отляво: тежест без афорданс за клик. */
.hero-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 0.55em;
  margin-top: 0.9rem;
  padding: 0 0 0 0.85rem;
  border-left: 3px solid var(--red);
  background: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  max-width: 34em;
}
.hero-guarantee .check-icon { color: var(--red); flex: none; margin-top: 0.3em; }
/* Върху червения фон на финалния CTA червената линия и червената отметка изчезват */
.final-cta .hero-guarantee {
  margin: 1.4rem auto 0;
  font-size: 1rem;
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.6);
}
.final-cta .hero-guarantee .check-icon { color: #fff; }

/* Обещанието — statement block, чупи топлия фон (Hormozi nit 2) */
.promise { background: #fff; }
/* Highlighter акцент в H2 („гимназията, която сте избрали") */
.mark { box-shadow: inset 0 -0.38em 0 rgba(237, 28, 36, 0.16); padding: 0 0.04em; }
.promise-lead {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  margin: 0.5rem 0 1.2rem;
}
.promise-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0 0 1.2rem; }
.promise-points li {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
}

/* AI кадърът е пейзаж 3:2 — режем до 3:4 портрет, фокус върху детето (вдясно от центъра).
   max-height пази 100svh hero-то на ниски лаптопи: кутията се снишава, cover дорязва. */
.hero-visual img {
  border-radius: var(--radius);
  max-width: min(420px, 100%);
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(62svh, 540px);
  object-fit: cover;
  object-position: 64% 30%;
}

@media (max-width: 900px) {
  .hero-visual img { max-width: min(260px, 100%); }
}

/* Бал formula. По-голям padding-top: hero-то свършва точно на ръба на viewport-а
   и втората секция залепваше за него (обратна връзка 08.08). */
.bal { padding-top: clamp(4.5rem, 10vw, 7rem); }
/* Формулата иска 779px на един ред, а .narrow дава 720. Разширяваме само тази
   секция до 820px, за да не се пречупва „= бал за математическите паралелки"
   на втори ред (обратна връзка 09.08). Абзацът отдолу си остава на 65ch. */
.bal .narrow { max-width: 820px; }
.bal h2 { margin-bottom: 1.6rem; }
.bal-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 1.4rem 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.bal-part {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55em 0.9em;
}
.bal-part b { color: var(--ink); }
.bal-math {
  background: var(--red-dark);
  color: #fff;
  border-color: var(--red-dark);
}
.bal-math b { color: #fff; }
.bal-plus, .bal-eq {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--orange);
}
.bal p { font-size: 1.05rem; }

/* Format section */
.format { background: var(--paper-warm); }
.format p { margin-bottom: 1rem; font-size: 1.05rem; }
.video-slot { margin-top: 2rem; }
.video-still {
  width: 100%;
  border-radius: var(--radius);
}
/* NOTE: когато има реален клип, върни .video-facade/.video-play стиловете от git историята */
.video-caption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

/* Проверката като checklist карта (08.08, Max Perzon адаптация в системата на Силас):
   бяла карта, ✓ редове със strikethrough като „минато", ✗ ред за намерената грешка. */
.hw-check {
  max-width: 560px;
  margin: 2.5rem auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 4px rgba(20, 20, 20, 0.04), 0 14px 34px rgba(196, 18, 25, 0.07);
}
.hw-check-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.hw-check-title { font-family: var(--font-head); font-weight: 800; }
.hw-check-status {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red-dark);
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.hw-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.hw-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-dark) 100%);
}
.hw-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.hw-check-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.1rem 0.6rem 2.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: #fff;
}
.hw-check-list li::before {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 800;
}
.hw-done::before { content: "✓"; color: var(--red-dark); }
.hw-done {
  text-decoration: line-through;
  text-decoration-color: rgba(61, 61, 61, 0.45);
  text-decoration-thickness: 1px;
}
.hw-miss::before { content: "✗"; color: var(--orange-dark); }
.hw-miss { background: var(--paper-warm); border-color: rgba(196, 61, 18, 0.4); color: var(--ink); }
.hw-check-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  text-align: center;
}
/* Снимката на проверена тетрадка (09.08). Тясна рамка, за да е ясно, че е снимка,
   а не карта: хартията е светла и с широк padding се слива с фона на секцията.
   10.08: свита от 560 на 440px и без червения оттенък в сянката — доминираше
   над картите, чието доказателство е. Етикетът „Пример" е правен, не украса:
   снимката е образец как се връща домашно, не домашно на записан ученик. */
.hw-proof {
  position: relative;
  max-width: 440px;
  padding: 0.6rem 0.6rem 1.1rem;
  box-shadow: 0 2px 4px rgba(20, 20, 20, 0.04), 0 10px 24px rgba(20, 20, 20, 0.07);
}
.hw-proof img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--paper-warm);
}
.hw-proof .hw-check-note { margin-top: 0.9rem; }
.hw-proof-label {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 1;
  margin: 0;
  padding: 0.25rem 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
/* Лупа за примерното домашно (10.08): курсорът е поканата на десктоп;
   на телефон script.js изобщо не закача клика. */
@media (min-width: 768px) {
  .hw-proof img { cursor: zoom-in; }
}
.hw-zoom {
  margin: auto; /* глобалният reset маха UA центрирането на <dialog> */
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
}
.hw-zoom::backdrop { background: rgba(20, 20, 20, 0.72); }
.hw-zoom img {
  display: block;
  width: auto;
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  cursor: zoom-out;
}

/* Среда — statement блок с идентичност (08.08): центриран, къса червена черта отгоре,
   по-голям от бодитекста. Чете се като цитат, без буквални кавички. */
.sreda { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); text-align: center; }
.sreda .narrow::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--red);
  margin: 0 auto 1.5rem;
}
.sreda-fact {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.9vw, 1.7rem);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.sreda .narrow p { margin-left: auto; margin-right: auto; }
.sreda p:last-child { color: var(--ink-soft); font-size: 1.02rem; }

/* Hero: recognition line за топъл трафик (идват от YouTube) */
.hero-recognition {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

/* Numbers bar — само реални числа (Hormozi/trends: числа преди CTA) */
.numbers-bar {
  list-style: none;
  /* Grid, не flex: flex чупеше 3+1 на 1440 — grid дава 4 на ред или чисто 2×2 */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem 1.2rem;
  margin: 1.2rem 0 0;
  padding: 0;
}
.numbers-bar li { display: flex; flex-direction: column; min-width: 0; }
.numbers-bar b {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--red-dark);
  font-variant-numeric: tabular-nums lining-nums;
}
.numbers-bar span { font-size: 0.8rem; color: var(--ink-soft); }

/* Не е за всяко дете — disqualifier */
/* Не е за всеки / За кого е — психологията: първо отсяваме, после каним */
.notfor { background: var(--paper-warm); }
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 1.6rem 0 2rem;
}
.fit-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.fit-col h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.fit-not h3 { color: var(--ink-soft); }
.fit-for { border-color: rgba(196, 61, 18, 0.4); }
.fit-for h3 { color: var(--red-dark); }
.fit-list { list-style: none; padding: 0; }
.fit-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.fit-list li::before {
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-family: var(--font-head);
  font-weight: 800;
}
.fit-not .fit-list li::before { content: "×"; color: var(--ink-soft); }
.fit-for .fit-list li::before { content: "✓"; color: var(--red-dark); }
/* Открояващият се цитат — червената линия на учителя */
.pull-quote {
  border-left: 4px solid var(--red);
  padding: 0.3rem 0 0.3rem 1.4rem;
  max-width: 30em;
}
.pull-quote p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.35;
  text-wrap: balance;
}
@media (max-width: 720px) {
  .fit-grid { grid-template-columns: 1fr; }
}

/* Гаранцията */
.guarantee { background: var(--paper-warm); }
.guar-lead {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  margin: 0.5rem 0 1.2rem;
}
.guar-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.guar-list li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.guar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-weight: 700;
  color: var(--red-dark);
}
/* Януарският ангажимент — callout карта с етикет (08.08: по-къс текст, собствен облик) */
.promise-honest {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-dark);
  border-radius: var(--radius-sm);
}
.promise-honest-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-dark);
  margin-bottom: 0.4rem;
}
.promise-honest p:last-child { color: var(--ink-soft); }

/* Цена / offer stack + сравнение */
.offer h2 { text-align: center; margin-bottom: 2.5rem; }
.offer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
/* min-width:auto на grid items пречи на .table-scroll да поеме 560px таблицата на телефон */
.offer-grid > * { min-width: 0; }
.offer-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.offer-price b { color: var(--red-dark); }
.offer-price-lv { font-size: 0.6em; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
/* Малките числа първи (08.08): часовата ставка води, тоталът затваря стека */
.offer-price-cmp { display: block; font-size: 0.5em; font-weight: 600; color: var(--ink-soft); line-height: 1.4; margin-top: 0.2em; }
.offer-total {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin: 1.4rem 0 0.2rem;
}
.offer-total b { color: var(--red-dark); }
.offer-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.offer-list li {
  padding: 0.45rem 0 0.45rem 1.7rem;
  position: relative;
}
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.9em;
  height: 0.5em;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}
.offer-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 1rem; max-width: 46em; }
.bonus-title { font-weight: 700; margin: 1.4rem 0 0.3rem; }
.bonus-list { margin-bottom: 0.4rem; }
.bonus-list li { font-size: 0.97rem; }
/* Responsive 16:9 wrapper за YouTube embed-а (F-video) */
.video-embed { position: relative; aspect-ratio: 16 / 9; }
/* 2px, не var(--radius): токенът още е 14px и противоречи на DESIGN.md (карти 2px).
   Цялостната смяна на --radius е отделен минаване, не се прави тук. */
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 2px; }

/* YouTube фасада: постерът стои на страницата, iframe-ът влиза чак при клик.
   Две причини: file:// няма origin и плеърът връща Error 153, а третостранният
   iframe тежеше на първото зареждане. Постерът е локален, не от i.ytimg.com. */
.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 2px; /* DESIGN.md: карти/снимки 2px. --radius още е 14px, виж бележката горе. */
  background: var(--ink);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 52px;
  transform: translate(-50%, -50%);
  background: var(--red);
  border-radius: 4px;
  transition: transform 0.18s ease;
}
/* Триъгълникът е border-trick, не иконен файл: няма мрежова заявка. */
.video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.08); }
.offer-compare h3 { margin-bottom: 1rem; }
/* Scroll shadows: подсказват, че таблицата се плъзга настрани (телефон/тесен екран).
   background-attachment local/scroll — сенките изчезват, щом стигнеш края. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--paper) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to left, var(--paper) 30%, rgba(255, 255, 255, 0)) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(20, 20, 20, 0.16), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(20, 20, 20, 0.16), transparent) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-head);
  font-size: 0.85rem;
  border-bottom: 2px solid var(--ink);
}
.compare-table tbody th { font-weight: 600; color: var(--ink-soft); }
/* Пиннати row labels: контекстът остава, докато плъзгаш до колоната Силас */
.compare-table tbody th,
.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--paper);
}
.compare-table .col-silas { background: var(--paper-warm); font-weight: 600; }
.compare-table thead .col-silas { color: var(--red-dark); }
.offer-cta { margin-top: 2.2rem; }

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; }
}
/* Таблицата следва скрола покрай дългата offer колона — маха празния десен опаш */
@media (min-width: 901px) {
  .offer-compare { position: sticky; top: 90px; }
}

/* Вграден cal.com календар във final CTA */
.cal-inline-wrap {
  background: #fff;
  border-radius: 12px;
  margin: 2.2rem auto 0.6rem;
  max-width: 960px;
  min-height: 540px; /* пази layout jump, докато iframe-ът се зарежда */
  padding: 0.5rem;
  overflow: hidden;
}
.cal-inline-fallback { font-size: 0.85rem; margin-bottom: 1.4rem; }
/* 0.75 падаше под WCAG AA (~3.7:1) върху червеното — това е recovery пътят при неуспешен iframe */
.cal-inline-fallback a { color: #fff; opacity: 0.92; }
@media (max-width: 600px) {
  /* 620px резервираха бяло поле за iframe, който се рендира на ~390px (мерено 08.08):
     ~240px празно под календара. 420px още пази скока при зареждане, без дупката.
     min-height не спира растежа — щом се избере дата, iframe-ът се разширява сам. */
  .cal-inline-wrap { min-height: 420px; padding: 0.2rem; }
}

/* Final CTA microcopy */
.cta-micro {
  font-size: 0.95rem !important;
  line-height: 1.6;
  color: #fff;
  opacity: 0.92;
  max-width: 34em;
  margin: 1.4rem auto 0 !important;
}


/* Снимките дойдоха (07.08) — interim блокът падна, hero/about са две колони. */

/* Scroll reveal (F006) — .reveal се слага само от JS, no-JS никога не крие съдържание */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
}

/* A11y */
section[id] { scroll-margin-top: 5rem; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
}
.btn:focus-visible { outline-color: var(--ink); }
.path-cta { margin-top: 2.2rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ============================================================================
   МОБИЛНА КОНВЕРСИОННА ОС (08.08) — спец:
   docs/superpowers/specs/2026-08-08-silas-mobile-optimization-design.md

   Обхватът е „структура сега, кожа после": всичко тук е структурно и стъпва на
   .btn / --line / --radius, не на конкретен шрифт или цвят. Редизайнът по
   DESIGN.md сменя само кожата и не бива да чупи нищо от долното.
   Всички правила са в max-width заявки — десктопът не се пипа.
   ========================================================================= */

/* --- 1. Лепната CTA лента (само телефон) --------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60; /* над 50 на .site-header; cal popup-ът е далеч по-високо и се крие от JS */
  display: none;
  padding: 0.55rem 4%;
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(110%);
  transition: transform 0.22s ease;
}
.sticky-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* На таблет (до 860px лентата още се показва) бутонът не бива да се разтегне
     през цялата ширина — изглежда като банер, не като бутон. */
  max-width: 420px;
  margin: 0 auto;
  min-height: 48px;
  font-size: 0.98rem;
}
/* Без повдигане в лента, залепена за ръба на екрана */
.sticky-cta .btn:hover { transform: none; }

@media (max-width: 860px) {
  .sticky-cta { display: block; }
  .sticky-cta.is-visible { transform: none; }
  /* Лентата не бива да лежи върху последния ред на футъра */
  body { padding-bottom: 76px; }
}

/* --- 2. Първи екран: пренареждане към бюджет 390×664 ---------------------- */
/* .hero-text става display:contents, за да влязат децата ѝ и .hero-visual в един
   и същ flex контейнер — само така портретът може да седне точно под CTA-то.
   Нищо не се трие: order само мести под сгъвката. */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 1.1rem;
    padding-bottom: 2.2rem;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }
  .hero-text { display: contents; }
  /* Flex изяжда сливането на вертикални margin-и: нулираме ги и мерим с gap,
     иначе пренареждането добавя височина вместо да я спести. */
  .hero-inner > * { margin-top: 0; margin-bottom: 0; }

  /* .hero-text е display:contents тук, значи .eyebrow-row е flex детето, не .eyebrow.
     Без този ред order-ът пада на 0 по подразбиране и подредбата виси на късмет. */
  .eyebrow-row      { order: 1; }
  .eyebrow          { order: 1; }
  .hero h1          { order: 2; font-size: 1.7rem; }
  .hero-punch       { order: 3; }
  .hero-actions     { order: 4; }
  .hero-visual      { order: 5; margin-top: 0.4rem; }
  .hero-recognition { order: 6; margin-top: 0.6rem; }
  .hero-sub         { order: 7; }
  .numbers-bar      { order: 8; margin-top: 0.4rem; }
  .source-note      { order: 9; }

  /* Портретът: една трета екран, не цял. Фиксирана височина вместо aspect-ratio —
     иначе max-height реже непредвидимо на различни телефони. */
  .hero-visual img {
    aspect-ratio: auto;
    width: 100%;
    max-width: min(320px, 100%);
    height: min(30svh, 240px);
    max-height: none;
    object-fit: cover;
  }
  .hero-guarantee { margin-top: 0.6rem; }
  .hero-note { margin-top: 0.5rem; }
}

/* --- 3. Таблицата за сравнение: 2 колони под 640px ------------------------ */
/* Колоната „Другите" съществува само на телефон. */
.col-others { display: none; }

@media (max-width: 640px) {
  /* Нищо не се плъзга вече — сенките и min-width падат заедно със скрола */
  .table-scroll { overflow-x: visible; background: none; }
  .compare-table { min-width: 0; font-size: 0.85rem; }
  .compare-table th,
  .compare-table td { padding: 0.55rem 0.5rem; }
  .compare-table thead th:nth-child(2),
  .compare-table thead th:nth-child(3),
  .compare-table tbody td:nth-child(2),
  .compare-table tbody td:nth-child(3) { display: none; }
  .compare-table .col-others { display: table-cell; }
  /* Пиннатите етикети съществуваха само заради хоризонталния скрол */
  .compare-table tbody th,
  .compare-table thead th:first-child { position: static; }
  .oth { display: block; }
  .oth + .oth { margin-top: 0.4rem; }
  .oth-src {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b6b6b;
    line-height: 1.3;
  }
}

/* --- 4. Бал формулата: „=" вече не остава само ---------------------------- */
.bal-result {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.bal-result .bal-part { min-width: 0; }

@media (max-width: 640px) {
  .bal-formula {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .bal-result { width: 100%; }
}

/* --- 5. Финалният CTA: ляво подравняване и по-плътен текст ---------------- */
@media (max-width: 640px) {
  .final-cta .center { text-align: left; }
  .final-cta p { font-size: 1rem; margin: 0.9rem 0 1.4rem; }
  .final-cta .hero-guarantee { margin-left: 0; margin-right: 0; }
  .cta-micro { margin-left: 0 !important; margin-right: 0 !important; }
  .cal-inline-wrap { margin-left: 0; margin-right: 0; }
}

/* --- 6. Под за размер на текста и тап целите ------------------------------ */
/* Родителите са 35-48: 48px цели, никакъв текст под ~15px. */
@media (max-width: 860px) {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
  }
  .faq summary { min-height: 48px; }
  .site-nav a { min-height: 48px; }
}

@media (max-width: 640px) {
  .numbers-bar span,
  .source-note,
  .video-caption,
  .hw-check-note { font-size: 0.88rem; }
  .card p,
  .step p,
  .teacher p,
  .fit-list li,
  .offer-list li,
  .bonus-list li,
  .guar-list li,
  .hw-check-list li { font-size: 1rem; }
}

/* ============================================================================
   МОБИЛНА ВЕРСИЯ, ВТОРО МИНАВАНЕ (09.08) — обратна връзка от Чочо на телефон:
   „навигацията е ганкава", „hero-то е претоварено", „уравнението не изглежда
   добре", „като цяло остава усещане за много текст".

   Мерено преди пипане на 390×844: страницата е 16 679px (≈20 екрана), 1 454
   думи. Тук не се трие копи — трие се ПОВТОРЕНО копи и се дава ритъм.
   Пак всичко е в max-width заявки: десктопът не се пипа.
   ========================================================================= */

/* --- 7. Навигацията: панел, който се плъзга, а не изскача ----------------- */
/* Старото беше display:none → flex. display не се анимира, затова менюто
   „щракваше" на екрана. Тук панелът стои в DOM-а и се управлява от
   opacity/transform/visibility, което се анимира. */

/* Базовото състояние е ПРЕДИ заявката нарочно: media query не вдига
   специфичност, така че `.nav-scrim { display: none }` след нея побеждаваше
   `display: block` вътре в нея и затъмнението никога не се появяваше. */
.nav-scrim { display: none; }

@media (max-width: 860px) {
  .site-nav {
    display: flex;
    gap: 0;
    margin-left: 0;
    padding: 0.2rem 4% 0.8rem;
    box-shadow: 0 16px 32px rgba(20, 20, 20, 0.16);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.22, 0.7, 0.3, 1), visibility 0.26s;
  }
  /* .open остава от JS-а; display вече не се сменя, само видимостта */
  .site-nav.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  /* Редовете: разделителна линия и стрелка вдясно — иначе са пет думи,
     хвърлени в бяло поле, без да личи, че са отделни цели. */
  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 54px;
    padding: 0.7rem 0.15rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.15s ease;
  }
  .site-nav a:last-child { border-bottom: none; }
  /* Шевронът е два border-а, завъртени на 45° — без иконен файл и без заявка */
  .site-nav a::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    border-right: 2.5px solid var(--orange-dark);
    border-bottom: 2.5px solid var(--orange-dark);
    transform: rotate(-45deg);
  }
  .site-nav a:active { color: var(--red-dark); }
  /* Стълбичка: редовете влизат един след друг. 40ms е достатъчно да се усети
     посоката отгоре надолу, без менюто да се бави. */
  .site-nav.open a { opacity: 1; transform: none; }
  .site-nav.open a:nth-child(1) { transition-delay: 0.05s; }
  .site-nav.open a:nth-child(2) { transition-delay: 0.09s; }
  .site-nav.open a:nth-child(3) { transition-delay: 0.13s; }
  .site-nav.open a:nth-child(4) { transition-delay: 0.17s; }
  .site-nav.open a:nth-child(5) { transition-delay: 0.21s; }

  /* Хамбургерът става X. Разстоянието между чертите е 7px (2px черта + 5px gap),
     затова средните две транслации са точно ±7px. */
  .nav-toggle span {
    border-radius: 2px;
    transition: transform 0.26s cubic-bezier(0.22, 0.7, 0.3, 1), opacity 0.14s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Затъмнение под хедъра: показва, че страницата чака, и дава голяма цел за
     затваряне. z-index 40 е под хедъра (50), за да не покрие самия панел. */
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    background: rgba(20, 20, 20, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
  }
  /* touch-action вместо заключване на скрола с overflow:hidden върху <html>:
     пръстът върху затъмнението не влачи страницата, а нищо не рискува да скочи
     позицията на скрола при затваряне. */
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; touch-action: none; }
  /* Лепнатата CTA лента е на z-index 60 и плуваше върху затъмнението */
  .nav-is-open .sticky-cta { transform: translateY(110%); }
}

/* --- 7б. Интерактивната дъска --------------------------------------------
   Отговор на „много текст": това е секция, в която родителят пипа, вместо да
   чете. Бяла, с тетрадкова мрежа 22px — подложката по DESIGN.md. Нарочно НЕ е
   тъмна дъска: „тъмната тема чете като tech стартъп, не като школа".
   Стиловете са извън media query — дъската работи и на десктоп. */
.board-section { background: var(--paper); }
.board-intro { color: var(--ink-soft); margin-bottom: 1.4rem; }
.board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgba(22, 19, 15, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 19, 15, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 1.3rem 1.4rem 1.5rem;
  box-shadow: 0 2px 4px rgba(20, 20, 20, 0.04), 0 14px 34px rgba(196, 18, 25, 0.07);
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.board-label,
.board-progress {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.board-label { color: var(--red-dark); }
.board-progress { color: var(--ink-soft); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.board-task { font-size: 1.08rem; font-weight: 600; margin-bottom: 1.2rem; }
.board-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.board-step { display: flex; align-items: flex-start; gap: 0.9rem; }
.board-step-num {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
}
.board-step p { color: var(--ink-soft); }
/* Редът с математиката е гласът на дъската: по-едър, tabular, в цвета на текста */
.board-math {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 0.45rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.board-math-final { color: var(--red-dark); font-size: 1.5rem; }
/* Грешката, а не отговорът, е продуктът тук — затова има собствен блок */
.board-trap {
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange-dark);
  border-radius: var(--radius-sm);
}
.board-trap-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
  margin-bottom: 0.3rem;
}
.board-trap p:last-child { color: var(--ink-soft); font-size: 0.97rem; }
.board-next { margin-top: 1.3rem; width: 100%; }
.board-note { color: var(--ink-soft); margin-top: 1.2rem; font-size: 0.97rem; }

/* Свитото състояние идва само от JS. Без JS цялото решение е видимо: губи се
   интеракцията, не съдържанието. */
.board.is-interactive [data-hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .board.is-interactive .board-step { animation: board-step-in 0.28s ease-out both; }
}
@keyframes board-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* --- 8. Hero на телефон: махаме повтореното, не същественото -------------- */
@media (max-width: 640px) {
  /* Базовото `.hero-inner { align-items: center }` важеше и във flex колоната:
     всяко дете се свиваше до съдържанието си. Числовата лента излизаше 231px
     от 358px налични и стоеше отместена навътре (мерено 09.08). */
  .hero-inner { align-items: stretch; }
  /* 2×2 вместо auto-fit: четирите числа се четат като таблица, не като списък */
  .numbers-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1rem;
    margin-top: 0.7rem;
  }
  /* Двата абзаца, които казват второ нещо, вече казано другаде:
     .hero-sub → цялата секция „Форматът се промени. Учебникът не."
     .hero-note → стъпка 1 в „Как започваме"
     Остават в HTML-а за десктопа и за търсачките; тук само не тежат на екрана. */
  .hero-sub,
  .hero-note { display: none; }
}

/* --- 9. Бал формулата: вертикално уравнение на 5 нива --------------------- */
/* На телефон редовият вариант се разпадаше на разкривена стълба: тясна кутия,
   мъничък „+", широка кутия, „=" залепено отляво на трета кутия. Тук всеки ред
   е цял ред, операторите са центрирани сами и се чете като уравнение на дъска. */
@media (max-width: 640px) {
  .bal-formula {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
    margin: 1.6rem 0;
    text-align: center;
  }
  /* Обвивката на „=" + резултата съществува само заради едноредовия десктоп.
     display:contents я премахва от layout-а и двете ѝ деца стават свои редове. */
  .bal-result { display: contents; }
  .bal-part {
    padding: 0.85em 0.9em;
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .bal-plus,
  .bal-eq {
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.1rem 0;
  }
  /* Резултатът е отговорът: контур в цвета на школата, не поредната бледа кутия */
  .bal-result .bal-part {
    background: #fff;
    border: 2px solid var(--red-dark);
    color: var(--ink);
    font-weight: 700;
  }
}

/* ---------- Бюлетин (09.08) ----------
   Кремава лента между червеното final-cta и тъмния футър. Целта е контраст на
   ангажимента, не втори голям CTA: родителят, който не е готов да запише днес,
   оставя имейл вместо да си тръгне. Затова е едно поле, не две — името е триене,
   а MailerLite има fallback за персонализация.
   Стилът следва СЕГАШНИЯ сайт (14px радиус, Montserrat/Inter), не DESIGN.md:
   една мигрирана секция в немигрирана страница чете като чужд елемент.
   Мигрира заедно с останалото. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.newsletter { background: var(--paper-warm); border-top: 1px solid var(--line); }
.newsletter h2 { margin-bottom: 0.75rem; }
.newsletter-lede { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0.9rem; }
.newsletter-lede b { color: var(--ink); font-weight: 700; }
/* Редът с „цената" на абонамента: време, автор, изход. Стои по-тихо от обещанието
   над него, защото свалянето на риск не бива да звучи по-силно от офертата. */
.newsletter-cost { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}
.newsletter-form input[type="email"] {
  flex: 1 1 18rem;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  /* Не 999px: полето е правоъгълник с текст в него, а не бутон. Хапчето беше и
     причината мобилният бъг да изглежда като кръг, вместо просто като високо поле. */
  border-radius: var(--radius-sm);
  padding: 0.9em 1.4em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.newsletter-form input[type="email"]::placeholder { color: #9b9089; }
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--red-dark);
  box-shadow: 0 0 0 3px rgba(196, 18, 25, 0.14);
}
.newsletter-form input[type="email"]:focus-visible { outline: none; }
.newsletter-form .btn { flex: 0 0 auto; }
.newsletter-form input[type="email"][aria-invalid="true"] { border-color: var(--red-dark); }

/* Скрито по подразбиране, заема място само когато се появи. Успехът вече не е ред
   тук, а страница (/blagodarim/), затова остана само грешката. */
.newsletter-error { display: none; margin-top: 0.9rem; font-size: 0.95rem; }
.newsletter-error.visible { display: block; color: var(--red-dark); }

.newsletter-fine {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}

@media (max-width: 560px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  /* БЪГ 09.08: `flex: 1 1 18rem` мери по главната ос. В колона главната ос е
     вертикалната, значи 18rem ставаше ВИСОЧИНА и полето излизаше 288px високо.
     Тук flex се нулира и ширината се задава изрично. */
  .newsletter-form input[type="email"] { flex: 0 0 auto; width: 100%; }
  /* Дребният шрифт четеше клинично на телефон, където и без това всичко е по-малко.
     Една стъпка нагоре: съгласието е част от офертата, не ситен шрифт от договор. */
  .newsletter-fine { font-size: 0.92rem; max-width: none; }
  .newsletter-lede { font-size: 1.1rem; }
  .newsletter-cost { font-size: 1.02rem; }
}

/* ---------- Изскачащ бюлетин (09.08) ----------
   Същата оферта като секцията .newsletter, само че по-къса: заглавие, едно изречение,
   поле. Не е втора кампания — ако родителят вече е стигнал до секцията, JS-ът изобщо
   не пуска това (виж script.js).
   Стилът следва СЕГАШНИЯ сайт (14px радиус, Montserrat/Inter), не DESIGN.md, по същата
   причина като .newsletter: мигрира заедно с останалото.
   z-index: 90/91 — над лепнатата CTA лента (60) и хедъра (50), под cal.com popup-а. */
.np-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.np-scrim.is-open { opacity: 1; }

.np {
  position: fixed;
  z-index: 91;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  width: min(30rem, calc(100% - 2rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.22);
  padding: 2rem 1.9rem 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.np.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.np .eyebrow { margin-bottom: 0.4rem; }
.np h2 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.np-text { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.3rem; }
.np-text b { color: var(--ink); font-weight: 700; }

.np-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  /* 44px тъч цел, макар иконата да е 18px: това е бутонът, който човек търси
     раздразнен, и да не го уцели е по-лошо от това изобщо да не го види. */
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.np-close:hover { color: var(--ink); background: var(--paper-warm); }

.np-form { display: flex; flex-direction: column; gap: 0.7rem; }
.np-form input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9em 1.2em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.np-form input[type="email"]::placeholder { color: #9b9089; }
.np-form input[type="email"]:focus {
  outline: none;
  border-color: var(--red-dark);
  box-shadow: 0 0 0 3px rgba(196, 18, 25, 0.14);
}
.np-form input[type="email"][aria-invalid="true"] { border-color: var(--red-dark); }
.np-form .btn { width: 100%; }

.np-error { display: none; margin-top: 0.8rem; font-size: 0.92rem; color: var(--red-dark); }
.np-error.visible { display: block; }

.np-fine { margin-top: 0.9rem; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }

/* На телефон е долен лист, не кутия в средата: палецът е долу, а централен модал
   на малък екран изяжда целия изглед и чете като блокада. */
@media (max-width: 560px) {
  .np {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    transform: translateY(12px);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 0;
    padding: 1.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  }
  .np.is-open { transform: translateY(0); }
  .np h2 { font-size: 1.35rem; }
  .np-text { font-size: 1rem; }
  .np-fine { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .np, .np-scrim { transition: none; }
  .np { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 560px) {
  .np { transform: none; }
}

/* Заключване на фона, докато диалогът е отворен. */
html.np-is-open, html.np-is-open body { overflow: hidden; }
