/* Всезнайка — детский центр, Иркутск
   Фирменные цвета из логотипа: синее кольцо, зелёное кольцо, жёлтый, тёмно-синий.
   Светлые производные (небо, трава, песок, персик) красят сами секции — белого
   полотна на странице почти не остаётся. */

:root {
  --ink:      #00152E;
  --ink-soft: #4C5E73;
  --blue:     #2860A9;
  --blue-dk:  #1C4677;
  --green:    #49AB3B;
  --green-dk: #3A8C2E;
  --sun:      #FEBF05;
  --sun-dk:   #C28C00;
  --paper:    #FFFFFF;

  --sky:      #E7F0FB;
  --grass:    #EAF6E3;
  --sand:     #FFF3D6;
  --peach:    #FFEDE1;
  --mist:     #EFF5FB;
  --line:     #DCE6F0;

  --maxw: 1180px;
  --gap:  clamp(54px, 7.5vw, 100px);
  --r:    24px;
  --r-sm: 16px;
  --sh:   0 6px 22px rgba(0, 21, 46, .07);
  --sh-up: 0 14px 34px rgba(0, 21, 46, .13);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }   /* фигуры по краям не должны растягивать страницу */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Unbounded', 'Golos Text', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 6vw, 62px); position: relative; z-index: 0; }
h2 { font-size: clamp(27px, 4.2vw, 44px); }
h3 { font-size: clamp(19px, 2.1vw, 22px); letter-spacing: -0.015em; }
p  { margin: 0 0 1em; max-width: 68ch; }
a  { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: var(--gap); position: relative; }
.section--sky   { background: var(--sky); }
.section--grass { background: var(--grass); }
.section--sand  { background: var(--sand); }
.section--peach { background: var(--peach); }
.section--mist  { background: var(--mist); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); }

/* ── Кнопки ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 30px;
  font: inherit; font-weight: 600; text-decoration: none;
  border: 0; border-radius: 100px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(40, 96, 169, .28); }
.btn--primary:hover { background: var(--blue-dk); transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(254, 191, 5, .38); }
.btn--sun:hover { background: #F0B400; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--block { width: 100%; }

/* ── Шапка ────────────────────────────────────────────── */
/* Шапка не липкая: постоянный телефон над экраном не приносит заявок,
   а 76 px высоты забирает на всех секциях. Липкий CTA остался только
   на телефоне — кнопка внизу экрана. */
.head {
  /* Шапка — не полоса во всю ширину, а отдельный объект: белая капсула
     на тёплом фоне первого экрана. Границы нет, шва нет, но и с фоном не сливается. */
  position: absolute; top: 14px; left: 0; right: 0; z-index: 40;
  background: transparent;
}
.head__in {
  display: flex; align-items: center; gap: 20px; min-height: 68px;
  background: var(--paper); border-radius: 22px; box-shadow: var(--sh);
  padding-inline: 22px;
}
@media (max-width: 599px) { .head__in { border-radius: 18px; padding-inline: 14px; gap: 12px; } }

.head__logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }

/* Знак: крупная цветная голова персонажа на круге.
   Голова НЕ обрезается кругом: .mark__disc даёт круглый низ, а .mark__over —
   отдельный слой поверх круга, обрезанный по прямой ниже подбородка, поэтому
   рука у виска, скулы, уши и хохолок остаются целыми.
   Посадка считана по вектору: голова 174 ед. из 243, центр (103, 95). */
.mark { flex: none; position: relative; }
.mark__disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: var(--sky);
}
.mark__disc img, .mark__over {
  position: absolute; left: -9.21%; top: -4.61%; width: 137.4%; max-width: none;
}
.mark__over { clip-path: polygon(0 0, 100% 0, 100% 77.4%, 0 77.4%); }
.head__logo .mark { width: 58px; height: 58px; }

