/* Эврика — детский развивающий центр. Единственный стилевой файл. */

/* Шрифт Inter — локальные файлы, без обращения к внешним сервисам. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --teal: #09b1ab;
  --teal-dark: #0b9791;
  --teal-ink: #14706c;
  --mint: #60d2d2;
  --amber: #fdbf62;
  --amber-ink: #8a5a12;
  --blue: #47b1e4;
  --blue-ink: #2b6f9c;
  --pink: #ed688d;
  --pink-ink: #c4436a;

  --cream: #f7f4ee;
  --cream-deep: #efe9de;
  --surface: #ffffff;
  --ink: #23323a;
  --muted: #64757f;
  --line: rgba(35, 50, 58, 0.12);
  --line-soft: rgba(35, 50, 58, 0.07);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-card: 0 18px 34px -28px rgba(35, 50, 58, 0.45);
  --shadow-float: 0 26px 54px -34px rgba(35, 50, 58, 0.5), 0 2px 6px -4px rgba(35, 50, 58, 0.14);

  --container: 1180px;
  --gutter: 24px;
  --section: 92px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: pretty;
}

h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(27px, 3.2vw, 38px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }

p { margin: 0; text-wrap: pretty; }

a { color: var(--teal-ink); text-decoration: none; }
a:hover { color: var(--teal); }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.62) 0; }
.section--mint { background: linear-gradient(180deg, rgba(96, 210, 210, 0.16), rgba(96, 210, 210, 0.07)); }
.section--cream { background: var(--cream-deep); }
.section--surface { background: var(--surface); }

.stack { display: flex; flex-direction: column; }
.stack--xs { gap: 8px; }
.stack--sm { gap: 14px; }
.stack--md { gap: 22px; }
.stack--lg { gap: 34px; }

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

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, rgba(35,50,58,0) 0, var(--line) 56px, var(--line) calc(100% - 56px), rgba(35,50,58,0) 100%);
}

/* ---------- Заголовки секций ---------- */

.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
}
.section-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 34ch; }
.section-head__aside { margin-left: auto; }

.lead {
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.58;
  color: var(--muted);
  max-width: 48ch;
}

.note { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -14px rgba(9, 177, 171, 0.9); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--teal-ink); border-color: rgba(9, 177, 171, 0.5); }
.btn--outline:hover { background: rgba(9, 177, 171, 0.1); color: var(--teal-ink); }
.btn--quiet { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.btn--quiet:hover { color: var(--teal-ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.link-more { font-size: 15px; font-weight: 600; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--r-pill);
  background: rgba(9, 177, 171, 0.13);
  color: var(--teal-ink);
}
.pill--amber { background: rgba(253, 191, 98, 0.3); color: var(--amber-ink); }
.pill--blue { background: rgba(71, 177, 228, 0.18); color: var(--blue-ink); }
.pill--pink { background: rgba(237, 104, 141, 0.18); color: var(--pink-ink); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.header__logo { flex: none; }
.header__logo img { height: 38px; width: auto; }

.nav { display: none; align-items: center; gap: 2px; margin-right: auto; min-width: 0; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: rgba(9, 177, 171, 0.12); color: var(--teal-ink); }
.nav__link--current { color: var(--teal-ink); }
.nav__caret { font-size: 9px; opacity: 0.6; }

.has-menu { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  width: min(560px, 78vw);
  padding: 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
}
.has-menu.is-open .menu { display: grid; }
.menu__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--ink);
}
.menu__item:hover { background: rgba(9, 177, 171, 0.1); color: var(--ink); }
.menu__name { font-size: 14.5px; font-weight: 600; }
.menu__age { font-size: 12.5px; color: var(--muted); }
.menu__all {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: rgba(9, 177, 171, 0.1);
  border-radius: var(--r-sm);
}

.header__phone { display: none; flex: none; font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--teal); }
.header__cta { flex: none; }

