/* =====================================================================
   НОВАЯ ШКОЛА — Дизайн-система v1
   Структура: 1) Tokens 2) Reset 3) Base 4) Layout 5) Components 6) Pages
   ===================================================================== */

/* ---------------------------------------------------------------------
   0) FONTS — self-hosted Onest + Unbounded (latin + cyrillic)
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/onest-400-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/onest-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/onest-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/onest-400-normal-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: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/onest-500-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/onest-500-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/onest-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/onest-500-normal-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: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/onest-600-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/onest-600-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/onest-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/onest-600-normal-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: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/onest-700-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/onest-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/onest-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/onest-700-normal-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: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/unbounded-600-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/unbounded-600-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/unbounded-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/unbounded-600-normal-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: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/unbounded-700-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/unbounded-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/unbounded-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/unbounded-700-normal-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;
}


/* ---------------------------------------------------------------------
   1) TOKENS — фирменные переменные
   --------------------------------------------------------------------- */
:root {
  /* Бренд */
  --c-blue:   #1FB6E6;
  --c-yellow: #FFCC2E;
  --c-orange: #FF8A2B;
  --c-green:  #3FB950;
  --c-red:    #E5524C;
  --c-purple: #9B6BD9;

  --c-blue-dark:  #1899C2;
  --c-blue-soft:  #E6F7FD;

  /* Нейтральные */
  --c-bg:        #FFFEFB;
  --c-bg-soft:   #FAF7F1;
  --c-bg-card:   #FFFFFF;
  --c-text:      #1F2937;
  --c-text-mute: #6B7280;
  --c-border:    #ECECEC;

  /* Семантика */
  --c-primary:   var(--c-blue);
  --c-accent:    var(--c-yellow);

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Тени */
  --sh-sm: 0 2px 8px rgba(31, 41, 55, .06);
  --sh-md: 0 8px 24px rgba(31, 41, 55, .08);
  --sh-lg: 0 16px 48px rgba(31, 41, 55, .12);
  --sh-color: 0 12px 32px rgba(31, 182, 230, .25);

  /* Анимации */
  --t-fast: .15s ease;
  --t-base: .25s ease;
  --t-slow: .4s ease;

  /* Контейнер */
  --container: 1200px;
  --container-narrow: 880px;

  /* Типографика */
  --ff-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ff-body:    'Onest', 'Inter', system-ui, sans-serif;

  /* Z-index */
  --z-header: 100;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* ---------------------------------------------------------------------
   2) RESET
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------------
   3) BASE — типографика
   --------------------------------------------------------------------- */
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw + .5rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + .5rem, 1.625rem); }
h4 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--c-text); }
p + p { margin-top: 1em; }

.lead { font-size: clamp(1.0625rem, .5vw + 1rem, 1.25rem); color: var(--c-text-mute); }
.text-center { text-align: center; }
.text-mute { color: var(--c-text-mute); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c-primary);
}

::selection { background: var(--c-yellow); color: var(--c-text); }