.head__name { display: flex; flex-direction: column; }
.head__word {
  font-family: 'Source Sans 3', 'Golos Text', sans-serif;
  font-weight: 700; font-size: 25px; line-height: 1.05; color: var(--ink);
  letter-spacing: -0.005em;
}
.head__sub {
  font-family: 'Source Sans 3', 'Golos Text', sans-serif;
  font-size: 13px; color: var(--ink-soft); line-height: 1.25;
  margin: 0 0 -1px 17px;               /* правее буквы «В» и ниже; -1px, а не -6:
                                          на -6 кратка над «й» слипалась с «центр» */
}
@media (max-width: 520px) {
  .head__logo .mark { width: 48px; height: 48px; }
  .head__word { font-size: 20px; }
  .head__sub { font-size: 11px; margin: 0 0 -1px 14px; }
}
.head__nav { display: none; margin-left: auto; gap: 26px; }
.head__nav a { color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; font-weight: 500; }
.head__nav a:hover { color: var(--blue); }
.head__tel { margin-left: auto; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
@media (min-width: 1120px) {
  .head__nav { display: flex; gap: 22px; }
  .head__tel { margin-left: 0; }
}

/* ── Первый экран ─────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(96px + clamp(26px, 3.6vw, 48px)); padding-bottom: 0;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--peach) 0%, rgba(255,237,225,0) 58%),
    linear-gradient(180deg, var(--sand) 0%, #FFF9EC 62%, var(--paper) 100%);
}
/* Цветные пятна на фоне */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 320px; height: 320px; left: -130px; top: 34%; background: rgba(73,171,59,.10); }
.hero::after  { width: 220px; height: 220px; right: -70px;  top: 4%;  background: rgba(40,96,169,.09); }

.hero__grid { display: grid; gap: 30px; position: relative; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.04fr .96fr; align-items: center; gap: 50px; }
}
.hero p { margin-top: 16px; }
.hero .lead {
  font-family: 'Unbounded', sans-serif; font-weight: 500;
  font-size: clamp(19px, 2.4vw, 26px); color: var(--green-dk);
  letter-spacing: -0.02em; margin-top: 14px;
}
.hero__cta { margin-top: 28px; }

/* Фото первого экрана — в скруглённой рамке с цветным кольцом за ней */
.hero__photo { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--sh-up); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame { position: relative; }
.hero__frame::before {
  content: ""; position: absolute; z-index: 0;
  right: -16px; bottom: -16px; left: 16px; top: 16px;
  border: 4px solid var(--sun); border-radius: 30px;
}
.hero__frame .hero__photo { position: relative; z-index: 1; }

.hero__where {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 24px; padding: 0; list-style: none;
  font-size: 15px; color: var(--ink);
}
.hero__where li {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(40,96,169,.16);
  border-radius: 100px; padding: 7px 15px 7px 12px; font-weight: 500;
}
.hero__where svg { flex: none; color: var(--green); }

/* ── Ростомер: выбор возраста ─────────────────────────── */
.ruler {
  position: relative; z-index: 2;
  margin-top: clamp(34px, 4.5vw, 52px);
  background: var(--paper); border-radius: var(--r);
  padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.6vw, 32px) clamp(18px, 2.4vw, 26px);
  box-shadow: var(--sh-up);
}
.ruler__title {
  font-family: 'Unbounded', sans-serif; font-weight: 500;
  font-size: clamp(17px, 2vw, 21px); letter-spacing: -0.02em; margin-bottom: 16px;
}
.ruler__scroll {
  overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, #000 0, #000 92%, transparent 100%);
}
@media (min-width: 760px) { .ruler__scroll { mask-image: none; } }
.ruler__track { display: flex; align-items: flex-end; gap: 0; min-width: max-content; }
@media (min-width: 760px) {
  .ruler__track { min-width: 100%; justify-content: space-between; }
}
.age {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 0 clamp(8px, 1.3vw, 16px) 4px;
  position: relative;
}
.age:nth-child(3n+1) { --tone: var(--blue);   --tint: var(--sky); }
.age:nth-child(3n+2) { --tone: var(--green);  --tint: var(--grass); }
.age:nth-child(3n+3) { --tone: var(--sun-dk); --tint: var(--sand); }
.age__n {
  font-family: 'Unbounded', sans-serif; font-weight: 500;
  font-size: clamp(17px, 2vw, 20px); line-height: 1;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--tint); color: var(--tone);
  border: 2px solid transparent;
  display: grid; place-items: center;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.age:hover .age__n { border-color: var(--tone); }
.age[aria-pressed="true"] { color: var(--ink); }
.age[aria-pressed="true"] .age__n {
  background: var(--tone); color: #fff; border-color: var(--tone);
  transform: scale(1.14);
}
.age__cap { font-size: 12px; color: var(--ink-soft); }
.ruler__reset {
  margin-top: 16px; background: none; border: 0; padding: 0;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--blue); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.ruler__reset[hidden] { display: none; }

/* ── Программы ────────────────────────────────────────── */
.progs { display: grid; gap: 20px; margin-top: 34px; }
@media (min-width: 640px) { .progs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .progs { grid-template-columns: repeat(3, 1fr); } }

