/* ============================================================
   Shopulatov Math School
   Цвета взяты с логотипа. Чтобы перекрасить сайт по брендбуку,
   достаточно поменять токены в :root.
   ============================================================ */

:root {
  /* Бренд */
  --navy:     #002768;
  --navy-2:   #0D346F;
  --navy-950: #00143A;
  --sky:      #02A0E6;
  --sky-600:  #0196D0;
  --cyan:     #22B8E0;
  --ice:      #EEF7FD;
  --amber:    #FFC53D;

  /* Светлая тема */
  --bg:          #F6FAFD;
  --surface:     #FFFFFF;
  --surface-2:   #EEF7FD;
  --text:        #002768;
  --text-soft:   #475C82;
  --text-faint:  #7F90AD;
  --line:        rgba(0, 39, 104, 0.10);
  --line-strong: rgba(0, 39, 104, 0.22);
  --grid:        rgba(2, 160, 230, 0.09);
  --card-shadow: 0 1px 2px rgba(0, 39, 104, 0.05), 0 20px 44px -28px rgba(0, 39, 104, 0.35);
  --lift-shadow: 0 30px 70px -32px rgba(0, 39, 104, 0.5);
  --glow:        0 14px 34px -10px rgba(2, 160, 230, 0.6);
  --overlay:     rgba(0, 20, 58, 0.55);

  /* Типографика */
  --font-display: "Unbounded", "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Формы */
  --r-sm:   12px;
  --r:      20px;
  --r-lg:   28px;
  --r-xl:   36px;
  --r-pill: 999px;

  /* Раскладка */
  --container: 1240px;
  --pad:       clamp(18px, 4vw, 40px);
  --header-h:  76px;

  /* Движение */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg:          #00143A;
  --surface:     #06265A;
  --surface-2:   #0A2E66;
  --text:        #EAF4FF;
  --text-soft:   #A8BEDF;
  --text-faint:  #7C95BC;
  --line:        rgba(234, 244, 255, 0.10);
  --line-strong: rgba(234, 244, 255, 0.24);
  --grid:        rgba(34, 184, 224, 0.08);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 24px 50px -30px rgba(0, 0, 0, 0.7);
  --lift-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.85);
  --overlay:     rgba(0, 8, 26, 0.7);
  color-scheme: dark;
}

/* ============================================================
   БАЗА
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.show-preloader body { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--navy); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

/* Смена темы раскрывается кругом (анимацию задаёт app.js) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--sky); color: var(--navy); font-weight: 700;
  padding: 12px 18px; border-radius: 0 0 12px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.icon { width: 20px; height: 20px; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon--lg { width: 26px; height: 26px; }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font: 700 16px/1.15 var(--font-body);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.25s ease, color 0.25s ease;
}
.btn .icon { transition: transform 0.5s var(--ease-spring); }
.btn:hover .icon { transform: rotate(90deg) scale(1.1); }
.btn:active { transform: scale(0.97); }

/* Главная: цвета ленты логотипа, тёмно-синий текст (контраст ≥ 4.8:1) */
.btn--primary {
  color: var(--navy);
  background: linear-gradient(120deg, var(--sky) 0%, var(--cyan) 100%);
  box-shadow: var(--glow);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.6) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out);
}
.btn--primary:hover { box-shadow: 0 20px 44px -12px rgba(2, 160, 230, 0.75); }
.btn--primary:hover::after { transform: translateX(130%); }