/* ---------------------------------------------------------------------
   4) LAYOUT
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: var(--container-narrow); }

section { padding-block: clamp(48px, 6vw, 96px); }
section.section-tight { padding-block: clamp(32px, 4vw, 64px); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { margin-top: 16px; color: var(--c-text-mute); font-size: 1.0625rem; }

/* ---------------------------------------------------------------------
   5) COMPONENTS
   --------------------------------------------------------------------- */

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-color);
}
.btn--primary:hover { background: var(--c-blue-dark); box-shadow: 0 16px 36px rgba(31, 182, 230, .35); }
.btn--accent {
  background: var(--c-accent);
  color: var(--c-text);
  box-shadow: 0 12px 32px rgba(255, 204, 46, .35);
}
.btn--accent:hover { transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--lg { padding: 18px 36px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn--icon-end::after { content: "→"; font-size: 1.1em; transition: transform var(--t-fast); }
.btn--icon-end:hover::after { transform: translateX(4px); }

/* --- Бейджи --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
}
.badge--blue   { background: #E6F7FD; color: var(--c-blue-dark); }
.badge--yellow { background: #FFF6D4; color: #8A6D00; }
.badge--orange { background: #FFE9D6; color: #B85B10; }
.badge--green  { background: #E2F5E5; color: #1E7A2A; }
.badge--red    { background: #FCE2E0; color: #B53029; }
.badge--purple { background: #EFE5FA; color: #6739B0; }

/* --- Карточки --- */
.card {
  background: var(--c-bg-card);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 254, 251, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 28px; width: auto; max-width: none; }

.nav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; justify-content: center; }
.nav a {
  padding: 8px 10px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: .875rem;
  white-space: nowrap;
  color: var(--c-text);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav a:hover, .nav a.is-active { background: var(--c-blue-soft); color: var(--c-blue-dark); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 12px 20px; font-size: .9375rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--c-primary); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  position: relative;
  transition: transform var(--t-base), opacity var(--t-base);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: inherit;
  transition: inherit;
}
.burger span::before { top: -7px; }
.burger span::after  { top:  7px; }
.burger.is-open span { transform: rotate(45deg); }
.burger.is-open span::before { transform: rotate(-90deg) translate(7px, 0); }
.burger.is-open span::after  { opacity: 0; }

@media (max-width: 1180px) {
  .nav, .header-phone { display: none; }
  .burger { display: inline-flex; }
}

/* --- Mobile menu --- */
.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--c-bg);
  z-index: 90;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  padding: 32px 20px;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu .nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu .nav a {
  font-size: 1.125rem;
  padding: 14px 18px;
}
.mobile-menu .header-cta {
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.mobile-menu .header-cta .btn { width: 100%; }
.mobile-menu .header-phone { display: inline-flex; font-size: 1.125rem; }

/* --- Footer --- */
.site-footer {
  background: #0E1525;
  color: #C5CAD3;
  padding-block: 64px 32px;
  margin-top: 64px;
}
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; font-weight: 600; }
.site-footer a { color: #C5CAD3; transition: color var(--t-fast); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: #8C94A2; margin-top: 16px; max-width: 320px; }
.footer-brand img {
  width: auto;
  height: auto;
  max-width: min(280px, 100%);
  max-height: 36px;
  filter: brightness(0) invert(1);
  margin-bottom: 8px;
}
.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.footer-contacts strong { color: #fff; display: block; font-size: 1.125rem; margin-bottom: 4px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1A2237;
  border-radius: 50%;
  transition: background var(--t-fast);
}
.footer-socials a:hover { background: var(--c-primary); }
.footer-bottom {
  border-top: 1px solid #1A2237;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .875rem;
  color: #8C94A2;
}
.footer-bottom a { text-decoration: underline; text-decoration-color: #2C3550; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Floating MAX --- */
.float-action {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #17A5FD 0%, #0E6AF7 30%, #6428D0 70%, #7F12BA 100%);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-pill);
  box-shadow: 0 12px 32px rgba(56, 50, 200, .35);
  transition: transform var(--t-base);
}
.float-action:hover { transform: scale(1.05); }
@media (max-width: 600px) {
  .float-action span { display: none; }
  .float-action { padding: 14px; }
}

/* --- Мобильный sticky-CTA («Записаться» + звонок, только телефоны) --- */
.mcta { display: none; }
@media (max-width: 768px) {
  .mcta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 254, 251, .94);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -6px 22px rgba(31, 41, 55, .12);
    transform: translateY(130%);
    transition: transform .32s ease;
  }
  .mcta.is-show { transform: translateY(0); }
  .mcta__call {
    flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--c-blue-dark);
    border: 1.5px solid var(--c-blue);
  }
  .mcta__call svg { width: 22px; height: 22px; fill: currentColor; }
  .mcta__book {
    flex: 1 1 auto; min-width: 0; height: 50px; border-radius: var(--r-pill);
    background: var(--c-primary); color: #fff;
    font-family: var(--ff-body); font-weight: 600; font-size: 1.0625rem;
    box-shadow: var(--sh-color);
  }
  .mcta__book:active { transform: translateY(1px); }
  body.has-mcta { padding-bottom: 70px; }
  body.has-mcta.mcta-open .float-action { bottom: 86px; }
}


/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn var(--t-base);
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--c-bg);
  border-radius: var(--r-xl);
  max-width: 540px;
  width: 100%;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn var(--t-base);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--c-text-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--c-bg-soft); color: var(--c-text); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* --- Form --- */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-text);
  transition: border var(--t-fast), box-shadow var(--t-fast);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--c-text-mute); opacity: 1; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(31, 182, 230, .12);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field--error input, .form-field--error textarea, .form-field--error select { border-color: var(--c-red); }