.burger {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-left: auto;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger:hover { background: rgba(9, 177, 171, 0.1); }

.drawer { display: none; border-top: 1px solid var(--line-soft); }
.drawer.is-open { display: block; }
.drawer__inner { display: flex; flex-direction: column; padding: 10px var(--gutter) 22px; }
.drawer__link {
  padding: 15px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.drawer__sub { padding: 11px 4px 11px 18px; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.drawer__phone { margin-top: 16px; padding: 14px 4px; font-size: 19px; font-weight: 600; color: var(--teal-ink); }

.nav__link--optional { display: none; }

@media (min-width: 1080px) {
  .nav { display: flex; }
  .burger { display: none; }
  .drawer { display: none !important; }
}

@media (min-width: 1240px) {
  .nav__link--optional { display: inline-flex; }
}

@media (min-width: 1340px) {
  .header__phone { display: flex; }
}

/* ---------- Герой ---------- */

.hero { position: relative; overflow: hidden; padding: 56px 0 var(--section); }
.hero__glow {
  position: absolute;
  border-radius: var(--r-pill);
  pointer-events: none;
}
.hero__glow--mint { top: -180px; right: -140px; width: 560px; height: 560px; background: radial-gradient(circle at 42% 42%, rgba(96,210,210,0.34), rgba(96,210,210,0) 70%); }
.hero__glow--amber { top: 220px; left: -160px; width: 400px; height: 400px; background: radial-gradient(circle at 58% 42%, rgba(253,191,98,0.32), rgba(253,191,98,0) 70%); }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero__col { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 9px;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.rating-chip__star {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  background: var(--amber);
  border-radius: var(--r-pill);
  font-size: 13px;
}

.hero__form {
  width: 100%;
  margin-top: 6px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage__item {
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  background: var(--cream-deep);
  border: 1px dashed rgba(35, 50, 58, 0.2);
  border-radius: var(--r-md);
}
.collage__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.collage__item--tall { aspect-ratio: 4 / 3; }

/* ---------- Адрес ---------- */

.addr-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  width: 100%;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--r-md);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-card);
}
.addr-card__main { display: flex; flex-direction: column; gap: 5px; min-width: 240px; }
.addr-card__label { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.addr-card__line { font-size: 18px; font-weight: 600; line-height: 1.35; }
.addr-card__district { font-size: 14.5px; color: var(--muted); }
.addr-card__links { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }

.route { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.route__item { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border-radius: var(--r-md); }
.route__title { font-size: 16px; font-weight: 600; }
.route__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.map-frame { aspect-ratio: 16 / 9; width: 100%; }

/* ---------- Полоса фактов ---------- */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact__value { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: var(--teal-ink); }
.fact__label { font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Карточки направлений ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border-radius: var(--r-md);
  border-top: 3px solid var(--teal);
  color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); color: var(--ink); }
.card--amber { border-top-color: var(--amber); }
.card--blue { border-top-color: var(--blue); }
.card--pink { border-top-color: var(--pink); }
.card--mint { border-top-color: var(--mint); }
.card__age { font-size: 12.5px; font-weight: 600; color: var(--teal-ink); }
.card--amber .card__age { color: var(--amber-ink); }
.card--blue .card__age { color: var(--blue-ink); }
.card--pink .card__age { color: var(--pink-ink); }
.card__title { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.card__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--teal-ink); }

/* ---------- Шаги ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 44px 60px; align-items: start; }
.split--center { align-items: center; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 18px; padding: 24px; background: var(--surface); border-radius: var(--r-md); }
.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: rgba(9, 177, 171, 0.15);
  color: var(--teal-ink);
}
.step:nth-child(2) .step__num { background: rgba(253, 191, 98, 0.32); color: var(--amber-ink); }
.step:nth-child(3) .step__num { background: rgba(71, 177, 228, 0.2); color: var(--blue-ink); }
.step__body { display: flex; flex-direction: column; gap: 5px; }
.step__title { font-size: 17px; font-weight: 600; }
.step__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Педагоги ---------- */

.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.teacher { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border-radius: var(--r-lg); }
.teacher__photo { aspect-ratio: 4 / 5; }
.teacher__name { font-size: 18px; font-weight: 600; }
.teacher__role { font-size: 13px; font-weight: 600; color: var(--teal-ink); }
.teacher__text { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Список галочек ---------- */

.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.55; }
.checks li::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: 8px;
  background: var(--teal);
  border-radius: var(--r-pill);
}

/* ---------- Отзывы: слайдер ---------- */

.slider { position: relative; }
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  margin: 0;
  background: var(--surface);
  border-radius: var(--r-md);
}
.review__stars { font-size: 14px; letter-spacing: 0.16em; color: var(--amber); }
.review p { font-size: 15.5px; line-height: 1.6; }
.review footer { margin-top: auto; font-size: 13.5px; color: var(--muted); }