.btn--navy { color: #fff; background: var(--navy); }
.btn--navy:hover { background: var(--navy-2); }
[data-theme="dark"] .btn--navy { color: var(--navy); background: #fff; }
[data-theme="dark"] .btn--navy:hover { background: var(--ice); }

.btn--ghost {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--sky); }

.btn--light { color: var(--navy); background: #fff; }
.btn--light:hover { background: var(--ice); }

.btn--sm    { min-height: 42px; padding: 10px 18px; font-size: 15px; }
.btn--lg    { min-height: 58px; padding: 17px 30px; font-size: 17px; }
.btn--block { width: 100%; }

.btn[disabled], .btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .icon { animation: spin 0.9s linear infinite; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.4s var(--ease-spring);
}
.icon-btn:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.icon-btn:active { transform: scale(0.9); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--sky-600);
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.2s ease;
}
.link:hover { background-size: 100% 2px; }
[data-theme="dark"] .link { color: var(--cyan); }

/* ============================================================
   ПРЕЛОАДЕР
   ============================================================ */
.preloader { display: none; }

.show-preloader .preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, var(--navy-2) 0%, var(--navy-950) 100%);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  transition: transform 0.7s var(--ease-out);
}
.preloader__logo {
  width: 160px;
  height: auto;
  animation: preLogo 0.9s var(--ease-spring) 0.1s both;
}
.preloader__ring {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  transform: rotate(-90deg);
}
.preloader__ring circle {
  fill: none;
  stroke: var(--sky);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 580;
  stroke-dashoffset: 580;
  animation: preRing 1s var(--ease-out) 0.15s forwards;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader.is-done .preloader__mark { transform: scale(1.18); }

@keyframes preLogo { from { opacity: 0; transform: scale(0.55) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes preRing { to { stroke-dashoffset: 0; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pop     { from { opacity: 0; transform: translateY(-6px) scale(0.94); } to { opacity: 1; transform: none; } }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: transform 0.5s var(--ease-out), background-color 0.35s ease, box-shadow 0.35s ease;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-105%); }
.menu-open .header { transform: none; background: var(--bg); box-shadow: none; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  text-decoration: none;
}
.brand__badge { width: 60px; height: auto; transition: transform 0.6s var(--ease-spring); }
.brand:hover .brand__badge { transform: rotate(-8deg) scale(1.05); }
.brand__badge--dark { display: none; }
[data-theme="dark"] .brand__badge--light { display: none; }
[data-theme="dark"] .brand__badge--dark  { display: block; }

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1;
}
.brand__name b    { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.brand__name span { margin-top: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--sky-600); }
[data-theme="dark"] .brand__name span { color: var(--cyan); }

.nav {
  display: flex;
  gap: 2px;
  margin-inline: auto;
}
.nav a {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }

.header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}
.nav + .header__tools { margin-inline-start: 0; }

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone .icon { color: var(--sky); }
.header__cta { white-space: nowrap; }

/* Переключатель темы */
.theme-toggle .icon { transition: transform 0.6s var(--ease-spring); }
.theme-toggle .icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
.theme-toggle:hover .icon { transform: rotate(-25deg); }

/* Язык */
.lang { position: relative; }
.lang__current {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lang__current:hover { background: var(--surface-2); }
.lang__current .icon--xs { transition: transform 0.3s var(--ease-out); }
.lang__current[aria-expanded="true"] .icon--xs { transform: rotate(180deg); }

.flag {
  width: 22px;
  height: 15px;
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lang__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 184px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--lift-shadow);
  transform-origin: top right;
  animation: pop 0.3s var(--ease-spring);
}
.lang__list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.lang__list button:hover,
.lang__list button[aria-current="true"] { background: var(--surface-2); }

/* Бургер */
.burger {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
}
.burger__lines { display: grid; gap: 6px; width: 20px; }
.burger__lines i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out);
}
.burger[aria-expanded="true"] .burger__lines i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* Полоса прогресса чтения */
.progress {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  pointer-events: none;
}
.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--cyan));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 16px) var(--pad) 28px;
  overflow-y: auto;
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font: 700 clamp(26px, 7.5vw, 38px)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.mobile-menu.is-open .mobile-menu__nav a,
.mobile-menu.is-open .mobile-menu__foot {
  animation: menuIn 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.mobile-menu__foot { display: grid; gap: 16px; }
.mobile-menu__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ============================================================
   ОБЩЕЕ ДЛЯ СЕКЦИЙ
   ============================================================ */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-title {
  font: 700 clamp(30px, 4.3vw, 56px)/1.08 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-lead {
  max-width: 58ch;
  margin-top: 18px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-soft);
  text-wrap: pretty;
}

/* Слова заголовка для раскрытия (создаёт motion.js) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word > span { display: inline-block; }

/* ============================================================
   ПЕРВЫЙ ЭКРАН
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 940px);
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 76px));
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: clip;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 62% 42%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 75% at 62% 42%, #000 25%, transparent 78%);
}
.grid-cell {
  position: absolute;
  width: 47px;
  height: 47px;
  background: var(--sky);
  opacity: 0;
  animation: cell 5s ease-in-out infinite;
}
@keyframes cell { 0%, 100% { opacity: 0; } 45%, 55% { opacity: 0.16; } }

.hero__blob { position: absolute; border-radius: 50%; }
.hero__blob--a {
  top: 4%;
  right: -12%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(2, 160, 230, 0.32), transparent 62%);
}
.hero__blob--b {
  bottom: -24%;
  left: -14%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 39, 104, 0.16), transparent 62%);
}
[data-theme="dark"] .hero__blob--b { background: radial-gradient(circle, rgba(34, 184, 224, 0.2), transparent 62%); }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  animation: live 2.2s infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero__title {
  font: 800 clamp(36px, 4.9vw, 66px)/1.04 var(--font-display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* «всё сходится»: буквы сходятся, как последовательность к пределу,
   в конце — знак конца доказательства */
.converge {
  display: inline-block;
  white-space: nowrap;
  transition: letter-spacing 1.6s var(--ease-out) 0.35s;
}
.converge::after {
  content: "";
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-inline-start: 0.14em;
  border-radius: 0.05em;
  background: var(--sky);
  transition: transform 0.7s var(--ease-spring) 1.5s;
}
.js:not(.reduce-motion) .hero:not(.is-in) .converge { letter-spacing: 0.45em; }
.js:not(.reduce-motion) .hero:not(.is-in) .converge::after { transform: scale(0) rotate(-90deg); }

.hero__lead {
  max-width: 36em;
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}
.avatars { display: flex; padding-inline-start: 10px; }
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-inline-start: -10px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  font: 700 12px var(--font-display);
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 92% 46%), hsl(calc(var(--h) + 18) 90% 26%));
}
.hero__trust-text { font-size: 15px; color: var(--text-soft); max-width: 22em; }
.hero__trust-text b { color: var(--text); }

/* ---------- 3D-сцена с книгами ---------- */
.hero__visual { position: relative; }
.scene {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.scene__glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 160, 230, 0.34), transparent 66%);
}

.book {
  position: absolute;
  width: 44%;
  perspective: 1100px;
  animation: float 7s ease-in-out infinite;
}
.book--1 { left: 0;   top: 27%; z-index: 3; animation-delay: -2s; }
.book--2 { left: 27%; top: 15%; z-index: 2; animation-delay: -4.5s; }
.book--3 { left: 54%; top: 3%;  z-index: 1; animation-delay: -1s; }

.book__cover {
  position: relative;
  overflow: hidden;
  border-radius: 3px 14px 14px 3px;
  transform-origin: 0 50%;
  box-shadow: 24px 32px 58px -26px rgba(0, 20, 58, 0.62), 0 2px 6px rgba(0, 20, 58, 0.18);
}
.book__cover img { display: block; width: 100%; height: auto; }

.book--1 .book__cover { transform: rotateY(15deg) rotateZ(-7deg); }
.book--2 .book__cover { transform: rotateY(13deg) rotateZ(1deg); }
.book--3 .book__cover { transform: rotateY(11deg) rotateZ(8deg); }

/* Корешок слева и срез страниц справа */
.book__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 20, 58, 0.5) 0, rgba(0, 20, 58, 0.12) 3%, transparent 7%),
    linear-gradient(90deg, transparent 93%, rgba(255, 255, 255, 0.22));
  pointer-events: none;
}

/* Блик, пробегающий по обложке */
.book__cover::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 1;
  background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, 0.32) 50%, transparent 60%);
  transform: translateX(-70%);
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
}
.book--2 .book__cover::before { animation-delay: -2s; }
.book--3 .book__cover::before { animation-delay: -4s; }
@keyframes sheen { 0%, 60% { transform: translateX(-80%); } 100% { transform: translateX(80%); } }
.chip {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 62px;
  padding-inline: 16px;
  border-radius: 20px;
  font: 700 23px var(--font-display);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  animation: float 6s ease-in-out infinite;
}
[data-theme="dark"] .chip {
  color: #fff;
  background: rgba(10, 46, 102, 0.72);
  box-shadow: var(--card-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.chip--root { left: 0;    top: 6%;  animation-delay: -1s; }
.chip--pi   { right: 3%;  top: 0;   color: var(--sky-600); animation-delay: -3s; }
.chip--sq   { left: -4%; top: 64%; animation-delay: -2s; }
[data-theme="dark"] .chip--pi { color: var(--cyan); }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.graph {
  position: absolute;
  z-index: 5;
  right: -2%;
  bottom: 0;
  width: 44%;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--lift-shadow);
  animation: float 8s ease-in-out -3s infinite;
}
.graph__svg { width: 100%; height: auto; overflow: visible; }
.graph__grid  { fill: none; stroke: var(--line); stroke-width: 1; }
.graph__axis  { fill: none; stroke: var(--text-faint); stroke-width: 1.5; }
.graph__curve { fill: none; stroke: var(--sky); stroke-width: 3.5; stroke-linecap: round; }
.graph__root  { fill: var(--amber); stroke: var(--surface); stroke-width: 2; }
.graph__eq  { margin-top: 8px; font: 700 clamp(12px, 1.25vw, 15px)/1.3 var(--font-display); }
.graph__ans { font-size: 13px; font-weight: 700; color: var(--text-soft); }

.sparkle { position: absolute; z-index: 6; color: var(--sky); animation: twinkle 3.2s ease-in-out infinite; }
.sparkle--1 { left: 40%; top: 0;     width: 26px; height: 26px; }
.sparkle--2 { right: 7%; bottom: 22%; width: 20px; height: 20px; color: var(--amber); animation-delay: -1.2s; }
.sparkle--3 { left: 56%; bottom: 6%;  width: 16px; height: 16px; animation-delay: -2.1s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.7) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.1) rotate(45deg); }
}

