/* =========================================================
   НЕЙРО ЖАБКИ — лендинг
   Гайдбук: #151413 / #F4F1EE / #EF5B5B / #3AB6D8 / #F28F3B
   Заголовки: Dela Gothic One · Текст: Kantumruy Pro + Manrope
   ========================================================= */

:root {
  --ink: #151413;
  --paper: #F4F1EE;
  --red: #EF5B5B;
  --blue: #3AB6D8;
  --orange: #F28F3B;

  --font-head: 'Dela Gothic One', 'Manrope', sans-serif;
  --font-body: 'Kantumruy Pro', 'Manrope', sans-serif;

  --chop: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --chop-sm: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Типографика ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.2vw, 64px); }
h2 { font-size: clamp(30px, 3.8vw, 48px); margin-bottom: 24px; }
h3 { font-size: 26px; }

p { max-width: 68ch; }

b, strong { font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 10px; height: 10px;
  background: currentColor;
  flex: none;
}
.eyebrow--red  { color: var(--blue); }
.eyebrow--blue { color: var(--blue); }
/* На светлых секциях текст eyebrow — чернильный, квадрат-маркер остаётся синим */
.section--light .eyebrow { color: var(--ink); }
.section--light .eyebrow::before { background: var(--blue); }

.accent-red { color: var(--blue); }

.section__lead {
  font-size: 22px;
  font-weight: 400;
  max-width: 72ch;
  margin-bottom: 48px;
}

/* ---------- Кнопки (рубленые формы) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  background: var(--blue);
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 22px 36px;
  clip-path: var(--chop);
  transition: background .2s ease, transform .2s ease;
  text-align: center;
}
.btn:hover { background: var(--paper); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--small { padding: 14px 24px; font-size: 14px; clip-path: var(--chop-sm); }
.btn--wide  { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--paper);
  box-shadow: 0 1px 0 rgba(244,241,238,.14);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 16px 0;
}
.header__logo img { display: block; height: 40px; width: auto; }
.header__nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.header__nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .04em;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.header__nav a:hover { color: var(--blue); border-color: var(--blue); }

/* Промпт-строка в рамке маскота */
.rig-prompt {
  position: absolute;
  left: 24px;
  bottom: 44px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rig-cursor {
  width: 8px;
  height: 16px;
  background: var(--blue);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Мобильная навигация ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(244,241,238,.35);
  clip-path: var(--chop-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--paper);
  transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 77px 0 0 0;
  z-index: 99;
  background: var(--ink);
  flex-direction: column;
  gap: 8px;
  padding: 32px 24px;
}
.mobile-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 22px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244,241,238,.14);
}
.mobile-nav a.btn {
  margin-top: 24px;
  font-size: 18px;
  text-align: center;
  border-bottom: none;
}
.mobile-nav.is-open { display: flex; }

/* Плавающая CTA на мобильном */
.fab-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 98;
  padding: 16px 20px;
  font-size: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(90px);
  transition: opacity .3s, transform .3s;
}
.fab-cta.is-visible { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .burger { display: flex; }
  .fab-cta { display: inline-block; }
}

/* ---------- Декор: тонкая инженерная сетка (мотив чертежа/платы) ---------- */
.tech-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244,241,238,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,238,.045) 1px, transparent 1px),
    linear-gradient(rgba(58,182,216,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,182,216,.06) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 360px 360px, 360px 360px;
}
.tech-bg--fade {
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero__title { margin-bottom: 28px; }
.hero__lead {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 40px;
}
.hero__actions { margin-bottom: 32px; }
.hero__micro {
  margin-top: 14px;
  font-size: 15px;
  color: var(--blue);
}
.hero__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__chips li {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .05em;
  padding: 10px 18px;
  border: 1px solid var(--paper);
  clip-path: var(--chop-sm);
}

/* Техно-рамка маскота: маскот = элемент интерфейса */
.hero__visual { display: flex; justify-content: center; }
.hero__rig {
  position: relative;
  padding: 44px 44px 78px;
  border: 1px solid rgba(58,182,216,.45);
}
.hero__rig::before,
.hero__rig::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--blue);
}
.hero__rig::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hero__rig::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.hero__mark { display: block; width: min(280px, 60vw); height: auto; }
.rig-label {
  position: absolute;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--blue);
  background: var(--ink);
  padding: 4px 10px;
}
.rig-label--tl { top: -10px; left: 24px; }
.rig-label--br { bottom: -10px; right: 24px; color: var(--blue); }
.rig-node {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--orange);
}
.rig-node--1 { top: 18px; right: 18px; }
.rig-node--2 { top: 18px; right: 40px; background: var(--blue); }
.rig-node--3 { bottom: 18px; left: 18px; background: var(--blue); }
.rig-node--4 { bottom: 18px; left: 40px; background: var(--blue); }