.slider__controls { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.slider__btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  font-size: 17px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.slider__btn:hover { background: rgba(9, 177, 171, 0.12); color: var(--teal-ink); }
.slider__dots { display: flex; gap: 7px; margin-left: 6px; }
.slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); background: rgba(35, 50, 58, 0.2); cursor: pointer; }
.slider__dot.is-active { background: var(--teal); width: 22px; }

/* ---------- Полоса призыва ---------- */

.cta-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 40px 56px;
  align-items: center;
  padding: 44px;
  background: linear-gradient(135deg, rgba(96, 210, 210, 0.34), rgba(253, 191, 98, 0.26));
  border-radius: var(--r-lg);
}
.cta-band__form { padding: 28px; background: var(--surface); border-radius: var(--r-md); }

/* ---------- Блог ---------- */

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.post { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border-radius: var(--r-lg); color: var(--ink); }
.post:hover { box-shadow: var(--shadow-card); color: var(--ink); }
.post__cover { aspect-ratio: 16 / 10; }
.post__meta { font-size: 12.5px; font-weight: 600; color: var(--teal-ink); }
.post__title { font-size: 18.5px; font-weight: 600; line-height: 1.28; }
.post__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { padding: 22px 24px; background: var(--surface); border-radius: var(--r-md); }
.faq__item summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Форма заявки ---------- */

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form__head { display: flex; flex-direction: column; gap: 6px; }
.lead-form__title { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.lead-form__note { font-size: 14px; line-height: 1.45; color: var(--muted); }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.field__req { color: var(--pink); }

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(35, 50, 58, 0.24); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(9, 177, 171, 0.18); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }

.details-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--teal-ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.details-toggle:hover { color: var(--teal); }

.lead-form__extra { display: none; padding: 18px; background: var(--cream); border-radius: var(--r-md); }
.lead-form__extra.is-open { display: block; }

.lead-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lead-form__promise { font-size: 13px; line-height: 1.4; color: var(--muted); max-width: 24ch; }

.consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); cursor: pointer; }
.consent span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.lead-form__done { display: none; flex-direction: column; gap: 12px; align-items: flex-start; }
.lead-form.is-sent .lead-form__done { display: flex; }
.lead-form.is-sent .lead-form__body { display: none; }
.done__mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  font-size: 23px;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
  border-radius: var(--r-pill);
}
.done__title { font-size: 21px; font-weight: 600; }
.done__text { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 36ch; }

/* ---------- Плейсхолдеры фото ---------- */

.ph {
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  background: var(--cream-deep);
  border: 1px dashed rgba(35, 50, 58, 0.2);
  border-radius: var(--r-md);
}

/* ---------- Хлебные крошки ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 22px; font-size: 13.5px; color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); }

/* ---------- Страница направления ---------- */

.dir-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 56px; align-items: start; padding: 30px 0 0; }
.dir-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; width: 100%; }
.dir-fact { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border-radius: var(--r-sm); }
.dir-fact__label { font-size: 12.5px; color: var(--muted); }
.dir-fact__value { font-size: 18px; font-weight: 600; }

.sticky-form { position: sticky; top: 96px; padding: 28px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-float); }
.sticky-form__contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sticky-form__contacts .btn { flex: 1 1 130px; }

.timeline li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline__time { flex: none; width: 68px; font-size: 14.5px; font-weight: 600; color: var(--teal-ink); }
.timeline__body { display: flex; flex-direction: column; gap: 4px; }
.timeline__title { font-size: 16.5px; font-weight: 600; }
.timeline__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

.teacher-strip { display: flex; gap: 22px; padding: 24px; background: var(--surface); border-radius: var(--r-lg); align-items: center; }
.teacher-strip__photo { flex: none; width: 132px; aspect-ratio: 4 / 5; }

/* ---------- Таблица цен ---------- */

