/* ==========================================================================
   thousandli.ru — онлайн-школа китайского языка «Тысяча ли»
   Макет: Figma, десктоп 1440
   ========================================================================== */

/* ---------- Шрифты (локально) ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Иероглифы в подписях карточек (Noto Sans SC), урезаны до используемых символов */
@font-face { font-family: "Hanzi"; src: url("../fonts/cjk-label-1.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+6C49; }
@font-face { font-family: "Hanzi"; src: url("../fonts/cjk-label-2.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+65C5, U+6821, U+7EFC; }
@font-face { font-family: "Hanzi"; src: url("../fonts/cjk-label-3.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+513F, U+5411, U+5904, U+59CB, U+653F, U+7559, U+8003, U+8BD5, U+8BED; }
@font-face { font-family: "Hanzi"; src: url("../fonts/cjk-label-4.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+4ED6, U+521B, U+522B, U+53E3, U+5546, U+5C11, U+6C34, U+6CA1, U+6E38, U+79CD; }
@font-face { font-family: "Hanzi"; src: url("../fonts/cjk-label-5.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+4E13, U+4E3A, U+4E86, U+4EBA, U+5165, U+5176, U+52A1, U+5408, U+5728, U+5B50, U+5B66, U+5E73, U+6210, U+6240, U+6280, U+65B9, U+65F6, U+6CD5, U+79D1, U+7EBF, U+95E8, U+9762; }
@font-face { font-family: "Hanzi"; src: url("../fonts/cjk-label-6.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+4E00, U+6709, U+7684; }

/* ---------- Токены ---------- */
:root {
  --c-green: #004e34;
  --c-gold: #ce9351;
  --c-gold-light: #d59f63;
  --c-page: #f2f2f2;
  --c-text-dark: #251f1f;
  --c-white: #ffffff;
  --c-black: #000000;
  --c-header: rgba(203, 203, 203, 0.35);

  --ff-display: "Unbounded", system-ui, sans-serif;
  --ff-text: "Inter", "Hanzi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Скругления: в макете 37.5/61/63/141 у «пилюль» — сведены в одно правило */
  --r-xl: 40px;
  --r-md: 20px;
  --r-card: 13px;  /* карточки и фото в них: 13 и 13.09 в макете */
  --r-sm: 10px;
  --r-frame: 16px; /* мобильная версия: рамка видео, карточки отзывов */
  --r-pill: 999px;

  --container: 1302px;
  --gutter: 16px;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* декор (кольцо в отзывах и т.п.) по макету выходит за край — без горизонтального скролла */
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--ff-text);
  color: var(--c-black);
  background: var(--c-page);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* у кнопок нет «грубой» рамки браузера: внешний вид задают классы */
button { border: 0; }

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

h1, p { margin: 0; }

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.btn--gold { background: var(--c-gold); color: var(--c-white); }
.btn--white { background: var(--c-white); color: var(--c-black); }

.btn--lg {
  height: 77px;
  padding: 0 25px;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

@media (hover: hover) {
  .btn--gold:hover { background: #b97f40; }
  .btn--white:hover { background: #e8e8e8; }
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 12px;
  z-index: 100;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 28px auto 0;
}

/* Скруглённая «стеклянная» плашка: полупрозрачный фон + размытие того, что под ней */
.header__bar {
  display: flex;
  align-items: center;
  height: 75px;
  padding: 0 17px 0 21px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-pill);
  background: var(--c-header);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.header.is-scrolled .header__bar {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(242, 242, 242, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(0, 40, 26, 0.12);
}

/* без поддержки backdrop-filter — плотнее, чтобы текст читался */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header.is-scrolled .header__bar { background: rgba(242, 242, 242, 0.96); }
}

.header__logo {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 5px;
}

.header__logo img { width: 210px; height: auto; }

.header__nav {
  display: flex;
  gap: 20px;
  margin-left: -1px;
  padding-top: 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

@media (hover: hover) {
  .header__link { transition: color .2s ease; }
  .header__link:hover { color: var(--c-green); }
}

.header__socials {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.header__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  transition: background-color .2s ease;
}

.header__social--tg img { margin-left: -4px; }

@media (hover: hover) {
  .header__social:hover { background: #e8e8e8; }
}

.header__cta {
  height: 41px;
  margin-left: 32px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}

/* ---------- Первый экран ---------- */
.hero {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 23px auto 0;
  padding-left: 1px; /* в макете блок 1301px и на 1px правее шапки */
}

.hero__inner {
  position: relative;
  height: 740px;
  border-radius: var(--r-xl);
  background: var(--c-green);
}

/* Декоративные иероглифы на фоне */
.hero__bg-hanzi {
  position: absolute;
  top: 106.5px;
  left: 616.5px;
  width: 373px;
  height: 219px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 90px 0 0 40px;
}

.hero__title {
  width: 692px;
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--c-white);
}

.hero__title-accent { color: var(--c-gold); }

.hero__text {
  width: 551px;
  margin-top: 12px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-white);
}

.hero__actions {
  display: flex;
  gap: 20px;
  margin-top: 42px;
}

.hero__action { position: relative; }

.hero__actions .btn--gold { width: 315px; }
.hero__actions .btn--white { width: 290px; }

.hero__badge {
  position: absolute;
  top: 61px;
  left: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 173px;
  height: 32px;
  padding: 0 0 0 3px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  transform: rotate(-3deg);
  pointer-events: none;
}

/* Картинки и золотая полоса (слои как в макете) */
.hero__temple {
  position: absolute;
  top: 0;
  left: 551px;
  z-index: 2;
  width: 621px;
  height: 740px;
  pointer-events: none;
}

.hero__strip {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 153px;
  height: 740px;
  border-radius: var(--r-xl);
  background: var(--c-gold);
}

.hero__strip-text {
  position: absolute;
  top: 245px;
  left: 88px;
  width: 44px;
  height: 363px;
}

.hero__flags {
  position: absolute;
  top: -11px;
  left: 1071px;
  z-index: 4;
  width: 228px;
  height: 325px;
  pointer-events: none;
}

.hero__founder {
  position: absolute;
  top: 6px;
  left: 680px;
  z-index: 5;
  width: 650px;
  height: 810px;
  /* фото крупнее блока: низ и правый край режем по краю зелёной карточки */
  clip-path: inset(0 29px 76px 0 round 0 0 var(--r-xl) 0);
}

/* ---------- Плашка с цифрами ---------- */
.stats {
  position: absolute;
  right: 40px;
  bottom: 40px;
  left: 40px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  height: 148px;
  padding: 31px 0 0 31px;
  border-radius: var(--r-md);
  background: var(--c-page);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  text-align: center;
}

.stats__item--1 { width: 218px; margin-top: 1px; }
.stats__item--2 { width: 218px; margin-top: 1px; margin-left: 39px; }
.stats__item--3 { width: 331px; margin-left: 36px; }
.stats__item--4 { width: 279px; margin-left: 15px; }

.stats__value {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.stats__label {
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
}

.stats__item--3 .stats__label { width: 355px; }

.stats__label--sm { font-size: 16px; }

/* ---------- Авторская методика ---------- */
.method {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.method__inner { position: relative; }

.method__title {
  width: 737px;
  margin: 0;
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
}

.method__title-accent { color: var(--c-gold); }

.method__list {
  position: relative;
  z-index: 1;
  margin-top: 39px;
}

.method__item {
  position: relative;
  padding-left: 82px;
}

.method__item:nth-child(2) { margin-top: 35px; }
.method__item:nth-child(3) { margin-top: 29px; }

.method__icon {
  position: absolute;
  top: 2px;
  left: -1px;
  width: 74px;
  height: 72px;
}

.method__icon--2 { top: -1px; left: -2px; }
.method__item:nth-child(3) .method__icon { top: 0; }

.method__item-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 21px;
}

.method__item-text {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.method__item-text--1 { max-width: 637px; }
.method__item-text--2 { max-width: 740px; }
.method__item-text--3 { max-width: 688px; }

.method__book {
  position: absolute;
  top: 8px;
  left: 877px;
  width: 434px;
  height: 466px;
  pointer-events: none;
  /* медленная «левитация»: transform не конфликтует с translate анимации появления */
  animation: book-float 8s ease-in-out infinite;
  will-change: transform;
}

.method__cover {
  position: absolute;
  top: 0;
  left: 84px;
  width: 276px;
  height: 416px;
}

.method__disk {
  position: absolute;
  top: 315px;
  left: 283px;
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: var(--c-gold);
}

.method__glint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Кольца с надписью (под обложкой): замкнуты в круг и очень медленно вращаются в разные стороны */
.method__ring {
  position: absolute;
  width: 200px;
  height: 200px;
  overflow: visible;
  font-family: "Hanzi", sans-serif;
  font-size: 14px;
  fill: var(--c-gold);
  animation: ring-spin 90s linear infinite;
}

.method__ring text { dominant-baseline: central; }

.method__ring--left { top: 76px; left: -2px; }
.method__ring--right { top: 272px; left: 240px; animation-duration: 120s; animation-direction: reverse; }

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes book-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-0.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .method__book, .method__ring { animation: none; }
}

.method__summary {
  position: relative;
  height: 93px;
  margin-top: 68px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-green) url("../img/method/summary-decor.webp") no-repeat right top / 232px 93px;
}

.method__summary-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 22px;
  padding: 2px 12px 0;
  white-space: nowrap;
  border-radius: var(--r-pill);
  background: var(--c-gold);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-white);
}

.method__summary-text {
  position: absolute;
  top: 21px;
  left: 95px;
  width: 975px;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-white);
}

/* ---------- Программы (табы) ---------- */
.programs {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.programs__title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.programs__tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  margin-top: 38px;
  padding: 0 11px;
  border-radius: 15px;
  background: var(--c-white);
}

.programs__tab {
  width: 416px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--ff-text);
  font-size: 21px;
  font-weight: 400;
  line-height: normal;
  color: var(--c-black);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.programs__tab[aria-selected="true"] {
  background: var(--c-gold);
  color: var(--c-white);
  cursor: default;
}

@media (hover: hover) {
  .programs__tab[aria-selected="false"]:hover { color: var(--c-green); }
}

.programs__panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.programs__panel--wide { grid-template-columns: repeat(2, 1fr); }

.programs__panel[hidden] { display: none; }

/* Карточка программы */
.program-card {
  position: relative;
  height: 228px;
  border-radius: var(--r-card);
  background: var(--c-white);
  color: var(--c-text-dark);
}

.program-card.is-link { cursor: pointer; }

.program-card__tag {
  position: absolute;
  top: 15.5px;
  left: 15.6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.program-card__flag {
  width: 44px;
  height: 24px;
  border-radius: 3px;
}

.program-card__label {
  padding: 4.9px 9.8px;
  font-size: 11.73px;
  font-weight: 400;
  line-height: normal;
}

.program-card__title {
  position: absolute;
  top: 146px;
  left: 19.25px;
  margin: 0;
  transform: translateY(-50%);
  font-size: 23.46px;
  font-weight: 600;
  line-height: 1.2;
}

.program-card--wide .program-card__title {
  top: 120px;
  left: 16px;
}

.program-card__more {
  position: absolute;
  top: 183.8px;
  left: 20.8px;
  display: inline-flex;
  align-items: center;
  gap: 17.26px;
  font-size: 18.58px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--c-green);
}

.program-card__more img {
  width: 5.55px;
  height: 9.77px;
  transition: transform .2s ease;
}

@media (hover: hover) {
  .program-card__more:hover img { transform: translateX(4px); }
}

.program-card__img {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 144px;
  height: 144px;
  border-radius: var(--r-card);
}

/* ---------- Об основателе ---------- */
.founder {
  position: relative;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 100px auto 0;
}

.founder__clip {
  position: absolute;
  top: -29px;
  left: 1149px;
  z-index: 2;
  width: 72px;
  height: 113px;
  pointer-events: none;
}

.founder__inner {
  position: relative;
  height: 961px;
  padding: 40px 0 0 40px;
  border-radius: var(--r-xl);
  background: var(--c-green);
  color: var(--c-white);
}

.founder__title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
}

.founder__motto {
  position: relative;
  width: 612px;
  height: 97px;
  margin-top: 14px;
  border-radius: 22px;
  background: var(--c-gold);
}

.founder__motto-hanzi {
  position: absolute;
  top: 16.5px;
  left: 516.9px;
  width: 70px;
  height: 66px;
}

.founder__badge {
  position: absolute;
  top: 17px;
  left: 22px;
  width: 216px;
  height: 28px;
  padding: 2px 0 0 17px;
  border-radius: 22px;
  background: var(--c-green);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.founder__motto-text {
  position: absolute;
  top: 51px;
  left: 22px;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.founder__name {
  margin: 47px 0 0;
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.founder__facts {
  width: 627px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fact;
}

.founder__fact {
  position: relative;
  padding: 27px 0 10px 41px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  counter-increment: fact;
}

.founder__fact:first-child { padding-top: 24px; }

.founder__fact::before {
  content: counter(fact) ".";
  position: absolute;
  top: 19px;
  left: 3px;
  font-size: 24px;
  line-height: 1.3;
}

.founder__fact:first-child::before { top: 21px; }

.founder__collage {
  position: absolute;
  top: 631px;
  left: 36px;
  width: 545px;
  height: 208px;
}

.founder__more {
  position: absolute;
  top: 854px;
  left: 40px;
  width: 375px;
  height: 66px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
}

.founder__video {
  position: absolute;
  top: 138px;
  left: 737px;
  width: 528px;
  height: 783px;
}

.founder__video::before {
  content: "";
  position: absolute;
  top: 434px;
  left: 2px;
  width: 521px;
  height: 349px;
  border-radius: 16px;
  background: var(--c-white);
}

.founder__video-img {
  position: relative;
  width: 528px;
  height: 697px;
}

/* Весь кадр — кнопка: клик открывает видео */
.founder__play {
  position: absolute;
  top: 16px;
  left: 14px;
  width: 502px;
  height: 681px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  transition: background-color .3s ease;
}

/* мягкая пульсация вокруг кнопки Play (центр круга на кадре) */
.founder__play-ring {
  position: absolute;
  top: 254px;
  left: 180.5px;
  width: 139.5px;
  height: 137px;
  border-radius: 50%;
  pointer-events: none;
}

.founder__play-ring::before,
.founder__play-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: play-pulse 2.6s cubic-bezier(.22, .61, .36, 1) infinite;
}

.founder__play-ring::after { animation-delay: 1.3s; }

@keyframes play-pulse {
  from { opacity: .9; scale: 1; }
  to { opacity: 0; scale: 1.45; }
}

@media (hover: hover) {
  .founder__play:hover { background: rgba(0, 0, 0, 0.12); }
  .founder__play:hover .founder__play-ring::before { animation-duration: 1.6s; }
}

@media (prefers-reduced-motion: reduce) {
  .founder__play-ring::before,
  .founder__play-ring::after { animation: none; opacity: 0; }
}

/* ---------- Модальное окно видео ---------- */
.video-modal {
  /* окно по размеру вертикального видео (9:16) */
  width: fit-content;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  opacity: 0;
  scale: .94;
  translate: 0 16px;
  transition: opacity .35s ease, scale .45s cubic-bezier(.22, .61, .36, 1), translate .45s cubic-bezier(.22, .61, .36, 1), overlay .45s allow-discrete, display .45s allow-discrete;
}

.video-modal[open] { opacity: 1; scale: 1; translate: 0 0; }

@starting-style {
  .video-modal[open] { opacity: 0; scale: .94; translate: 0 16px; }
}

.video-modal::backdrop {
  background: rgba(0, 20, 13, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background-color .35s ease, backdrop-filter .35s ease, overlay .45s allow-discrete, display .45s allow-discrete;
}

.video-modal[open]::backdrop {
  background: rgba(0, 20, 13, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@starting-style {
  .video-modal[open]::backdrop { background: rgba(0, 20, 13, 0); backdrop-filter: blur(0); }
}

.video-modal__box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.video-modal__video {
  display: block;
  width: auto;
  height: min(100dvh - 80px, 900px);
  max-width: calc(100vw - 32px);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

.video-modal__video[hidden] { display: none; }

.video-modal__fallback {
  width: min(480px, 100vw - 32px);
  padding: 120px 24px;
  font-family: var(--ff-display);
  font-size: 20px;
  text-align: center;
  color: var(--c-white);
}

.video-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background-color .2s ease, rotate .3s ease;
}

.video-modal__close::before,
.video-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  border-radius: 1px;
  background: var(--c-green);
  rotate: 45deg;
}

.video-modal__close::after { rotate: -45deg; }

@media (hover: hover) {
  .video-modal__close:hover { background: var(--c-white); rotate: 90deg; }
}

body.is-modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .video-modal, .video-modal::backdrop { transition: none; }
}

.founder__video-caption {
  position: absolute;
  /* белая плашка под кадром: от низа кадра (697px) до низа блока (783px) — текст строго по центру */
  top: 697px;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 521px;
  height: 86px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  color: var(--c-green);
}

/* ---------- Общие: заголовок секции ---------- */
.section-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

/* ---------- Как проходят занятия ---------- */
.lessons {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.lessons__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
  margin: 31px 0 0 -1px;
  padding: 0;
  list-style: none;
}

.lesson {
  position: relative;
  height: 331px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--c-white);
}

.lesson--logic,
.lesson--result { border: 1px solid #d4d4d4; }

.lesson--goal { background: linear-gradient(180deg, #00b478 0%, #00a16c 52.6%, #00734d 83.9%, #004e34 100%); color: var(--c-white); }
.lesson--practice { background: linear-gradient(180deg, #ca9050 0%, #dea464 60%, #f5bc7d 100%); color: var(--c-white); }

.lesson__title {
  position: absolute;
  top: 24.7px;
  left: 25px;
  margin: 0;
  font-family: var(--ff-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
}

.lesson__text {
  position: absolute;
  top: 88.6px;
  left: 25px;
  width: 278px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
}

.lesson__text b { font-weight: 600; }

.lesson--logic .lesson__title,
.lesson--result .lesson__title { top: 163.85px; left: 23px; color: var(--c-green); }

.lesson--logic .lesson__text { top: 200.6px; left: 23px; width: 245px; }
.lesson--result .lesson__text { top: 200.5px; left: 23px; width: 268px; }
.lesson--practice .lesson__title { top: 25px; }

.lesson__img { position: absolute; max-width: none; }
.lesson--goal .lesson__img { top: 168px; left: 28px; width: 232px; height: 163px; }
.lesson--logic .lesson__img { top: 37px; left: 37px; width: 232px; height: 74px; }
.lesson--practice .lesson__img { top: 180px; left: 48px; width: 235px; height: 138px; }
.lesson--result .lesson__img { top: 17px; left: 21px; width: 289px; height: 134px; }

/* ---------- CTA: кнопка + плашка ---------- */
.cta {
  position: relative;
  width: 441px;
  margin: 55px auto 0;
}

.cta__btn {
  width: 441px;
  height: 77px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
}

.cta__badge {
  position: absolute;
  top: 68px;
  left: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 173px;
  height: 32px;
  padding-left: 3px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  font-family: var(--ff-display);
  font-size: 12px;
  color: var(--c-white);
  white-space: nowrap;
  transform: rotate(-3deg);
  pointer-events: none;
}

/* ---------- Преимущества ---------- */
.advantages {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 106px auto 0;
}

.advantages__grid {
  position: relative;
  height: 571px;
  margin-top: 31px;
}

.adv-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 318px;
  height: 571px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #008559 0%, #004e34 100%);
  color: var(--c-white);
}

.adv-main__lead {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 258px;
  font-family: var(--ff-display);
  font-size: 20px;
  line-height: 1.3;
}

.adv-main__accent { color: #f4ae60; }

.adv-main__text {
  position: absolute;
  top: 194px;
  left: 25px;
  width: 277px;
  font-size: 18px;
  line-height: normal;
}

.adv-main__img {
  position: absolute;
  top: 263px;
  left: 0;
  width: 318px;
  height: 308px;
}

.adv-card,
.adv-photo {
  position: absolute;
  width: 310px;
  height: 269px;
  border-radius: var(--r-xl);
}

.adv-card {
  padding: 25px 20px 0 25px;
  border: 1px solid var(--c-green);
}

.adv-card__title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-green);
}

.adv-card__text {
  font-size: 18px;
  line-height: normal;
}

.adv-card--a { top: 11px; left: 331px; }
.adv-card--a .adv-card__title { margin-left: 4px; }
.adv-card--a .adv-card__text { margin-top: 11px; }
.adv-photo--1 { top: 11px; left: 661px; }
.adv-card--c { top: 11px; left: 992px; }
.adv-card--c .adv-card__text { margin-top: 14px; }
.adv-card--d { top: 300px; left: 331px; }
.adv-card--d .adv-card__text { margin-top: 20px; margin-left: 2px; }
.adv-card--e { top: 300px; left: 662px; }
.adv-card--e .adv-card__text { margin-top: 40px; }
.adv-photo--2 { top: 300px; left: 992px; }

/* ---------- За 4 шага подберём программу ---------- */
.steps {
  width: min(1306px, 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.steps__inner {
  position: relative;
  height: 621px;
  border-radius: var(--r-xl);
  background: var(--c-green);
  text-align: center;
}

.steps__decor { position: absolute; max-width: none; pointer-events: none; }
.steps__decor--cat { top: 92px; left: -3px; width: 416px; height: 532px; }
.steps__decor--lantern { top: -4px; left: 1038px; width: 225px; height: 218px; }
.steps__decor--work { top: 170px; left: 361px; width: 102px; height: 53px; }
.steps__decor--travel { top: 308px; left: 964px; width: 106px; height: 49px; }
.steps__decor--heart { top: 402px; left: 903px; width: 118px; height: 111px; }

.steps__title {
  position: relative;
  margin: 0;
  padding-top: 180px;
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-white);
}

.steps__btn {
  position: relative;
  border: 0;
  cursor: pointer;
  width: 370px;
  height: 73px;
  margin-top: 29px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
}

/* ---------- Сравнение ---------- */
.compare {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.compare__accent { color: var(--c-green); }

.compare__wrap {
  margin: 41px 0 0 1px;
  overflow: hidden;
  border: 1px solid #5f5f5f;
  border-radius: var(--r-md);
  background: #f7f7f7;
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare__table th,
.compare__table td {
  padding: 0 0 0 40px;
  border-left: 1px solid #5f5f5f;
  border-top: 1px solid #5f5f5f;
  font-family: var(--ff-display);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.compare__table tr > :first-child { border-left: 0; width: 446px; }
.compare__table thead th,
.compare__table thead td { border-top: 0; height: 101px; }

.compare__table thead th {
  padding-top: 0;
  font-size: 17px;
  line-height: 1.3;
}

.compare__table thead th.compare__us {
  padding: 0 0 0 23px;
  background: var(--c-green);
}

.compare__table thead th:last-child { padding-left: 42px; }

.compare__table tbody tr { height: 70px; }
.compare__table tbody tr:nth-child(odd) { background: var(--c-white); }

.compare__table tbody th {
  font-size: 18px;
  line-height: 28px;
}

.compare__table tbody tr:nth-child(4) th,
.compare__table tbody tr:nth-child(5) th { line-height: 24px; }

.compare__mark,
.compare__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  mix-blend-mode: multiply;
}

/* ---------- Стоимость ---------- */
.pricing {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.plan {
  position: relative;
  height: 714px;
  overflow: hidden;
  border-radius: var(--r-xl);
  text-align: center;
}

.plan--solo { background: #ffeeca; color: #120f0f; }
.plan--group { background: var(--c-green); color: var(--c-white); }

.plan__kicker {
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
  font-family: var(--ff-display);
  font-size: 21px;
  line-height: normal;
}

.plan__title {
  position: absolute;
  top: 54px;
  left: 0;
  width: 100%;
  margin: 0;
  font-family: var(--ff-display);
  font-size: 33px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-green);
}

.plan--group .plan__title { color: var(--c-white); }

.plan__info {
  position: absolute;
  top: 114.8px;
  left: 0;
  width: 100%;
  font-size: 16px;
  line-height: 1.3;
}

.plan__info b { font-weight: 600; }
.plan--group .plan__info { color: #ededed; }

.plan__prices {
  position: absolute;
  top: 206px;
  left: 41px;
  width: 559px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 60px;
  padding: 0 20px 0 37px;
  border-radius: 64px;
  background: var(--c-white);
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 60px;
  color: var(--c-black);
  white-space: nowrap;
}

.plan__per {
  font-size: 14px;
  color: var(--c-gold);
}

.plan__price--big {
  display: block;
  height: 109px;
  padding-top: 16px;
  line-height: 1.3;
}

.plan__note {
  display: block;
  margin-top: 8px;
  font-family: var(--ff-text);
  font-size: 16px;
  line-height: 1.3;
  color: #120f0f;
  white-space: normal;
}

.plan__img { position: absolute; max-width: none; pointer-events: none; }
.plan--solo .plan__img { top: 465px; left: 205px; width: 231px; height: 249px; }
.plan--group .plan__img { top: 469px; left: 157px; width: 335px; height: 245px; }

.plan__btn {
  position: absolute;
  top: 605px;
  left: 41px;
  width: 559px;
  height: 86px;
  background: var(--c-green);
  color: var(--c-white);
  font-family: var(--ff-display);
  font-size: 16px;
}

.plan--group .plan__btn { background: var(--c-gold); }

@media (hover: hover) {
  .plan--solo .plan__btn:hover { background: #003826; }
}

/* ---------- Отзывы ---------- */
.reviews {
  position: relative;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 75px auto 0;
}

.reviews__inner {
  position: relative;
  height: 1139px;
  border-radius: var(--r-xl);
  background: var(--c-green);
}

.reviews__ring { position: absolute; max-width: none; pointer-events: none; }
/* верх кольца в макете уходит под карточки тарифов — обрезаем по их нижнему краю */
.reviews__ring--left { top: -259.2px; left: -69px; z-index: 1; width: 567px; height: 1137px; clip-path: inset(184.2px 0 0 0); }
.reviews__ring--right { top: -51px; left: 1125px; width: 246px; height: 278px; z-index: 1; }

.reviews__title {
  position: relative;
  margin: 0;
  padding-top: 45px;
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  color: var(--c-white);
}

.reviews__accent { color: var(--c-gold); }

.review {
  position: absolute;
  border-radius: 15px;
  background: var(--c-white);
  color: var(--c-black);
}

.review--a,
.review--b { width: 363px; height: 340px; top: 280.5px; transform: rotate(5.12deg); transform-origin: 0 0; }
.review--a { left: 95.3px; }
.review--b { left: 874.3px; }
.review--d { top: 722px; left: 606px; width: 633px; height: 281px; }

.review__title {
  position: absolute;
  margin: 0;
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--c-green);
}

.review__text {
  position: absolute;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

.review__avatar {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
}

.review__name {
  position: absolute;
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
}

.review--a .review__title { top: 59.1px; left: 18.2px; width: 316.4px; }
.review--a .review__text { top: 137.4px; left: 29.2px; width: 308.3px; }
.review--a .review__avatar { top: 255.4px; left: 56.7px; width: 52.2px; height: 52.2px; }
.review--a .review__name { top: 272.4px; left: 124px; }

.review--b .review__title { top: 55.8px; left: 33px; width: 297.7px; }
.review--b .review__text { top: 141.9px; left: 35.6px; width: 264.9px; }
.review--b .review__avatar { top: 261.9px; left: 28px; width: 50px; height: 50px; }
.review--b .review__name { top: 277px; left: 94px; }

.review--d .review__title { top: 24px; left: 50px; font-size: 28px; text-align: left; }
.review--d .review__text { top: 84px; left: 50px; width: 489px; text-align: left; }
.review--d .review__avatar { top: 195px; left: 54.5px; width: 54.3px; height: 54.3px; }
.review--d .review__name { top: 216.5px; left: 121px; }

.reviews__photo {
  position: absolute;
  top: 299px;
  left: 487px;
  width: 329px;
  height: 329px;
  border-radius: 50%;
}

.reviews__note {
  position: absolute;
  top: 732px;
  left: 66px;
  width: 465.4px;
  height: 358.9px;
  overflow: hidden;
  background: #ffeeca;
  transform: rotate(-6.17deg);
  transform-origin: 0 0;
}

.reviews__note-hanzi {
  position: absolute;
  top: 194.1px;
  left: 280.8px;
  width: 166.5px;
  height: 186.4px;
  max-width: none;
  opacity: 0.08;
}

.reviews__note-text {
  position: absolute;
  top: 58.7px;
  left: 47px;
  width: 365.6px;
  font-family: var(--ff-display);
  font-size: 31px;
  line-height: 1.2;
  text-align: center;
  color: var(--c-black);
}

.reviews__note-link {
  position: absolute;
  top: 245px;
  left: 118.3px;
  width: 222px;
  font-family: var(--ff-display);
  font-size: 31px;
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  color: var(--c-green);
}

.reviews__note-strokes { position: absolute; top: 765px; left: 121.9px; width: 23px; height: 22px; pointer-events: none; }
.reviews__note-underline { position: absolute; top: 982.9px; left: 216.2px; width: 227px; height: 38px; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.faq__title { line-height: 1.2; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

.faq__item {
  border-radius: var(--r-md);
  background: var(--c-white);
}

.faq__q {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90px;
  padding: 0 90px 0 42px;
  font-family: var(--ff-display);
  font-size: 24px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__icon {
  position: absolute;
  top: 21.5px;
  right: 20px;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: var(--c-green);
  transition: transform .25s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 22px;
  width: 3px;
  height: 23px;
  border-radius: 1.5px;
  background: var(--c-white);
}

.faq__icon::after { transform: rotate(90deg); }

.faq__item[open] .faq__icon { transform: rotate(45deg); }

@media (hover: hover) {
  .faq__q:hover .faq__icon { background: #00673f; }
}

/* у открытого вопроса заголовок ниже на 7px — ответ стоит как в макете,
   без отрицательного отступа (его обрезало плавное раскрытие) */
@media (min-width: 1024px) { .faq__item[open] .faq__q { min-height: 83px; padding-top: 7px; } }

.faq__a {
  padding: 0 68px 31px 42px;
  font-size: 18px;
  line-height: 1.3;
  color: #494949;
}

.faq__a p + p { margin-top: 23.4px; }

/* ---------- Утилиты ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Форма записи ---------- */
.lead {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.lead__inner {
  position: relative;
  height: 461px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--c-gold);
}

.lead__clouds { position: absolute; top: 307px; left: -14px; width: 486px; height: 210px; max-width: none; object-fit: cover; opacity: .45; pointer-events: none; }
.lead__photo { position: absolute; top: 0; left: 448px; width: 420px; height: 461px; max-width: none; }
.lead__stars { position: absolute; top: 324.8px; left: 409.6px; width: 60.6px; height: 65.2px; transform: rotate(163.59deg); pointer-events: none; }

.lead__info {
  position: absolute;
  top: 56px;
  left: 53px;
  color: var(--c-white);
}

.lead__title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.lead__text {
  width: 363px;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.1;
}

.lead__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
  font-size: 18px;
  line-height: 1.1;
}

.lead__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 28px;
}

.lead__form {
  position: absolute;
  top: 54px;
  left: 885px;
  width: 370px;
}

.lead__input {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 20px 0 35px;
  border: 0;
  border-radius: 55px;
  background: #f5f6f8;
  font-family: var(--ff-display);
  font-size: 14px;
  color: var(--c-black);
  outline: none;
  transition: box-shadow .2s ease;
}

.lead__input::placeholder { color: #909090; opacity: 1; }
.lead__input:focus { box-shadow: 0 0 0 2px var(--c-green); }
.lead__input.is-invalid { box-shadow: 0 0 0 2px #c62828; }

.lead__phone { position: relative; margin-top: 10px; }
.lead__input--phone { padding-left: 79px; }

.lead__country {
  position: absolute;
  top: 17px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.lead__country img { width: 38px; height: 25px; object-fit: cover; }
.lead__country::after {
  content: "";
  border: 5px solid transparent;
  border-top: 7px solid #909090;
  border-bottom: 0;
}

.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lead__consent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-size: 12px;
  line-height: 20px;
  color: var(--c-white);
  cursor: pointer;
}

.lead__consent input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }

.lead__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--c-white);
  border-radius: 3px;
  transition: background-color .2s ease;
}

.lead__consent input:checked + .lead__check {
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23004e34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.lead__consent input:focus-visible + .lead__check { outline: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.lead__consent.is-invalid .lead__check { border-color: #fff; box-shadow: 0 0 0 2px #c62828; }
.quiz__consent.is-invalid .lead__check { border-color: #c62828; }

.lead__policy { text-decoration: underline; }

.lead__submit {
  width: 370px;
  height: 73px;
  margin-top: 17px;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--ff-display);
  font-size: 14px;
  cursor: pointer;
  border: 0;
}

.lead__submit:disabled { opacity: .7; cursor: default; }

@media (hover: hover) {
  .lead__submit:not(:disabled):hover { background: #222; }
}

.lead__status {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
  color: var(--c-white);
}

.lead__status.is-error { color: #7a0c0c; }

.lead__contacts {
  position: absolute;
  top: 331px;
  left: 885px;
  width: 370px;
}

.lead__contacts-title {
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
  color: var(--c-black);
}

.lead__socials {
  position: absolute;
  top: 30px;
  left: 6px;
  display: flex;
  gap: 8.8px;
}

.lead__socials img { width: 43.8px; height: 43.9px; }

@media (hover: hover) {
  .lead__socials a { display: block; transition: transform .2s ease; }
  .lead__socials a:hover { transform: translateY(-2px); }
}

.lead__tel {
  position: absolute;
  top: 39px;
  left: 172px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 18px;
  line-height: normal;
  color: var(--c-black);
  white-space: nowrap;
}

/* ---------- Подвал ---------- */
.footer {
  margin-top: 90px;
  background: var(--c-green);
  color: var(--c-white);
}

.footer__inner {
  display: grid;
  grid-template-columns: 326px 1fr 1fr 1fr;
  column-gap: 40px;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 34px 0 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer__logo { width: 208px; height: 138px; margin-left: 24px; }
.footer__socials { margin: 0; }
.footer__cta { width: 253px; height: 41px; font-size: 16px; font-weight: 500; white-space: nowrap; }

.footer__heading {
  margin: 0 0 22px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.footer__list a { color: rgba(255, 255, 255, 0.85); }

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (hover: hover) {
  .footer a:not(.btn) { transition: color .2s ease; }
  .footer a:not(.btn):hover { color: var(--c-gold); }
}

/* ---------- Анимации ---------- */
/* Появление при прокрутке: отдельные свойства translate/scale не ломают повороты (transform) у карточек */
.reveal {
  opacity: 0;
  translate: 0 36px;
  transition:
    opacity .9s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms),
    translate .9s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms),
    scale .9s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms);
}

.reveal--zoom { translate: 0 20px; scale: .96; }
.reveal--left { translate: -40px 0; }
.reveal--right { translate: 40px 0; }

.reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }

/* Лёгкий подъём карточек при наведении — только после окончания появления (класс is-done) */
.reveal.is-done { --d: 0ms; transition: opacity .3s ease, translate .3s ease, scale .3s ease, box-shadow .3s ease; }

@media (hover: hover) {
  .program-card.is-done:hover,
  .lesson.is-done:hover,
  .plan.is-done:hover { translate: 0 -6px; box-shadow: 0 18px 40px rgba(0, 40, 26, 0.12); }
  .adv-card.is-done:hover { translate: 0 -4px; }
}

/* Смена таба — мягкое проявление */
.programs__panel:not([hidden]) { animation: panel-in .45s cubic-bezier(.22, .61, .36, 1); }
@keyframes panel-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* Плавное раскрытие ответов FAQ (где браузер поддерживает) */
:root { interpolate-size: allow-keywords; }
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .4s cubic-bezier(.22, .61, .36, 1), content-visibility .4s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; scale: none; transition: none; }
  .programs__panel:not([hidden]) { animation: none; }
  .faq__item::details-content { transition: none; }
}

/* =====================================================================
   Шаблонная страница программы (kids.html и др.): блоки 1–2 свои,
   остальные — общие фрагменты из src/partials
   ===================================================================== */
.crumbs {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 37px auto 0;
  font-size: 14px;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #787878;
}

.crumbs__list li + li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 12px 1px 0;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.crumbs__list [aria-current] { color: var(--c-black); }

@media (hover: hover) {
  .crumbs__list a { transition: color .2s ease; }
  .crumbs__list a:hover { color: var(--c-green); }
}

/* ----- Первый экран программы ----- */
.phero {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 37px auto 0;
}

.phero__inner {
  position: relative;
  height: 681px;
  padding: 52px 0 0 46px;
  border-radius: var(--r-xl);
  background: #e6d3bd;
}

.phero__content { width: 760px; }

.phero__title {
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.phero__lead {
  width: 513px;
  margin-top: 16px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

.phero__list {
  margin-top: 15px;
  font-size: 18px;
  line-height: 1.71;
}

.phero__list li {
  position: relative;
  padding-left: 31px;
}

.phero__list li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 4.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 8px no-repeat;
}

.phero__action {
  position: relative;
  display: inline-block;
  margin-top: 24px;
}

.phero__btn { width: 315px; }

.phero__badge {
  position: absolute;
  top: 64px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 183px;
  height: 25px;
  margin-left: -91.5px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  font-family: var(--ff-display);
  font-size: 12px;
  color: var(--c-white);
  white-space: nowrap;
  transform: rotate(-1.58deg);
  pointer-events: none;
}

.phero__art {
  position: absolute;
  top: 50px;
  left: 923px;
  width: 328px;
  height: 393px;
}

.phero__art img { width: 100%; height: 100%; }

/* превью программы из карточки на главной — квадрат в полном размере */
.phero__art--card {
  top: 52px;
  left: auto;
  right: 46px;
  width: 380px;
  height: 380px;
  overflow: hidden;
  border-radius: var(--r-xl);
}

/* ----- Наш подход ----- */
.approach {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 70px auto 0;
}

.approach__title { line-height: 1.2; text-align: left; }

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.approach-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-content: start;
  column-gap: 18px;
  min-height: 162px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--c-white);
}

.approach-card__icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid #ddd;
  border-radius: var(--r-sm);
  background: rgba(203, 203, 203, 0.35);
}

.approach-card__icon img { width: 36px; height: 36px; }

.approach-card__title {
  margin: -4px 0 0;
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 400;
  line-height: normal;
}

.approach-card__text {
  margin-top: 8px;
  font-size: 18px;
  line-height: normal;
}

.approach-card__accent { font-weight: 500; color: var(--c-green); }

.approach-card--visual {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  background: #e6d3bd;
}

.approach-card--visual .approach-card__title { position: relative; margin: 0; }
.approach-card--visual .approach-card__text { position: relative; max-width: 360px; margin-top: 12px; }

.approach-card__bg,
.approach-card__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Какие результаты вы получите ----- */
.results {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 90px auto 0;
}

.results__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: result;
}

.results__item {
  position: relative;
  min-height: 162px;
  padding: 88px 30px 25px;
  border-radius: var(--r-xl);
  background: var(--c-white);
  font-size: 21px;
  line-height: normal;
  counter-increment: result;
}

/* номер на «цветке» */
.results__item::before {
  content: counter(result);
  position: absolute;
  top: 14px;
  left: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 59px;
  background: url("../img/star-badge.svg") center / contain no-repeat;
  font-family: var(--ff-display);
  font-size: 24px;
  color: var(--c-white);
}

/* ----- Подпись на фото основателя в форме ----- */
.lead__caption {
  position: absolute;
  top: 405px;
  left: 453px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 12px;
  border-radius: var(--r-pill);
  background: rgba(203, 203, 203, 0.54);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--ff-display);
  font-size: 11px;
  line-height: 1.2;
  color: var(--c-white);
}

.lead__caption-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-gold);
}

/* ----- Подзаголовок «Как проходят занятия» ----- */
.lessons__sub {
  max-width: 892px;
  margin: 14px auto 0;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  color: #120f0f;
}

/* ---------- Элементы только для мобильной версии (на десктопе скрыты) ---------- */
.header__burger,
.programs__arrows,
.lessons__controls,
.compare__hint,
.steps__decor--exam { display: none; }

/* ---------- Мобильное меню: панель справа (макет «меню») ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 20, 13, 0);
  transition: background-color .35s ease;
}

.drawer[hidden] { display: none; }
.drawer.is-open { background: rgba(0, 20, 13, 0.35); }

.drawer__panel {
  display: flex;
  flex-direction: column;
  width: min(335px, 100% - 40px);
  height: 100%;
  padding: 20px 20px 32px;
  overflow-y: auto;
  background: var(--c-page);
  translate: 100% 0;
  transition: translate .4s cubic-bezier(.22, .61, .36, 1);
}

.drawer.is-open .drawer__panel { translate: 0 0; }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 37px;
  padding-left: 6px;
}

.drawer__logo img { width: 127px; height: auto; }

.drawer__close {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.drawer__close::before,
.drawer__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 26px;
  height: 2px;
  margin-top: -1px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  rotate: 45deg;
}

.drawer__close::after { rotate: -45deg; }

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 43px;
  padding-bottom: 43px;
  border-bottom: 1px solid var(--c-gold);
  font-size: 18px;
  line-height: 1.4;
}

.drawer__socials { display: flex; gap: 10px; margin-top: 15px; }

.drawer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--c-green);
}

/* иконки соцсетей — белые на зелёном */
.drawer__socials img:not(.drawer__vk) { filter: brightness(0) invert(1); }

.drawer__tel {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 19px;
  font-size: 18px;
}

.drawer__tel img { width: 25px; height: 25px; }

.drawer__cta {
  width: 100%;
  max-width: 283px;
  height: 56px;
  margin-top: 29px;
  font-family: var(--ff-display);
  font-size: 14px;
}

body.is-drawer-open { overflow: hidden; }

@media (hover: hover) {
  .drawer__nav a { transition: color .2s ease; }
  .drawer__nav a:hover { color: var(--c-green); }
}

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer__panel { transition: none; }
}

.adv-photo { display: block; overflow: hidden; }
.adv-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Стрелки слайдеров */
.slider-arrows { display: flex; gap: 10.6px; }

.slider-arrows__btn {
  width: 42.67px;
  height: 42.67px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23004e34' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px 15px no-repeat;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.slider-arrows__btn--prev {
  background-color: var(--c-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M8 2L2 8l6 6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.programs__arrows .slider-arrows__btn--prev { background-color: var(--c-gold); }
.slider-arrows__btn:active { transform: scale(.94); }

/* ---------- 1024–1439: десктоп масштабируется целиком (до планшетного макета) ---------- */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .header, main, .footer { zoom: var(--page-zoom, 1); }
}

/* =====================================================================
   Мобильная версия (макет 393 px, iPhone 16). До 1023 px — она же,
   колонка не шире 480 px. Декор внутри карточек масштабируется от ширины
   карточки: --u = 1px макета (карточки 361 px = 100cqw).
   ===================================================================== */
@media (max-width: 1023.98px) {
  :root {
    --u: calc(100cqw / 361);
    --col: min(480px, 100% - 32px);
    --edge: max(16px, (100vw - 480px) / 2); /* поле от края экрана до колонки */
  }

  html { scroll-padding-top: 84px; }

  .header, .hero, .method, .programs, .founder, .lessons, .advantages,
  .steps, .compare, .pricing, .reviews, .faq, .lead { width: var(--col); }

  .section-title,
  .method__title,
  .programs__title,
  .lessons__title,
  .advantages__title,
  .compare__title,
  .pricing__title,
  .faq__title {
    width: auto;
    font-family: var(--ff-display);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
  }

  .section-title br,
  .founder__fact br,
  .lesson__title br { display: none; }

  /* ----- Шапка + бургер ----- */
  .header { top: 10px; margin-top: 10px; }

  .header__bar {
    flex-wrap: wrap;
    height: auto;
    min-height: 58px;
    padding: 4px 4px 4px 11px;
    border-radius: var(--r-pill);
    transition: background-color .35s ease, box-shadow .35s ease, border-radius .35s ease;
  }

  .header__logo { align-self: center; margin-top: 0; }
  .header__logo img { width: 127px; }

  .header__burger {
    position: relative;
    display: block;
    width: 49px;
    height: 49px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c-green);
    cursor: pointer;
  }

  .header__burger-lines,
  .header__burger-lines::before,
  .header__burger-lines::after {
    position: absolute;
    left: 13px;
    width: 23px;
    height: 2px;
    border-radius: 1px;
    background: var(--c-gold);
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
  }

  .header__burger-lines { top: 23.5px; }
  .header__burger-lines::before,
  .header__burger-lines::after { content: ""; left: 0; }
  .header__burger-lines::before { top: -7px; }
  .header__burger-lines::after { top: 7px; }

  /* в шапке на телефоне только логотип и бургер, разделы — в панели .drawer */
  .header__nav,
  .header__socials,
  .header__cta { display: none; }

  /* ----- Первый экран ----- */
  .hero { margin-top: 10px; padding-left: 0; }

  .hero__inner {
    height: auto;
    overflow: hidden;
    border-radius: var(--r-md);
    container-type: inline-size;
  }

  .hero__content { padding: 40px 0 0; }

  .hero__title {
    width: auto;
    padding: 0 10px 0 16px;
    font-size: 29px;
  }

  .hero__text {
    width: auto;
    max-width: 318px;
    margin: 11px 16px 0;
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
    margin: 42px 11.5px 0;
  }

  .hero__actions .btn--gold,
  .hero__actions .btn--white { width: 100%; }

  .btn--lg { height: 55px; font-size: 14px; }

  .hero__badge {
    top: -20px;
    left: 50%;
    width: 157px;
    height: 25px;
    margin-left: -78.5px;
    padding: 0;
    font-size: 10px;
    transform: rotate(-2.33deg);
  }

  /* иллюстрация: блок 361×401 макета, всё внутри — в долях ширины */
  .hero__inner::after {
    content: "";
    display: block;
    height: calc(401 * var(--u) + 15px);
  }

  .hero__bg-hanzi { top: calc(15px + 434px + 0px); }

  .hero__bg-hanzi,
  .hero__temple,
  .hero__strip,
  .hero__flags,
  .hero__founder { top: auto; bottom: 0; }

  .hero__bg-hanzi { left: calc(var(--ax, 0px) + 35 * var(--u)); bottom: calc(240 * var(--u)); width: calc(199 * var(--u)); height: auto; opacity: .55; }
  .hero__temple { left: calc(var(--ax, 0px) + 1 * var(--u)); bottom: calc(-38 * var(--u)); width: calc(299 * var(--u)); height: calc(352 * var(--u)); }
  .hero__strip { left: calc(var(--ax, 0px) + 287 * var(--u)); right: auto; bottom: calc(-33 * var(--u)); width: calc(75 * var(--u)); height: calc(396 * var(--u)); border-radius: calc(18.6 * var(--u)); }
  .hero__strip-text { top: calc(140 * var(--u)); left: calc(23 * var(--u)); width: calc(30 * var(--u)); height: auto; opacity: .8; }
  .hero__flags { left: calc(var(--ax, 0px) + 263 * var(--u)); bottom: calc(226 * var(--u)); width: calc(98 * var(--u)); height: auto; }
  .hero__founder { left: calc(var(--ax, 0px) + 12 * var(--u)); bottom: calc(-10 * var(--u)); width: calc(330 * var(--u)); height: auto; clip-path: none; }

  /* в мобильном макете плашки с цифрами нет */
  .stats { display: none; }

  /* ----- Авторская методика ----- */
  .method { margin-top: 50px; }

  .method__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .method__item {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    column-gap: 22px;
    margin: 0 !important;
    padding: 0;
  }

  /* в мобильном макете первым идёт «Педагог-переводчик» */
  .method__item:nth-child(2) { order: -1; }

  .method__icon,
  .method__icon--2,
  .method__item:nth-child(3) .method__icon {
    position: relative;
    top: auto;
    left: auto;
    width: 70px;
    height: 70px;
  }

  .method__item picture { position: relative; }

  .method__item picture::after {
    content: "";
    position: absolute;
    top: 55px;
    left: 59px;
    width: 19px;
    height: 19px;
    background: url("../img/m/check.svg") center / contain no-repeat;
  }

  .method__item-title { max-width: 261px; font-family: var(--ff-text); font-size: 18px; font-weight: 600; line-height: normal; }
  .method__item:nth-child(1) .method__item-title { max-width: 208px; }
  .method__item:nth-child(3) .method__item-title { max-width: 140px; }

  .method__item-text {
    grid-column: 1 / -1;
    max-width: none !important;
    margin-top: 15px;
    font-size: 14px;
    line-height: normal;
  }

  .method__book { display: none; }

  .method__summary {
    container-type: inline-size;
    height: auto;
    min-height: 161px;
    margin-top: 30px;
    padding: 0 0 20px;
    background: var(--c-green);
  }

  .method__summary::before,
  .method__summary::after {
    content: "";
    position: absolute;
    background: no-repeat center / contain;
    pointer-events: none;
  }

  .method__summary::before {
    top: calc(-26 * var(--u));
    left: calc(224 * var(--u));
    width: calc(230 * var(--u));
    height: calc(230 * var(--u));
    background-image: url("../img/m/summary-scroll.webp");
  }

  .method__summary::after {
    top: calc(22 * var(--u));
    left: calc(280 * var(--u));
    width: calc(106 * var(--u));
    height: calc(128 * var(--u));
    background-image: url("../img/m/summary-flag.webp");
  }

  .method__summary-badge {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    display: inline-block;
    margin: 20px 0 0 20px;
    padding: 2px 11px 0;
  }

  .method__summary-text {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    display: block;
    width: calc(250 * var(--u));
    margin: 10px 0 0 20px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.25;
  }

  /* ----- Программы ----- */
  .programs { margin-top: 51px; }

  .programs__title { max-width: 334px; }

  .programs__arrows {
    display: flex;
    justify-content: flex-end;
    margin-top: -1px;
  }

  .programs__tabs {
    gap: 10px;
    justify-content: flex-start;
    height: auto;
    margin: 20px calc(-1 * var(--edge)) 0 0;
    padding: 0 var(--edge) 2px 0;
    overflow-x: auto;
    border-radius: 0;
    background: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .programs__tabs::-webkit-scrollbar { display: none; }

  .programs__tab {
    flex: 0 0 176px;
    width: 176px;
    height: 48px;
    padding: 0 10px;
    border-radius: var(--r-sm);
    background: var(--c-white);
    font-size: 16px;
    line-height: normal;
    white-space: normal;
    scroll-snap-align: start;
  }

  .programs__panel,
  .programs__panel--wide {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }

  .program-card { height: 195.5px; border-radius: var(--r-md); }

  .program-card__tag { top: 13.3px; left: 13.4px; gap: 4.3px; }
  .program-card__flag { width: 37.7px; height: 20.6px; border-radius: 2.5px; }
  .program-card__label { padding: 4.2px 8.4px; font-size: 10px; }

  .program-card__title,
  .program-card--wide .program-card__title {
    top: 125px;
    left: 15px;
    max-width: calc(100% - 175px);
    font-size: 18px;
  }

  .program-card--wide .program-card__title { top: 108px; font-size: 15px; }
  .program-card--wide .program-card__title br { display: none; }

  .program-card__more {
    top: 157px;
    left: 15px;
    gap: 14.8px;
    font-size: 14px;
  }

  .program-card__img {
    top: 15.9px;
    right: 15.9px;
    width: 123.5px;
    height: 123.5px;
  }

  /* ----- Об основателе ----- */
  .founder { margin-top: 60px; }

  .founder__clip {
    top: -24px;
    right: 36px;
    left: auto;
    width: 54px;
    height: auto;
  }

  .founder__inner {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 20px 16px 16px;
    border-radius: var(--r-md);
  }

  .founder__title { order: 1; max-width: 280px; padding-left: 4px; font-size: 21px; }
  .founder__motto { order: 2; }
  .founder__video { order: 3; }
  .founder__name { order: 4; }
  .founder__facts { order: 5; }
  .founder__collage { order: 6; }
  .founder__more { order: 7; }

  .founder__motto {
    width: auto;
    height: auto;
    min-height: 105px;
    margin: 16px -1px 0;
    padding: 15px 15px 16px;
    border-radius: var(--r-md);
  }

  .founder__motto-hanzi { top: 18px; right: 18px; left: auto; width: 74px; height: auto; }

  .founder__badge {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    width: auto;
    height: 24px;
    padding: 2px 26px 0 16px;
    font-size: 16px;
  }

  .founder__motto-text {
    position: relative;
    top: auto;
    left: auto;
    max-width: 279px;
    margin-top: 6px;
    font-size: 16px;
    white-space: normal;
  }

  .founder__video {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    margin: 21px 0 0;
    padding-bottom: 47px;
  }

  .founder__video::before {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 156px;
    border-radius: var(--r-frame);
  }

  .founder__video-img {
    width: 100%;
    height: auto;
    aspect-ratio: 329 / 380;
    border: 6.5px solid var(--c-white);
    border-radius: var(--r-frame);
    object-fit: cover;
    transform: rotate(.15deg);
  }

  .founder__play {
    top: 6.5px;
    left: 6.5px;
    width: calc(100% - 13px);
    height: calc(100% - 47px - 13px);
    border-radius: var(--r-sm);
    background: url("../img/m/play.svg") center 54% / 84px no-repeat;
  }

  .founder__play-ring {
    top: calc(54% - 42px);
    left: calc(50% - 42px);
    width: 84px;
    height: 84px;
  }

  @media (hover: hover) {
    .founder__play:hover { background-color: rgba(0, 0, 0, 0.12); }
  }

  .founder__video-caption {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 47px;
    padding: 0 30px;
    font-size: 12px;
  }

  .founder__video-caption br { display: none; }

  .founder__name { margin-top: 30px; font-size: 18px; }

  .founder__facts { width: auto; }

  .founder__fact {
    padding: 22px 0 15px 36px;
    font-size: 16px;
    line-height: normal;
  }

  .founder__fact:first-child { padding-top: 19px; }
  .founder__fact::before { top: 17px; left: 0; font-family: var(--ff-display); font-size: 21px; }
  .founder__fact:first-child::before { top: 14px; }

  .founder__collage {
    position: static;
    width: 100%;
    max-width: 330px;
    height: auto;
    margin: 17px 0 0;
  }

  .founder__more {
    position: static;
    width: 100%;
    height: 42px;
    margin-top: 17px;
    font-size: 14px;
  }

  /* ----- Как проходят занятия: слайдер ----- */
  .lessons { margin-top: 50px; }

  .lessons__title { max-width: 310px; }

  .lessons__list {
    display: flex;
    gap: 15px;
    margin: 20px calc(-1 * var(--edge)) 0;
    padding: 0 var(--edge);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .lessons__list::-webkit-scrollbar { display: none; }

  .lesson {
    flex: 0 0 311px;
    border-radius: var(--r-md);
    scroll-snap-align: start;
  }

  .lesson__title { font-size: 18px; }
  .lesson--goal .lesson__title { top: 20px; left: 21px; }
  .lesson--goal .lesson__text { top: 64px; left: 20px; }
  .lesson--logic .lesson__title,
  .lesson--result .lesson__title { top: 166px; left: 19px; }
  .lesson--logic .lesson__text,
  .lesson--result .lesson__text { top: 204px; left: 19px; }

  .lessons__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
  }

  .lessons__dots { display: flex; gap: 8px; }

  .lessons__dots span {
    width: 10px;
    height: 10px;
    border: 1px solid var(--c-green);
    border-radius: 50%;
    transition: background-color .3s ease;
  }

  .lessons__dots span.is-active { background: var(--c-green); }

  .cta { width: 100%; max-width: 338px; margin-top: 20px; }

  .cta__btn { width: 100%; height: 55px; font-size: 14px; }

  .cta__badge {
    top: 46px;
    left: 50%;
    width: 153px;
    height: 25px;
    margin-left: -76.5px;
    padding: 0;
    font-size: 10px;
  }

  /* ----- Преимущества ----- */
  .advantages { margin-top: 70px; }

  .advantages__grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto;
    margin-top: 20px;
  }

  .adv-main,
  .adv-card,
  .adv-photo {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: auto;
    height: auto;
    border-radius: var(--r-md);
  }

  .adv-card--a { order: 1; }
  .adv-photo--1 { order: 2; aspect-ratio: 360 / 205; }
  .adv-card--c { order: 3; }
  .adv-main { order: 4; }
  .adv-card--d { order: 5; }
  .adv-card--e { order: 6; }
  .adv-photo--2 { display: none; }

  .adv-card { min-height: 145px; padding: 20px 20px 20px 19px; }

  .adv-card__title,
  .adv-card--a .adv-card__title { margin: 0; font-size: 18px; }

  .adv-card__title br { display: none; }

  .adv-card__text,
  .adv-card--a .adv-card__text,
  .adv-card--c .adv-card__text,
  .adv-card--d .adv-card__text,
  .adv-card--e .adv-card__text {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.13;
  }

  .adv-card--d .adv-card__title { max-width: 270px; }
  .adv-card--e .adv-card__title { max-width: 190px; }

  .adv-main {
    container-type: inline-size;
    min-height: 512px;
    padding: 20px 0 0;
    background: linear-gradient(180deg, #008558 0%, #014e34 100%);
  }

  .adv-main__lead,
  .adv-main__text {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    width: auto;
    max-width: 313px;
  }

  .adv-main__lead { max-width: 288px; margin: 0 20px; font-size: 18px; }
  .adv-main__text { margin: 12px 20px 0; }

  .adv-main::before {
    content: "学";
    position: absolute;
    top: calc(319 * var(--u));
    left: 50%;
    font-family: "Hanzi", var(--ff-display);
    font-size: calc(246 * var(--u));
    font-weight: 500;
    line-height: 1.3;
    color: #006341;
    transform: translateX(-50%) rotate(90deg);
    pointer-events: none;
  }

  .adv-main__img {
    position: absolute;
    top: auto;
    bottom: 0;
    left: calc(10 * var(--u));
    width: calc(351 * var(--u));
    height: auto;
  }

  /* ----- За 4 шага ----- */
  .steps { margin-top: 50px; }

  .steps__inner {
    container-type: inline-size;
    height: 621px;
    overflow: hidden;
    border-radius: var(--r-md);
  }

  .steps__title {
    padding-top: 155px;
    font-size: 24px;
  }

  .steps__btn {
    width: 262px;
    height: 61px;
    margin-top: 17px;
    font-size: 14px;
  }

  .steps__decor--cat { top: 358px; left: calc(-7 * var(--u)); width: 191px; height: 280px; border-radius: 40px; }
  .steps__decor--lantern { top: 0; left: auto; right: calc(7.7 * var(--u)); width: 141px; height: 141px; }
  .steps__decor--work { top: 84px; left: calc(46 * var(--u)); width: 84px; height: auto; }
  .steps__decor--travel { top: 438px; left: auto; right: calc(22 * var(--u)); width: 86px; height: auto; }
  .steps__decor--heart { top: 527px; left: auto; right: calc(52 * var(--u)); width: 88px; height: 86px; transform: rotate(-13.96deg); }

  .steps__decor--exam {
    top: 393.6px;
    left: auto;
    right: calc(80 * var(--u));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 30px;
    border-radius: var(--r-pill);
    background: #ffc0c1;
    font-family: var(--ff-display), "Hanzi";
    font-size: 14px;
    font-weight: 500;
    color: var(--c-white);
  }

  /* ----- Сравнение: таблица листается по горизонтали ----- */
  .compare { margin-top: 50px; }

  .compare__title { max-width: 333px; }

  .compare__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin-top: 14px;
    overflow: hidden;
    font-size: 13px;
    color: #5f5f5f;
    transition: opacity .4s ease, height .4s ease, margin .4s ease;
  }

  .compare__hand { flex-shrink: 0; animation: swipe-hint 2.2s ease-in-out infinite; }

  .compare__hint.is-hidden { height: 0; margin-top: 0; opacity: 0; }

  @keyframes swipe-hint {
    0%, 100% { transform: translateX(6px) rotate(0deg); }
    50% { transform: translateX(-8px) rotate(-8deg); }
  }

  .compare__wrap {
    margin: 10px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .compare__table { width: 585px; min-width: 585px; }

  .compare__table th,
  .compare__table td {
    padding: 8px 8px 8px 12px;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.2;
  }

  .compare__table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 175px;
    padding-left: 9px;
    background: #f7f7f7;
  }

  .compare__table tbody tr:nth-child(odd) > :first-child { background: var(--c-white); }

  .compare__table thead th,
  .compare__table thead td { height: 59px; }

  .compare__table thead th { font-size: 10px; font-weight: 400; }
  .compare__table thead th:nth-child(2) { width: 110px; }

  .compare__table thead th.compare__us { padding: 0 0 0 17px; }
  .compare__table thead th.compare__us img { width: 90px; }

  .compare__table thead th:last-child { padding-left: 12px; }

  .compare__table tbody tr { height: 49px; }

  .compare__table tbody th,
  .compare__table tbody tr:nth-child(4) th,
  .compare__table tbody tr:nth-child(5) th { font-size: 11px; line-height: 1.2; }

  .compare__table tbody th br { display: none; }

  .compare__mark,
  .compare__no { width: 22px; height: 22px; }

  .compare__no img { width: 15px; height: 15px; }

  /* ----- Стоимость ----- */
  .pricing { margin-top: 50px; }

  .pricing__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 21px 10px 15px;
    border-radius: var(--r-md);
  }

  .plan__kicker,
  .plan__title,
  .plan__info,
  .plan__prices,
  .plan__btn {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
  }

  .plan__kicker { font-size: 12px; }
  .plan__title { margin-top: 6px; font-size: 18px; }

  .plan__info {
    max-width: 317px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  .plan__btn-extra { display: none; }

  .plan__prices {
    width: 100%;
    gap: 10px;
    margin: 16px 0 73px;
  }

  .plan--group .plan__prices { margin-bottom: 106px; }

  .plan__price,
  .plan__price--big {
    display: block;
    height: auto;
    min-height: 40px;
    padding: 10px 20px 10px 30px;
    border-radius: var(--r-pill);
    font-size: 16px;
    line-height: 1.2;
    white-space: normal;
  }

  .plan__per {
    display: block;
    margin-top: 3px;
    font-size: 12px;
  }

  .plan__price--big { padding-top: 10px; padding-bottom: 12px; border-radius: var(--r-pill); }

  .plan__note {
    margin-top: 6px;
    font-size: 12px;
  }

  .plan__note br { display: none; }

  .plan__img { z-index: 0; }
  .plan--solo .plan__img { top: auto; bottom: -54px; left: calc(50% - 63.5px); width: 151px; height: 199px; }
  .plan--group .plan__img { top: auto; bottom: -72px; left: calc(50% - 124.5px); width: 248px; height: 266px; }

  .plan__btn {
    width: 100%;
    height: 55px;
    padding: 0 12px;
    font-size: 13px;
  }

  /* ----- Отзывы ----- */
  .reviews { margin-top: 50px; }

  .reviews__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 0 0 42px;
    overflow: hidden;
    border-radius: var(--r-md);
    container-type: inline-size;
  }

  .reviews { overflow: clip; }

  .reviews__ring--left {
    top: -450px;
    left: auto;
    right: -440px;
    width: 567px;
    height: 1137px;
    clip-path: none;
    opacity: .9;
    transform: scale(.82);
  }

  .reviews__ring--right { top: 590px; left: auto; right: -130px; width: 200px; height: auto; }

  .reviews__title {
    max-width: 327px;
    padding: 30px 0 0;
    font-size: 21px;
  }


  .review,
  .review--a,
  .review--b,
  .review--d {
    position: relative;
    top: auto;
    left: auto;
    flex-shrink: 0;
    width: 282px;
    height: 212px;
    border-radius: var(--r-frame);
    transform-origin: 50% 50%;
  }

  .review--a { order: 1; margin-top: 25px; left: 0; transform: rotate(5deg); }
  .review--d { order: 2; height: 273px; margin-top: 32px; }
  .review--b { order: 3; margin-top: 32px; left: 0; transform: rotate(5deg); }
  .reviews__photo { order: 4; }
  .reviews__note { order: 5; }

  .review__title,
  .review--a .review__title,
  .review--b .review__title,
  .review--d .review__title {
    top: 20px;
    left: 36px;
    width: 210px;
    font-size: 16px;
    text-align: center;
  }

  .review__text,
  .review--a .review__text,
  .review--b .review__text {
    top: 69px;
    left: 21px;
    width: 240px;
    font-size: 14px;
  }

  .review--d .review__text { top: 54px; left: 15px; width: 252px; text-align: center; }

  .review__avatar,
  .review--a .review__avatar,
  .review--b .review__avatar,
  .review--d .review__avatar { top: 153px; left: 85px; width: 38.8px; height: 38.8px; }

  .review__name,
  .review--a .review__name,
  .review--b .review__name,
  .review--d .review__name { top: 164.8px; left: 132px; font-size: 12px; }

  .review--d .review__avatar { top: 213px; }
  .review--d .review__name { top: 224.9px; }

  .reviews__photo {
    position: relative;
    top: auto;
    left: auto;
    width: 224px;
    height: 224px;
    margin-top: 32px;
  }

  .reviews__note {
    position: relative;
    top: auto;
    left: auto;
    width: 288.7px;
    height: 194.9px;
    margin-top: 47px;
    transform: rotate(-6.17deg);
    transform-origin: 50% 50%;
  }

  .reviews__note-hanzi { top: 95px; left: 190px; width: 88px; height: auto; opacity: .06; transform: rotate(-11deg); }

  .reviews__note-text {
    top: 38px;
    left: 20px;
    width: 248px;
    font-size: 20px;
  }

  .reviews__note-link {
    top: 139px;
    left: 74px;
    width: 140px;
    font-size: 19px;
  }

  .reviews__note-strokes,
  .reviews__note-underline { display: none; }

  .reviews__note-link::after {
    content: "";
    position: absolute;
    /* подчёркивание целиком под словом, не наезжает на буквы */
    top: calc(100% + 2px);
    left: 0;
    width: 140px;
    height: 22px;
    background: url("../img/reviews/note-underline.svg") center / contain no-repeat;
  }

  /* ----- FAQ ----- */
  .faq { margin-top: 50px; }

  .faq__list { gap: 15px; margin-top: 39px; }

  .faq__q {
    min-height: 74px;
    padding: 14px 68px 14px 20px;
    font-size: 16px;
  }

  .faq__icon {
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
  }

  .faq__icon::before,
  .faq__icon::after { top: 9px; left: 16px; width: 2px; height: 16px; }

  .faq__a {
    margin-top: 14px;
    padding: 0 20px 20px;
    font-size: 14px;
  }

  .faq__a p + p { margin-top: 18px; }

  /* ----- Форма записи ----- */
  .lead { margin-top: 50px; }

  .lead__inner {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 20px 20px 397px;
    border-radius: var(--r-md);
  }

  .lead__info,
  .lead__form,
  .lead__contacts {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    width: auto;
  }

  .lead__title { font-size: 21px; white-space: normal; }
  .lead__title br { display: inline; }

  .lead__text { width: auto; max-width: 307px; margin-top: 11px; font-size: 14px; }

  .lead__list { gap: 11px; margin-top: 19px; font-size: 14px; }
  .lead__list li { gap: 12px; min-height: 19px; }
  .lead__list img { width: 19px; height: 19px; }

  .lead__form { margin-top: 32px; }

  /* 16px — иначе iPhone увеличивает страницу при нажатии на поле */
  .lead__input { padding-left: 34px; font-size: 16px; }
  .lead__input--phone { padding-left: 69px; }
  .lead__country { top: 21px; left: 18px; }
  .lead__country img { width: 27px; height: 18px; }

  .lead__consent { margin-top: 15px; font-size: 10px; }

  .lead__submit { width: 100%; margin-top: 15px; }

  .lead__contacts { margin-top: 15px; }

  .lead__contacts-title { font-size: 14px; }

  .lead__socials {
    position: static;
    justify-content: center;
    margin-top: 20px;
  }

  .lead__tel {
    position: static;
    justify-content: center;
    gap: 13px;
    margin-top: 15px;
    font-size: 16px;
  }

  .lead__tel img { width: 17px; height: 17px; }

  /* фото, облака и звёзды привязаны к центру карточки — на любой ширине стоят по центру */
  .lead__photo { top: auto; bottom: 0; left: calc(50% - 160px); width: 344px; height: 377px; }
  .lead__clouds { top: auto; bottom: 45px; left: calc(50% - 305.5px); width: 692px; height: 300px; }
  .lead__stars { top: auto; bottom: 200px; left: calc(50% + 110px); }

  /* ----- Подвал: всё по одной вертикали 16 px ----- */
  .footer { margin-top: 50px; }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 28px;
    width: var(--col);
    padding: 30px 0 30px;
  }

  .footer__brand { grid-column: 1 / -1; gap: 14px; }

  .footer__logo { width: 210px; height: auto; margin-left: 0; }

  .footer__cta { order: 2; width: 253px; }
  .footer__socials { order: 3; margin-top: 20px; }

  .footer__heading { margin-bottom: 11px; font-size: 14px; font-weight: 400; }

  .footer__list { gap: 8px; font-size: 14px; font-weight: 300; }

  .footer__col:first-of-type .footer__list li {
    position: relative;
    padding-left: 11px;
  }

  .footer__col:first-of-type .footer__list li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-gold);
  }

  .footer__col:last-of-type { grid-column: 1 / -1; }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
    padding-top: 20px;
    font-size: 12px;
  }
}

/* Совсем узкие телефоны (до 374 px) */
@media (max-width: 374.98px) {
  /* «ОНЛАЙН-ШКОЛА» помещается в одну строку и на внешнем экране Galaxy Fold (344 px) */
  .hero__title { font-size: min(29px, (100vw - 58px) / 11.3); }
  .program-card__img { width: 108px; height: 108px; }
  .program-card__title { max-width: calc(100% - 150px); }
}

@media (prefers-reduced-motion: reduce) {
  .compare__hand { animation: none; }
  .header__burger-lines, .header__burger-lines::before, .header__burger-lines::after { transition: none; }
}

/* =====================================================================
   Планшет 600–1023 px: Galaxy Z Fold в раскрытом виде (~690×840,
   и горизонтально ~840), iPad вертикально. Слой поверх мобильной версии:
   две колонки там, где мобильный блок стал бы растянутым и пустым.
   ===================================================================== */
@media (min-width: 600px) and (max-width: 1023.98px) {
  :root {
    --col: min(100% - 48px, 920px);
    --edge: max(24px, (100vw - 920px) / 2);
  }

  /* шапка: бургер + кнопка записи всегда на виду */
  .header__bar { padding-left: 16px; }
  .header__logo img { width: 150px; }

  /* ----- первый экран: текст слева, иллюстрация справа ----- */
  .hero__inner {
    --u: calc(48cqw / 361);
    --ax: 52cqw;
    display: flex;
    align-items: flex-start;
    padding-bottom: 40px;
  }

  /* распорка справа: высота иллюстрации */
  .hero__inner::after { flex: 0 0 0; height: calc(401 * var(--u) + 20px); }

  .hero__content { position: relative; z-index: 6; width: 54%; padding-top: 44px; }
  .hero__title { padding-left: 32px; font-size: clamp(28px, 4.2cqw, 38px); }
  .hero__text { max-width: 360px; margin-left: 32px; font-size: 17px; }
  .hero__actions { max-width: 340px; margin: 44px 0 0 28px; }

  /* ----- методика: список слева, парящая книга справа ----- */
  .method__inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 40%);
    column-gap: 24px;
  }

  .method__title,
  .method__summary { grid-column: 1 / -1; }

  .method__list { grid-column: 1; }

  .method__book {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    margin-top: 20px;
    zoom: .62;
  }

  @media (min-width: 800px) {
    .method__book { zoom: .74; }
  }

  .method__item-text { font-size: 15px; }

  /* «Итог»: декор у правого края в натуральном размере */
  .method__summary { --u: 1px; }
  .method__summary::before { left: auto; right: -93px; }
  .method__summary::after { left: auto; right: -25px; }
  .method__summary-text { width: auto; max-width: calc(100% - 180px); }

  /* ----- программы: табы в ряд, карточки в две колонки ----- */
  .programs__title { max-width: none; }
  .programs__arrows { display: none; }

  .programs__tabs { margin-right: 0; padding-right: 0; overflow: visible; }
  .programs__tab { flex: 1 1 0; width: auto; }

  .programs__panel,
  .programs__panel--wide { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* ----- основатель: факты слева, видео справа ----- */
  .founder__inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 44%);
    grid-template-areas:
      "title   title"
      "motto   motto"
      "name    video"
      "facts   video"
      "collage video"
      "more    video";
    grid-template-rows: auto auto auto auto auto 1fr;
    column-gap: 28px;
    padding: 28px 28px 28px;
  }

  .founder__title { grid-area: title; max-width: none; }
  .founder__motto { grid-area: motto; justify-self: start; width: min(100%, 520px); }
  .founder__name { grid-area: name; margin-top: 28px; }
  .founder__facts { grid-area: facts; }
  .founder__collage { grid-area: collage; }
  .founder__more { grid-area: more; align-self: start; max-width: 360px; }
  .founder__video { grid-area: video; align-self: start; margin-top: 28px; }

  /* ----- преимущества: две колонки, главная карточка на всю высоту справа ----- */
  .advantages__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .adv-card--a { grid-area: 1 / 1; }
  .adv-photo--1 { grid-area: 1 / 2; aspect-ratio: auto; }
  .adv-card--c { grid-area: 2 / 1; }
  .adv-card--d { grid-area: 3 / 1; }
  .adv-card--e { grid-area: 4 / 1; }
  .adv-main { grid-area: 2 / 2 / 5 / 3; min-height: 500px; }

  /* ----- 4 шага: декор держится у краёв карточки ----- */
  .steps__inner { --u: 1px; }
  .steps__decor--cat { width: 220px; height: 322px; top: 299px; }
  .steps__decor--lantern { right: 40px; }
  .steps__decor--work { left: 70px; }
  .steps__decor--exam { right: 140px; }
  .steps__decor--travel { right: 60px; }
  .steps__decor--heart { right: 100px; }

  /* ----- сравнение: таблица целиком, без прокрутки ----- */
  .compare__title { max-width: none; }
  .compare__hint { display: none; }
  .compare__table { width: 100%; }
  .compare__table tr > :first-child { width: 34%; }
  .compare__table th,
  .compare__table td,
  .compare__table tbody th,
  .compare__table tbody tr:nth-child(4) th,
  .compare__table tbody tr:nth-child(5) th { font-size: 13px; }
  .compare__table thead th { font-size: 12px; }

  /* ----- стоимость: тарифы рядом ----- */
  .pricing__cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .plan__btn { margin-top: auto; }

  /* ----- отзывы: сетка 2×2 ----- */
  .reviews__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: start;
    row-gap: 32px;
    padding: 0 16px 44px;
  }

  .reviews__title { grid-column: 1 / -1; max-width: 560px; }
  .review--a,
  .review--b,
  .review--d { left: 0; margin-top: 0; }
  .review--a { grid-area: 2 / 1; margin-top: 10px; }
  .review--d { grid-area: 2 / 2; }
  .review--b { grid-area: 3 / 1; margin-top: 10px; }
  .reviews__photo { grid-area: 3 / 2; margin-top: 0; }
  .reviews__note { grid-column: 1 / -1; margin-top: 10px; }

  /* ----- форма: текст и форма слева, фото справа ----- */
  .lead__inner {
    min-height: 600px;
    padding: 32px 32px 32px;
    padding-right: 48%;
  }

  .lead__photo { left: auto; right: -10px; width: min(48%, 420px); height: auto; aspect-ratio: 344 / 377; }
  .lead__clouds { left: auto; right: -160px; bottom: 30px; }
  .lead__stars { left: auto; right: 24px; bottom: 200px; }

  /* ----- подвал: бренд сверху, три колонки ----- */
  .footer__inner { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
  .footer__brand { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 24px; }
  .footer__socials { margin-top: 0; }
  .footer__col:last-of-type { grid-column: auto; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- Шаблонная страница: телефон (до 1023) ---------- */
@media (max-width: 1023.98px) {
  .crumbs { display: none; }

  .phero { width: var(--col); margin-top: 10px; }

  .phero__inner {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 40px 0 15px;
    border-radius: var(--r-md);
  }

  .phero__content { width: auto; padding: 0 16px; }
  .phero__title { font-size: min(29px, (100vw - 58px) / 11.3); }
  .phero__lead { width: auto; max-width: 300px; margin-top: 18px; font-size: 16px; }

  .phero__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.3;
  }

  .phero__list li::before { top: 4px; }

  .phero__action { display: block; margin: 22px -4.5px 0; }
  .phero__btn { width: 100%; }
  .btn--lg.phero__btn { height: 55px; font-size: 14px; }

  .phero__badge {
    top: 41px;
    width: 157px;
    margin-left: -78.5px;
    font-size: 10px;
    transform: rotate(-2.33deg);
  }

  .phero__art {
    position: static;
    width: calc(100% - 28px);
    height: auto;
    margin: 44px auto 0;
    aspect-ratio: 333 / 318;
    overflow: hidden;
    border-radius: var(--r-md);
  }

  .phero__art img { object-fit: cover; }
  .phero__art--card { aspect-ratio: 1; border-radius: var(--r-md); }

  .stats.stats--static {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center; /* блок и подписи — по центру карточки, а не у левого края */
    gap: 30px;
    height: auto;
    margin: 30px 15px 0;
    padding: 30px 20px;
    background: var(--c-white);
  }

  .stats--static .stats__item { width: auto; margin: 0; }
  .stats--static .stats__value { font-size: 18px; }
  .stats--static .stats__label,
  .stats--static .stats__item--3 .stats__label { width: auto; max-width: 270px; font-size: 14px; }

  .approach { margin-top: 50px; }
  .approach__title { max-width: 350px; }

  .approach__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .approach-card {
    display: block;
    min-height: 190px;
    padding: 16px;
    border-radius: var(--r-md);
  }

  .approach-card--1 { order: 1; }
  .approach-card--2 { order: 2; }
  .approach-card--3 { order: 3; }
  .approach-card--4 { order: 4; }

  .approach-card__icon { width: 35px; height: 35px; }
  .approach-card__icon img { width: 25px; height: 25px; }
  .approach-card__title { margin-top: 11px; font-size: 18px; }
  .approach-card__text { margin-top: 10px; font-size: 14px; }

  .approach-card--visual {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 0;
    min-height: 261px;
  }

  .approach-card--visual .approach-card__title { margin: 0; }
  .approach-card--visual .approach-card__text { max-width: 290px; margin-top: 8px; }

  .results { margin-top: 50px; }
  .results__title { max-width: 300px; }

  .results__list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .results__item {
    min-height: 130px;
    padding: 78px 16px 16px;
    border-radius: var(--r-md);
    font-size: 16px;
  }

  .results__item::before { top: 10px; left: 14px; width: 42px; height: 46px; font-size: 21px; }

  /* в мобильном макете подписи на фото нет */
  .lead__caption { display: none; }

  .lessons__sub { margin-top: 10px; font-size: 14px; text-align: left; }
}

/* ---------- Шаблонная страница: планшет 600–1023 ---------- */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .crumbs { display: block; width: var(--col); margin-top: 20px; font-size: 13px; }
  .phero { margin-top: 16px; }

  .phero__inner {
    display: grid;
    grid-template-columns: 1fr 42%;
    column-gap: 24px;
    padding: 36px 28px 28px;
  }

  .phero__content { padding: 0; }
  .phero__title { font-size: clamp(26px, 3.6vw, 34px); }
  .phero__lead { max-width: none; }
  .phero__action { max-width: 340px; margin-left: 0; margin-right: 0; }

  .phero__art { grid-column: 2; grid-row: 1; align-self: start; width: 100%; margin: 0; }
  .stats.stats--static { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; margin: 28px 0 0; }

  .approach__title,
  .results__title { max-width: none; }

  /* как на ПК: визуализация в центре, по две карточки слева и справа */
  .approach__grid { grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; }
  .approach-card { min-height: 180px; }
  .approach-card--1 { grid-area: 1 / 1; }
  .approach-card--2 { grid-area: 2 / 1; }
  .approach-card--4 { grid-area: 1 / 3; }
  .approach-card--3 { grid-area: 2 / 3; }
  .approach-card--visual { grid-area: 1 / 2 / 3 / 3; min-height: 0; }

  .results__list { grid-template-columns: 1fr 1fr; }
}


/* =====================================================================
   Страница «Об основателе» (founder.html)
   ===================================================================== */
.page-founder .crumbs { margin-top: 25px; }

.fhero {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 24px auto 0;
}

.fhero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 641px;
  padding: 51px 40px;
  border-radius: var(--r-xl);
  background: #2d4a2c url("../img/founder-page/wall.webp") center bottom / cover no-repeat;
}

.fhero__card {
  width: 711px;
  padding: 32px 40px 40px;
  border-radius: var(--r-md);
  background: var(--c-white);
  font-size: 18px;
  line-height: normal;
  text-align: center;
}

.fhero__card p + p { margin-top: 22px; }

.fhero__title {
  margin-bottom: 24px;
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
}

.fhero__photo {
  flex-shrink: 0;
  width: 491px;
  margin: 0;
  padding: 22px 24px 0;
  border-radius: var(--r-md);
  background: var(--c-green);
}

.fhero__photo img {
  width: 443px;
  height: 402px;
  border-radius: var(--r-md);
  object-fit: cover;
}

.fhero__photo figcaption {
  padding: 27px 0 29px;
  font-family: "Hanzi", var(--ff-display);
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  color: var(--c-white);
}

/* ----- Лента «Мой путь» ----- */
.path {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 111px auto 0;
}

.path__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: milestone;
}

.milestone {
  display: grid;
  grid-template-columns: 1fr 471px;
  align-items: center;
  column-gap: 60px;
  min-height: 360px;
  padding: 14px 70px 14px 30px;
  border-radius: var(--r-xl);
  background: var(--c-white);
  counter-increment: milestone;
}

.milestone__title {
  position: relative;
  margin: 0;
  padding-left: 41px;
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-green);
}

.milestone__title::before {
  content: counter(milestone);
  position: absolute;
  top: 1px;
  left: 0;
  width: 24px;
  line-height: 1.1;
  text-align: center;
}

.milestone__text {
  max-width: 560px;
  margin-top: 22px;
  padding-left: 41px;
  font-size: 16px;
  line-height: 1.2;
}

.milestone__text p + p { margin-top: 19px; }

.milestone__tag {
  display: inline-block;
  margin: 22px 0 0 41px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: var(--c-page);
  font-size: 16px;
}

.milestone__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 332px;
  overflow: hidden;
  border-radius: var(--r-md);
}

.milestone__img { width: 100%; height: 100%; object-fit: cover; }

/* документ (сертификат HSK) — целиком, на светлой подложке */
.milestone--doc .milestone__media { padding: 11px; background: var(--c-page); }
.milestone--doc .milestone__img { width: auto; object-fit: contain; }

/* посольство — акцентная зелёная карточка */
.milestone--accent {
  grid-template-columns: 1fr 297px;
  align-items: start;
  padding: 30px 30px 30px 30px;
  background: var(--c-green);
  color: var(--c-white);
}

.milestone--accent .milestone__title { color: var(--c-white); }
.milestone--accent .milestone__text { max-width: 764px; }

.milestone__img--portrait {
  width: 297px;
  height: 318px;
  border-radius: var(--r-md);
}

/* ----- Миссия + форма ----- */
.mission {
  width: min(1305px, 100% - 2 * var(--gutter));
  margin: 75px auto 0;
}

.mission__inner {
  padding: 38px 30px 30px;
  border-radius: var(--r-xl);
  background: var(--c-green);
}

.mission__title {
  max-width: 917px;
  margin: 0 auto;
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--c-white);
}

.mission__paper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(737px, 100%);
  min-height: 187px;
  margin: 10px auto 0;
  padding: 30px 40px 36px;
  background: url("../img/founder-page/mission-paper.webp") center / 100% 100% no-repeat;
  text-align: center;
}

.mission__label {
  font-family: var(--ff-display);
  font-size: 24px;
  line-height: 1.2;
  color: var(--c-green);
}

.mission__text { max-width: 660px; margin-top: 4px; font-size: 18px; line-height: normal; }
.mission__text::first-letter { text-transform: uppercase; }

.mission .lead { width: 100%; margin-top: 30px; }

@media (min-width: 1024px) {
/* форма внутри блока миссии: карточка 1245 px, раскладка по макету */
.mission .lead__inner::after {
  content: "";
  position: absolute;
  top: 88px;
  left: 714px;
  width: 117px;
  height: 114px;
  background: url("../img/m/heart.svg") center / contain no-repeat;
  transform: rotate(-13.96deg);
  pointer-events: none;
}

.mission .lead__info { top: 97px; left: 44px; }
.mission .lead__photo { left: 406px; top: -10px; width: 428px; height: 471px; }
.mission .lead__stars { left: 360px; top: 318px; }
.mission .lead__clouds { left: -56px; top: 307px; }
.mission .lead__form { top: 54px; left: 843px; }
.mission .lead__contacts { left: 843px; }
}

.lead__text--founder { width: 407px; line-height: 1.1; }
.lead__text--founder p + p { margin-top: 20px; }

/* ----- Телефон ----- */
@media (max-width: 1023.98px) {
  .page-founder .crumbs { display: none; }

  .fhero { width: var(--col); margin-top: 10px; }

  .fhero__inner {
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding: 120px 12px 12px;
    border-radius: var(--r-md);
    background-size: auto 360px;
    background-position: center top;
    background-color: var(--c-green);
  }

  .fhero__card { width: 100%; padding: 22px 18px 24px; font-size: 15px; }
  .fhero__card p + p { margin-top: 14px; }
  .fhero__title { margin-bottom: 16px; font-size: 24px; font-weight: 500; }

  .fhero__photo { width: 100%; padding: 12px 12px 0; }
  .fhero__photo img { width: 100%; height: auto; aspect-ratio: 443 / 402; }
  .fhero__photo figcaption { padding: 14px 0 16px; font-size: 18px; }

  .path { width: var(--col); margin-top: 40px; }
  .path__list { gap: 12px; }

  .milestone,
  .milestone--accent {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
    min-height: 0;
    padding: 12px 12px 22px;
    border-radius: var(--r-md);
  }

  .milestone__media { height: auto; aspect-ratio: 3 / 2; }
  .milestone--doc .milestone__media { aspect-ratio: auto; height: 300px; }

  .milestone__body { padding: 0 6px; }
  .milestone__title { padding-left: 30px; font-size: 18px; font-weight: 500; }
  .milestone__title::before { width: 18px; }
  .milestone__text { margin-top: 12px; padding-left: 30px; font-size: 14px; }
  .milestone__text p + p { margin-top: 12px; }
  .milestone__tag { margin: 14px 0 0 30px; font-size: 14px; }

  .milestone__img--portrait { width: 100%; height: auto; aspect-ratio: 297 / 318; }

  .mission { width: var(--col); margin-top: 50px; }
  .mission__inner { padding: 28px 12px 12px; border-radius: var(--r-md); }
  .mission__title { font-size: 20px; font-weight: 500; }
  .mission__paper { min-height: 0; padding: 26px 22px 30px; }
  .mission__label { font-size: 18px; }
  .mission__text { font-size: 14px; }
  .mission .lead { margin-top: 16px; }
  .lead__text--founder { width: auto; max-width: 307px; }
}

/* ----- Планшет 600–1023 (Galaxy Fold в раскрытом виде) ----- */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .page-founder .crumbs { display: block; }

  .fhero__inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 40%);
    align-items: center;
    gap: 20px;
    padding: 28px;
    background-size: cover;
    background-position: center bottom;
  }

  .fhero__card { padding: 28px 24px; font-size: 16px; }
  .fhero__title { font-size: clamp(24px, 3.6vw, 32px); }

  .milestone,
  .milestone--accent {
    display: grid;
    grid-template-columns: 1fr 44%;
    align-items: center;
    gap: 24px;
    padding: 16px 16px 16px 20px;
  }

  .milestone--accent { align-items: start; }
  .milestone__body { padding: 0; }
  .milestone__media { height: 240px; aspect-ratio: auto; }
  .milestone--doc .milestone__media { height: 280px; }

  .mission__inner { padding: 32px 20px 20px; }
  .mission__title { font-size: 26px; }
}

/* =====================================================================
   Квиз «Подобрать программу» (окно поверх страницы)
   ===================================================================== */
.quiz {
  width: min(560px, 100vw - 32px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  overflow: visible;
  opacity: 0;
  scale: .96;
  transition: opacity .3s ease, scale .35s cubic-bezier(.22, .61, .36, 1), overlay .35s allow-discrete, display .35s allow-discrete;
}

.quiz[open] { opacity: 1; scale: 1; }

@starting-style {
  .quiz[open] { opacity: 0; scale: .96; }
}

.quiz::backdrop { background: rgba(0, 20, 13, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.quiz [hidden] { display: none !important; }

.quiz__box {
  position: relative;
  max-height: calc(100dvh - 32px);
  padding: 32px 32px 28px;
  overflow-y: auto;
  border-radius: var(--r-md);
  background: var(--c-page);
}

.quiz__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-white);
  cursor: pointer;
}

.quiz__close::before,
.quiz__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  rotate: 45deg;
}

.quiz__close::after { rotate: -45deg; }

.quiz__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-right: 48px;
}