/* ============================================================
   ЦИФРЫ
   ============================================================ */
.stats { padding-block: clamp(12px, 2vw, 28px) clamp(56px, 7vw, 96px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.stat::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--dot) 20%, transparent);
}
.stat__num {
  display: flex;
  align-items: flex-start;
  font: 700 clamp(38px, 4.4vw, 58px)/1.08 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat__plus { display: inline-block; margin-inline-start: 2px; color: var(--sky); }
.stat__label { max-width: 20ch; margin-top: 12px; font-size: 16px; color: var(--text-soft); }

/* Табло: каждая цифра — лента 0–9 */
.odo { display: inline-flex; }
.odo__digit { display: inline-block; height: 1.08em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; }
.odo__strip span { display: block; height: 1.08em; line-height: 1.08; }
.odo__gap { display: inline-block; width: 0.26em; }

/* ============================================================
   БЕГУЩАЯ СТРОКА
   ============================================================ */
/* Наклонная лента шире экрана — обрезаем по горизонтали, чтобы не было прокрутки вбок */
.marquee-wrap {
  position: relative;
  z-index: 2;
  padding-block: 24px;
  margin-block: -24px;
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
}
.marquee {
  position: relative;
  width: 104%;
  margin-inline-start: -2%;
  padding-block: 22px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  transform: rotate(-1.6deg);
  box-shadow: 0 30px 60px -30px rgba(0, 20, 58, 0.55);
}
[data-theme="dark"] .marquee { color: var(--navy); background: var(--sky); }
.marquee__track { display: flex; width: max-content; }
html:not(.gsap-ready) .marquee__track { animation: marquee 40s linear infinite; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__group li {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-inline-end: 30px;
  font: 700 clamp(18px, 2.2vw, 28px)/1 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__group li::after {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--sky);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.6 6 4.9 10.4 11 11-6.1.6-10.4 5-11 11-.6-6-4.9-10.4-11-11C7.1 11.4 11.4 7 12 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.6 6 4.9 10.4 11 11-6.1.6-10.4 5-11 11-.6-6-4.9-10.4-11-11C7.1 11.4 11.4 7 12 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-theme="dark"] .marquee__group li::after { background: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   КАРТОЧКИ И «ПОЧЕМУ МЫ»
   ============================================================ */
.card {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out);
}
/* Световое пятно за курсором (координаты ставит motion.js) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(2, 160, 230, 0.13), transparent 48%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: var(--lift-shadow); }

.card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 40px;
  border-radius: 50%;
  color: #fff;
  background: var(--c);
  box-shadow: 0 14px 26px -12px var(--c);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__title {
  font: 700 clamp(19px, 1.8vw, 23px)/1.22 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.card__text { margin-top: 12px; font-size: 16px; color: var(--text-soft); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bento__item--a       { grid-column: 1; grid-row: 1; }
.bento__item--feature { grid-column: 2; grid-row: 1 / span 2; }
.bento__item--b       { grid-column: 3; grid-row: 1; }
.bento__item--c       { grid-column: 1; grid-row: 2; }
.bento__item--d       { grid-column: 3; grid-row: 2; }
.bento__item--e {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 24px 32px;
}
.bento__item--e .card__icon { margin-bottom: 0; }
.bento__item--e .card__text { margin-top: 0; }

/* Центральная карточка: команда на тёмно-синем */
.card--feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(2, 160, 230, 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 60%, var(--navy-950) 100%);
}
.card--feature .card__text { color: rgba(234, 244, 255, 0.78); }
.card--feature::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.1), transparent 48%); }