.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); padding: 10px; }
.table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.table caption { text-align: left; padding: 18px 20px 12px; font-size: 13.5px; color: var(--muted); }
.table th, .table td { padding: 17px 20px; text-align: left; }
.table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.table tbody th { font-size: 15.5px; font-weight: 600; }
.table tbody tr:not(:last-child) th, .table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line-soft); }
.table td.price { font-weight: 600; white-space: nowrap; }
.table__link { font-size: 14px; font-weight: 600; white-space: nowrap; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border-radius: var(--r-lg); }
.plan--featured { border: 1.5px solid var(--teal); }
.plan__badge {
  position: absolute;
  top: -12px; left: 24px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
  border-radius: var(--r-pill);
}
.plan__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan__price { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }
.plan__unit { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan__list { display: flex; flex-direction: column; gap: 8px; }
.plan__list li { display: flex; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.plan__list li::before { content: "✓"; color: var(--teal); font-weight: 600; }
.plan__cta { margin-top: auto; padding-top: 6px; }

.conditions { display: flex; flex-direction: column; gap: 12px; }
.conditions li { display: flex; gap: 14px; padding: 20px 22px; background: var(--surface); border-radius: var(--r-md); font-size: 15.5px; line-height: 1.55; }
.conditions__num { flex: none; font-weight: 600; color: var(--teal); }

/* ---------- Статья ---------- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; align-items: start; padding-top: 26px; }
.article { display: flex; flex-direction: column; gap: 24px; max-width: 70ch; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.article h2 { font-size: clamp(23px, 2.5vw, 29px); margin-top: 12px; }
.article p { font-size: 17.5px; line-height: 1.68; }
.article__cover { aspect-ratio: 16 / 9; }

.toc { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border-radius: var(--r-md); }
.toc__title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc a { font-size: 15px; }

.callout { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: rgba(253, 191, 98, 0.24); border-radius: var(--r-md); }
.callout__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); }
.callout p { font-size: 16px; line-height: 1.58; }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 28px; background: var(--surface); border-radius: var(--r-lg); }
.inline-cta__text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; }
.inline-cta__title { font-size: 20px; font-weight: 600; }

.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { padding: 24px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.aside-promo { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: linear-gradient(140deg, rgba(96,210,210,0.3), rgba(9,177,171,0.16)); border-radius: var(--r-lg); color: var(--ink); }
.aside-promo:hover { color: var(--ink); }
.aside-promo__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); }
.aside-promo__title { font-size: 19px; font-weight: 600; }

/* ---------- Футер ---------- */

.footer { background: var(--surface); border-top: 1px solid var(--line-soft); padding: 66px 0 28px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(220px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 44px 32px;
  align-items: start;
  text-align: left;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
.footer__brand img { height: 42px; width: auto; }
.footer__tagline { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 28ch; }

.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.messengers a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.messengers a:hover { background: rgba(9, 177, 171, 0.1); border-color: rgba(9, 177, 171, 0.45); color: var(--teal-ink); }

.footer__col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 15px; color: var(--ink); }
.footer__links a:hover { color: var(--teal); }

.footer__contacts { display: flex; flex-direction: column; gap: 12px; font-style: normal; }
.footer__phone { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.footer__phone:hover { color: var(--teal); }
.footer__text { font-size: 15px; line-height: 1.55; color: var(--muted); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--teal); }
.footer__legal-spacer { margin-left: auto; }

/* ---------- Мобильная панель ---------- */

.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; }
.mobile-bar .btn--primary { flex: 1.4; }

@media (min-width: 760px) { .mobile-bar { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 84px; } }

/* ---------- Админка ---------- */

.admin { background: var(--cream); min-height: 100vh; }
.admin__bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.admin__bar img { height: 30px; width: auto; }
.admin__title { font-size: 16px; font-weight: 600; }
.admin__badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(9,177,171,0.14); color: var(--teal-ink); }
.admin__actions { margin-left: auto; display: flex; gap: 10px; }

.admin__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 26px; padding: 26px var(--gutter) 60px; max-width: 1440px; margin: 0 auto; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 96px 96px 108px auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
}
.admin-row:hover { border-color: rgba(9, 177, 171, 0.35); }
.admin-row.is-active { border-color: var(--teal); }
.admin-row__handle { color: var(--muted); font-size: 15px; cursor: grab; }
.admin-row__name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.admin-row__title { font-size: 15.5px; font-weight: 600; }
.admin-row__sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row__cell { font-size: 13.5px; color: var(--muted); }
.admin-row__ops { display: flex; gap: 6px; }

.chip { display: inline-flex; align-items: center; padding: 4px 11px; font-size: 12px; font-weight: 600; border-radius: var(--r-pill); }
.chip--on { background: rgba(9, 177, 171, 0.14); color: var(--teal-ink); }
.chip--off { background: rgba(35, 50, 58, 0.08); color: var(--muted); }

.icon-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.icon-btn:hover { color: var(--teal-ink); border-color: rgba(9, 177, 171, 0.45); background: rgba(9, 177, 171, 0.08); }
.icon-btn--danger:hover { color: var(--pink-ink); border-color: rgba(237, 104, 141, 0.5); background: rgba(237, 104, 141, 0.1); }