.form-field--error .form-error { color: var(--c-red); font-size: .8125rem; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8125rem;
  color: var(--c-text-mute);
  line-height: 1.5;
  cursor: pointer;
}
.form-checkbox input { margin-top: 3px; }
.form-checkbox a { color: var(--c-primary); text-decoration: underline; }

/* --- Toast --- */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: var(--z-toast);
  background: #1F2937;
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
  max-width: 90vw;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: var(--c-green); }

/* --- Cookie --- */
.cookie {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 60;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 16px 20px;
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--c-text-mute);
  max-width: 760px;
  margin: 0 auto;
}
.cookie.is-show { display: flex; }
.cookie p { flex: 1; min-width: 240px; }
.cookie .btn { padding: 10px 20px; }

/* ---------------------------------------------------------------------
   6) PAGES — секции
   --------------------------------------------------------------------- */

/* --- Hero (главная) --- */
.hero {
  background: linear-gradient(180deg, var(--c-blue-soft) 0%, var(--c-bg) 100%);
  padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-content h1 { margin-bottom: 24px; }
.hero-content h1 span { color: var(--c-primary); white-space: nowrap; }
.hero-content .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-trust .stars { color: var(--c-orange); font-size: 1.25rem; letter-spacing: 2px; }
.hero-trust .count { font-weight: 600; }
.hero-trust .count small { color: var(--c-text-mute); font-weight: 400; display: block; font-size: .8125rem; }

.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-mascot { min-width: 0; }
.hero-mascot img {
  position: relative;
  z-index: 2;
  height: 540px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 24px 48px rgba(31, 41, 55, .15));
}
.hero-mascot::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(255, 204, 46, .35), transparent 60%);
  z-index: 1;
}
.hero-bubble {
  position: absolute;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--sh-md);
  font-size: .9375rem;
  font-weight: 500;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-bubble--1 { top: 18%; left: -10px; animation: float 6s ease-in-out infinite; }
.hero-bubble--2 { bottom: 28%; right: -10px; animation: float 6s ease-in-out infinite -3s; }
.hero-bubble--3 { bottom: 8%; left: 10%; animation: float 7s ease-in-out infinite -1.5s; }
.hero-bubble .emoji { font-size: 1.5rem; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-mascot img { height: 380px; max-width: 100%; object-fit: contain; }
  .hero-bubble--1, .hero-bubble--2, .hero-bubble--3 { display: none; }
}

