/* IQ007 СВАО — стили
   Цвета: рыжий #FF541F (основной), голубой #68C8F2, тёмно-голубой #008EC6,
   зелёный #358C68, жёлтый #FBBC42, тёмно-фиолетовый #2E1970
   Шрифты: Dela Gothic One (заголовки), Geologica (всё остальное)
   PageSpeed 09.10: свои woff2 вместо fonts.googleapis.com
*/

@font-face {
  font-family: 'Dela Gothic One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dela-gothic-one-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Dela Gothic One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dela-gothic-one-latin-400-normal.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: 'Geologica';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/geologica-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/geologica-latin-400-normal.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: 'Geologica';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/geologica-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/geologica-latin-500-normal.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: 'Geologica';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/geologica-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/geologica-latin-600-normal.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: 'Geologica';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/geologica-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/geologica-latin-700-normal.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;
}

:root {
  --c-orange: #FF541F;
  --c-orange-soft: #FFE4D8;
  --c-orange-dark: #D9410F;
  --c-blue: #68C8F2;
  --c-blue-soft: #DFF3FB;
  --c-blue-dark: #008EC6;
  --c-green: #358C68;
  --c-yellow: #FBBC42;
  --c-violet: #2E1970;
  --c-text: #111;
  --c-text-soft: #555;
  --c-bg: #fff;
  --c-bg-cream: #FFF8F2;
  --c-line: #EEE;

  --font-h: 'Dela Gothic One', system-ui, sans-serif;
  --font-b: 'Geologica', system-ui, sans-serif;

  --container: 1240px;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(255, 84, 31, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.h1, .h2, .h3, h1, h2, h3 {
  font-family: var(--font-h);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h1 { font-size: clamp(30px, 4.4vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 28px); }

.subhead {
  font-family: var(--font-b);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--c-text-soft);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  background: var(--c-orange-soft);
  color: var(--c-orange-dark);
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 100px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 84, 31, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--c-orange-dark);
}

.btn-secondary {
  background: var(--c-bg);
  color: var(--c-text);
  border: 2px solid var(--c-text);
}
.btn-secondary:hover {
  background: var(--c-text);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  font-weight: 500;
}
.btn-ghost:hover { color: var(--c-orange); }

.btn-yellow {
  background: var(--c-yellow);
  color: var(--c-text);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(251, 188, 66, 0.35);
}
.btn-yellow:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
}