.editor { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); max-height: calc(100vh - 112px); overflow-y: auto; }
.editor__head { display: flex; align-items: center; gap: 12px; }
.editor__head h2 { font-size: 19px; }
.editor__group { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.editor__group-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.editor__footer { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--teal); cursor: pointer; }
.admin__hint { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Адаптив ---------- */

@media (max-width: 1000px) {
  :root { --section: 68px; --gutter: 18px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dir-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .article-aside, .sticky-form, .editor { position: static; max-height: none; }
  .footer__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px 28px; }
  .admin__layout { grid-template-columns: minmax(0, 1fr); }
  .admin-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .admin-row__cell--hide { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 34px; }
  .hero__form, .cta-band, .cta-band__form, .sticky-form, .aside-card, .inline-cta { padding: 20px; }
  .cta-band { gap: 26px; }
  .card, .step, .teacher, .review, .plan, .faq__item, .conditions li { padding: 20px; }
  .teacher-strip { flex-direction: column; align-items: flex-start; }
  .teacher-strip__photo { width: 100%; aspect-ratio: 16 / 10; }
  .section-head { margin-bottom: 26px; }
  .footer { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider__track { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Дополнения для динамического сайта ---------- */

/* Шапка на телефонах: кнопка записи дублируется в нижней панели,
   поэтому в шапке остаётся логотип и кнопка меню. */
@media (max-width: 700px) {
  .header__row { gap: 12px; }
  .header__cta { display: none; }
}

/* Реальные фотографии на месте плейсхолдеров */
img.post__cover,
img.teacher__photo,
img.article__cover,
img.teacher-strip__photo,
.collage img,
.dir-hero > .stack > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--cream-deep);
}
img.post__cover { aspect-ratio: 16 / 10; }
img.teacher__photo { aspect-ratio: 4 / 5; }
img.article__cover { aspect-ratio: 16 / 9; margin: 6px 0 4px; }
img.teacher-strip__photo { flex: none; width: 132px; aspect-ratio: 4 / 5; }
.dir-hero > .stack > img { aspect-ratio: 16 / 9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r-lg); }

/* Постраничная навигация */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pager__item {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.pager__item:hover { color: var(--teal-ink); border-color: rgba(9, 177, 171, 0.45); }
.pager__item--current { color: #fff; background: var(--teal); border-color: var(--teal); }
.pager__item--disabled { color: var(--muted); opacity: 0.5; }

/* Сообщения форм */
.lead-form__promise--error { color: var(--pink-ink); }
.form-note { font-size: 13.5px; color: var(--muted); }
.alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.alert--ok { border-color: rgba(9, 177, 171, 0.4); background: rgba(9, 177, 171, 0.08); color: var(--teal-ink); }
.alert--error { border-color: rgba(237, 104, 141, 0.45); background: rgba(237, 104, 141, 0.08); color: var(--pink-ink); }

/* ---------- Админка: дополнения ---------- */

.admin__nav { display: flex; flex-wrap: wrap; gap: 4px; }
.admin__nav a {
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-pill);
}
.admin__nav a:hover { color: var(--teal-ink); background: rgba(9, 177, 171, 0.08); }
.admin__nav a.is-active { color: #fff; background: var(--teal); }

.admin__page { max-width: 1180px; margin: 0 auto; padding: 26px var(--gutter) 80px; display: flex; flex-direction: column; gap: 22px; }
.admin__page--wide { max-width: 1440px; }
.admin__head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; }
.admin__head h1 { font-size: 26px; }
.admin__head-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }

.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.panel__title { font-size: 17px; font-weight: 600; }
.panel--flat { box-shadow: none; border: 1px solid var(--line); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.admin-stat { background: var(--surface); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.admin-stat__value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.admin-stat__label { font-size: 13px; color: var(--muted); }

.admin-row--head { background: transparent; cursor: default; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 4px 18px; }
.admin-row--auto { grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(90px, 1fr)) 130px; }
.admin-row--auto:hover { border-color: rgba(9, 177, 171, 0.35); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { min-width: 160px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.code-box {
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  background: var(--cream-deep);
  border-radius: var(--r-sm);
}
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--cream); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-float); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.field__error { font-size: 12.5px; color: var(--pink-ink); }
.media-preview { max-width: 220px; border-radius: var(--r-sm); }
