/* ==========================================================================
   МОЯ ШКОЛА ИИ — общий стиль
   Палитра: тёплая бумага, хвоя, терракота, олива. Спокойная редакционная
   типографика: Lora (заголовки) + Golos Text (текст). Всё локально.
   ========================================================================== */

:root {
  --paper: #f6f2eb;
  --paper-deep: #efe8dc;
  --surface: #fffdf9;
  --ink: #1b1a17;
  --ink-soft: #55504a;
  --ink-mute: #8a837a;
  --line: #e2dcd1;
  --line-soft: #ece6db;
  --pine: #2f5d50;
  --pine-deep: #24483e;
  --pine-tint: #e7eee9;
  --clay: #c07a57;
  --clay-tint: #f6e6dd;
  --olive: #8c9a6b;
  --gold: #b08d57;

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27, 26, 23, .05), 0 2px 8px rgba(27, 26, 23, .04);
  --shadow-md: 0 4px 12px rgba(27, 26, 23, .06), 0 18px 40px -18px rgba(27, 26, 23, .18);
  --shadow-lg: 0 30px 70px -30px rgba(27, 26, 23, .35);

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 8% -6%, #fffdf9 0%, rgba(255, 253, 249, 0) 62%),
    radial-gradient(900px 480px at 96% 4%, #f3ece0 0%, rgba(243, 236, 224, 0) 60%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section { padding: 88px 0; position: relative; }
section[id], h2[id] { scroll-margin-top: 92px; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper-deep); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line-soft); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- кнопки ---------- */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(47, 93, 80, .65);
}
.btn:hover { transform: translateY(-2px); background: var(--pine-deep); text-decoration: none; box-shadow: 0 16px 30px -14px rgba(47, 93, 80, .7); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(47, 93, 80, .35); outline-offset: 3px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
  background: var(--surface);
}
.btn--ghost:hover { background: #fff; border-color: #d8d0c2; color: var(--ink); box-shadow: var(--shadow-sm); }

.btn--clay { --btn-bg: var(--clay); box-shadow: 0 10px 24px -12px rgba(192, 122, 87, .7); }
.btn--clay:hover { background: #a9663f; }

.btn--sm { min-height: 44px; padding: 11px 20px; font-size: .94rem; }
.btn--wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 235, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(246, 242, 235, .95); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
/* Логотип-логограмма в шапке: знак и надпись одним файлом (2x, прозрачный фон) */
.brand__logo { display: block; height: 44px; width: auto; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.brand__sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--clay); text-decoration: none; }

.header-cta { display: flex; gap: 10px; align-items: center; }
.header-phone { font-size: .95rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.header-phone:hover { text-decoration: none; color: var(--pine); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- герой ---------- */
.hero { padding: 64px 0 72px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.chip--pine { background: var(--pine-tint); border-color: #cfe0d6; color: var(--pine-deep); }
.chip--clay { background: var(--clay-tint); border-color: #ecd2c3; color: #8d4f2f; }

.hero h1 { margin-bottom: 22px; }
.hero--tight h1 { font-size: clamp(2rem, 3.3vw, 3.15rem); }
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em; bottom: .06em;
  height: .34em;
  background: linear-gradient(90deg, rgba(192, 122, 87, .28), rgba(192, 122, 87, .12));
  border-radius: 3px;
  z-index: -1;
}
.hero .lead { margin-bottom: 30px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact__num { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--pine); line-height: 1.1; }
.fact__label { font-size: .8rem; color: var(--ink-mute); }

.hero__media { position: relative; }
.hero__img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 220, 209, .9);
  background: var(--surface);
}
.hero__caption {
  position: absolute;
  left: -18px;
  bottom: 28px;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.hero__caption strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; font-size: .92rem; }

/* ---------- сетки карточек ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9d1c3; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; color: var(--ink-soft); }

.card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--pine-tint);
  color: var(--pine);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__num {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

/* «что это не» */
.myth { border-left: 2px solid var(--clay); padding-left: 18px; }
.myth h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 6px; letter-spacing: 0; }
.myth p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- результаты ---------- */
.result {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.result:last-child { border-bottom: none; }
.result__idx {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--clay);
  font-weight: 600;
  min-width: 34px;
  padding-top: 2px;
}
.result h3 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: 5px; }
.result p { font-size: .95rem; color: var(--ink-soft); }
.result__artifact {
  display: inline-block;
  margin-top: 8px;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--pine-tint);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

/* ---------- программа (таймлайн) ---------- */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--line), var(--line) 88%, transparent);
}