/* ---------- Секции ---------- */
.section { position: relative; padding: 110px 0; overflow: hidden; }
.section--dark  { background: var(--ink);   color: var(--paper); }
.section--light { background: var(--paper); color: var(--ink); }

/* ---------- Блок 2: сравнение ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 72px;
}
.compare__col {
  padding: 40px;
  clip-path: var(--chop);
}
.compare__col--them {
  background: var(--ink);
  color: var(--paper);
}
.compare__col--us {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--blue);
}
.compare__tag {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 22px;
}
.compare__col ul { list-style: none; }
.compare__col li {
  padding: 12px 0 12px 34px;
  position: relative;
  font-size: 18px;
}
.compare__col li + li { border-top: 1px solid currentColor; }
.compare__col li::before {
  content: '';
  position: absolute;
  left: 0; top: 20px;
  width: 12px; height: 12px;
}
.compare__col--them li::before { background: var(--red); }
.compare__col--us li::before   { background: var(--blue); }

/* Принципы */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.principle {
  border: 1px solid var(--ink);
  padding: 32px;
  position: relative;
  clip-path: var(--chop);
  background: var(--ink);
  color: var(--paper);
}
.principle__num {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
  background: var(--blue);
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: 20px;
}
.principle__title {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--paper);
}
.principle p:last-child { font-size: 17px; }

/* ---------- Блок 3: направления ---------- */
.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  position: relative;
}
.track {
  border: 1px solid var(--paper);
  border-top: 6px solid var(--track-color, var(--red));
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  clip-path: var(--chop);
  background: var(--ink);
}
.track__head { position: relative; padding-left: 64px; min-height: 52px; }
.track__num {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
  background: var(--track-color, var(--red));
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.track__head h3 { margin-bottom: 4px; }
.track__en {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--track-color, var(--red));
}
.track__desc { font-size: 17px; flex: 1; }

/* Полоски прогресса */
.track__bars-label {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.track__bars { display: flex; flex-direction: column; gap: 12px; }
.bar {
  display: grid;
  grid-template-columns: 150px 1fr 42px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
}
.bar__label { letter-spacing: .03em; }
.bar__line {
  height: 8px;
  background: transparent;
  outline: 1px solid var(--paper);
  position: relative;
  overflow: hidden;
}
.bar__line i {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--track-color, var(--red));
  transition: width 1s cubic-bezier(.22,.8,.32,1) .15s;
}
.bar__val { font-weight: 500; color: var(--track-color, var(--red)); text-align: right; }

.track__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 8px 14px;
  border: 1px solid var(--track-color, var(--red));
  color: var(--paper);
  clip-path: var(--chop-sm);
}
.track__portfolio {
  font-size: 15px;
  padding-top: 14px;
  border-top: 1px dashed var(--paper);
}
.track__portfolio b { color: var(--track-color, var(--red)); }

/* ---------- Блок 4: гарантии ---------- */
.guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.guarantee {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 32px;
  clip-path: var(--chop);
}
.guarantee__figure {
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 20px;
}
.guarantee:nth-child(2) .guarantee__figure { color: var(--orange); }
.guarantee:nth-child(3) .guarantee__figure { color: var(--red); }
.guarantee__title {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 14px;
}
.guarantee p:last-child { font-size: 17px; }

.license-line {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  border: 1px solid var(--ink);
  padding: 18px 24px;
  display: inline-block;
  clip-path: var(--chop-sm);
}

/* ---------- Блок 5: CTA ---------- */
.section--cta { padding-bottom: 130px; }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 72px;
  align-items: start;
  position: relative;
}
.cta__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta__points li {
  padding-left: 30px;
  position: relative;
  font-size: 18px;
}
.cta__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  background: var(--blue);
}