.team { position: relative; height: 310px; margin: -4px -8px 26px; }
.team__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 236px;
  height: 236px;
  margin: -118px 0 0 -118px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  animation: spin 50s linear infinite;
}
.team__member { position: absolute; animation: float 6s ease-in-out infinite; }
.team__photo {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  font: 700 19px var(--font-display);
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--navy-2));
  box-shadow: 0 0 0 4px var(--navy), 0 16px 30px -12px rgba(0, 0, 0, 0.55);
}
.team__member--lead { top: 50%; left: 50%; margin: -64px 0 0 -64px; animation-delay: -3s; }
.team__member--lead .team__photo {
  width: 128px;
  height: 128px;
  font-size: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--sky) 45%, var(--navy-2));
}
.team__member--1 { top: 4%;    left: 4%;  animation-delay: -1s; }
.team__member--2 { top: 0;     right: 2%; animation-delay: -2.2s; }
.team__member--3 { bottom: 4%; left: 0;   animation-delay: -4s; }
.team__member--4 { bottom: 0;  right: 8%; animation-delay: -5s; }
.team__member--2 .team__photo { background: linear-gradient(135deg, #7C9CFF, var(--navy-2)); }
.team__member--3 .team__photo { background: linear-gradient(135deg, var(--cyan), #0B408F); }
.team__member--4 .team__photo { background: linear-gradient(135deg, #3FB6FF, var(--navy)); }
.team__badge {
  position: absolute;
  left: 50%;
  bottom: -9px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  background: var(--amber);
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5);
}
.team__member--2 .team__badge { background: var(--sky); }
.team__member--4 .team__badge { background: #fff; }

/* ============================================================
   КУРСЫ
   ============================================================ */
.courses__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.courses__head .section-head { margin-bottom: 0; }

.tabs {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--navy);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out);
}
[data-theme="dark"] .tabs__pill { background: var(--sky); }
.tabs__btn {
  position: relative;
  z-index: 1;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active { color: #fff; }
[data-theme="dark"] .tabs__btn.is-active { color: var(--navy); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course[hidden] { display: none; }

.course__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.course__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.course__card:hover { transform: translateY(-6px); box-shadow: var(--lift-shadow); }
.course__card:hover::after { transform: scaleX(1); }

.course__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.course__tag {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.course__symbol {
  font: 700 32px/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--accent);
  transition: transform 0.7s var(--ease-spring);
}
.course__card:hover .course__symbol { transform: rotate(-10deg) scale(1.15); }

.course__name {
  margin-top: 26px;
  font: 700 clamp(19px, 1.8vw, 23px)/1.22 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.course__desc { margin-top: 10px; font-size: 16px; color: var(--text-soft); }

.course__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.course__facts dt { font-size: 13px; font-weight: 600; color: var(--text-faint); }
.course__facts dd { margin-top: 2px; font-size: 15px; font-weight: 700; line-height: 1.35; }

.course__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 24px;
}
.course__price { font-size: 14px; color: var(--text-soft); }
.course__price b { font: 700 20px var(--font-display); letter-spacing: -0.02em; color: var(--text); }

/* ============================================================
   КАК НАЧАТЬ
   ============================================================ */
.path {
  color: #fff;
  background: var(--navy);
  overflow: clip;
}
[data-theme="dark"] .path { background: #000E2A; }
.path::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.path .container { position: relative; }
.path .section-lead { color: rgba(234, 244, 255, 0.74); }

.steps { position: relative; }
.steps__rail {
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}
.steps__fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--cyan));
  transform-origin: 0 50%;
}
.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font: 700 20px var(--font-display);
  color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 8px var(--navy);
  transition: background-color 0.45s ease, transform 0.6s var(--ease-spring);
}
[data-theme="dark"] .step__num { box-shadow: 0 0 0 8px #000E2A; }
.step.is-active .step__num { background: var(--sky); transform: scale(1.1); }
.step__title { margin-top: 26px; font: 700 19px/1.25 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.step__text { margin-top: 10px; font-size: 15.5px; color: rgba(234, 244, 255, 0.72); }

/* ============================================================
   ТЕСТ УРОВНЯ — ТИЗЕР
   ============================================================ */
.quiz-teaser__box {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 5.5vw, 76px);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #E3F4FD 0%, #CBEBFB 100%);
}
[data-theme="dark"] .quiz-teaser__box { background: linear-gradient(135deg, #06265A 0%, #0B3B7A 100%); }
.quiz-teaser__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 39, 104, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 39, 104, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000);
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}
[data-theme="dark"] .quiz-teaser__box::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}
.quiz-teaser__copy .btn { margin-top: 30px; }

.quiz-teaser__demo { position: relative; min-height: 320px; }
.demo-card {
  position: absolute;
  inset: 12px 14px 12px 34px;
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--lift-shadow);
  rotate: 3deg;
}
.demo-card--back { inset: 36px 48px 0 8px; rotate: -6deg; background: var(--navy); box-shadow: none; }
[data-theme="dark"] .demo-card--back { background: var(--sky); opacity: 0.5; }
.demo-card__meta { font-size: 13px; font-weight: 700; color: var(--text-faint); }
.demo-card__q { margin-top: 14px; font: 700 clamp(26px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.demo-card__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.demo-card__opts span {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease-spring);
}
.demo-card__opts span.is-picked  { background: #FFE2E2; color: #B42318; box-shadow: none; }
.demo-card__opts span.is-correct { background: #22C55E; color: #fff; box-shadow: none; transform: scale(1.04); }
.demo-card__bar { height: 6px; margin-top: 22px; overflow: hidden; border-radius: 6px; background: var(--surface-2); }
.demo-card__bar span { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, var(--sky), var(--cyan)); transition: width 0.8s var(--ease-out); }

/* ============================================================
   КАРУСЕЛИ
   ============================================================ */
.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.carousel-head .section-head { margin-bottom: 0; }
.carousel-nav { display: flex; flex: none; gap: 10px; }
.carousel-nav .icon-btn { width: 52px; height: 52px; background: var(--surface); box-shadow: var(--card-shadow); }
.carousel-nav .icon-btn:hover { color: var(--navy); background: var(--sky); }
.carousel-nav .icon-btn[disabled] { opacity: 0.35; pointer-events: none; }

.carousel__track {
  --edge: max(var(--pad), calc((100% - var(--container)) / 2 + var(--pad)));
  display: flex;
  gap: 18px;
  padding: 10px var(--edge) 30px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { flex: none; scroll-snap-align: start; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carousel__track.is-dragging a,
.carousel__track.is-dragging button { pointer-events: none; }

.carousel__progress {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}
.carousel__progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--cyan));
  transition: left 0.25s ease-out, width 0.25s ease-out;
}

/* ---------- Преподаватели ---------- */
.teacher { width: clamp(248px, 25vw, 296px); }
.teacher__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
}
.teacher__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 30% 10%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(160deg, hsl(var(--h) 92% 50%), hsl(calc(var(--h) + 14) 90% 20%));
  box-shadow: var(--card-shadow);
}
.teacher__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 20, 58, 0.5));
  transition: opacity 0.4s ease;
}
.teacher__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.teacher__card:hover .teacher__photo img { transform: scale(1.06); }
.teacher__mono {
  font: 800 68px/1 var(--font-display);
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.8s var(--ease-spring);
}
.teacher__card:hover .teacher__mono { transform: scale(1.08) rotate(-4deg); }
.teacher__role { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--sky-600); }
[data-theme="dark"] .teacher__role { color: var(--cyan); }
.teacher__name { margin-top: 4px; font: 700 21px/1.2 var(--font-display); letter-spacing: -0.02em; }
.teacher__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
}

/* ---------- Результаты ---------- */
.results { background: #EAF5FC; }
[data-theme="dark"] .results { background: #031B45; }

.result { width: clamp(236px, 22vw, 270px); }
.result__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  text-align: center;
}
.result__exam {
  align-self: stretch;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 800;
  background: var(--surface-2);
}

.ring { position: relative; width: 150px; height: 150px; margin: 22px auto 14px; }
.ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring__value {
  fill: none;
  stroke: var(--sky);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: var(--v) 100;
  transition: stroke-dasharray 1.8s var(--ease-out) 0.15s;
}
.js:not(.reduce-motion) .result:not(.is-in) .ring__value { stroke-dasharray: 0 100; }
.ring__label {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}
.ring__label b { font: 700 34px/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ring__label small { margin-inline-start: 2px; font-size: 14px; font-weight: 700; color: var(--text-faint); }

.result__name { margin-top: 4px; font: 700 19px/1.2 var(--font-display); letter-spacing: -0.02em; }
.result__meta { margin-top: 2px; font-size: 14px; color: var(--text-soft); }
.result__growth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-2);
}
.result__growth b { font-weight: 800; color: var(--text); }
.result__growth--ok { color: #15803D; background: rgba(34, 197, 94, 0.14); }
[data-theme="dark"] .result__growth--ok { color: #4ADE80; }

/* ---------- Отзывы ---------- */
.review { width: clamp(288px, 34vw, 420px); }
.review__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.review__stars { display: flex; gap: 3px; color: var(--amber); }
.review__stars .icon { width: 18px; height: 18px; }
.review__card blockquote { flex: 1; margin: 16px 0 0; font-size: 17px; line-height: 1.6; }
.review__card blockquote::before {
  content: "“";
  display: block;
  height: 30px;
  font: 700 64px/1 var(--font-display);
  color: var(--sky);
}
.review__card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
}
.review__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font: 700 14px var(--font-display);
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--navy-2));
}

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.videos[hidden] { display: none; }
.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--navy);
  cursor: pointer;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.video-card:hover img { transform: scale(1.05); }
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: auto;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25);
  transition: transform 0.5s var(--ease-spring);
}
.video-card:hover .video-card__play { transform: scale(1.1); }