.quiz__kicker { font-size: 15px; color: #5f5f5f; }
.quiz__count { flex-shrink: 0; font-family: var(--ff-display); font-size: 14px; color: var(--c-green); }

.quiz__bar {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(0, 78, 52, 0.12);
}

.quiz__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--c-gold);
  transition: width .4s cubic-bezier(.22, .61, .36, 1);
}

.quiz__step,
.quiz__done {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  animation: quiz-in .35s cubic-bezier(.22, .61, .36, 1);
}

@keyframes quiz-in { from { opacity: 0; translate: 12px 0; } to { opacity: 1; translate: 0 0; } }

.quiz__q {
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.quiz__result { color: var(--c-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.quiz__hint { display: block; margin-top: 2px; font-size: 13px; color: #6b6b6b; }

.quiz__opt {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-top: 10px;
  padding: 12px 20px 12px 54px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--c-white);
  font-size: 17px;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.quiz__opt input { position: absolute; opacity: 0; pointer-events: none; }

.quiz__opt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 1.5px solid var(--c-green);
  border-radius: 50%;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.quiz__opt:has(input:checked) { border-color: var(--c-green); background: #eef6f2; }
.quiz__opt:has(input:checked)::before { background: var(--c-green); box-shadow: inset 0 0 0 4px #eef6f2; }
.quiz__opt:has(input:focus-visible) { outline: 2px solid var(--c-gold); outline-offset: 2px; }

@media (hover: hover) {
  .quiz__opt:hover { border-color: rgba(0, 78, 52, 0.4); }
}

.quiz__summary {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 14px 16px;
  list-style: none;
  border-radius: var(--r-sm);
  background: #f4efe6;
  font-size: 15px;
  line-height: 1.35;
}

.quiz__summary b { font-weight: 600; }
.quiz__alt { margin-bottom: 12px; font-size: 15px; line-height: 1.35; }

/* Stitex Captcha «Я не робот» */
.captcha { min-height: 170px; margin-top: 14px; }
.captcha[hidden] { display: none; }

.quiz__note { margin-bottom: 18px; font-size: 16px; line-height: 1.35; color: #3a3a3a; }
.quiz__done .quiz__note { margin-bottom: 0; }

.quiz__final .lead__phone { margin-top: 10px; }
.quiz__consent { color: var(--c-black); }
.quiz__consent .lead__check { border-color: var(--c-green); }
.quiz__consent input:checked + .lead__check { background-color: var(--c-green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.quiz__input { background: var(--c-white); font-size: 16px; }

.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.quiz__back {
  padding: 10px 4px;
  border: 0;
  background: none;
  font-size: 16px;
  color: var(--c-green);
  cursor: pointer;
}

.quiz__back::before { content: "← "; }

.quiz__next {
  min-width: 200px;
  height: 56px;
  margin-left: auto;
  padding: 0 28px;
  border: 0;
  font-family: var(--ff-display);
  font-size: 15px;
  cursor: pointer;
}

.quiz__next:disabled { opacity: .45; cursor: default; }

.quiz__status { position: static; margin-top: 10px; color: var(--c-green); }
.quiz__status.is-error { color: #c62828; }

@media (max-width: 599.98px) {
  .quiz__box { padding: 24px 16px 20px; }
  .quiz__q { font-size: 20px; }
  .quiz__opt { min-height: 52px; font-size: 16px; }
  .quiz__next { min-width: 0; flex: 1; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz, .quiz__bar span { transition: none; }
  .quiz__step, .quiz__done { animation: none; }
}

/* =====================================================================
   Страницы программ: блок 2 списком карточек (tools/programs.py)
   ===================================================================== */
.approach__intro {
  max-width: 960px;
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.35;
}

.approach__grid--cards {
  grid-template-columns: repeat(var(--cols, 3), 1fr);
}

.approach__grid--cards .approach-card { min-height: 162px; }
.approach__grid--cards .approach-card__title { font-size: 22px; line-height: 1.2; }

/* 5 карточек: 3 + 2 по центру сетки на 6 колонок */
@media (min-width: 1024px) {
  .approach__grid--cards:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .approach__grid--cards:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .approach__grid--cards:has(> :nth-child(5):last-child) > :nth-child(4) { grid-column: 2 / span 2; }
}

/* направления (текст №7): только иконка и название */
.approach-card--compact {
  align-items: center;
  min-height: 100px !important;
}

.approach-card--compact .approach-card__icon { grid-row: auto; }
.approach-card--compact .approach-card__title { margin: 0; font-size: 18px; line-height: 1.25; }

.approach-card--wide { grid-column: 1 / -1; }
.approach__grid--cards .approach-card--wide { min-height: 0; }

.approach__outro {
  margin-top: 24px;
  padding: 24px 32px;
  border-radius: var(--r-md);
  background: var(--c-green);
  font-family: var(--ff-display);
  font-size: 20px;
  line-height: 1.35;
  color: var(--c-white);
}

@media (max-width: 1023.98px) {
  .approach__intro { margin-top: 12px; font-size: 15px; }

  .approach__grid--cards { grid-template-columns: 1fr; }
  .approach__grid--cards .approach-card { min-height: 0; }
  .approach__grid--cards .approach-card__title { font-size: 18px; }

  .approach__grid--cards:has(.approach-card--compact) { grid-template-columns: 1fr 1fr; }
  .approach-card--compact { display: flex !important; flex-direction: column; align-items: flex-start; min-height: 0 !important; }
  .approach-card--compact .approach-card__title { margin-top: 10px; font-size: 15px; }

  .approach__outro { margin-top: 16px; padding: 18px 20px; font-size: 16px; }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .approach__grid--cards { grid-template-columns: 1fr 1fr; }
  .approach__grid--cards:has(.approach-card--compact) { grid-template-columns: repeat(3, 1fr); }
  .approach__grid--cards .approach-card { grid-area: auto; }
  .approach__grid--cards > .approach-card:not(.approach-card--compact):last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* =====================================================================
   «Об основателе»: история с выделенными словами → фото справа
   ===================================================================== */
.story {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: start;
  gap: 24px;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 60px auto 0;
}

.story__text {
  padding: 40px 44px;
  border-radius: var(--r-xl);
  background: var(--c-white);
  font-size: 20px;
  line-height: 1.6;
}

.story__text p + p { margin-top: 22px; }

.story__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.3;
  color: #6b6b6b;
}

.story__hint::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #f6dc9a;
}

/* выделенное слово: жёлтая подсветка, при наведении увеличивается */
.story__mark {
  display: inline-block;
  margin: 0 -2px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: #f6dc9a;
  font: inherit;
  line-height: 1.35;
  color: inherit;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.22, .61, .36, 1), background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.story__mark.is-active { background: var(--c-green); color: var(--c-white); }

@media (hover: hover) {
  .story__mark:hover { position: relative; z-index: 1; transform: scale(1.12); box-shadow: 0 6px 16px rgba(0, 40, 26, 0.18); }
}

.story__aside { position: sticky; top: 120px; }

.story__viewer {
  margin: 0;
  padding: 16px 16px 20px;
  border-radius: var(--r-xl);
  background: var(--c-green);
}

.story__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-page);
}

.story__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .25s ease;
}

.story__img.is-loading { opacity: 0; }

.story__caption {
  min-height: 48px;
  margin-top: 16px;
  padding: 0 6px;
  font-family: var(--ff-display);
  font-size: 16px;
  line-height: 1.3;
  color: var(--c-white);
}

.story__thumbs {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.story__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: var(--c-white);
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s ease, border-color .2s ease;
}

.story__thumb img { width: 100%; height: 100%; object-fit: cover; }
.story__thumb.is-active { border-color: var(--c-gold); opacity: 1; }

@media (hover: hover) {
  .story__thumb:hover { opacity: 1; }
}

/* фото в окне (телефон) */
.story-modal {
  width: min(560px, 100vw - 24px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.story-modal::backdrop { background: rgba(0, 20, 13, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.story-modal__box {
  position: relative;
  padding: 12px 12px 18px;
  border-radius: var(--r-md);
  background: var(--c-green);
}

.story-modal__img {
  width: 100%;
  max-height: calc(100dvh - 200px);
  border-radius: var(--r-sm);
  background: var(--c-page);
  object-fit: contain;
}

.story-modal__caption {
  margin-top: 12px;
  padding: 0 4px;
  font-family: var(--ff-display);
  font-size: 15px;
  line-height: 1.3;
  color: var(--c-white);
}

.story-modal .video-modal__close { top: 20px; right: 20px; width: 40px; height: 40px; }

@media (max-width: 1023.98px) {
  .story { grid-template-columns: 1fr; width: var(--col); margin-top: 30px; gap: 16px; }
  .story__text { padding: 22px 18px; border-radius: var(--r-md); font-size: 16px; line-height: 1.6; }
  .story__hint { margin-bottom: 16px; font-size: 13px; }
  .story__aside { position: static; }
  .story__viewer { padding: 12px 12px 14px; border-radius: var(--r-md); }
  .story__frame { height: auto; aspect-ratio: 4 / 3; }
  .story__caption { min-height: 0; font-size: 14px; }
  .story__thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .story { grid-template-columns: 1fr 42%; }
  .story__aside { position: sticky; top: 90px; }
  .story__thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .story__mark, .story__img { transition: none; }
}

/* ---------- Капча в блоке заявки на ПК: блок вырастает вниз, фото и декор едут вместе с низом ---------- */
@media (min-width: 1024px) {
  .lead__inner { --grow: 0px; height: calc(461px + var(--grow)); transition: height .35s ease; }
  .lead__inner:has(.captcha:not([hidden])) { --grow: 184px; }
  .lead__photo { top: var(--grow); }
  .lead__clouds { top: calc(307px + var(--grow)); }
  .lead__stars { top: calc(324.8px + var(--grow)); }
  .lead__caption { top: calc(405px + var(--grow)); }
  .lead__contacts { top: calc(331px + var(--grow)); }
  .mission .lead__photo { top: calc(-10px + var(--grow)); }
  .mission .lead__stars { top: calc(318px + var(--grow)); }
  .mission .lead__clouds { top: calc(307px + var(--grow)); }

  .lead__photo,
  .lead__clouds,
  .lead__stars,
  .lead__caption,
  .lead__contacts { transition: top .35s ease; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .lead__inner,
  .lead__photo,
  .lead__clouds,
  .lead__stars,
  .lead__caption,
  .lead__contacts { transition: none; }
}

/* мобильные и планшет: подсказка формы — обычной строкой под кнопкой, не поверх контактов */
@media (max-width: 1023.98px) {
  .lead__status { position: static; margin-top: 6px; }
  .lead__status:empty { display: none; }
}

/* узкий экран (Fold снаружи ~344): номер телефона целиком */
@media (max-width: 379.98px) {
  .lead__input { padding-right: 12px; }
  .lead__input--phone { padding-left: 62px; letter-spacing: -.02em; }
  .lead__country { left: 14px; }
}

/* ----- Документы (политики, согласие) ----- */
.doc { width: min(860px, 100% - 2 * var(--gutter)); margin: 24px auto 80px; }
.doc__title { font-family: var(--ff-display); font-weight: 500; font-size: clamp(24px, 4vw, 40px); line-height: 1.15; color: var(--c-green); }
.doc__date { margin-top: 12px; color: #787878; font-size: 14px; }
.doc__section { margin-top: 32px; }
.doc__section h2 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.25; margin: 0 0 12px; }
.doc__section p, .doc__section li { font-size: 16px; line-height: 1.55; color: var(--c-text-dark); }
.doc__section p + p, .doc__section p + ul, .doc__section ul + p { margin-top: 12px; }
.doc__section ul { list-style: disc; padding-left: 22px; }
.doc__section li + li { margin-top: 6px; }
.doc__section a, .doc__link { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }
.doc__link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* ----- Баннер cookie ----- */
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  width: min(920px, 100% - 32px); margin: 0 auto; padding: 16px 20px;
  background: var(--c-green); color: var(--c-white);
  border-radius: var(--r-md); box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}
.cookie[hidden] { display: none; }
.cookie__text { flex: 1 1 320px; font-size: 14px; line-height: 1.45; }
.cookie__text a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__btn { margin: 0; width: auto; min-height: 44px; padding: 0 20px; font-size: 14px; }
@media (max-width: 599.98px) {
  .cookie { padding: 14px; gap: 12px; }
  .cookie__actions { width: 100%; }
  .cookie__btn { flex: 1 1 100%; }
}

/* ----- Страница 404 ----- */
.notfound { width: min(640px, 100% - 2 * var(--gutter)); margin: 48px auto 96px; text-align: center; }
.notfound__code { font-family: var(--ff-display); font-weight: 500; font-size: clamp(88px, 22vw, 168px); line-height: 1; color: var(--c-gold); }
.notfound__title { margin-top: 12px; font-family: var(--ff-display); font-weight: 500; font-size: clamp(24px, 4vw, 40px); line-height: 1.15; color: var(--c-green); }
.notfound__text { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--c-text-dark); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.notfound__btn { width: auto; min-height: 48px; padding: 0 24px; }
.notfound__contacts-title { margin-top: 40px; font-size: 14px; color: #787878; }
.notfound__socials { justify-content: center; margin: 12px 0 0; }
.notfound__links { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--c-text-dark); }
.notfound__links a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }
/* ----- Языки сайта: переключатель RU / EN / 中文 (tools/i18n.py), телефон любой страны на en/zh ----- */
.lang {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(0, 78, 52, 0.18);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.lang__link {
  padding: 7px 9px;
  border-radius: var(--r-pill);
  color: var(--c-green);
  transition: background-color .2s ease, color .2s ease;
}
.lang__link[aria-current] { background: var(--c-green); color: var(--c-white); }
@media (hover: hover) {
  .lang__link:not([aria-current]):hover { background: rgba(0, 78, 52, 0.1); }
}
.header__lang { margin-left: 12px; }
/* компьютер: русское меню длиннее — переключатель компактнее, соседние отступы меньше, чтобы шапка влезла в 1440 */
@media (min-width: 1024px) {
  .header__lang { gap: 0; padding: 2px; font-size: 12px; }
  .header__lang .lang__link { padding: 6px 6px; }
  .header__socials { gap: 6px; }
  .header__lang ~ .header__cta { margin-left: 14px; padding: 0 16px; }
}
.drawer__lang { align-self: flex-start; margin-top: 19px; font-size: 15px; }
.drawer__lang .lang__link { padding: 9px 13px; }
/* телефон и планшет: компактно между логотипом и кнопками; на самых узких (Fold снаружи) — только в меню */
@media (max-width: 1023.98px) {
  .header__lang { margin-left: auto; margin-right: 6px; padding: 2px; font-size: 12px; }
  .header__lang .lang__link { padding: 6px 7px; }
  .header__lang ~ .header__burger { margin-left: 0; }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .header__lang ~ .header__cta { margin-left: 0; }
}
@media (max-width: 379.98px) {
  .header__lang { display: none; }
  .header__lang ~ .header__burger { margin-left: auto; }
}

html:not([lang="ru"]) .lead__country { display: none; }
html:not([lang="ru"]) .lead__input--phone { padding-left: 20px; }
/* ---------- Стоимость: к чему относятся цены, спецнаправления (ведёт основатель) и разговорный клуб ---------- */
.pricing__scope {
  margin: 24px auto 0;
  max-width: 900px;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: var(--c-text-dark);
}

.pricing__extra {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.xplan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 41px 36px;
  border-radius: var(--r-xl);
  text-align: left;
}

.xplan--expert { background: var(--c-white); color: #120f0f; }
.xplan--club { background: #ffeeca; color: #120f0f; }

.xplan__kicker { margin: 0; font-family: var(--ff-display); font-size: 16px; line-height: 1.3; color: var(--c-gold); }

.xplan__title {
  margin: 8px 0 0;
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-green);
}

.xplan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 18px 0 0;
  font-family: var(--ff-display);
  font-size: 34px;
  line-height: 1.2;
  color: var(--c-green);
}

.xplan__per { font-family: var(--ff-text); font-size: 15px; line-height: 1.35; color: #5d5650; }
.xplan__price .xplan__per { font-size: 17px; }

.xplan__info { margin: 10px 0 0; font-size: 16px; line-height: 1.35; }

.xplan__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.xplan__tags li {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: #f2efe9;
  font-size: 14px;
  line-height: 1.25;
}

.xplan__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.xplan__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: baseline;
  padding: 14px 22px;
  border-radius: var(--r-md);
  background: var(--c-white);
}

.xplan__who { font-size: 15px; color: #5d5650; }
.xplan__sum { justify-self: end; font-family: var(--ff-display); font-size: 20px; color: var(--c-black); white-space: nowrap; }
.xplan__row .xplan__per { grid-column: 1 / -1; font-size: 14px; color: var(--c-gold); }

.xplan__note { margin: 16px 0 0; font-size: 15px; line-height: 1.4; }
.xplan__note a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }

.xplan__btn {
  width: 100%;
  height: 70px;
  margin-top: auto;
  background: var(--c-green);
  color: var(--c-white);
  font-family: var(--ff-display);
  font-size: 16px;
}

.xplan__tags + .xplan__btn,
.xplan__note + .xplan__btn { margin-top: 28px; }
.xplan--club .xplan__btn { background: var(--c-gold); }

@media (hover: hover) {
  .xplan--expert .xplan__btn:hover { background: #003826; }
  .xplan__note a:hover { color: var(--c-gold); }
}

@media (max-width: 1023.98px) {
  .pricing__scope { margin-top: 16px; font-size: 13px; }
  .pricing__extra { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .xplan { padding: 21px 16px 16px; border-radius: var(--r-md); }
  .xplan__kicker { font-size: 12px; }
  .xplan__title { margin-top: 6px; font-size: 18px; }
  .xplan__price { margin-top: 12px; font-size: 24px; }
  .xplan__price .xplan__per { font-size: 13px; }
  .xplan__info { font-size: 13px; }
  .xplan__tags { gap: 6px; margin-top: 14px; }
  .xplan__tags li { padding: 6px 11px; font-size: 12px; }
  .xplan__rows { margin-top: 14px; gap: 8px; }
  .xplan__row { padding: 11px 16px; border-radius: var(--r-sm); }
  .xplan__who { font-size: 13px; }
  .xplan__sum { font-size: 16px; }
  .xplan__row .xplan__per { font-size: 12px; }
  .xplan__note { font-size: 13px; }
  .xplan__btn { height: 55px; font-size: 13px; }
  .xplan__tags + .xplan__btn,
  .xplan__note + .xplan__btn { margin-top: 18px; }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .pricing__extra { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023.98px) {
  .xplan__row { grid-template-columns: 1fr; }
  .xplan__sum { justify-self: start; }
}

/* =====================================================================
   Электронные курсы: окно «Подробнее» (src/partials/course-modal.html)
   ===================================================================== */
.course-modal {
  width: min(620px, 100vw - 32px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  overflow: visible;
  opacity: 0;
  scale: .96;
  transition: opacity .3s ease, scale .35s cubic-bezier(.22, .61, .36, 1), overlay .35s allow-discrete, display .35s allow-discrete;
}
.course-modal[open] { opacity: 1; scale: 1; }
.course-modal:focus, .course-modal:focus-visible,
.course-modal__box:focus, .course-modal__box:focus-visible { outline: none; }
@starting-style {
  .course-modal[open] { opacity: 0; scale: .96; }
}
.course-modal::backdrop { background: rgba(0, 20, 13, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.course-modal__box {
  position: relative;
  max-height: calc(100dvh - 32px);
  padding: 32px 32px 28px;
  overflow-y: auto;
  border-radius: var(--r-md);
  background: var(--c-page);
  color: var(--c-black);
}
.course-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-white);
  cursor: pointer;
}
.course-modal__close::before,
.course-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  rotate: 45deg;
}
.course-modal__close::after { rotate: -45deg; }
.course-modal__kicker { padding-right: 48px; font-size: 15px; color: #5f5f5f; }
.course-modal__title {
  margin: 8px 0 14px;
  padding-right: 32px;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-green);
}
.course-modal__lead,
.course-modal__outro { font-size: 16px; line-height: 1.45; }
.course-modal__outro { margin-top: 16px; color: #3a3a3a; }
.course-modal__sub { margin: 18px 0 8px; font-family: var(--ff-display); font-size: 15px; color: var(--c-green); }
.course-modal__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.course-modal__list li {
  position: relative;
  padding: 10px 14px 10px 34px;
  border-radius: 13px;
  background: var(--c-white);
  font-size: 15px;
  line-height: 1.4;
}
.course-modal__list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold, #ce9351);
}
.course-modal__btn { display: flex; width: 100%; height: 60px; margin-top: 22px; font-family: var(--ff-display); font-size: 16px; }
@media (max-width: 480px) {
  .course-modal__box { padding: 24px 18px 20px; }
  .course-modal__title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-modal { transition: none; }
}