/* Форма */
.form {
  background: var(--paper);
  color: var(--ink);
  padding: 44px;
  clip-path: var(--chop);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.form__title {
  font-family: var(--font-head);
  font-size: 24px;
  margin-bottom: 6px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.form__field input,
.form__field select {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 16px 18px;
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.form__field input:focus,
.form__field select:focus { border-color: var(--blue); box-shadow: 4px 4px 0 var(--blue); }
.form__field input.error,
.form__field select.error { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.form__privacy { font-size: 13px; max-width: none; }
.form__success {
  border: 2px solid var(--ink);
  padding: 28px;
  background: var(--blue);
  color: var(--ink);
  clip-path: var(--chop-sm);
}
.form__success-title {
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: 10px;
}

/* ---------- Подвал ---------- */
.footer {
  border-top: 1px solid rgba(244,241,238,.14);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.footer__logo { height: 36px; width: auto; }
.footer__tag { font-size: 16px; }
.footer__requisites { font-size: 14px; letter-spacing: .04em; opacity: .85; }
.footer__links { font-size: 14px; }
.footer__links a { color: var(--blue); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { font-size: 13px; color: var(--blue); letter-spacing: .06em; }

/* Ссылка на политику в форме */
.form__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Юридические страницы (оферта / политика) ---------- */
.legal { background: var(--paper); color: var(--ink); padding: 72px 0 96px; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.legal__meta { color: var(--blue); font-size: 15px; letter-spacing: .04em; margin-bottom: 48px; }
.legal h2 {
  font-size: 24px;
  margin: 56px 0 20px;
  padding-top: 36px;
  border-top: 1px solid rgba(21,20,19,.18);
}
.legal h3 { font-size: 18px; margin: 28px 0 12px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 8px; }
.legal__requisites {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid var(--ink);
  clip-path: var(--chop-sm);
}
.legal__requisites p { margin-bottom: 6px; }
@media (max-width: 720px) {
  .legal { padding: 48px 0 64px; }
  .legal h2 { font-size: 20px; margin-top: 44px; }
}

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.32,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar__line i { transition: none; }
}

.cta__tg { margin-top: 24px; font-size: 16px; }
.cta__tg a { color: var(--blue); }

/* ---------- Страницы направлений: новые блоки ---------- */
.principles--3 { grid-template-columns: repeat(3, 1fr); }
.tp-h3 { margin: 56px 0 24px; }
.tp-list { margin-left: 22px; max-width: 62ch; }
.tp-list li { margin-bottom: 10px; }
.tp-text { max-width: 68ch; }
.tp-price {
  border: 1px solid var(--ink);
  clip-path: var(--chop-sm);
  max-width: 760px;
}
.tp-price__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(21,20,19,.16);
  font-size: 17px;
}
.tp-price__row:last-child { border-bottom: none; }
.tp-price__row b { font-family: var(--font-head); font-size: 22px; }
.tp-price__row--hit { background: rgba(242,143,59,.16); }
.tp-price__per { text-align: right; opacity: .7; font-size: 15px; }
.tp-other { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-other__card {
  border: 1px solid var(--ink);
  border-top: 6px solid var(--track-color, var(--blue));
  clip-path: var(--chop-sm);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s;
}
.tp-other__card:hover { transform: translateY(-4px); }
.tp-other__name { font-family: var(--font-head); font-size: 20px; }
.tp-other__go { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* ---------- Якоря: отступ под липкую шапку ---------- */
section[id] { scroll-margin-top: 90px; }

/* ---------- Цены (табуляция) ---------- */
.pricing__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.pricing__tab {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 12px 20px;
  background: none;
  color: var(--paper);
  border: 1px solid rgba(244,241,238,.35);
  clip-path: var(--chop-sm);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pricing__tab.is-active {
  background: var(--blue);
  color: var(--ink);
  border-color: var(--blue);
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  border: 1px solid var(--paper);
  border-top: 6px solid var(--blue);
  padding: 32px 28px;
  clip-path: var(--chop-sm);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card--hit { border-top-color: var(--orange); }
.price-card__lessons { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.price-card__name {
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.15;
}
.price-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  opacity: .85;
  flex: 1;
}
.price-card__list li { padding-left: 18px; position: relative; }
.price-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--blue);
}
.price-card__per { font-size: 15px; opacity: .75; }
.price-card__price {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.1;
}
.price-card__price s {
  font-size: 20px;
  opacity: .5;
  margin-right: 10px;
}
.price-card__badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--orange);
  padding: 4px 10px;
  clip-path: var(--chop-sm);
}
.pricing__note { margin-top: 24px; font-size: 15px; opacity: .8; }

/* Прямая связь в CTA-блоке */
.cta__direct { margin-top: 28px; }
.cta__direct-label { margin-bottom: 12px; font-size: 16px; }
.cta__direct-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__messenger {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--blue);
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  clip-path: var(--chop-sm);
  transition: background .2s, color .2s;
}
.cta__messenger:hover { background: var(--blue); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq__item { border-top: 1px solid rgba(21,20,19,.2); }
.faq__item:last-child { border-bottom: 1px solid rgba(21,20,19,.2); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-size: 19px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.faq__q::after {
  content: '+';
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--blue);
  border: 1px solid currentColor;
  transition: transform .25s;
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq__a p { padding-bottom: 22px; max-width: 62ch; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* ---------- Квиз ---------- */
.quiz {
  border: 1px solid var(--paper);
  border-left: 6px solid var(--blue);
  clip-path: var(--chop);
  background: var(--ink);
  padding: 40px;
}
.quiz__step { margin-bottom: 12px; }
.quiz__q { font-family: var(--font-head); font-size: 20px; margin-bottom: 16px; }
.quiz__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz__opt {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  background: none;
  color: var(--paper);
  border: 1px solid rgba(244,241,238,.35);
  clip-path: var(--chop-sm);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.quiz__opt:hover { background: var(--blue); color: var(--ink); }
.quiz__step.is-done { opacity: .45; pointer-events: none; }
.quiz__result { margin-top: 20px; padding-top: 24px; border-top: 1px solid rgba(244,241,238,.2); }
.quiz__track {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .pricing__panel { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .hero__mark { width: 200px; }
  .principles, .guarantees { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .header__nav { display: none; }
  .header__inner { justify-content: space-between; }
  .btn--small { padding: 12px 16px; font-size: 13px; white-space: nowrap; }
  .hero { padding: 56px 0 72px; }
  .hero__lead { font-size: 18px; }
  .section { padding: 72px 0; }
  .compare { grid-template-columns: 1fr; }
  .compare__col { padding: 28px; }
  .form { padding: 28px; }
  .track { padding: 24px; }
  .track__head h3 { overflow-wrap: break-word; }
  .bar { grid-template-columns: 104px 1fr 40px; }
  .section__lead { font-size: 19px; margin-bottom: 36px; }
  .pricing__panel { grid-template-columns: 1fr; }
  .quiz { padding: 28px; }
  .faq__q { font-size: 17px; }
}

/* =========================================================
   СТРАНИЦЫ НАПРАВЛЕНИЙ (tracks/*.html)
   ========================================================= */

.tp-hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.tp-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.tp-back {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 28px;
}
.tp-back:hover { text-decoration: underline; }
.tp-hero__img {
  clip-path: var(--chop);
  border: 1px solid var(--track-color, var(--blue));
  line-height: 0;
}
.tp-hero__img img { width: 100%; height: auto; display: block; }
.tp-hero .hero__chips { margin: 28px 0 36px; }

/* Шаги курса */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--paper);
  border-top: 6px solid var(--track-color, var(--blue));
  padding: 28px;
  clip-path: var(--chop-sm);
}
.step__num {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--track-color, var(--blue));
  display: block;
  margin-bottom: 14px;
}
.step__title {
  font-family: var(--font-head);
  font-size: 17px;
  margin-bottom: 10px;
}
.step p:last-child { font-size: 15px; }

/* Галерея скриншотов */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.shots .shot:first-child { grid-column: 1 / -1; }
.shot {
  border: 1px solid var(--paper);
  clip-path: var(--chop);
  overflow: hidden;
  background: var(--ink);
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 400;
  border-top: 1px solid var(--paper);
}
.shot figcaption b { color: var(--track-color, var(--blue)); }
.shots__note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: .04em;
}

/* Портфолио-полоса */
.tp-portfolio {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding: 44px;
  clip-path: var(--chop);
}
.tp-portfolio__badge {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--ink);
  background: var(--track-color, var(--blue));
  padding: 16px 22px;
  flex: none;
  clip-path: var(--chop-sm);
}
.tp-portfolio p { font-size: 19px; }
.tp-portfolio b { color: var(--track-color, var(--blue)); }

/* CTA-баннер внизу страницы направления */
.tp-cta {
  text-align: center;
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}
.tp-cta h2 { margin-bottom: 18px; }
.tp-cta .eyebrow { justify-content: center; margin-inline: auto; }
.tp-cta .section__lead { margin: 0 auto 36px; }
.tp-cta__micro { margin: 16px auto 0; font-size: 15px; color: var(--blue); text-align: center; }

/* Ссылка «Подробнее» на карточках главной */
.track__link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--track-color, var(--red));
  text-decoration: none;
}
.track__link:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .tp-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .principles--3, .tp-other { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .tp-portfolio { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .tp-hero { padding: 48px 0 64px; }
  .tp-price__row { grid-template-columns: 1fr auto; }
  .tp-price__per { display: none; }
  .tp-portfolio { padding: 28px; }
}

/* 4 карточки «Чему научится ребёнок» */
.principles--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) {
  .principles--4 { grid-template-columns: 1fr; }
}

/* Мобильная раскладка цен — в конце файла, чтобы не перекрывалась базовыми правилами */
@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .price-card__price { font-size: 28px; }
}

/* ---------- Мобильная компактность (правка переполнения шапки) ---------- */
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .header__inner { gap: 12px; padding: 12px 0; }
  .header__logo img { height: 32px; }
  .header__inner > .btn--small { padding: 12px 18px; font-size: 13px; white-space: nowrap; }
  .mobile-nav { inset: 57px 0 0 0; }
}
@media (max-width: 380px) {
  .header__inner > .btn--small { display: none; }
}

/* Длинные слова в заголовках не выходят за экран на узких телефонах */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

/* Ошибка отправки заявки */
.form__error {
  font-size: 15px;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 12px 16px;
  clip-path: var(--chop-sm);
}
.btn[disabled] { opacity: .6; cursor: default; }