/* --- Numbers --- */
.numbers {
  background: var(--c-bg-soft);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.number-item { text-align: center; }
.number-item .num {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.number-item .label { color: var(--c-text-mute); font-size: .9375rem; line-height: 1.4; }
@media (max-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* --- Pains (боли) --- */
.pains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pain {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1.5px solid var(--c-border);
  transition: transform var(--t-base), border-color var(--t-base);
}
.pain:hover { transform: translateY(-4px); border-color: var(--c-primary); }
.pain .emoji {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-blue-soft);
  border-radius: var(--r-md);
}
.pain h4 { font-size: 1.0625rem; margin-bottom: 4px; }
.pain p { font-size: .9375rem; color: var(--c-text-mute); margin: 0; }
@media (max-width: 1024px) { .pains-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pains-grid { grid-template-columns: 1fr; } }

/* --- Programs (карточки возрастов на главной) --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program-card.is-full { grid-column: 1 / -1; }
.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  min-height: 320px;
  border: 1.5px solid var(--c-border);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.program-card .age {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 700;
  margin-bottom: 16px;
  align-self: flex-start;
  letter-spacing: .03em;
}
.program-card.color-blue   .age { background: var(--c-blue);   color: #fff; }
.program-card.color-yellow .age { background: var(--c-yellow); color: var(--c-text); }
.program-card.color-orange .age { background: var(--c-orange); color: #fff; }
.program-card.color-green  .age { background: var(--c-green);  color: #fff; }
.program-card.color-purple .age { background: var(--c-purple); color: #fff; }
.program-card.color-red    .age { background: var(--c-red);    color: #fff; }

.program-card h3 { margin-bottom: 12px; }
.program-card .desc { color: var(--c-text-mute); font-size: .9375rem; flex: 1; }
.program-card .cta {
  margin-top: 20px;
  font-weight: 600;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast);
}
.program-card:hover .cta { gap: 10px; }
.program-card.is-wide { grid-column: span 2; background: linear-gradient(135deg, var(--c-blue-soft), #fff); }
.programs-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } .program-card.is-wide { grid-column: span 2; } .program-card.is-full { grid-column: 1 / -1; } }
@media (max-width: 600px)  { .programs-grid, .programs-grid--2 { grid-template-columns: 1fr; } .program-card.is-wide { grid-column: 1; } .program-card.is-full { grid-column: 1; } }

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  position: relative;
}
.step .num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-yellow);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.step p { color: var(--c-text-mute); font-size: .9375rem; }
@media (min-width: 769px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    right: calc(-50% + 40px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-border) 0 8px, transparent 8px 14px);
  }
}
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.features-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .features-grid--2 { grid-template-columns: 1fr; } }
.feature {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1.5px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature .ico {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature.c-blue  .ico { background: var(--c-blue-soft); color: var(--c-blue-dark); }
.feature.c-yellow .ico { background: #FFF6D4; color: #8A6D00; }
.feature.c-orange .ico { background: #FFE9D6; color: #B85B10; }
.feature.c-green  .ico { background: #E2F5E5; color: #1E7A2A; }
.feature.c-red    .ico { background: #FCE2E0; color: #B53029; }
.feature.c-purple .ico { background: #EFE5FA; color: #6739B0; }
.feature h3 { font-size: 1.125rem; }
.feature p { color: var(--c-text-mute); font-size: .9375rem; }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features-grid { grid-template-columns: 1fr; } }

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1.5px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
a.review:hover { transform: translateY(-4px); border-color: var(--c-primary); box-shadow: var(--sh-md); }
a.review .who small { display: inline-flex; align-items: center; gap: 4px; }
a.review .who small::after { content: "↗"; opacity: .6; }
.review .stars { color: var(--c-orange); font-size: 1.0625rem; letter-spacing: 1px; }
.review p { font-size: .9375rem; line-height: 1.6; flex: 1; }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.review-author .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-blue-soft);
  color: var(--c-blue-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.review-author .who { font-size: .9375rem; }
.review-author .who strong { display: block; }
.review-author .who small { color: var(--c-text-mute); font-size: .8125rem; }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .reviews-grid { grid-template-columns: 1fr; } }

/* --- Awards --- */
.awards {
  background: linear-gradient(135deg, var(--c-blue-soft), #fff);
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.award {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 20px;
  box-shadow: var(--sh-sm);
}
.award .emoji { font-size: 2.5rem; margin-bottom: 12px; }
.award h4 { font-size: 1rem; margin-bottom: 4px; }
.award p { color: var(--c-text-mute); font-size: .875rem; }
@media (max-width: 768px) { .awards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .awards-grid { grid-template-columns: 1fr; } }

/* --- Team preview --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-grid--solo {
  grid-template-columns: minmax(0, 280px);
  justify-content: center;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .team-grid--solo { grid-template-columns: 1fr; }
}
.teacher-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--c-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
a.teacher-card { text-decoration: none; color: inherit; display: block; }
a.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-primary); }
.teacher-card .photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--c-blue-soft), var(--c-bg-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-mute);
  font-size: 3rem;
  font-family: var(--ff-display);
  font-weight: 700;
  overflow: hidden;
}
.teacher-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card .info { padding: 20px; }
.teacher-card h4 { font-size: 1.0625rem; margin-bottom: 4px; }
.teacher-card .role { color: var(--c-text-mute); font-size: .875rem; margin-bottom: 8px; }
.teacher-card .exp { font-size: .8125rem; color: var(--c-primary); font-weight: 600; }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .team-grid { grid-template-columns: 1fr; } }

/* --- Final CTA --- */
.cta-final {
  background: linear-gradient(135deg, var(--c-blue) 0%, #2A6FE5 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-final > * { min-width: 0; }
.cta-final .form-field { min-width: 0; }
.cta-final::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255, 204, 46, .25), transparent 60%);
}
.cta-final h2 { color: #fff; position: relative; }
.cta-final p { color: rgba(255, 255, 255, .85); margin-top: 12px; font-size: 1.0625rem; position: relative; }
.cta-final .form-stack { position: relative; }
.cta-final .form-field input { background: rgba(255, 255, 255, .95); border-color: transparent; }
.cta-final .form-checkbox { color: rgba(255, 255, 255, .85); }
.cta-final .form-checkbox a { color: #fff; }
@media (max-width: 1024px) { .cta-final { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 24px; } }
@media (max-width: 600px) {
  .cta-final { padding: 32px 20px; background: var(--c-blue); }
  .cta-final::before { display: none; }
}

/* --- FAQ --- */
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border var(--t-base);
}
.faq-item.is-open { border-color: var(--c-primary); }
.faq-q {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1.0625rem;
  text-align: left;
}
.faq-q .toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-blue-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--c-blue-dark);
  flex-shrink: 0;
  transition: transform var(--t-base);
}
.faq-item.is-open .toggle { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-a-inner { padding: 0 24px 22px; color: var(--c-text); }
.faq-a-inner ul, .faq-a-inner ol { color: var(--c-text); }
.faq-item.is-open .faq-a { max-height: 1500px; }

/* --- Map --- */
.map {
  border-radius: var(--r-xl);
  overflow: hidden;
  height: clamp(280px, 40vw, 480px);
  background: var(--c-bg-soft);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* --- Inner page hero (для подстраниц программ) --- */
.page-hero {
  background: linear-gradient(180deg, var(--c-blue-soft) 0%, var(--c-bg) 100%);
  padding: clamp(48px, 6vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.page-hero .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .breadcrumbs {
  display: flex; gap: 8px;
  font-size: .875rem;
  color: var(--c-text-mute);
  margin-bottom: 16px;
}
.page-hero .breadcrumbs a:hover { color: var(--c-primary); }
.page-hero .lead { margin-bottom: 24px; max-width: 540px; }
.page-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
@media (max-width: 1024px) { .page-hero .container { grid-template-columns: minmax(0, 1fr); } }

/* Hero без маскота — заголовок и lead используют всю ширину */
.page-hero--single .container { grid-template-columns: minmax(0, 1fr); gap: 0; }
.page-hero--single .lead { max-width: none; }

/* --- Person profile page (Анна Потапкина) --- */
.person-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.meta-chip { display: inline-flex; align-items: center; padding: 8px 14px; background: var(--c-bg-soft); border-radius: 999px; font-size: .9375rem; color: var(--c-text); }
.meta-chip strong { color: var(--c-primary); margin-right: 6px; }
.person-photo { display: flex; justify-content: center; }
.person-photo picture, .person-photo img { width: 100%; max-width: 420px; height: auto; border-radius: var(--r-xl); box-shadow: var(--sh-md); }

.diplomas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.diploma { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--c-text); transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base); }
.diploma:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-primary); }
.diploma picture, .diploma img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: var(--c-bg-soft); }
.diploma-caption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.diploma-caption strong { font-size: 1rem; line-height: 1.3; }
.diploma-caption span { font-size: .8125rem; color: var(--c-text-mute); line-height: 1.4; }
@media (max-width: 1024px) { .diplomas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .diplomas-grid { grid-template-columns: minmax(0, 1fr); } }

.personal-quote { background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); box-shadow: var(--sh-sm); border-left: 6px solid var(--c-primary); margin: 0; }
.personal-quote p { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.7; font-style: italic; color: var(--c-text); margin: 0; }
.personal-quote footer { margin-top: 16px; font-size: .9375rem; color: var(--c-text-mute); font-style: normal; font-weight: 500; }