.prog {
  --tone: var(--blue); --tint: var(--sky);
  display: flex; flex-direction: column;
  background: var(--tint); border-radius: var(--r);
  border: 2px solid transparent;
  overflow: hidden;
  transition: opacity .25s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.prog[data-tone="green"] { --tone: var(--green-dk); --tint: var(--grass); }
.prog[data-tone="sun"]   { --tone: var(--sun-dk);   --tint: var(--sand); }
.prog__photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: rgba(0,21,46,.06); }
.prog__body { display: flex; flex-direction: column; gap: 11px; padding: 20px 22px 26px; }
.prog__age {
  align-self: flex-start;
  font-size: 13px; font-weight: 600; line-height: 1;
  color: #fff; background: var(--tone);
  padding: 7px 13px; border-radius: 100px;
}
.prog p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.prog:hover { border-color: var(--tone); transform: translateY(-3px); box-shadow: var(--sh); }
.prog--off { opacity: .42; order: 2; }
.prog--on  { order: 0; border-color: var(--tone); box-shadow: var(--sh); }

.progs__empty { margin-top: 22px; color: var(--ink-soft); }

/* Карточка-ссылка на страницу программы */
.prog--link { text-decoration: none; color: inherit; }
.prog__more {
  margin-top: auto; padding-top: 6px;
  font-size: 15px; font-weight: 600; color: var(--tone);
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; transition: text-decoration-color .15s ease;
}
.prog--link:hover .prog__more { text-decoration-color: currentColor; }

/* ── Как устроено занятие ─────────────────────────────── */
.how { display: grid; gap: 22px; margin-top: 36px; }

/* ── Полоса-призыв ────────────────────────────────────── */
.cta { margin-top: 38px; display: flex; justify-content: center; }
.cta .btn { flex: none; padding: 19px 38px; font-size: 17px; }
@media (max-width: 560px) { .cta .btn { width: 100%; padding-inline: 20px; white-space: normal; } }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.how > div {
  background: var(--paper); border-radius: var(--r);
  padding: 28px 26px 30px; box-shadow: var(--sh);
}
.how > div:nth-child(1) { --tone: var(--blue); }
.how > div:nth-child(2) { --tone: var(--green-dk); }
.how > div:nth-child(3) { --tone: var(--sun-dk); }
.how h3 { margin-bottom: 10px; }
.how__num {
  font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 500;
  color: #fff; background: var(--tone);
  display: inline-block; margin-bottom: 16px;
  padding: 6px 13px; border-radius: 100px; letter-spacing: -0.01em;
}
.how p { color: var(--ink-soft); font-size: 16px; margin-bottom: 0; }

/* ── О центре ─────────────────────────────────────────── */
.about { display: grid; gap: 30px; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.about__photo { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--sh-up); }
.about a { font-weight: 600; }
.about h2 + p { margin-top: 24px; }

/* ── Галерея ──────────────────────────────────────────── */
.gal-wrap { position: relative; margin-top: 32px; }
.gal {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gal::-webkit-scrollbar { display: none; }
.gal__page {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .gal__page { grid-template-columns: repeat(4, 1fr); } }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: var(--sh-up);
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .15s ease, background-color .15s ease;
}
.gal-nav:hover { background: var(--sky); }
.gal-nav[disabled] { opacity: 0; pointer-events: none; }
.gal-nav--prev { left: -10px; }
.gal-nav--next { right: -10px; }
@media (max-width: 900px) { .gal-nav--prev { left: 2px; } .gal-nav--next { right: 2px; } }
.gal img { border-radius: var(--r-sm); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.gal__wide { grid-column: span 2; }
.gal__item { padding: 0; border: 0; background: none; display: block; cursor: zoom-in;
  border-radius: var(--r-sm); overflow: hidden; }
.gal__item img { transition: transform .25s ease; }
.gal__item:hover img { transform: scale(1.04); }

/* ── Просмотр фото ────────────────────────────────────── */
.lb { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lb::backdrop { background: rgba(0, 21, 46, .82); }
.lb img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: var(--r-sm); }
.lb__close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: var(--sh);
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 560px) { .lb__close { top: 6px; right: 6px; } }