/* PROMO BAR */
.promo-bar {
  background: var(--c-violet);
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  position: relative;
  z-index: 90;
}
.promo-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}
.promo-bar .promo-text {
  text-align: center;
  min-width: 0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.promo-bar a {
  color: var(--c-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  white-space: nowrap;
}
.promo-bar a:hover { color: #fff; }
.promo-bar .promo-close {
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
}
.promo-bar .promo-close:hover { color: #fff; }
@media (max-width: 640px) {
  .promo-bar { font-size: 12px; padding: 8px 0; }
  .promo-bar .container { padding: 0 12px; gap: 8px; }
  .promo-bar .promo-text { font-size: 12px; line-height: 1.4; }
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  z-index: 100;
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 56px;
  height: 56px;
}
.logo .text {
  font-family: var(--font-h);
  font-size: 18px;
  line-height: 1;
}
.logo .text small {
  display: block;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-soft);
  letter-spacing: 0.06em;
  margin-top: 4px;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}
.nav a:hover { color: var(--c-orange); }
.header-cta {
  display: flex;
  gap: 12px;
}

/* HERO */
.hero {
  position: relative;
  height: calc(100svh - 84px);
  min-height: 540px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, var(--c-orange-soft) 100%);
  overflow: hidden;
  padding: 24px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(28px, 3.6vw, 48px);
  margin-bottom: 16px;
  text-wrap: balance;
  line-height: 1.05;
}
.hero h1 .accent { color: var(--c-orange); }
.hero p.lead {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--c-text-soft);
  max-width: 540px;
  margin-bottom: 22px;
  line-height: 1.45;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero .actions .btn {
  font-size: 15px;
  padding: 13px 22px;
}
.hero .credibility {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.hero .credibility .item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero .credibility .num {
  font-family: var(--font-h);
  font-size: 26px;
  color: var(--c-orange);
  line-height: 1;
}
.hero .credibility .lab {
  font-size: 12px;
  color: var(--c-text-soft);
  font-weight: 500;
  line-height: 1.3;
}
.hero .eyebrow { margin-bottom: 12px; }
.hero .visual {
  position: relative;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .visual img {
  max-height: 62vh;
  margin: 0 auto;
  filter: drop-shadow(0 20px 50px rgba(255,84,31,0.25));
}

/* SECTION shell */
.section {
  padding: 96px 0;
}
.section.alt { background: var(--c-bg-cream); }
.section.dark {
  background: var(--c-violet);
  color: #fff;
}
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head p {
  margin-top: 16px;
  color: var(--c-text-soft);
  font-size: 18px;
}
.section.dark .section-head p { color: rgba(255,255,255,0.85); }

/* SEGMENTS (для кого) */
.segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.segment-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  background: #fff;
  border: 2px solid var(--c-line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.segment-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-orange);
  box-shadow: var(--shadow);
}
.segment-card .age {
  font-family: var(--font-h);
  font-size: 28px;
  color: var(--c-orange);
  margin-bottom: 12px;
}
.segment-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.segment-card .desc {
  color: var(--c-text-soft);
  font-size: 15px;
  flex: 1;
}
.segment-card .arrow {
  margin-top: 20px;
  font-family: var(--font-h);
  color: var(--c-orange);
}

/* DIRECTIONS — 11 направлений (большие карточки в стиле +10% блока) */
.directions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.dir-card {
  --accent: var(--c-orange);
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  border: 2px solid var(--c-line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.dir-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 8px;
  background: var(--accent);
}
.dir-card::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
  bottom: -120px; right: -120px;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.dir-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}
.dir-card:hover::after { transform: scale(1.2); opacity: 0.1; }

.dir-card .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.dir-card .age-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--c-orange-soft);
  color: var(--c-orange-dark);
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}
.dir-card .num-badge {
  font-family: var(--font-h);
  font-size: 56px;
  line-height: 0.9;
  color: var(--accent);
  position: relative;
}
.dir-card h3 {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1;
  position: relative;
}
.dir-card .lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text-soft);
  position: relative;
  flex: 1;
}
.dir-card ul.points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  position: relative;
  margin-top: 4px;
}
.dir-card ul.points li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  color: var(--c-text);
  font-weight: 500;
}
.dir-card ul.points li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
}
.dir-card ul.points li::after {
  content: '';
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.dir-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-text-soft);
  position: relative;
}
.dir-card .meta strong { color: var(--c-text); font-weight: 600; }
.dir-card .meta .price-pending {
  background: var(--c-yellow);
  color: var(--c-text);
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dir-card .cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  position: relative;
}
.dir-card .cta-row .open {
  font-family: var(--font-h);
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s ease;
}
.dir-card:hover .cta-row .open { gap: 12px; }
.dir-card .cta-row .open::after { content: '→'; font-size: 18px; }
.dir-card .cta-row .badge-soon {
  font-size: 11px;
  color: var(--c-text-soft);
  background: var(--c-bg-cream);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.dir-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff 0%, var(--c-orange-soft) 100%);
}
.dir-card.featured .num-badge { font-size: 84px; }
.dir-card.featured h3 { font-size: clamp(28px, 2.4vw, 38px); }

