/* «Белая доска и синий маркер»: светлые классы, синий цвет центра, красная ручка учителя для пометок */
:root {
  --paper: #f7f9fc;
  --surface: #ffffff;
  --ink: #111c33;
  --muted: #55607a;
  --blue: #2148c9;
  --blue-deep: #16318f;
  --blue-soft: #e9eefc;
  --red: #d63a2b;
  --line: #dde3ee;
  --navy: #0d1834;

  --font: "Golos Text", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(64px, 6vw + 32px, 128px);

  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --shadow: 0 1px 2px rgb(17 28 51 / .06), 0 12px 32px -12px rgb(17 28 51 / .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 2.4vw + 18px, 50px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 var(--s4); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: var(--s3) var(--s4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: var(--s4);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: #9fb6ff; }
.hand { font-family: var(--hand); font-weight: 700; }
.section__head { max-width: 760px; margin-bottom: var(--s8); }
.section__lead { font-size: 19px; color: var(--muted); margin-top: var(--s5); }

/* ---------- Маркерные штрихи ---------- */
.marked { position: relative; display: inline-block; white-space: nowrap; color: var(--blue); }
.stroke { position: absolute; overflow: visible; pointer-events: none; }
.stroke path {
  fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease) .5s;
}
.stroke--under { left: -2%; bottom: -.2em; width: 104%; height: .32em; }
.stroke--under path { stroke-width: 5; vector-effect: non-scaling-stroke; opacity: .9; }
.stroke--red path { stroke: var(--red); }
.is-in .stroke path, .is-in.stroke path { stroke-dashoffset: 0; }

.tick { width: 22px; height: 22px; flex: none; }
.tick path {
  fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease) .7s;
}
.is-in .tick path { stroke-dashoffset: 0; }
.is-in li + li .tick path { transition-delay: 1s; }

/* ---------- Появление при прокрутке ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 56px; padding: 12px 26px; border-radius: 14px;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn__sub { font-weight: 500; font-size: 14px; opacity: .8; margin-top: 3px; }
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 24px -10px rgb(33 72 201 / .7);
  position: relative; overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .28) 50%, transparent 65%);
  transform: translateX(-100%); transition: transform .8s var(--ease);
}
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgb(33 72 201 / .8); }
.btn--primary:hover::after { transform: translateX(100%); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--ghost { color: var(--ink); border: 2px solid var(--line); background: var(--surface); justify-content: center; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--big { padding: 16px 32px; font-size: 19px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 249 252 / .82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgb(17 28 51 / .4); }
.header__row { display: flex; align-items: center; gap: var(--s6); height: 72px; }
.logo { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.logo__mark { width: 40px; height: 40px; transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.logo__text small { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: var(--s5); margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted);
  padding-block: var(--s2); transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header__phone {
  font-weight: 700; text-decoration: none; white-space: nowrap;
  padding: 10px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  transition: background .2s, color .2s;
}
.header__phone:hover { background: var(--blue); color: #fff; }

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(32px, 4vw, 72px) clamp(56px, 6vw, 104px); position: relative; }
.hero::before {
  /* лёгкая клетка, как на доске-флипчарте */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.kicker { font-weight: 600; color: var(--muted); margin-bottom: var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.kicker__open {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 4px 12px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 700;
}
.kicker__open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }
.hero__title { font-size: clamp(38px, 4.2vw + 14px, 74px); font-weight: 900; letter-spacing: -.035em; }
.hero__lead { font-size: clamp(17px, .5vw + 15px, 20px); color: var(--muted); max-width: 540px; margin-top: var(--s5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero__checks { list-style: none; padding: 0; margin: var(--s6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); color: var(--muted); font-weight: 500; }
.hero__checks li { display: flex; align-items: center; gap: var(--s2); }

.hero__visual { position: relative; padding: 0 0 56px 28px; }
.hero__photo {
  margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.3; transform: rotate(1.2deg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translate(-1.5%, -1%); } }

.note {
  position: absolute; left: -6px; top: 18%;
  background: #fff7c7; color: var(--ink);
  padding: 14px 22px 16px; border-radius: 6px;
  box-shadow: 0 14px 30px -14px rgb(17 28 51 / .45);
  transform: rotate(-5deg);
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  animation: float 6s ease-in-out infinite;
}
.note__hand { font: 700 24px var(--hand); color: var(--muted); }
.note__big { position: relative; font-size: 46px; font-weight: 900; color: var(--blue); padding: 6px 10px; letter-spacing: -.03em; }
.note .stroke--circle { inset: -8px -14px; width: calc(100% + 28px); height: calc(100% + 16px); }
.note .stroke--circle path { stroke: var(--red); stroke-width: 3.5; transition-delay: 1.1s; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-8px); } }

.hero__small {
  position: absolute; right: -10px; bottom: 0; width: 46%; margin: 0;
  background: #fff; padding: 8px 8px 10px; border-radius: 10px;
  box-shadow: var(--shadow); transform: rotate(-3deg);
  animation: float2 7s ease-in-out infinite;
}
.hero__small img { border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__small figcaption { font: 700 19px/1.1 var(--hand); color: var(--muted); padding: 8px 4px 0; }
@keyframes float2 { 50% { transform: rotate(-1.5deg) translateY(-6px); } }
.hero__arrow { width: 86px; height: 66px; right: 44%; bottom: 40px; }
.hero__arrow path { stroke-width: 3; transition-delay: 1.4s; }

/* ---------- Цифры ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s1); }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font-size: clamp(34px, 2vw + 20px, 52px); font-weight: 900; letter-spacing: -.04em; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-weight: 500; }

/* ---------- О центре ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__media { position: relative; margin: 0; }
.about__media img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% center; box-shadow: var(--shadow); }
.about__media figcaption { margin-top: var(--s3); font-size: 22px; color: var(--muted); text-align: center; }
.about__media::before {
  content: ""; position: absolute; inset: 8% 8% -4% -4%; z-index: -1;
  background: var(--blue-soft); border-radius: 50% 44% 48% 52% / 46% 52% 48% 54%;
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob { to { border-radius: 42% 56% 46% 54% / 56% 42% 58% 44%; transform: rotate(6deg); } }
.about__text h2 { margin-bottom: var(--s5); }
.about__text > p { font-size: 18px; color: #2a3550; }
.license {
  display: flex; gap: var(--s4); align-items: center; margin-top: var(--s6);
  padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.license img { width: 120px; border-radius: 8px; transition: transform .4s var(--ease); }
.license:hover img { transform: scale(1.06) rotate(-2deg); }
.license p { margin: 0; font-size: 15px; color: var(--muted); }
.license b { color: var(--ink); }

/* ---------- Методика ---------- */
.method { background: var(--surface); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); }
.task:nth-child(even) { margin-top: var(--s8); }
.task__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; }
.task__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.task:hover .task__img img { transform: scale(1.05); }
.task__body { position: relative; padding: var(--s5) var(--s2) 0 72px; }
.task__num {
  /* клетка ответа из бланка ЕГЭ */
  position: absolute; left: 0; top: var(--s5);
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 2px solid var(--blue); border-radius: 8px;
  font: 700 34px var(--hand); color: var(--blue);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.task:hover .task__num { background: var(--blue); color: #fff; transform: rotate(-6deg); }
.task h3 { font-size: 23px; margin-bottom: var(--s2); }
.task p { color: var(--muted); }

.home { position: relative; margin: var(--s9) 0 0; border-radius: var(--r-lg); overflow: hidden; }
.home img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.home figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--s8) var(--s6) var(--s6);
  background: linear-gradient(transparent, rgb(13 24 52 / .82));
  color: #fff; font-size: clamp(26px, 1.6vw + 16px, 40px); line-height: 1.1;
}
.home figcaption .hand { display: block; max-width: 720px; }