/* ── Отзывы ───────────────────────────────────────────── */
.revs { columns: 1; column-gap: 20px; margin-top: 34px; }
@media (min-width: 700px) { .revs { columns: 2; } }
@media (min-width: 1020px) { .revs { columns: 3; } }
.rev {
  --tone: var(--blue);
  break-inside: avoid; margin: 0 0 20px;
  padding: 26px 26px 24px; background: var(--paper); border-radius: var(--r);
  box-shadow: var(--sh); position: relative;
}
.rev:nth-child(3n+2) { --tone: var(--green); }
.rev:nth-child(3n+3) { --tone: var(--sun-dk); }
.rev::before {
  content: "“"; display: block;
  font-family: 'Unbounded', serif; font-size: 54px; line-height: .7;
  color: var(--tone); opacity: .32; margin-bottom: 10px;
}
.rev p { font-size: 16px; margin-bottom: 16px; }
.rev footer { font-weight: 600; font-size: 15px; padding-top: 14px; border-top: 2px solid var(--tone); }
.rev__src { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* ── Форма ────────────────────────────────────────────── */
/* Заявка в той же светлой палитре: секция на небе, форма — белая карточка.
   Шаги «что будет дальше» идут строкой сверху, поля — в две колонки:
   карточка занимает всю ширину колонки и не вытягивается в узкий столбик. */
.form-sec { position: relative; }
.form__steps { margin-top: 30px; }
.form__next { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.day { margin: 16px 0 28px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 820px) { .day { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.day li { position: relative; padding-left: 46px; color: var(--ink-soft); border: 0; }
.day li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 500;
  display: grid; place-items: center;
}
#lead-form {
  background: var(--paper); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 34px); box-shadow: var(--sh);
}
.form__fields { display: grid; gap: 16px; }
@media (min-width: 760px) { .form__fields { grid-template-columns: 1fr 1fr; gap: 18px 22px; } }
.field { display: block; margin: 0; }
.field span { display: block; font-size: 14px; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select {
  width: 100%; padding: 15px 16px; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px;
}
.field input::placeholder { color: #9FB0C2; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 22px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink-soft);
  margin: 0; flex: 1 1 320px; }
.consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--green); }
.form__send { flex: 0 0 auto; min-width: 260px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { color: #C0392B; font-size: 14px; margin: 16px 0 0; font-weight: 500; }
.form__ok { display: none; }
.form__ok h3 { margin-bottom: 12px; }
.form__ok p { color: var(--ink-soft); margin-bottom: 0; }
.is-done .form__body { display: none; }
.is-done .form__ok { display: block; }
@media (max-width: 759px) { .form__send { width: 100%; min-width: 0; } }

/* ── Контакты ─────────────────────────────────────────── */
.contacts { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 780px) { .contacts { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.branch {
  background: var(--paper); border-radius: var(--r);
  padding: 28px 26px; border: 2px solid var(--line);
}
.branch h3 { margin-bottom: 8px; }
.branch p { color: var(--ink-soft); margin-bottom: .5em; }
.branch p:last-child { margin-bottom: 0; }
.contacts__tel {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 34px;
  font-family: 'Unbounded', sans-serif; font-weight: 500;
  font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.contacts__tel svg { width: 1.05em; height: 1.05em; flex: none; color: var(--blue); }
.contacts__tel:hover { color: var(--blue); }
.msgr { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn--msgr {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--line); gap: 12px;
}
.btn--msgr:hover { border-color: var(--blue); }
.btn--msgr svg { flex: none; }

/* ── Подвал ───────────────────────────────────────────── */
.foot { background: var(--ink); color: rgba(255, 255, 255, .74); padding-block: 46px 26px; font-size: 15px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 34px 40px; } }
@media (min-width: 1040px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot__brand { display: flex; gap: 14px; align-items: flex-start; }
.foot__brand .mark { width: 54px; height: 54px; flex: none; }
.foot__brand p { margin: 6px 0 0; max-width: 34ch; font-size: 14px; line-height: 1.55; }
.foot__name { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 21px; color: #fff; letter-spacing: -.01em; }
.foot__col h4 { font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 14px; color: #fff;
  margin: 0 0 12px; letter-spacing: -.01em; }
.foot__col p { margin: 0 0 12px; line-height: 1.6; }
.foot__tel { font-family: 'Unbounded', sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; }


/* ── Липкая кнопка на телефоне ────────────────────────── */
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  transform: translateY(150%); transition: transform .25s ease;
}
.sticky.is-visible { transform: translateY(0); }
@media (min-width: 900px) { .sticky { display: none; } }

/* ── Фирменные дудлы ──────────────────────────────────────
   Потрейс-контуры красим через маску, поэтому это span, а не img. */
.doodles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.doodle {
  position: absolute; display: block;
  background-color: var(--dtone, var(--blue));
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
  opacity: .58;
}
.doodle--raketa  { --src: url(../img/doodles/raketa.svg);  --dtone: var(--blue);  width: 96px;  height: 107px; top: 5%;  right: 3%;  transform: rotate(-8deg); }
.doodle--lampa   { --src: url(../img/doodles/lampa.svg);   --dtone: var(--sun-dk); width: 74px; height: 80px;  bottom: 27%; left: 1.5%; transform: rotate(-6deg); }
.doodle--oblako  { --src: url(../img/doodles/oblako.svg);  --dtone: var(--blue);  width: 126px; height: 57px;  bottom: 13%; right: 7%; opacity: .38; }
.doodle--strelka { --src: url(../img/doodles/strelka.svg); --dtone: var(--green); width: 48px;  height: 56px;  top: 11%; left: 3%; transform: rotate(20deg); }
.doodle--skrepka { --src: url(../img/doodles/skrepka.svg); --dtone: var(--green); width: 60px;  height: 66px; }
.doodle--mysh    { --src: url(../img/doodles/mysh.svg);    --dtone: var(--blue);  width: 76px;  height: 66px; }
@media (max-width: 899px) {
  .doodle--lampa, .doodle--oblako, .doodle--strelka { display: none; }
  .doodle--raketa { top: 1%; right: -2%; width: 66px; height: 74px; }
}

/* Дудлы-украшения в секциях */
.sec-doodle { position: absolute; pointer-events: none; z-index: 0; }
.sec-doodle--how { top: 26px; right: 4%; opacity: .3; }
.sec-doodle--about { bottom: 24px; left: 2%; opacity: .3; }
@media (max-width: 1000px) { .sec-doodle { display: none; } }

/* ── Ростомер на телефоне: все 12 сеткой, без прокрутки ── */
@media (max-width: 759px) {
  .ruler__scroll { overflow: visible; mask-image: none; }
  .ruler__track {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px;
    min-width: 0;
  }
  .age { padding: 0; gap: 0; }
  .age__cap { display: none; }
  .age__n {
    width: 100%; aspect-ratio: 1; height: auto;
    border-radius: 14px;
  }
  .age[aria-pressed="true"] .age__n { transform: scale(1.06); }
}

/* ── Школьные фигуры: те же каракули, только предметы из фирменной листовки.
   Лежат под содержимым, вразнобой по всей площади секции, потому и полупрозрачные. ── */
.section { position: relative; overflow: hidden; }   /* пятна уходят за край секции, а не растягивают страницу */
.section > .wrap { position: relative; z-index: 1; }
.fig {
  position: absolute; z-index: 0; display: block; pointer-events: none;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
  opacity: .58;
}
.blob { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.blob--blue  { background: rgba(40, 96, 169, .09); }
.blob--green { background: rgba(73, 171, 59, .10); }
.blob--sun   { background: rgba(254, 191, 5, .14); }
@media (max-width: 1180px) { .blob { display: none; } }
.fig--blue  { background-color: var(--blue); }
.fig--green { background-color: var(--green); }
.fig--sun   { background-color: var(--sun-dk, #C99500); }
@media (max-width: 1180px) { .fig { display: none; } }   /* поля кончились — фигуры полезли бы в текст */

/* ── Кнопка записи в шапке и попап ─────────────────────────
   Кнопка открывает ту же форму в модальном окне: человеку,
   который решился на первом экране, не нужно листать до низа. */
.head__cta { padding: 12px 22px; font-size: 15px; white-space: nowrap; flex: none; }
@media (max-width: 699px) { .head__cta { display: none; } }
/* телефон прячем только там, где он дерётся с кнопкой за место */
@media (min-width: 700px) and (max-width: 959px) { .head__tel { display: none; } }
@media (max-width: 699px) { .head__tel { margin-left: auto; font-size: 16px; } }

.modal { border: 0; padding: 0; background: transparent; max-width: min(680px, 94vw); width: 100%; }
.modal::backdrop { background: rgba(0, 21, 46, .55); backdrop-filter: blur(2px); }
.modal__box {
  position: relative; background: var(--paper); border-radius: var(--r);
  padding: clamp(22px, 3vw, 36px); box-shadow: 0 24px 60px rgba(0, 21, 46, .28);
  max-height: 88vh; overflow-y: auto;
}
.modal__title { margin: 0 44px 6px 0; }
.modal__lead { color: var(--ink-soft); margin: 0 0 22px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--mist); color: var(--ink); cursor: pointer;
}
.modal__close:hover { background: var(--line); }
/* внутри попапа карточка формы уже не нужна — фоном служит сам попап */
.modal .lead-form { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
@media (max-width: 759px) { .modal__box { padding: 20px 18px 24px; } }