/* ============================================================
   ЦЕНЫ
   ============================================================ */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 14px;
}
.plan {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.plan__name { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.plan__desc { min-height: 3.2em; margin-top: 8px; font-size: 15.5px; color: var(--text-soft); }
.plan__price {
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-soft);
}
.plan__price b {
  display: block;
  font: 700 clamp(32px, 3.3vw, 44px)/1.05 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.plan__list { display: grid; flex: 1; align-content: start; gap: 12px; margin: 22px 0 28px; }
.plan__list li { position: relative; padding-inline-start: 32px; font-size: 15.5px; font-weight: 600; }
.plan__list li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(2, 160, 230, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%230196D0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Популярный тариф: бегущая градиентная рамка */
.plan--popular { color: #fff; background: transparent; box-shadow: var(--lift-shadow); }
.plan--popular::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: calc(var(--r-lg) + 2px);
  background: conic-gradient(from var(--angle), var(--sky), var(--cyan), var(--amber), var(--sky));
  animation: angle 5s linear infinite;
}
.plan--popular::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-lg);
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(2, 160, 230, 0.3), transparent 60%),
    linear-gradient(170deg, var(--navy-2), var(--navy) 55%, var(--navy-950));
}
.plan--popular .plan__desc,
.plan--popular .plan__price { color: rgba(234, 244, 255, 0.75); }
.plan--popular .plan__price { border-color: rgba(255, 255, 255, 0.14); }
.plan--popular .plan__price b { color: #fff; }
.plan--popular .plan__list li::before {
  background-color: rgba(34, 184, 224, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%2322B8E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@keyframes angle { to { --angle: 360deg; } }

.plan__flag {
  position: absolute;
  top: -15px;
  left: 28px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  background: var(--amber);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.45);
}
.prices__note { margin-top: 28px; font-size: 15px; color: var(--text-soft); }

/* ============================================================
   ФИЛИАЛЫ
   ============================================================ */
.branches__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 18px;
}
.branch-list { display: grid; align-content: start; gap: 14px; }
.branch {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.35s ease;
}
.branch.is-active { box-shadow: inset 0 0 0 2px var(--sky), var(--card-shadow); }
.branch__select {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
}
.branch__name { display: flex; align-items: center; gap: 10px; font: 700 21px/1.2 var(--font-display); letter-spacing: -0.02em; }
.branch__name .icon { color: var(--sky); }
.branch__address { font-size: 16px; font-weight: 700; }
.branch__landmark { font-size: 14.5px; color: var(--text-soft); }
.branch__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
}
.branch__meta span, .branch__meta a { display: inline-flex; align-items: center; gap: 6px; }
.branch__meta .icon { width: 17px; height: 17px; }
.branch__meta a:not(.link) { font-weight: 700; color: var(--text); text-decoration: none; }
.branch__meta .link { margin-inline-start: auto; }

.map {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: var(--card-shadow);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.7); }
.map__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map__placeholder .icon { width: 44px; height: 44px; color: var(--sky); animation: float 2.4s ease-in-out infinite; }

/* ============================================================
   ВОПРОСЫ
   ============================================================ */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq__head .btn { margin-top: 28px; }