/* --- Article body (длинный читательский текст блога) --- */
.article-body { max-width: 1080px; }
.article-body .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border-radius: var(--r-md); }
.article-body .table-scroll table { min-width: 520px; margin: 0 !important; }
@media (max-width: 600px) { .article-body .table-scroll table { font-size: .9375rem; } .article-body .table-scroll th, .article-body .table-scroll td { padding: 10px !important; } }
.article-body p { line-height: 1.75; font-size: 1.0625rem; }
.article-body h2 { margin-top: 56px; margin-bottom: 16px; }
.article-body h3 { margin-top: 36px; margin-bottom: 12px; }
.article-body h2:first-child, .article-body h3:first-child { margin-top: 0; }
.article-body ul, .article-body ol { margin: 20px 0; padding-left: 28px; }
.article-body li { margin-bottom: 10px; line-height: 1.7; }
.article-body li::marker { color: var(--c-primary); font-weight: 600; }
.article-body a { color: var(--c-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { text-decoration-thickness: 2px; }
/* Кнопки-ссылки внутри .article-body не должны наследовать стиль ссылок */
.article-body a.btn { text-decoration: none; }
.article-body a.btn--primary { color: #fff; }
.article-body a.btn--accent, .article-body a.btn--ghost { color: var(--c-text); }
@media (max-width: 768px) {
  .article-body h2 { margin-top: 40px; }
  .article-body h3 { margin-top: 28px; }
  .article-body p { font-size: 1rem; line-height: 1.7; }
}

/* --- Outcomes (чего достигнет ребёнок) --- */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.outcome {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--c-border);
}
.outcome .check {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 700;
}
.outcome h4 { font-size: 1rem; margin-bottom: 4px; }
.outcome p { font-size: .9375rem; color: var(--c-text-mute); }
@media (max-width: 1024px) { .outcomes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .outcomes-grid { grid-template-columns: 1fr; } }

/* --- Course list (на странице программы) --- */
.course-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.course-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1.5px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.course-card .top { display: flex; gap: 8px; flex-wrap: wrap; }
.course-card h3 { font-size: 1.25rem; }
.course-card .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .875rem; color: var(--c-text-mute); }
.course-card .meta span::before { content: "•"; margin-right: 8px; color: var(--c-primary); }
.course-card .meta span:first-child::before { display: none; }
.course-card p { color: var(--c-text-mute); font-size: .9375rem; }
.course-card .price-row {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.course-card .price strong {
  font-family: var(--ff-display);
  font-size: 1.375rem;
}
.course-card .price small { color: var(--c-text-mute); font-size: .8125rem; display: block; }
@media (max-width: 768px) { .course-list { grid-template-columns: 1fr; } }


/* --- Program-card: вариант с картой (страница контактов) --- */
.program-card--map {
  padding: 20px;
  gap: 20px;
  min-height: auto;
}
.program-card--map:hover { transform: none; box-shadow: var(--sh-sm); }
.program-card--map .map {
  height: clamp(300px, 38vw, 440px);
  border-radius: var(--r-lg);
}
.program-card--map__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.program-card--map__actions .btn { flex: 1; min-width: 180px; }
@media (max-width: 600px) {
  .program-card--map__actions .btn { min-width: 100%; }
}

/* --- Mobile responsive overrides --- */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .container { padding-inline: 16px; }
  .header-inner { gap: 12px; }
  .logo img { height: 24px; }
  .hero-content h1 span { white-space: normal; }

  /* Mobile menu: компактнее, телефон по центру, кнопка не вылазит */
  .mobile-menu { padding: 24px 16px; overflow-x: hidden; box-sizing: border-box; }
  .mobile-menu .header-cta {
    align-items: stretch;
    width: 100%;
  }
  .mobile-menu .header-phone {
    justify-content: center;
    text-align: center;
  }
  .mobile-menu .header-cta .btn {
    padding: 12px 14px;
    font-size: .9375rem;
    white-space: normal;
    line-height: 1.25;
    max-width: 100%;
  }
}
@media (max-width: 400px) {
  .logo img { height: 20px; }
  .mobile-menu .header-cta .btn { font-size: .875rem; }
}

/* --- Legal documents (privacy / consent) --- */
.legal-doc h2 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 {
  font-size: 1.125rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-doc p { margin-bottom: 12px; line-height: 1.6; }
.legal-doc ul {
  margin: 12px 0 16px 24px;
  list-style: disc;
}
.legal-doc ol {
  margin: 12px 0 16px 24px;
  list-style: decimal;
}
.legal-doc li { margin-bottom: 6px; }
.legal-doc dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 12px 0 16px;
}
.legal-doc dt { color: var(--c-text-mute); font-weight: 500; }
.legal-doc dd { color: var(--c-text); }
@media (max-width: 600px) {
  .legal-doc dl { grid-template-columns: 1fr; gap: 0; }
  .legal-doc dt { margin-top: 8px; }
}

/* --- TL;DR / «Кратко» — обратная пирамида для LLM и быстрого просмотра --- */
.tldr {
  background: linear-gradient(135deg, var(--c-blue-soft), var(--c-bg-soft));
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin: 0 0 24px;
  border-left: 4px solid var(--c-primary);
}
.tldr__title {
  display: inline-block;
  font-family: var(--f-display, inherit);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--c-primary);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tldr__answer {
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0 0 14px;
  color: var(--c-text);
  font-weight: 500;
}
.tldr__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.tldr__list li {
  position: relative;
  padding-left: 24px;
  font-size: .9375rem;
  line-height: 1.5;
}
.tldr__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-primary);
  font-weight: 700;
}
@media (max-width: 600px) {
  .tldr { padding: 20px 22px; }
}