/* COMPARE TABLE */
.compare-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: #fff;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--c-line);
  font-size: 16px;
}
.compare-row:first-child { border-top: none; }
.compare-row > div {
  padding: 16px 22px;
}
.compare-row.compare-head {
  background: var(--c-violet);
  color: #fff;
  font-family: var(--font-h);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.compare-row.compare-head > div {
  padding-top: 14px;
  padding-bottom: 14px;
}
.compare-row.compare-head .us {
  background: var(--c-orange);
}
.compare-row .us {
  background: var(--c-orange-soft);
  color: var(--c-orange-dark);
  text-align: center;
  font-weight: 600;
}
.compare-row .us strong {
  font-family: var(--font-h);
  color: var(--c-orange-dark);
  font-weight: 400;
  font-size: 18px;
}
.compare-row .them {
  text-align: center;
  color: var(--c-text-soft);
  font-size: 15px;
}
.compare-row .par { color: var(--c-text); font-weight: 500; }
.compare-note {
  text-align: center;
  font-size: 15px;
  color: var(--c-text-soft);
  font-style: italic;
  margin-top: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .compare-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .compare-row > div { padding: 12px 18px; }
  .compare-row.compare-head { display: none; }
  .compare-row .par { background: var(--c-bg-cream); font-family: var(--font-h); font-size: 14px; padding-bottom: 6px; }
  .compare-row .us { text-align: left; padding-top: 8px; padding-bottom: 8px; }
  .compare-row .us::before { content: 'IQ007: '; font-family: var(--font-h); color: var(--c-orange-dark); font-size: 12px; margin-right: 4px; }
  .compare-row .them { text-align: left; padding-top: 4px; padding-bottom: 14px; }
  .compare-row .them::before { content: 'Соседи: '; font-family: var(--font-h); color: var(--c-text-soft); font-size: 12px; margin-right: 4px; }
}

/* RESULT — 10% standard */
.result {
  background: var(--c-orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  bottom: -200px; right: -200px;
}
.result h2 { color: #fff; margin-bottom: 24px; }
.result .nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.result .num-box .big {
  font-family: var(--font-h);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  margin-bottom: 12px;
}
.result .num-box .lab {
  font-size: 16px;
  opacity: 0.9;
}

/* CASES */
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-card .case-tag {
  align-self: flex-start;
  font-family: var(--font-h);
  font-size: 14px;
  background: var(--c-blue-soft);
  color: var(--c-blue-dark);
  padding: 6px 14px;
  border-radius: 100px;
}
.case-card h3 {
  text-wrap: balance;
}
.case-card .case-meta {
  font-size: 14px;
  color: var(--c-text-soft);
}
.case-card .timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
}
.case-card .month {
  text-align: center;
  padding: 14px 8px;
  background: var(--c-bg-cream);
  border-radius: 12px;
  font-size: 14px;
}
.case-card .month .m {
  font-family: var(--font-h);
  font-size: 18px;
  color: var(--c-orange);
  display: block;
}
.case-card .quote {
  border-left: 3px solid var(--c-orange);
  padding-left: 16px;
  font-style: italic;
  color: var(--c-text-soft);
  font-size: 15px;
  margin-top: 8px;
}

/* FOUNDER */
.founder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.founder .text h2 { margin-bottom: 24px; }
.founder .text p { margin-bottom: 16px; font-size: 17px; color: var(--c-text-soft); }
.founder .visual {
  background: var(--c-blue-soft);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  position: relative;
}
.founder .visual img { max-height: 360px; margin: 0 auto; }
.founder .visual .stat {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}
.founder .visual .stat .b {
  font-family: var(--font-h);
  font-size: 36px;
  color: var(--c-blue-dark);
  display: block;
}
.founder .visual .stat .l {
  font-size: 13px;
  color: var(--c-text-soft);
}

/* TEACHERS */
.teachers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.teacher-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 2px solid var(--c-line);
  transition: border-color .2s ease;
}
.teacher-card.star {
  border-color: var(--c-orange);
  background: linear-gradient(180deg, #fff 0%, var(--c-orange-soft) 100%);
}
.teacher-card .branch {
  font-family: var(--font-h);
  font-size: 13px;
  background: var(--c-violet);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 12px;
}
.teacher-card.star .branch { background: var(--c-orange); }
.teacher-card h3 { font-size: 22px; margin-bottom: 10px; }

/* Портрет педагога. Снят в студии на фирменном оранжевом, поэтому
   показываем во всю ширину карточки, а не кружком-аватаркой: лицо
   крупное, фон совпадает с плашкой филиала. */
.teacher-card .portrait {
  display: block;
  width: calc(100% + 2px);
  margin: -2px -1px 18px;
  aspect-ratio: 3 / 4;
  max-height: 300px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 16px 16px 4px 4px;
  background: var(--c-orange-soft);
}
.teacher-card.has-portrait { padding-top: 0; }
.teacher-card.has-portrait .branch { margin-top: 0; }

@media (max-width: 640px) {
  .teacher-card .portrait { max-height: 260px; margin-bottom: 14px; }
}

.teacher-card .what { color: var(--c-text-soft); font-size: 14px; margin-bottom: 14px; }
.teacher-card .credentials {
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid var(--c-line);
  padding-top: 12px;
}

/* HOW IT WORKS */
.how {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.how .item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
}
.how .item .icon {
  width: 64px; height: 64px;
  background: var(--c-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-h);
  font-size: 16px;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
  line-height: 1;
  text-align: center;
  padding: 0 4px;
}
.how .item h3 { font-size: 19px; margin-bottom: 6px; }
.how .item p { font-size: 15px; color: var(--c-text-soft); }

/* CAMP */
.camp {
  background: linear-gradient(135deg, var(--c-blue-dark), var(--c-blue));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.camp .row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
.camp h2 { color: #fff; margin-bottom: 16px; }
.camp .price {
  font-family: var(--font-h);
  font-size: clamp(36px, 4vw, 56px);
  margin: 16px 0;
}
.camp .price small { font-size: 0.4em; font-family: var(--font-b); font-weight: 400; opacity: 0.85; }
.camp .features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 24px 0; }
.camp .features li { list-style: none; font-size: 15px; padding-left: 24px; position: relative; }
.camp .features li::before { content: '✓'; position: absolute; left: 0; color: var(--c-yellow); font-weight: 700; }
.camp .visual { text-align: center; }
.camp .visual img { max-height: 460px; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2)); transform: scale(1.05); }

/* Настоящая фотография вместо персонажа: тень по контуру и увеличение
   тут не нужны — нужен аккуратный прямоугольник в скруглении. */
.camp .visual--photo img {
  max-height: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  transform: none;
  filter: none;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

/* FOR PARENTS */
.parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.parents .text h2 { margin-bottom: 20px; }
.parents .text p { color: var(--c-text-soft); margin-bottom: 16px; }
.parents .features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.parents .features li {
  list-style: none;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
}

/* SCHOOLS */
.schools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.school-tile {
  background: #fff;
  border: 2px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  font-family: var(--font-h);
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--c-violet);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.school-tile:hover {
  transform: translateY(-3px);
  border-color: var(--c-orange);
}
@media (max-width: 640px) {
  .schools { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* NOT FOR */
.not-for {
  background: #fff;
  border: 2px dashed var(--c-line);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.not-for .text h2 { margin-bottom: 16px; }
.not-for ul { list-style: none; }
.not-for ul li {
  padding: 12px 0 12px 36px;
  position: relative;
  font-size: 16px;
  border-bottom: 1px solid var(--c-line);
}
.not-for ul li::before {
  content: '×';
  position: absolute;
  left: 0;
  font-family: var(--font-h);
  font-size: 24px;
  color: var(--c-orange);
  top: 4px;
}
.not-for .visual { text-align: right; padding-right: 8%; }
.not-for .visual img { max-height: 320px; max-width: 100%; margin-left: auto; }
@media (max-width: 1024px) {
  .not-for .visual { text-align: center; padding-right: 0; }
}

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
}
.faq summary {
  font-family: var(--font-h);
  font-size: 19px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::after {
  content: '+';
  font-size: 28px;
  color: var(--c-orange);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--c-text-soft); font-size: 16px; }

/* CONTACTS */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.branch-card {
  background: #fff;
  border: 2px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.branch-card h3 { font-size: 22px; margin-bottom: 6px; }
.branch-card .addr { font-weight: 500; }
.branch-card .meta { color: var(--c-text-soft); font-size: 15px; }
.branch-card .phone {
  font-family: var(--font-h);
  font-size: 22px;
  color: var(--c-orange);
  margin-top: 8px;
}
.branch-card .links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.branch-card .links a {
  font-size: 14px;
  background: var(--c-orange-soft);
  color: var(--c-orange-dark);
  padding: 8px 14px;
  border-radius: 100px;
  font-weight: 500;
}

/* LEAD FORM */
.lead-form {
  background: var(--c-orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.lead-form::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  bottom: -260px; right: -200px;
  pointer-events: none;
}
.lead-form__text { position: relative; z-index: 1; }
.lead-form__text h2 { color: #fff; margin: 16px 0 16px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.lead-form__text p { font-size: 17px; opacity: 0.95; margin-bottom: 22px; max-width: 480px; }
.lead-form__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lead-form__list li { padding-left: 28px; position: relative; font-size: 15px; opacity: 0.95; }
.lead-form__list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--c-yellow);
  color: var(--c-text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.lead-form__text .fox-corner {
  position: absolute;
  bottom: -16px; right: -12px;
  width: 200px;
  pointer-events: none;
  opacity: 0.95;
}

.lead-form__form {
  background: #fff;
  color: var(--c-text);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-h);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text);
}
.field-opt { color: var(--c-text-soft); font-family: var(--font-b); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; }
.field-input {
  font-family: var(--font-b);
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  background: #fff;
  color: var(--c-text);
  transition: border-color .15s ease;
  width: 100%;
}
.field-input::placeholder { color: #aaa; }
.field-input:focus { outline: none; border-color: var(--c-orange); }

.branch-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.branch-radio { cursor: pointer; position: relative; }
.branch-radio input { position: absolute; opacity: 0; pointer-events: none; }
.branch-radio__box {
  display: block;
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.branch-radio__name { display: block; font-family: var(--font-h); font-size: 16px; margin-bottom: 2px; }
.branch-radio__addr { display: block; font-size: 12px; color: var(--c-text-soft); }
.branch-radio:hover .branch-radio__box { border-color: var(--c-orange); }
.branch-radio input:checked + .branch-radio__box { border-color: var(--c-orange); background: var(--c-orange-soft); }
.branch-radio input:focus-visible + .branch-radio__box { box-shadow: 0 0 0 3px rgba(255,84,31,0.25); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-form__submit { margin-top: 6px; font-size: 17px; padding: 16px 24px; width: 100%; }
.lead-form__consent { font-size: 12px; color: var(--c-text-soft); line-height: 1.4; text-align: center; margin: 0; }
.lead-form__msg { margin-top: 4px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.lead-form__msg--ok { background: #E9F7EE; color: #1F5C42; border: 1px solid #B8E1C8; }
.lead-form__msg--err { background: #FDECE6; color: #9A2D0B; border: 1px solid #F2BFAB; }

@media (max-width: 1024px) {
  .lead-form { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .lead-form__text .fox-corner { display: none; }
}
@media (max-width: 640px) {
  .lead-form { padding: 28px 20px; }
  .lead-form__form { padding: 22px; }
  .branch-radios { grid-template-columns: 1fr; }
}

/* FINAL CTA */
.final-cta {
  background: var(--c-orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta p { font-size: 18px; opacity: 0.95; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary {
  background: #fff;
  color: var(--c-orange);
  font-size: 19px;
  padding: 18px 36px;
}
.final-cta .btn-primary:hover { background: var(--c-yellow); color: var(--c-text); }
.final-cta .fox-corner {
  position: absolute;
  bottom: -10px;
  right: 30px;
  width: 200px;
}

/* WOW FOOTER */
.site-footer {
  background: var(--c-violet);
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-top: 0;
}
.site-footer::before {
  content: '';
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-orange) 0%, transparent 70%);
  opacity: 0.4;
  bottom: -380px; left: -240px;
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-blue-dark) 0%, transparent 70%);
  opacity: 0.5;
  top: -260px; right: -100px;
  pointer-events: none;
}

.footer-cta {
  position: relative;
  z-index: 2;
  padding: 100px 0 60px;
}
.footer-cta .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.footer-cta h2 {
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1;
  color: #fff;
  margin-bottom: 18px;
  text-wrap: balance;
}
.footer-cta h2 .accent { color: var(--c-yellow); }
.footer-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-bottom: 28px;
}
.footer-cta .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-cta .btn-yellow {
  background: var(--c-yellow);
  color: var(--c-text);
  font-size: 18px;
  padding: 18px 32px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(251,188,66,0.35);
}
.footer-cta .btn-yellow:hover {
  background: #fff;
  transform: translateY(-2px);
}
.footer-cta .btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 17px;
  padding: 16px 28px;
}
.footer-cta .btn-outline:hover {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
}
.footer-cta .fox-wrap {
  position: relative;
  text-align: center;
}
.footer-cta .fox-wrap img.main-fox {
  max-height: 460px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
}
.footer-cta .fox-wrap .bubble {
  position: absolute;
  background: #fff;
  width: 96px; height: 96px;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: float 4s ease-in-out infinite;
}
.footer-cta .fox-wrap .bubble img { width: 100%; height: 100%; object-fit: contain; }
.footer-cta .fox-wrap .bubble.b1 { top: 10%; left: 0; animation-delay: 0s; }
.footer-cta .fox-wrap .bubble.b2 { top: 50%; right: 0; animation-delay: 1s; }
.footer-cta .fox-wrap .bubble.b3 { bottom: 8%; left: 8%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.footer-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 48px 0;
}
.footer-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-stats .stat {
  text-align: center;
}
.footer-stats .stat .big {
  font-family: var(--font-h);
  font-size: clamp(36px, 4vw, 56px);
  color: var(--c-yellow);
  line-height: 1;
  margin-bottom: 10px;
}
.footer-stats .stat .lab {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

.footer-branches {
  position: relative;
  z-index: 2;
  padding: 60px 0 48px;
}
.footer-branches .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.footer-branches .branch {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all .25s ease;
}
.footer-branches .branch:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--c-yellow);
  transform: translateY(-3px);
}
.footer-branches .branch .name {
  font-family: var(--font-h);
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}
.footer-branches .branch .addr {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 4px;
}
.footer-branches .branch .meta {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-bottom: 18px;
}
.footer-branches .branch .phone {
  font-family: var(--font-h);
  font-size: clamp(22px, 2vw, 30px);
  color: var(--c-yellow);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.footer-branches .branch .phone:hover { color: #fff; }
.footer-branches .branch .email { color: rgba(255,255,255,0.7); font-size: 15px; }
.footer-branches .branch .star {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-branches .branch .star strong { color: var(--c-yellow); display: block; font-family: var(--font-h); font-size: 15px; margin-top: 2px; font-weight: 400; }
.footer-branches .branch .socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-branches .branch .socials a {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s ease;
}
.footer-branches .branch .socials a:hover {
  background: var(--c-yellow);
  color: var(--c-text);
}

.footer-directions {
  position: relative;
  z-index: 2;
  padding: 32px 0 48px;
}
.footer-directions .label {
  font-family: var(--font-h);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-align: center;
}
.footer-directions .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.footer-directions .tags a {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all .15s ease;
}
.footer-directions .tags a:hover {
  background: var(--c-orange);
  color: #fff;
  border-color: var(--c-orange);
}

.footer-schools {
  position: relative;
  z-index: 2;
  padding: 24px 0 48px;
  text-align: center;
}
.footer-schools .label {
  font-family: var(--font-h);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-schools .row {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-schools .row span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 18px;
  font-family: var(--font-h);
  font-size: 16px;
  color: var(--c-yellow);
}

.footer-legal {
  position: relative;
  z-index: 2;
  padding: 32px 0;
  background: rgba(0,0,0,0.25);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer-legal .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-legal a { color: rgba(255,255,255,0.75); }
.footer-legal a:hover { color: var(--c-yellow); }
.footer-legal .meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 1024px) {
  .footer-cta { padding: 60px 0 40px; }
  .footer-cta .container { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-cta p { margin-left: auto; margin-right: auto; }
  .footer-cta .actions { justify-content: center; }
  .footer-cta .fox-wrap { order: -1; }
  .footer-cta .fox-wrap img.main-fox { max-height: 320px; }
  .footer-cta .fox-wrap .bubble { width: 72px; height: 72px; }
  .footer-stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-branches .container { grid-template-columns: 1fr; }
  .footer-legal .container { grid-template-columns: 1fr; text-align: center; }
  .footer-legal .meta-links { justify-content: center; }
}
@media (max-width: 640px) {
  .footer-cta { padding: 48px 0 32px; }
  .footer-stats { padding: 32px 0; }
  .footer-stats .container { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-stats .stat .big { font-size: 32px; }
  .footer-stats .stat .lab { font-size: 13px; }
  .footer-branches { padding: 40px 0 32px; }
  .footer-branches .branch { padding: 22px; }
  .footer-cta .actions .btn { width: 100%; text-align: center; justify-content: center; }
  .footer-cta .fox-wrap img.main-fox { max-height: 240px; }
  .footer-schools .row span { font-size: 14px; padding: 8px 14px; }
}

/* RESPONSIVE - SMALL DESKTOP / WIDE TABLET (1024–1200) */
@media (max-width: 1280px) {
  .site-header .row { gap: 12px; }
  .logo img { width: 48px; height: 48px; }
  .logo .text { font-size: 16px; }
  .logo .text small { display: none; }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .header-cta .btn-ghost { display: none; }
  .header-cta .btn-primary { font-size: 14px; padding: 12px 18px; }
}

/* RESPONSIVE - TABLET */
@media (max-width: 1024px) {
  .site-header .row { gap: 10px; }
  .logo .text small { display: none; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .hero .container { grid-template-columns: 1fr 0.85fr; gap: 20px; }
  .hero .visual img { max-height: 52vh; }
  .segments { grid-template-columns: repeat(2, 1fr); }
  .directions { grid-template-columns: 1fr; }
  .dir-card.featured { grid-column: span 1; }
  .dir-card { padding: 28px; }
  .dir-card ul.points { grid-template-columns: 1fr 1fr; }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .founder, .parents, .not-for, .camp .row { grid-template-columns: 1fr; gap: 32px; }
  .contacts { grid-template-columns: 1fr; }
  .site-footer .row { grid-template-columns: 1fr 1fr; }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .header-cta { display: none; }
  .logo .text { font-size: 16px; }
  .logo .text small { display: none; }
  .logo img { width: 44px; height: 44px; }
  .site-header .row { padding: 10px 0; gap: 12px; }
  .hero {
    padding: 20px 0 36px;
    height: auto;
    min-height: auto;
    align-items: flex-start;
  }
  .hero .container { gap: 14px; align-items: flex-start; }
  .hero .text { width: 100%; min-width: 0; }
  .hero .eyebrow {
    font-size: 10px;
    padding: 5px 10px;
    white-space: normal;
    line-height: 1.3;
    margin-bottom: 12px;
    word-break: keep-all;
  }
  .hero h1 {
    font-size: clamp(20px, 5.6vw, 26px);
    line-height: 1.1;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  .hero p.lead {
    font-size: 13.5px;
    margin-bottom: 16px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .hero .actions { margin-bottom: 18px; gap: 8px; flex-direction: column; width: 100%; }
  .hero .actions .btn {
    font-size: 14px;
    padding: 12px 18px;
    width: 100%;
    white-space: normal;
    line-height: 1.2;
  }
  .hero .credibility { gap: 14px 16px; width: 100%; }
  .hero .credibility .item { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .hero .credibility .num { font-size: 22px; }
  .hero .credibility .lab { font-size: 11px; line-height: 1.25; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero .container { grid-template-columns: 1fr; gap: 12px; }
  .hero .visual { display: none; }
  .segments, .directions, .teachers { grid-template-columns: 1fr; }
  .dir-card { padding: 24px; gap: 12px; }
  .dir-card .num-badge { font-size: 44px; }
  .dir-card.featured .num-badge { font-size: 56px; }
  .dir-card h3 { font-size: 22px; }
  .dir-card.featured h3 { font-size: 24px; }
  .dir-card ul.points { grid-template-columns: 1fr; gap: 6px; }
  .result { padding: 40px 24px; }
  .result .nums { grid-template-columns: 1fr; gap: 24px; }
  .case-card, .branch-card { padding: 24px; }
  .case-card .timeline { grid-template-columns: 1fr; }
  .camp { padding: 32px 24px; }
  .not-for { padding: 28px 24px; }
  .final-cta { padding: 48px 24px; }
  .schools { gap: 12px; }
  .school-tile { font-size: 18px; padding: 14px 20px; }
  .site-footer .row { grid-template-columns: 1fr; }
}

/* ============================================================
   MEGA MOBILE / TABLET / VISUAL HARDENING — v4
   Гарантируем чистоту на 320–1024 px. Никакого overflow.
   ============================================================ */
@media (max-width: 1024px) {
  .case-card .timeline { grid-template-columns: 1fr; gap: 8px; }
  .how { grid-template-columns: 1fr; }
  .not-for { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .not-for .visual { text-align: center; padding-right: 0; }
  .not-for .visual img { margin: 0 auto; }
  .final-cta .fox-corner { width: 140px; right: 12px; bottom: -8px; opacity: 0.85; }
  .parents { grid-template-columns: 1fr; gap: 24px; }
  .parents .features { grid-template-columns: 1fr 1fr; }
  .parents .visual img { max-height: 320px !important; }
}

@media (max-width: 640px) {
  /* Container запас от края */
  .container { padding: 0 14px; }

  /* H1 / H2 / H3 чуть меньше */
  h1 { font-size: clamp(26px, 7vw, 34px); }
  h2 { font-size: clamp(22px, 5.4vw, 28px); }
  h3 { font-size: clamp(17px, 4.4vw, 21px); }

  /* Промо-бар */
  .promo-bar a { display: inline-block; }

  /* Hero — fine-tune */
  .hero .eyebrow { font-size: 10px; padding: 5px 9px; }

  /* Секции — компактные */
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15px; }

  /* SEGMENTS */
  .segment-card { padding: 22px 20px 18px; }
  .segment-card .age { font-size: 22px; }
  .segment-card h3 { font-size: 19px; }
  .segment-card .desc { font-size: 14px; }

  /* DIRECTIONS — большие карточки */
  .dir-card { padding: 22px; gap: 12px; border-radius: var(--radius-sm); }
  .dir-card .head { gap: 8px; }
  .dir-card .num-badge { font-size: 38px; }
  .dir-card.featured .num-badge { font-size: 48px; }
  .dir-card h3 { font-size: 19px; line-height: 1.15; }
  .dir-card.featured h3 { font-size: 22px; }
  .dir-card .lead { font-size: 14px; }
  .dir-card ul.points li { font-size: 13px; padding-left: 18px; }
  .dir-card .cta-row { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; }
  .dir-card .cta-row .badge-soon { font-size: 11px; padding: 3px 8px; }

  /* RESULT block */
  .result { padding: 36px 22px; border-radius: var(--radius-sm); }
  .result h2 { font-size: 22px; }
  .result .nums { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .result .num-box .big { font-size: 44px; }

  /* CASES */
  .case-card { padding: 24px 20px; gap: 12px; }
  .case-card h3 { font-size: 18px; line-height: 1.25; }
  .case-card .case-tag { font-size: 11px; padding: 4px 10px; }
  .case-card .month { padding: 12px 8px; font-size: 13px; }
  .case-card .month .m { font-size: 16px; }
  .case-card .quote { font-size: 14px; padding-left: 12px; }

  /* FOUNDER */
  .founder .visual { padding: 28px 20px; }
  .founder .visual img { max-height: 260px; }
  .founder .text h2 { font-size: 24px; }
  .founder .text p { font-size: 15px; }
  .founder .visual .stat { gap: 14px; }
  .founder .visual .stat .b { font-size: 26px; }

  /* HOW */
  .how .item { padding: 20px; gap: 14px; }
  .how .item .icon { width: 54px; height: 54px; font-size: 14px; }
  .how .item h3 { font-size: 17px; }
  .how .item p { font-size: 14px; }

  /* TEACHERS */
  .teacher-card { padding: 22px; }
  .teacher-card h3 { font-size: 19px; }
  .teacher-card .credentials { font-size: 13px; }

  /* CAMP */
  .camp { padding: 32px 22px; border-radius: var(--radius-sm); }
  .camp h2 { font-size: 24px; }
  .camp .price { font-size: 36px; }
  .camp .features { grid-template-columns: 1fr; gap: 6px; }
  .camp .features li { font-size: 14px; }
  .camp .visual img { max-height: 240px; }
  .camp .visual--photo img { max-height: none; }

  /* PARENTS */
  .parents .features { grid-template-columns: 1fr; }
  .parents .features li { font-size: 14px; padding: 12px 14px; }
  .parents .visual img { max-height: 280px !important; }
  .parents .text h2 { font-size: 24px; }

  /* SCHOOLS */
  .school-tile { font-size: 16px; padding: 16px; text-align: center; }

  /* NOT FOR */
  .not-for { padding: 24px 20px; gap: 20px; }
  .not-for .text h2 { font-size: 22px; }
  .not-for ul li { font-size: 14px; padding: 10px 0 10px 28px; }
  .not-for .visual img { max-height: 260px; }

  /* FAQ */
  .faq details { padding: 18px 0; }
  .faq summary { font-size: 15px; line-height: 1.3; gap: 10px; }
  .faq summary::after { font-size: 22px; }
  .faq details p { font-size: 14px; margin-top: 10px; }

  /* CONTACTS */
  .branch-card { padding: 22px; }
  .branch-card h3 { font-size: 20px; }
  .branch-card .phone { font-size: 18px; }
  .branch-card .links { gap: 6px; }
  .branch-card .links a { font-size: 13px; padding: 6px 12px; }

  /* FINAL CTA */
  .final-cta { padding: 36px 20px; }
  .final-cta h2 { font-size: 22px; line-height: 1.15; }
  .final-cta p { font-size: 15px; margin-bottom: 22px; }
  .final-cta .btn-primary { font-size: 16px; padding: 14px 24px; width: 100%; }
  .final-cta .fox-corner { display: none; }

  /* FOOTER — компактный */
  .footer-cta { padding: 40px 0 28px; }
  .footer-cta h2 { font-size: 28px; }
  .footer-cta p { font-size: 15px; }
  .footer-cta .actions { flex-direction: column; gap: 8px; }
  .footer-cta .actions .btn { width: 100%; }
  .footer-cta .fox-wrap img.main-fox { max-height: 200px; }
  .footer-cta .fox-wrap .bubble { width: 56px; height: 56px; }
  .footer-stats { padding: 28px 0; }
  .footer-stats .container { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-stats .stat .big { font-size: 30px; }
  .footer-stats .stat .lab { font-size: 12px; }
  .footer-branches { padding: 32px 0 28px; }
  .footer-branches .branch { padding: 22px; }
  .footer-branches .branch .name { font-size: 24px; }
  .footer-branches .branch .phone { font-size: 22px; }
  .footer-branches .branch .meta { font-size: 12px; }
  .footer-branches .branch .socials { flex-wrap: wrap; }
  .footer-branches .branch .socials a { flex: 1 1 calc(33% - 8px); font-size: 12px; padding: 8px; }
  .footer-directions { padding: 24px 0 28px; }
  .footer-directions .tags a { font-size: 12px; padding: 6px 12px; }
  .footer-schools { padding: 20px 0 28px; }
  .footer-schools .row span { font-size: 13px; padding: 6px 12px; }
  .footer-legal { padding: 22px 0; font-size: 12px; line-height: 1.5; }
  .footer-legal .container { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .footer-legal .meta-links { justify-content: center; gap: 14px; }

  /* PKS / SK — секции с inline стилями страницы */
  .breadcrumbs { font-size: 13px; padding: 12px 0; }
  .breadcrumbs .sep { margin: 0 6px; }
}

/* Очень узкие экраны (iPhone SE и т.п.) */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  h1 { font-size: 24px; }
  .hero h1 { font-size: 22px; }
  .hero p.lead { font-size: 13px; }
  .hero .credibility .num { font-size: 19px; }
  .hero .credibility .lab { font-size: 10px; }
  .dir-card .num-badge { font-size: 32px; }
  .dir-card h3 { font-size: 17px; }
  .school-tile { font-size: 14px; padding: 12px; }
}

.footer-legal .legal-docs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 1024px) { .footer-legal .legal-docs { justify-content: center; } }