.accordion { display: grid; gap: 12px; }
.acc {
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
}
.acc.is-open { box-shadow: inset 0 0 0 1.5px var(--sky), var(--card-shadow); }
.acc__h { font: inherit; }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: none;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  font-weight: 700;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}
.acc__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background-color 0.3s ease, transform 0.5s var(--ease-spring);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out);
}
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon { background: var(--sky); transform: rotate(180deg); }
.acc.is-open .acc__icon::before,
.acc.is-open .acc__icon::after { background: var(--navy); }
.acc.is-open .acc__icon::after { transform: rotate(0deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.acc.is-open .acc__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.5s var(--ease-out), visibility 0s;
}
.acc__inner { overflow: hidden; }
.acc__inner p { max-width: 62ch; padding: 0 24px 24px; color: var(--text-soft); }

/* ============================================================
   ЗАПИСЬ
   ============================================================ */
.signup__box {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5.5vw, 76px);
  overflow: hidden;
  border-radius: var(--r-xl);
  color: #fff;
  background: var(--navy);
}
[data-theme="dark"] .signup__box { background: #001A4C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.signup__box::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -2;
  background:
    radial-gradient(38% 38% at 20% 30%, rgba(2, 160, 230, 0.55), transparent 62%),
    radial-gradient(34% 34% at 80% 72%, rgba(34, 184, 224, 0.42), transparent 62%),
    radial-gradient(28% 28% at 62% 8%, rgba(124, 156, 255, 0.35), transparent 62%);
  animation: mesh 18s ease-in-out infinite alternate;
}
@keyframes mesh { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-6%, 4%) rotate(24deg); } }
.signup__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.float-sym {
  position: absolute;
  top: var(--y);
  left: var(--x);
  font: 700 calc(var(--s, 1) * 46px)/1 var(--font-display);
  color: rgba(255, 255, 255, 0.1);
  animation: float 9s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.signup__title { font: 700 clamp(30px, 4.2vw, 54px)/1.08 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.signup__lead { max-width: 42ch; margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(234, 244, 255, 0.8); }
.signup__contact { display: flex; flex-direction: column; gap: 4px; margin-top: 36px; }
.signup__contact span { font-size: 14px; font-weight: 600; color: rgba(234, 244, 255, 0.62); }
.signup__contact a { font: 700 clamp(22px, 2.4vw, 30px) var(--font-display); letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.signup__contact a:hover { color: var(--cyan); }
.signup__form {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer {
  padding: clamp(56px, 7vw, 88px) 0 28px;
  color: rgba(234, 244, 255, 0.78);
  background: var(--navy-950);
}
[data-theme="dark"] .footer { background: #000B22; }
.footer .brand { color: #fff; }
.footer .brand__name span { color: var(--cyan); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__about { max-width: 36ch; margin-top: 18px; font-size: 15.5px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.footer .icon-btn { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2); }
.footer .icon-btn:hover { color: var(--navy); background: var(--sky); box-shadow: none; }
.footer__col h3 { margin-bottom: 16px; font: 700 15px var(--font-display); letter-spacing: -0.01em; color: #fff; }
.footer__col ul { display: grid; gap: 10px; font-size: 15.5px; }
.footer__col a { text-decoration: none; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--cyan); }
.footer__pay-h { margin-top: 26px; }
.footer__col .pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay li {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}
.footer .link { color: var(--cyan); }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.form { display: grid; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 700; }

.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.input::placeholder { font-weight: 500; color: var(--text-faint); }
.input:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.input:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--sky), 0 0 0 5px rgba(2, 160, 230, 0.16); }
select.input {
  padding-inline-end: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230196D0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
.field.is-invalid .input { box-shadow: inset 0 0 0 2px #E5484D; animation: shake 0.45s; }
.field__error { font-size: 13.5px; font-weight: 600; color: #D93036; }
[data-theme="dark"] .field__error { color: #FF8A8F; }
.form__legal { font-size: 13px; line-height: 1.5; color: var(--text-faint); }

@keyframes shake {
  10%, 90%      { translate: -1px 0; }
  20%, 80%      { translate: 2px 0; }
  30%, 50%, 70% { translate: -4px 0; }
  40%, 60%      { translate: 4px 0; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip-opt span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.4s var(--ease-spring);
}
.chip-opt input:hover + span { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.chip-opt input:checked + span { color: #fff; background: var(--navy); box-shadow: none; transform: scale(1.04); }
[data-theme="dark"] .chip-opt input:checked + span { color: var(--navy); background: var(--sky); }
.chip-opt input:focus-visible + span { outline: 2.5px solid var(--sky); outline-offset: 2px; }
.chips--grades .chip-opt span { min-width: 48px; padding-inline: 12px; }

/* ============================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================ */
html.modal-open, html.menu-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.35s var(--ease-out);
}
.modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100svh - 40px);
  padding: clamp(24px, 4vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-xl);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 50px 100px -30px rgba(0, 10, 40, 0.6);
  animation: modalIn 0.6s var(--ease-spring);
}
.modal.is-closing .modal__overlay { animation: fadeOut 0.3s ease forwards; }
.modal.is-closing .modal__dialog  { animation: modalOut 0.3s var(--ease-out) forwards; }
@keyframes fadeIn   { from { opacity: 0; } }
@keyframes fadeOut  { to { opacity: 0; } }
@keyframes modalIn  { from { opacity: 0; transform: translateY(32px) scale(0.94); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(16px) scale(0.97); } }

.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--surface); }
.modal__title {
  padding-inline-end: 44px;
  font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.modal__text { margin-top: 12px; color: var(--text-soft); }
.modal__note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--text-soft); background: var(--surface-2); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.modal__dialog--small { width: min(100%, 470px); text-align: center; }
.modal__dialog--small .modal__title { padding-inline: 20px; }
.modal__dialog--small .modal__actions { justify-content: center; }

.check-anim { width: 88px; height: 88px; margin: 6px auto 18px; }
.check-anim circle { fill: rgba(34, 197, 94, 0.14); stroke: #22C55E; stroke-width: 3; stroke-dasharray: 227; stroke-dashoffset: 227; }
.check-anim path { fill: none; stroke: #22C55E; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.modal:not([hidden]) .check-anim circle { animation: draw 0.7s var(--ease-out) 0.15s forwards; }
.modal:not([hidden]) .check-anim path   { animation: draw 0.5s var(--ease-out) 0.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.state-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 6px auto 18px;
  border-radius: 50%;
  font: 800 34px var(--font-display);
}
.state-icon--error { color: #D93036; background: rgba(229, 72, 77, 0.14); box-shadow: inset 0 0 0 3px rgba(229, 72, 77, 0.6); }

/* ---------- Запись ---------- */
.modal__dialog--lead { width: min(100%, 620px); }
.lead { gap: 0; }
.lead__step { font-size: 14px; font-weight: 700; color: var(--sky-600); }
[data-theme="dark"] .lead__step { color: var(--cyan); }
.lead__head .modal__title { margin-top: 6px; }
.lead__progress { height: 6px; margin: 18px 0 26px; overflow: hidden; border-radius: 6px; background: var(--surface-2); }
.lead__progress span { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--cyan)); transition: width 0.6s var(--ease-out); }
.lead__pane { display: grid; gap: 22px; min-width: 0; margin: 0; padding: 0; border: 0; }
.lead__pane[hidden] { display: none; }
.lead__pane.is-forward { animation: paneForward 0.5s var(--ease-out); }
.lead__pane.is-back    { animation: paneBack 0.5s var(--ease-out); }
@keyframes paneForward { from { opacity: 0; transform: translateX(28px); } }
@keyframes paneBack    { from { opacity: 0; transform: translateX(-28px); } }
.lead__actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }

/* ---------- Курс ---------- */
.modal__dialog--course { width: min(100%, 680px); }
.course-modal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-inline-end: 52px; }
.course-modal__desc { margin-top: 12px; font-size: 17px; color: var(--text-soft); }
.course-modal__result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 700;
  background: var(--surface-2);
}
.course-modal__result .icon { width: 24px; height: 24px; margin-top: 1px; color: var(--sky); }
.course-modal__h { margin-top: 26px; font: 700 17px var(--font-display); letter-spacing: -0.01em; }
.course-modal__list { display: grid; gap: 10px; margin-top: 14px; counter-reset: module; }
.course-modal__list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding-inline-start: 44px;
  font-weight: 600;
  counter-increment: module;
}
.course-modal__list li::before {
  content: counter(module);
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font: 700 13px var(--font-display);
  color: #fff;
  background: var(--navy);
  translate: 0 -50%;
}
[data-theme="dark"] .course-modal__list li::before { color: var(--navy); background: var(--sky); }
.modal__dialog--course .course__facts { margin-top: 24px; }
.course-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Преподаватель ---------- */
.modal__dialog--teacher {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  width: min(100%, 780px);
}
.teacher-modal__photo .teacher__photo { box-shadow: none; }
.teacher-modal__body { padding-top: 8px; }
.teacher-modal__body .teacher__role { margin-top: 0; }
.teacher-modal__body .modal__title { margin-top: 6px; }
.teacher-modal__bio { margin-top: 16px; font-size: 17px; color: var(--text-soft); }
.teacher-modal__body .btn { margin-top: 26px; }

/* ---------- Тест ---------- */
.modal__dialog--quiz {
  display: flex;
  flex-direction: column;
  width: min(100%, 740px);
  min-height: min(640px, calc(100svh - 40px));
}
.quiz { display: flex; flex: 1; flex-direction: column; }
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline-end: 52px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.quiz__timer { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.quiz__timer .icon { width: 17px; height: 17px; }
.quiz__bar { height: 8px; margin-top: 14px; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.quiz__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--cyan)); transition: width 0.6s var(--ease-out); }
.quiz__screen { display: flex; flex: 1; flex-direction: column; margin-top: 28px; animation: paneForward 0.5s var(--ease-out); }
.quiz__title { font: 700 clamp(22px, 3vw, 32px)/1.15 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.quiz__text { margin-top: 10px; color: var(--text-soft); }
.quiz__prompt { font-size: 16px; font-weight: 700; color: var(--text-soft); }
.quiz__q { margin-top: 8px; font: 700 clamp(22px, 3.2vw, 34px)/1.25 var(--font-display); letter-spacing: -0.02em; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.quiz__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  border: 0;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  text-align: start;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}
.quiz__opt:hover:not([disabled]) { box-shadow: inset 0 0 0 2px var(--sky); transform: translateY(-2px); }
.quiz__key {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font: 700 13px var(--font-display);
  color: var(--text-soft);
  background: var(--surface);
}
.quiz__opt[disabled] { cursor: default; }
.quiz__opt.is-correct { color: #fff; background: #22C55E; box-shadow: none; animation: pulseOk 0.6s var(--ease-spring); }
.quiz__opt.is-wrong   { color: #B42318; background: #FFE2E2; box-shadow: none; animation: shake 0.45s; }
[data-theme="dark"] .quiz__opt.is-wrong { color: #FFB4B7; background: rgba(229, 72, 77, 0.22); }
.quiz__opt.is-correct .quiz__key,
.quiz__opt.is-wrong .quiz__key { color: inherit; background: rgba(255, 255, 255, 0.3); }
@keyframes pulseOk { 50% { transform: scale(1.04); } }

.quiz__feedback { min-height: 26px; margin-top: 18px; font-weight: 700; }
.quiz__feedback.is-ok  { color: #16A34A; }
.quiz__feedback.is-bad { color: #D93036; }
[data-theme="dark"] .quiz__feedback.is-ok  { color: #4ADE80; }
[data-theme="dark"] .quiz__feedback.is-bad { color: #FF8A8F; }
.quiz__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 22px; }

.quiz__grades { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.quiz__grades .quiz__opt { justify-content: center; min-width: 72px; min-height: 58px; }

.quiz__result { align-items: center; justify-content: center; text-align: center; }
.quiz__result .ring { width: 170px; height: 170px; margin: 0 auto 18px; }
.quiz__result .ring__value { transition: stroke-dasharray 1.6s var(--ease-out) 0.2s; }
.quiz__level {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  background: var(--amber);
}
.quiz__rec {
  width: 100%;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  text-align: start;
  background: var(--surface-2);
}
.quiz__rec b { display: block; margin-top: 2px; font: 700 18px var(--font-display); letter-spacing: -0.02em; }
.quiz__rec span { font-size: 14px; font-weight: 700; color: var(--text-soft); }
.quiz__result .quiz__foot { justify-content: center; flex-wrap: wrap; width: 100%; }

/* ---------- Предложение и видео ---------- */
.modal__dialog--offer { width: min(100%, 500px); padding-top: 0; overflow: hidden; text-align: center; }
.offer__art {
  position: relative;
  margin: 0 calc(-1 * clamp(24px, 4vw, 40px)) 26px;
  padding: 36px 0 28px;
  background: radial-gradient(circle at 50% 60%, rgba(2, 160, 230, 0.55), transparent 62%), var(--navy);
}
.offer__art img { width: 190px; height: auto; margin-inline: auto; animation: badgeSway 6s ease-in-out infinite; }
@keyframes badgeSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.04); } }
.offer__art .sparkle--1 { top: 18%; left: 20%; }
.offer__art .sparkle--2 { right: 18%; bottom: 20%; }
.modal__dialog--offer .modal__title { padding-inline: 12px; }
.modal__dialog--offer .modal__actions { justify-content: center; }
.modal__dialog--offer .modal__close,
.modal__dialog--video .modal__close { color: #fff; background: rgba(255, 255, 255, 0.16); box-shadow: none; }

.modal__dialog--video { width: min(100%, 960px); padding: 0; overflow: hidden; background: #000; }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ============================================================
   ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ
   ============================================================ */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.fab:not(.is-visible) { opacity: 0; transform: translateY(24px); pointer-events: none; }
.fab__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: var(--glow);
  cursor: pointer;
  transition: transform 0.5s var(--ease-spring);
}
.fab__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--sky);
  border-radius: 50%;
  animation: ping 2.6s var(--ease-out) infinite;
}
.fab__btn:hover { transform: scale(1.08); }
.fab__btn .icon { grid-area: 1 / 1; width: 26px; height: 26px; transition: transform 0.5s var(--ease-spring), opacity 0.25s ease; }
.fab__close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.fab__btn[aria-expanded="true"]::before { animation: none; opacity: 0; }
.fab__btn[aria-expanded="true"] .fab__open  { opacity: 0; transform: rotate(90deg) scale(0.5); }
.fab__btn[aria-expanded="true"] .fab__close { opacity: 1; transform: none; }
@keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.75); opacity: 0; } }

.fab__menu { display: grid; justify-items: end; gap: 8px; }
.fab__menu[hidden] { display: none; }
.fab__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--lift-shadow);
  animation: fabIn 0.45s var(--ease-spring) both;
}
.fab__item:nth-child(1) { animation-delay: 0.1s; }
.fab__item:nth-child(2) { animation-delay: 0.05s; }
.fab__item .icon { color: var(--sky); }
.fab__item:hover { background: var(--surface-2); }
@keyframes fabIn { from { opacity: 0; transform: translateY(12px) scale(0.9); } }

.to-top {
  position: fixed;
  right: 33px;
  bottom: 102px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.to-top:not(.is-visible) { opacity: 0; transform: translateY(16px); pointer-events: none; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--p, 0) 100; }

.mobile-bar { display: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1480px) {
  .header__phone { display: none; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__tools { margin-inline-start: auto; }

  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { width: 100%; max-width: 540px; margin-inline: auto; }

  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branches__grid,
  .signup__box,
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__item--a, .bento__item--c { grid-column: 1; grid-row: auto; }
  .bento__item--b, .bento__item--d { grid-column: 2; grid-row: auto; }
  .bento__item--feature { grid-column: 1 / -1; grid-row: auto; }
  .bento__item--e { grid-column: 1 / -1; grid-row: auto; grid-template-columns: auto minmax(0, 1fr); }
  .bento__item--e .card__text { grid-column: 1 / -1; }

  .steps__list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps__rail { top: 0; bottom: 0; left: 26px; right: auto; width: 3px; height: auto; }
  .steps__fill { transform-origin: 50% 0; }
  .step { position: relative; min-height: 56px; padding-inline-start: 84px; }
  .step__num { position: absolute; top: 0; left: 0; }
  .step__title { margin-top: 12px; }

  .quiz-teaser__box { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 540px; margin-inline: auto; gap: 30px; }
  .modal__dialog--teacher { grid-template-columns: minmax(0, 1fr); }
  .teacher-modal__photo { max-width: 220px; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }

  .brand__badge { width: 50px; }
  .header__cta { display: none; }
  .lang__code { display: none; }
  .lang__current { padding-inline: 11px; }

  .hero__actions .btn { width: 100%; }
  .btn--lg { padding-inline: 20px; font-size: 16px; }
  .stat { padding-top: 46px; }
  .stat__num { font-size: clamp(28px, 8.6vw, 38px); }
  .chip { min-width: 48px; height: 48px; padding-inline: 12px; border-radius: 15px; font-size: 18px; }
  .graph { width: 56%; padding: 10px 12px 12px; }

  .stats__grid { gap: 10px; }
  .stat { padding: 22px 18px 18px; }
  .stat::before { top: 18px; right: 18px; }
  .marquee { padding-block: 16px; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__item--a, .bento__item--b, .bento__item--c,
  .bento__item--d, .bento__item--e, .bento__item--feature { grid-column: 1; }
  .bento__item--e { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento__item--e .card__icon { margin-bottom: 20px; }

  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .carousel-nav { display: none; }
  .quiz-teaser__demo { min-height: 290px; }
  .quiz__opts { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer { padding-bottom: 100px; }

  .fab, .to-top { display: none; }
  .mobile-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--lift-shadow);
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
  }
  .mobile-bar:not(.is-visible) { opacity: 0; transform: translateY(130%); pointer-events: none; }
  .mobile-bar__cta { flex: 1; min-height: 48px; padding-inline: 14px; font-size: 15px; }
  .mobile-bar__icon { width: 48px; height: 48px; background: var(--surface-2); }

  .modal { align-items: end; padding: 0; }
  .modal__dialog {
    width: 100%;
    max-height: 92svh;
    border-radius: 28px 28px 0 0;
    animation: sheetIn 0.55s var(--ease-out);
  }
  .modal.is-closing .modal__dialog { animation: sheetOut 0.3s ease forwards; }
  .modal__dialog--quiz { min-height: 92svh; }
  .lead__actions { grid-template-columns: minmax(0, 1fr); }
  .lead__actions .btn--ghost { order: 2; }
  @keyframes sheetIn  { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
}

@media (max-width: 400px) {
  .brand__name { display: none; }
  .stat__label { font-size: 14px; }
}

/* ============================================================
   РЕЗУЛЬТАТЫ УЧЕНИКОВ
   ============================================================ */
.wins {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.win {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.win__num {
  font: 700 clamp(38px, 4.2vw, 56px)/1 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--sky-600);
}
[data-theme="dark"] .win__num { color: var(--cyan); }
.win__label { font-size: 16px; font-weight: 600; }
.win__note { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--text-soft); }

.win--hero {
  grid-column: span 2;
  color: #fff;
  background:
    radial-gradient(120% 100% at 0 0, rgba(2, 160, 230, 0.45), transparent 62%),
    linear-gradient(160deg, var(--navy-2), var(--navy) 60%, var(--navy-950));
}
.win--hero .win__num { color: #fff; font-size: clamp(52px, 6vw, 82px); }
.win--hero .win__label { font-size: 19px; }
.win--hero .win__note { color: rgba(234, 244, 255, 0.75); }

.win--wide { grid-column: span 3; flex-direction: row; align-items: baseline; gap: 20px; }
.win--wide .win__label { max-width: 44ch; }
.results__tg { margin-top: 26px; }

/* ============================================================
   ЦЕНЫ ПО КЛАССАМ
   ============================================================ */
.prices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: start;
  gap: 18px;
}
.price-list { display: grid; gap: 12px; }
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 22px 26px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.price-row:hover { transform: translateX(4px); box-shadow: var(--lift-shadow); }
.price-row__grade { font: 700 clamp(17px, 1.7vw, 20px) var(--font-display); letter-spacing: -0.02em; }
.price-row__sum { font-size: 14px; color: var(--text-soft); white-space: nowrap; }
.price-row__sum b {
  font: 700 clamp(22px, 2.2vw, 28px) var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.price-row__ask { font-size: 15px; font-weight: 700; color: var(--sky-600); }
[data-theme="dark"] .price-row__ask { color: var(--cyan); }
.price-row--accent { color: #fff; background: linear-gradient(120deg, var(--navy-2), var(--navy)); }
.price-row--accent .price-row__sum { color: rgba(234, 244, 255, 0.75); }
.price-row--accent .price-row__sum b { color: #fff; }

.price-aside {
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.price-aside__title { margin-bottom: 18px; font: 700 19px var(--font-display); letter-spacing: -0.02em; }
.price-aside .plan__list { margin: 0 0 22px; }
.price-aside__note { margin-top: 14px; font-size: 14px; color: var(--text-soft); }

/* ---------- Телефоны ---------- */
.phones { display: flex; flex-direction: column; gap: 2px; }
.phones a {
  font: 700 clamp(19px, 2vw, 26px) var(--font-display);
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.phones a:hover { color: var(--cyan); }
.phones--footer { gap: 6px; }
.phones--footer a { font: inherit; font-weight: 600; color: inherit; }

/* Иконка Telegram в карточках хроники */
.reviews .review__stars { color: var(--sky-600); }
.reviews .review__stars .icon { width: 22px; height: 22px; }
[data-theme="dark"] .reviews .review__stars { color: var(--cyan); }

@media (max-width: 1100px) {
  .prices__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win--hero, .win--wide { grid-column: span 2; }
  .win--wide { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 720px) {
  .wins { grid-template-columns: minmax(0, 1fr); }
  .win--hero, .win--wide { grid-column: span 1; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   ДВИЖЕНИЕ: уважать системную настройку и ?motion=off
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
html.reduce-motion { scroll-behavior: auto; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
}

/* ============================================================
   ПЕЧАТЬ
   ============================================================ */
@media print {
  .header, .fab, .to-top, .mobile-bar, .modal, .preloader, .marquee, .hero__visual { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}