/* ---------- Педагоги ---------- */
.director {
  display: grid; grid-template-columns: 300px 1fr; gap: var(--s7); align-items: center;
  background: var(--surface); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s7);
  box-shadow: var(--shadow);
}
.director img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.director h3 { font-size: clamp(26px, 1.4vw + 16px, 36px); font-weight: 800; margin-bottom: var(--s4); }
.director p { font-size: 18px; color: var(--muted); }
.director__award { display: inline-block; padding: var(--s3) var(--s5); border-radius: var(--r-sm); background: var(--blue-soft); color: var(--ink) !important; }
.director__award .hand { font-size: 28px; color: var(--red); margin-right: 4px; }

.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s6) var(--s5); }
.person img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: var(--r); margin-bottom: var(--s4);
  filter: saturate(.85); transition: transform .6s var(--ease), filter .4s, box-shadow .4s;
}
.person:hover img { transform: translateY(-6px) rotate(-1deg); filter: none; box-shadow: var(--shadow); }
.person h3 { font-size: 17px; line-height: 1.3; margin-bottom: var(--s1); }
.person p { margin: 0; font: 700 22px/1.1 var(--hand); color: var(--blue); }

/* ---------- Результаты ---------- */
.results { background: var(--navy); color: #e8ecf6; overflow: hidden; padding-bottom: 0; position: relative; }
.results::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 15% 30%, rgb(33 72 201 / .45), transparent 70%);
}
.results__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.results__big { position: relative; justify-self: center; text-align: center; padding: var(--s6) var(--s7); }
.results__num { display: block; font-size: clamp(96px, 10vw + 30px, 190px); font-weight: 900; letter-spacing: -.06em; line-height: .9; color: #fff; font-variant-numeric: tabular-nums; }
.results__big .stroke--circle { inset: -6% -10% 10%; width: 120%; height: 96%; }
.results__big .stroke--circle path { stroke-width: 5; vector-effect: non-scaling-stroke; transition-duration: 1.6s; transition-delay: .9s; }
.results__hand { display: block; font-size: clamp(26px, 1vw + 20px, 34px); color: #ffb4a8; margin-top: var(--s4); transform: rotate(-3deg); }
.results h2 { color: #fff; margin-bottom: var(--s5); }
.results__text p { color: #bcc6dc; font-size: 18px; }

.marquee { position: relative; margin-top: var(--s9); border-top: 1px solid rgb(255 255 255 / .12); padding-block: var(--s6); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: clamp(22px, 1.4vw + 14px, 34px); font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.marquee li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-inline: var(--s6); }
.marquee li:nth-child(even) { color: #8ea6ef; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Выпускники со 100 баллами ---------- */
.grads { position: relative; margin-top: var(--s9); }
.grads__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.grad {
  display: grid; grid-template-columns: 190px 1fr; gap: var(--s5); align-items: center;
  padding: var(--s4); border-radius: var(--r-lg);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  transition: background .3s, transform .5s var(--ease);
}
.grad:hover { background: rgb(255 255 255 / .1); transform: translateY(-4px); }
.grad img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); }
.grad__score { position: relative; display: inline-block; font-size: 64px; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: #fff; padding: 6px 14px; margin-bottom: var(--s4); }
.grad__score .stroke--circle { inset: -6px -8px; width: calc(100% + 16px); height: calc(100% + 12px); }
.grad__score .stroke--circle path { stroke-width: 4; vector-effect: non-scaling-stroke; transition-delay: .6s; }
.grad h3 { color: #fff; font-size: 22px; margin-bottom: var(--s2); }
.grad p { margin: 0; color: #bcc6dc; }
.grad b { color: #fff; }

/* ---------- Новости ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.post { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.post:hover { transform: translateY(-6px); }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover img { transform: scale(1.05); }
.post__body { padding: var(--s5); }
.post time { font-size: 14px; font-weight: 600; color: var(--blue); }
.post h3 { margin: var(--s2) 0 var(--s3); font-size: 20px; }
.post p { color: var(--muted); font-size: 16px; margin: 0; }
.post--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.post--feature img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.post--feature .post__body { padding: clamp(24px, 4vw, 56px); }
.post--feature h3 { font-size: clamp(26px, 1.4vw + 16px, 36px); font-weight: 800; }
.post--feature p { font-size: 18px; }
.post__tag { font-size: 28px; color: var(--red); }
.archive__head { margin-top: var(--s9); margin-bottom: var(--s6); }
.archive__title { font-size: clamp(26px, 1.4vw + 16px, 36px); font-weight: 800; }
.archive__head .section__lead { margin-top: var(--s3); }

/* ---------- Наша жизнь ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: var(--s4); }
.g { margin: 0; border-radius: var(--r); overflow: hidden; grid-row: span 2; background: var(--line); }
.g--tall { grid-row: span 3; }
.g--wide { grid-column: span 3; grid-row: span 1; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g:hover img { transform: scale(1.06); }
.g--wide { position: relative; }
.g figcaption {
  position: absolute; right: var(--s5); bottom: var(--s4);
  font-size: 34px; color: #fff; transform: rotate(-4deg);
  text-shadow: 0 2px 12px rgb(13 24 52 / .6);
}

/* ---------- Запись ---------- */
.cta__card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s7);
  background: var(--blue); color: #fff; border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 72px); position: relative; overflow: hidden;
}
.cta__card::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(120deg, transparent 30%, #000);
}
.cta__card > * { position: relative; }
.cta .eyebrow { color: #c8d5ff; }
.cta h2 { color: #fff; margin-bottom: var(--s6); }
.steps { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; gap: var(--s3); }
.steps li { display: flex; align-items: center; gap: var(--s4); font-size: 19px; font-weight: 500; }
.steps span {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 2px solid rgb(255 255 255 / .6); border-radius: 8px; font: 700 26px var(--hand);
}
.cta .btn--primary { background: #fff; color: var(--blue); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .45); }
.cta .btn--primary::after { background: linear-gradient(105deg, transparent 35%, rgb(33 72 201 / .15) 50%, transparent 65%); }
.cta .btn--primary:hover { background: #fff; color: var(--blue-deep); }
.cta__info { font-style: normal; display: grid; gap: var(--s5); align-content: center; padding-left: var(--s7); border-left: 1px solid rgb(255 255 255 / .25); }
.cta__info .label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #c8d5ff; margin-bottom: var(--s1); }
.cta__info a { font-size: 20px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.cta__info a:hover { background-size: 100% 2px; }


/* ---------- Анкета ---------- */
.lead { display: grid; gap: var(--s4); margin-top: var(--s5); }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: #dbe4ff; }
.field__label small { font-weight: 400; color: #b8c6f5; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  border: 2px solid transparent; background: #fff; color: var(--ink);
  font: 500 16px/1.3 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder { color: #8a93a8; }
.field input:focus, .field select:focus { outline: none; border-color: #ffd55c; box-shadow: 0 0 0 4px rgb(255 213 92 / .35); }
.field [aria-invalid="true"] { border-color: #ff9b8f; }
.field__error { min-height: 1em; font-size: 13px; font-weight: 600; color: #ffd0c9; }
.field__error:empty { min-height: 0; }
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: var(--s3); align-items: flex-start; font-size: 14px; color: #dbe4ff; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: #fff; cursor: pointer; }
.consent a { color: #fff; }
.consent__error { margin-top: -8px; }
.lead__submit { justify-self: start; }
.lead__submit:disabled { opacity: .7; cursor: progress; transform: none; }
.lead__status { margin: 0; font-weight: 600; }
.lead__status:empty { display: none; }
.lead__status[data-kind="ok"] { padding: var(--s3) var(--s4); border-radius: 12px; background: rgb(255 255 255 / .16); color: #fff; }
.lead__status[data-kind="error"] { color: #ffd0c9; }
.lead--sent .lead__row, .lead--sent .consent, .lead--sent .lead__submit, .lead--sent .consent__error { display: none; }
.lead--sent .lead__status { font-size: 19px; }
.btn--white { color: #fff; border: 2px solid rgb(255 255 255 / .6); justify-content: center; margin-top: var(--s2); justify-self: start; }
.btn--white:hover { background: #fff; color: var(--blue); }

/* ---------- Уведомление о cookies ---------- */
.cookies {
  position: fixed; left: 50%; bottom: 16px; z-index: 70; transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4) var(--s5); border-radius: var(--r);
  background: var(--surface); box-shadow: 0 18px 40px -12px rgb(17 28 51 / .35); border: 1px solid var(--line);
  animation: cookiesIn .6s var(--ease);
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0; font-size: 14px; color: var(--muted); }
.cookies__actions { display: flex; gap: var(--s2); flex: none; }
.cookies__btn { min-height: 44px; padding: 8px 18px; font-size: 15px; justify-content: center; }
@keyframes cookiesIn { from { opacity: 0; transform: translate(-50%, 20px); } }
.has-cookies .callbar { display: none; }

/* ---------- Подвал и страница документа ---------- */
.footer__links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.doc { max-width: 780px; padding-block: var(--s8) var(--s9); }
.doc h1 { font-size: clamp(32px, 2vw + 20px, 48px); font-weight: 900; }
.doc h2 { font-size: 22px; margin: var(--s7) 0 var(--s3); }
.doc__meta { color: var(--muted); margin-top: var(--s3); }
.doc p, .doc li { color: #2a3550; }
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--blue); }
.doc mark { background: #fff1b8; padding: 0 4px; border-radius: 4px; }


/* ---------- Кнопка записи между блоками ---------- */
.nudge {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s5) var(--s7);
  margin-block: var(--s6); padding: var(--s6) clamp(24px, 4vw, 56px);
  border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%, #3d63e0);
  box-shadow: 0 24px 48px -28px rgb(22 49 143 / .9);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.nudge::before {
  /* та же клетка, что на доске в первом экране */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(100deg, transparent 25%, #000 80%);
}
.nudge:hover { transform: translateY(-3px); box-shadow: 0 30px 56px -26px rgb(22 49 143 / .95); }
.nudge > * { position: relative; }
.nudge__body { display: grid; gap: var(--s2); }
.nudge__hand { font: 700 26px/1 var(--hand); color: #ffd55c; transform: rotate(-2deg); transform-origin: left; }
.nudge__text { margin: 0; font-size: clamp(20px, .9vw + 15px, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; max-width: 620px; }
.nudge__actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; justify-content: flex-end; }
.nudge .btn--primary { background: #fff; color: var(--blue); justify-content: center; box-shadow: 0 12px 26px -12px rgb(0 0 0 / .5); }
.nudge .btn--primary::after { background: linear-gradient(105deg, transparent 35%, rgb(33 72 201 / .15) 50%, transparent 65%); }
.nudge .btn--primary:hover { background: #fff; color: var(--blue-deep); }
.nudge__phone {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: 14px;
  border: 2px solid rgb(255 255 255 / .55); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.nudge__phone:hover { background: #fff; color: var(--blue); border-color: #fff; }
.nudge__arrow { position: absolute; width: 74px; height: 46px; right: calc(100% + 6px); top: -18px; overflow: visible; }
.nudge__arrow path { fill: none; stroke: #ffd55c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) .5s; }
.nudge.is-in .nudge__arrow path { stroke-dashoffset: 0; }

/* ---------- Отзывы ---------- */
[data-draft] { display: none; }
[data-draft].is-preview { display: block; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: start; }
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; max-width: none; }
.rating {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5);
  border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .3s var(--ease);
}
.rating:hover { transform: translateY(-3px); }
.rating b { font-size: 40px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.rating > span { display: grid; font-size: 14px; color: var(--muted); }
.rating__stars { color: #f5b100; font-size: 18px; letter-spacing: 2px; }
.reviews__more { margin: var(--s6) 0 0; text-align: center; }
.reviews__more a { font-weight: 700; color: var(--blue); }
.review {
  position: relative; margin: 0; padding: var(--s6) var(--s6) var(--s5);
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.review:nth-child(odd) { transform: rotate(-.6deg); }
.review:nth-child(even) { transform: rotate(.6deg); }
.review:hover { transform: rotate(0) translateY(-4px); }
.review { padding-top: var(--s7); }
.review::before {
  content: "\00AB"; position: absolute; top: 6px; left: 24px;
  font: 700 56px/1 Georgia, "Times New Roman", serif; color: var(--blue); opacity: .3;
}
.review blockquote { margin: 0 0 var(--s4); font-size: 18px; line-height: 1.55; color: #2a3550; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.review figcaption .hand { font-size: 26px; color: var(--red); line-height: 1; }

/* ---------- Подвал ---------- */
.footer { padding-block: var(--s6); color: var(--muted); font-size: 14px; }
.footer__row { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--blue); }

.callbar { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1060px) {
  .nav { display: none; }
  .header__phone { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero__grid, .about__grid, .results__grid, .cta__card { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .facts__row { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about__media { max-width: 420px; }
  .director { grid-template-columns: 200px 1fr; gap: var(--s5); }
  .grads__row, .news { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .post--feature { grid-template-columns: 1fr; }
  .post--feature img { min-height: 0; aspect-ratio: 4 / 3; }
  .cta__info { padding-left: 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / .25); padding-top: var(--s6); }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .header__row { height: 64px; }
  .header__phone { font-size: 14px; padding: 10px 12px; }
  .logo__text small { display: none; }
  .hero__cta .btn { width: 100%; }
  .hero__cta .btn--ghost { display: none; }
  .hero__checks { margin-top: var(--s5); font-size: 15px; }
  .hero__grid { gap: var(--s6); }
  .hero__visual { padding: 0 0 48px 0; }
  .note { left: -4px; top: auto; bottom: 20px; padding: 10px 16px 12px; }
  .note__big { font-size: 36px; }
  .note__hand { font-size: 20px; }
  .hero__small { width: 52%; right: -4px; }
  .hero__arrow { display: none; }
  .fact { padding: var(--s5) var(--s4); }
  .tasks { grid-template-columns: 1fr; gap: var(--s6); }
  .task:nth-child(even) { margin-top: 0; }
  .home img { aspect-ratio: 4 / 3; }
  .home figcaption { padding: var(--s7) var(--s5) var(--s5); }
  .director { grid-template-columns: 1fr; padding: var(--s4); }
  .director img { aspect-ratio: 1; }
  /* на телефоне педагоги листаются вбок, а не уходят в бесконечную ленту */
  .team {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s4);
    margin-inline: -20px; padding: 0 20px var(--s3); scrollbar-width: none;
  }
  .team::-webkit-scrollbar { display: none; }
  .person { flex: 0 0 64%; scroll-snap-align: start; }
  .grad { grid-template-columns: 110px 1fr; gap: var(--s4); }
  .grad__score { font-size: 44px; margin-bottom: var(--s2); }
  /* новости на телефоне листаются вбок, как педагоги */
  .news { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px var(--s4); scrollbar-width: none; }
  .news::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 82%; scroll-snap-align: start; }
  .post:hover { transform: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: var(--s3); }
  .g--tall { grid-row: span 2; }
  .g--wide { grid-column: span 2; grid-row: span 2; }
  .lead__row { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .reviews__head { align-items: flex-start; }
  .review:nth-child(n) { transform: none; }
  .nudge { grid-template-columns: 1fr; padding: var(--s6) var(--s5); }
  .nudge__actions { justify-content: stretch; }
  .nudge__actions > * { flex: 1 1 100%; justify-content: center; }
  .nudge__arrow { display: none; }
  .lead__submit { justify-self: stretch; }
  .cookies { flex-direction: column; align-items: stretch; bottom: 12px; }
  .cookies__actions .cookies__btn { flex: 1; }
  .callbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    justify-content: center; align-items: center; min-height: 54px; border-radius: 14px;
    background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 12px 30px -10px rgb(33 72 201 / .8);
    transform: translateY(150%); transition: transform .45s var(--ease);
  }
  .callbar.show { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .stroke path, .tick path { stroke-dashoffset: 0; }
}

.doc-page .header__phone { margin-left: auto; }