/* --- License block --- */
.license-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--c-bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.license-block__preview {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: transform var(--t-base);
}
.license-block__preview:hover { transform: translateY(-2px); }
.license-block__preview img { display: block; width: 100%; height: auto; }
.license-block__preview::after {
  content: "Открыть PDF";
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.license-block__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.license-block__title svg { color: var(--c-primary); flex-shrink: 0; }
.license-block p { margin: 0 0 12px; line-height: 1.6; }
.license-block__meta {
  color: var(--c-text-mute);
  font-size: .9375rem;
}
.license-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .license-block { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .license-block__title { font-size: 1.25rem; }
}

/* --- Галерея педагогов (полноэкранный лайтбокс: полное фото + имя/роль/описание) --- */
.teacher-card[data-gallery] { cursor: zoom-in; }
.teacher-card[data-gallery]:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-primary); }
.teacher-card[data-gallery] .photo::after {
  content: "⤢"; position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; background: rgba(31, 41, 55, .45);
  opacity: 0; transition: opacity var(--t-base);
}
.teacher-card[data-gallery] .photo { position: relative; }
.teacher-card[data-gallery]:hover .photo::after,
.teacher-card[data-gallery]:focus-visible .photo::after { opacity: 1; }
.teacher-card[data-gallery]:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }

.nsh-gallery[hidden] { display: none; }
.nsh-gallery {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(15, 23, 42, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: nshg-fadein .2s ease;
}
@keyframes nshg-fadein { from { opacity: 0; } to { opacity: 1; } }
.nshg-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 92vh; }
.nshg-frame { position: relative; display: flex; max-width: min(94vw, 760px); max-height: 92vh; }
.nshg-photo { display: flex; }
.nshg-photo img {
  max-width: min(94vw, 760px); max-height: 92vh; width: auto; height: auto;
  object-fit: contain; display: block; border-radius: var(--r-lg);
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .85);
}
.nshg-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 64px 26px 24px; border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: linear-gradient(to top, rgba(13, 20, 34, .94), rgba(13, 20, 34, .55) 48%, rgba(13, 20, 34, 0) 88%);
}
.nshg-role { color: var(--c-yellow); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.nshg-name { font-family: var(--ff-display); color: #fff; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.15; margin-bottom: 8px; }
.nshg-desc { color: #E6EDF5; font-size: .9375rem; line-height: 1.5; max-width: 60ch; }
.nshg-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff; z-index: 1201;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.nshg-prev { left: 18px; } .nshg-next { right: 18px; }
.nshg-nav:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.nshg-close {
  position: fixed; top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; z-index: 1201;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  transition: transform var(--t-base), border-color var(--t-base), color var(--t-base);
}
.nshg-close:hover { border-color: var(--c-primary); color: var(--c-primary); transform: rotate(90deg); }
.nshg-count { position: fixed; top: 26px; left: 26px; color: #C7D2E0; font-size: .8125rem; letter-spacing: .1em; z-index: 1201; }
.nshg-fade { animation: nshg-imgfade .28s ease; }
@keyframes nshg-imgfade { from { opacity: 0; transform: scale(.992); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
  .nsh-gallery { padding: 12px; }
  .nshg-nav { width: 44px; height: 44px; font-size: 24px; } .nshg-prev { left: 8px; } .nshg-next { right: 8px; }
  .nshg-cap { padding: 56px 18px 20px; } .nshg-close { top: 12px; right: 12px; } .nshg-count { top: 16px; left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nsh-gallery, .nshg-fade { animation: none !important; }
  .nshg-close:hover { transform: none !important; }
  .teacher-card[data-gallery]:hover { transform: none !important; }
}

/* --- Utilities --- */
.is-hidden { display: none !important; }
.no-scroll { overflow: hidden; }
.gap-md { display: flex; gap: 12px; flex-wrap: wrap; }