.week {
  position: relative;
  padding-left: 52px;
  margin-bottom: 10px;
}
.week__dot {
  position: absolute;
  left: 8px; top: 20px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  transition: border-color .2s, background .2s;
}
.week[open] .week__dot, .week:hover .week__dot { border-color: var(--pine); background: var(--pine); }

.week summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.week summary::-webkit-details-marker { display: none; }
.week summary:hover { border-color: #d6cec0; box-shadow: var(--shadow-sm); }
.week[open] summary { border-color: #cfd9d1; background: #fff; box-shadow: var(--shadow-sm); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.week__no {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--clay);
  min-width: 74px;
  letter-spacing: .02em;
}
.week__title { font-weight: 600; font-size: 1.02rem; flex: 1; }
.week__plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  align-self: center;
}
.week__plus::before, .week__plus::after {
  content: ""; position: absolute; background: var(--ink-mute); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.week__plus::before { left: 0; right: 0; top: 10px; height: 1.5px; }
.week__plus::after { top: 0; bottom: 0; left: 10px; width: 1.5px; }
.week[open] .week__plus::after { transform: scaleY(0); opacity: 0; }

.week__body {
  padding: 20px 22px 24px;
  background: #fff;
  border: 1px solid #cfd9d1;
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: .96rem;
  color: var(--ink-soft);
}
.week__body p { margin-bottom: 12px; }
.week__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--paper-deep);
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
}
.tag--pine { background: var(--pine-tint); color: var(--pine-deep); border-color: #d3e2d9; }

/* ---------- как проходит ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: none; }
.step__n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--olive);
  font-weight: 600;
  line-height: 1;
}
.step h3 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.step p { font-size: .96rem; color: var(--ink-soft); }

/* ---------- тарифы ---------- */
.tariffs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }

.tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tariff:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tariff--featured {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
  color: #f3efe6;
  box-shadow: 0 30px 60px -32px rgba(36, 72, 62, .8);
}
.tariff--featured h3, .tariff--featured .tariff__price { color: #fff; }
.tariff--featured .tariff__note, .tariff--featured .tariff__list li { color: #d8e3dd; }
.tariff--featured .tariff__list li::before { background: rgba(255, 255, 255, .8); }
.tariff--featured .btn {
  background: #fff;
  color: var(--pine-deep);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55);
}
.tariff--featured .btn:hover { background: #f3efe6; color: var(--pine-deep); }
.tariff--featured .btn--ghost { background: transparent; color: #eef4f0; border-color: rgba(255,255,255,.4); }

.tariff__badge {
  position: absolute;
  top: -13px; left: 32px;
  background: var(--clay);
  color: #fff;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 14px -8px rgba(192, 122, 87, .9);
}

.tariff h3 { font-size: 1.5rem; margin-bottom: 6px; }
.tariff__sub { font-size: .9rem; color: var(--ink-mute); margin-bottom: 22px; }
.tariff--featured .tariff__sub { color: #a9c2b6; }

.tariff__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.tariff__price small { font-size: .9rem; font-family: var(--font-body); font-weight: 500; color: var(--ink-mute); letter-spacing: 0; }
.tariff--featured .tariff__price small { color: #a9c2b6; }
.tariff__note { font-size: .86rem; color: var(--ink-mute); margin-bottom: 24px; }

.tariff__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.tariff__list li {
  position: relative;
  padding-left: 24px;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.tariff__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--pine);
  transform: rotate(45deg) scale(.72);
}
.tariff__list li.is-muted { color: var(--ink-mute); }
.tariff__list li.is-muted::before { background: var(--line); }
.tariff__foot { margin-top: auto; }

.tariff-note {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--paper-deep);
  border-radius: var(--r-md);
  font-size: .92rem;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
}
.tariff-note svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--pine); margin-top: 2px; }

/* ---------- рассрочка ---------- */
.installment {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: start;
}
.inst-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.inst-terms { display: flex; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.inst-term {
  flex: 1;
  min-width: 90px;
  padding: 14px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .18s var(--ease);
}
.inst-term:hover { border-color: #cfc6b6; }
.inst-term.is-active { background: var(--pine); border-color: var(--pine); color: #fff; box-shadow: 0 10px 20px -14px rgba(47, 93, 80, .9); }

.inst-out {
  border-top: 1px dashed var(--line);
  padding-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inst-out__label { font-size: .86rem; color: var(--ink-mute); margin-bottom: 4px; }
.inst-out__sum { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--pine-deep); }
.inst-out__hint { font-size: .84rem; color: var(--ink-mute); max-width: 220px; }

.inst-facts { display: grid; gap: 18px; }
.inst-fact { display: flex; gap: 14px; }
.inst-fact__icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; background: var(--pine-tint); color: var(--pine);
  display: grid; place-items: center;
}
.inst-fact h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: 4px; }
.inst-fact p { font-size: .92rem; color: var(--ink-soft); }

.disclaimer { font-size: .8rem; color: var(--ink-mute); margin-top: 18px; line-height: 1.5; }

/* ---------- тизер второго курса ---------- */
.teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.teaser__media { position: relative; min-height: 340px; }
.teaser__media img { width: 100%; height: 100%; object-fit: cover; }
.teaser__body { padding: 42px 44px; display: flex; flex-direction: column; justify-content: center; }
.teaser__body h2 { font-size: clamp(1.5rem, 2.2vw, 2.05rem); }
.teaser__body p { color: var(--ink-soft); }
.teaser__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.teaser__list li { position: relative; padding-left: 22px; font-size: .94rem; color: var(--ink-soft); }
.teaser__list li::before { content: "→"; position: absolute; left: 0; color: var(--clay); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: #cfd9d1; box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clay);
  line-height: 1;
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 22px; font-size: .95rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- финальный CTA + форма ---------- */
.cta {
  background: linear-gradient(160deg, #24483e 0%, #2f5d50 55%, #35594a 100%);
  color: #f2eee5;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(192, 122, 87, .28), rgba(192, 122, 87, 0) 62%);
  pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }

/* ссылки внутри тёмного блока CTA: иначе тёмно-зелёный на тёмно-зелёном */
.cta a:not(.btn) { color: #f0c9a8; text-decoration: underline; text-underline-offset: 3px; }
.cta a:not(.btn):hover { color: #fff; }
.cta__grid { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.cta h2 { color: #fff; }
.cta .lead { color: #cfe0d7; }
.cta .eyebrow { color: #d9a483; }
.cta__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.cta__list li { position: relative; padding-left: 26px; font-size: .95rem; color: #d6e4dc; }
.cta__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border: 1.5px solid #9dbdb0; border-radius: 50%;
}

.form {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form__sub { font-size: .9rem; color: var(--ink-mute); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input::placeholder, .field textarea::placeholder { color: #a8a196; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(47, 93, 80, .12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2355504a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: .82rem; color: var(--ink-mute); line-height: 1.45; margin: 6px 0 20px; }
.checkbox input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pine); flex-shrink: 0; }
.checkbox a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

.form__note { font-size: .78rem; color: var(--ink-mute); margin-top: 14px; text-align: center; line-height: 1.45; }
.form__error { color: #a8452f; font-size: .84rem; margin-top: 10px; display: none; }
.form__error.is-visible { display: block; }

.form__success { display: none; text-align: center; padding: 24px 8px; }
.form__success.is-visible { display: block; }
.form__success svg { width: 48px; height: 48px; color: var(--pine); margin: 0 auto 16px; }
.form__success h3 { margin-bottom: 10px; }
.form__success p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- подвал ---------- */
.site-footer {
  background: #1f2420;
  color: #cdd3cc;
  padding: 64px 0 32px;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: #8a938c; }
.footer-about { max-width: 32ch; margin-top: 16px; color: #9aa39c; font-size: .88rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a938c;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #cdd3cc; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #8a938c;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #8a938c; }
.footer-legal a:hover { color: #fff; }

/* ---------- анимация появления ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__caption { left: 16px; bottom: 16px; }
  .cta__grid { grid-template-columns: 1fr; gap: 36px; }
  .installment { grid-template-columns: 1fr; gap: 32px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .teaser { grid-template-columns: 1fr; }
  .teaser__media { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 52px; }
  .container { width: min(100% - 32px, var(--container)); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .tariffs { grid-template-columns: 1fr; }
  .tariff { padding: 26px; }
  .week summary { flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; }
  .week__no { min-width: auto; }
  .week__title { flex-basis: 100%; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .form { padding: 24px; }
  .teaser__body { padding: 28px 24px; }
  .header-cta .btn { display: none; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .inst-card { padding: 24px; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .brand__sub { display: none; }
  .brand__logo { height: 36px; }
}

/* ==========================================================================
   Автор курса: блок-визитка на лендингах + отдельная страница author.html
   ========================================================================== */

.author-strip {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.author-strip__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(150deg, #e9e2d5, #d9d3c4);
  display: grid;
  place-items: center;
}
.author-strip__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author-strip h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin-bottom: 10px; }
.author-strip p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 14px; }
.author-strip__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 18px; }
.author-strip__facts span { font-size: .84rem; color: var(--ink-mute); }
.author-strip__facts b { color: var(--pine); font-weight: 600; }

.monogram {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  color: #6c7a55;
  letter-spacing: .02em;
  line-height: 1;
}

/* ---------- страница автора ---------- */
.author-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #e9e2d5, #d5cfbe);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 220, 209, .9);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(255, 253, 249, .94);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: .8rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.timeline-bio { position: relative; }
.bio-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.bio-item:first-child { border-top: none; }
.bio-item__year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clay);
  line-height: 1.3;
}
.bio-item h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.bio-item p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

.case {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case__metric {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--pine);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.case h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin: 0; }
.case p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.case__where { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); }

.principles { display: grid; gap: 0; }
.principle {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}
.principle:first-child { border-top: none; }
.principle__mark {
  font-family: var(--font-display);
  color: var(--olive);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}
.principle strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.principle p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

[hidden] { display: none !important; }

.links { display: grid; gap: 10px; }
.link-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.link-row:hover { text-decoration: none; border-color: #d3cabd; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.link-row__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--pine-tint);
  color: var(--pine);
  display: grid; place-items: center;
}
.link-row__icon svg { width: 20px; height: 20px; }
.link-row__body { flex: 1; min-width: 0; }
.link-row__title { font-weight: 600; font-size: .98rem; }
.link-row__sub { font-size: .84rem; color: var(--ink-mute); }
.link-row__arrow { color: var(--clay); flex-shrink: 0; }

.quote {
  border-left: 3px solid var(--clay);
  padding: 6px 0 6px 26px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-style: normal;
  color: var(--ink-mute);
}

.refs { display: grid; gap: 14px; }
.ref {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.ref strong { display: block; color: var(--ink); font-size: .96rem; margin-bottom: 3px; }

@media (max-width: 1040px) {
  .author-strip { grid-template-columns: 150px 1fr; gap: 24px; }
  .author-hero { grid-template-columns: 1fr; gap: 36px; }
  .portrait { max-width: 380px; }
}
@media (max-width: 760px) {
  .author-strip { grid-template-columns: 1fr; }
  .portrait { max-width: 200px; aspect-ratio: 1 / 1; }
  .portrait__badge { left: 12px; bottom: 12px; padding: 6px 12px; font-size: .74rem; }
  .author-strip__photo { max-width: 200px; aspect-ratio: 1 / 1; }
  .bio-item { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .author-strip { padding: 24px; }
}

/* ---------- общий чат школы (разовый вход) ---------- */
.chat-offer {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(150deg, #f8eee5 0%, #f2e3d6 60%, #efdfd0 100%);
  border: 1px solid #e9d5c5;
  border-radius: var(--r-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}
.chat-offer h2 { margin-bottom: 12px; }
.chat-offer .lead { max-width: 58ch; }
.chat-offer__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.chat-offer__list li { position: relative; padding-left: 26px; font-size: .96rem; color: #4d4741; line-height: 1.5; }
.chat-offer__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--clay); transform: rotate(45deg) scale(.82);
}
.chat-offer__buy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.chat-offer__label {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600; margin-bottom: 8px;
}
.chat-offer__price {
  font-family: var(--font-display);
  font-size: 2.35rem; font-weight: 600; line-height: 1;
  color: var(--pine-deep); margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.chat-offer__note { font-size: .84rem; color: var(--ink-mute); line-height: 1.45; margin: 0 0 16px; }

@media (max-width: 1040px) {
  .chat-offer { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .chat-offer__buy { text-align: left; }
}
@media (max-width: 760px) {
  .chat-offer { padding: 24px; }
  .chat-offer__price { font-size: 2rem; }
}

/* ---------- полоса с датами потока ---------- */
.date-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: space-between;
  background: var(--pine-deep);
  color: #eef4f0;
  border-radius: var(--r-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-md);
}
.date-strip__items { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.date-strip__item { display: flex; flex-direction: column; gap: 1px; }
.date-strip__k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9dbbaf; }
.date-strip__v { font-weight: 600; font-size: .98rem; color: #fff; }
.date-strip__v b { color: #f0c9a8; }
.date-strip .btn { flex-shrink: 0; }

/* ---------- цена в месяц под ценой ---------- */
.price-month {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: .88rem;
  color: var(--ink-mute);
  margin: 2px 0 18px;
}
.price-month b { color: var(--pine); font-weight: 600; font-size: 1rem; }
.tariff--featured .price-month { color: #a9c2b6; }
.tariff--featured .price-month b { color: #f0c9a8; }

/* ---------- отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.review__text { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.review__text::before { content: "«"; }
.review__text::after { content: "»"; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__ava {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pine-tint);
  color: var(--pine-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}
.review__name { font-weight: 600; font-size: .92rem; }
.review__role { font-size: .8rem; color: var(--ink-mute); }

.reviews-empty {
  border: 1px dashed #cfc6b6;
  border-radius: var(--r-md);
  padding: 26px;
  background: rgba(255, 253, 249, .6);
  font-size: .92rem;
  color: var(--ink-soft);
}
.reviews-empty strong { display: block; margin-bottom: 6px; color: var(--ink); }

/* ---------- чат как вход ---------- */
.chat-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e9d5c5;
  background: linear-gradient(120deg, #f8eee5, #f3e6da);
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin-top: 24px;
}
.chat-entry p { margin: 0; max-width: 62ch; font-size: .96rem; color: #4d4741; }
.chat-entry strong { color: var(--ink); }

@media (max-width: 1040px) {
  .reviews { grid-template-columns: 1fr; }
  .date-strip { gap: 14px 20px; }
}
@media (max-width: 760px) {
  .date-strip { padding: 16px 18px; }
  .date-strip .btn { width: 100%; }
  .chat-entry { padding: 20px; }
}
/* ---------- мини-иконки мессенджеров в футере ---------- */
.social-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cdd3cc;
  font-size: .92rem;
  line-height: 1.2;
  padding: 2px 0;
  transition: color .18s var(--ease);
}
.social-mini:hover { color: #fff; text-decoration: none; }
.social-mini img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  display: block;
  transition: transform .18s var(--ease);
}
.social-mini:hover img { transform: translateY(-1px); }
