/* =========================================================
   НЕЙРО ЖАБКИ — лендинг
   Гайдбук: #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;
  position: relative;
}
.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: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.rig-login { cursor: text; }
.rig-login--out { position: static; width: min(368px, 100%); box-sizing: border-box; margin: 0; align-items: stretch; gap: 8px; transform: translateY(-18px); }
.rig-login--out .rig-login__row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding-right: 0; }
.rig-login--out .rig-login__inp { width: 100%; min-width: 0; }
.rig-login--out .rig-cursor { margin-right: 2px; flex: none; }
.rig-login__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 18px; }
.rig-login__lbl { color: var(--blue); font-size: 13px; text-shadow: 0 0 10px rgba(58,182,216,.45); }
.rig-login__arr { display: inline-block; font-size: 12px; animation: rig-arr 1.3s ease-in-out infinite; }
@keyframes rig-arr { 50% { transform: translateY(3px); } }
.rig-login__inp {
  width: 118px;
  padding: 7px 10px;
  background: rgba(58,182,216,.1);
  border: 1.5px solid rgba(58,182,216,.55);
  border-radius: 4px;
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  caret-color: var(--blue);
}
.rig-login__inp::placeholder { color: rgba(244,241,238,.4); }
.rig-login__inp:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 14px rgba(58,182,216,.45); }
.rig-login__inp.hcode__err { border-color: var(--red); animation: hcode-shake .3s; }
.rig-login__btn {
  padding: 7px 14px;
  background: var(--blue);
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.rig-login__btn:hover { filter: brightness(1.1); }
@media (max-width: 480px) {
  .rig-login__lbl { font-size: 11.5px; }
  .rig-login__inp { width: 104px; font-size: 14px; }
  .rig-login__btn { padding: 7px 12px; }
}
.rig-cursor {
  width: 8px;
  height: 16px;
  margin-left: 2px;
  margin-right: 18px;
  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%);
}
.section--light .tech-bg {
  background-image:
    linear-gradient(rgba(21,20,19,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,20,19,.055) 1px, transparent 1px),
    linear-gradient(rgba(58,182,216,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,182,216,.10) 1px, transparent 1px);
}

/* ---------- 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; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__micro {
  margin-top: 14px;
  font-size: 15px;
  color: var(--blue);
}
.gift-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(255,210,63,.55);
  clip-path: var(--chop-sm);
  filter: drop-shadow(0 0 12px rgba(255,210,63,.35));
}
.gift-hint:hover { color: #fff; border-color: var(--yellow); }
.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; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.hero__rig {
  position: relative;
  width: min(368px, 100%);
  box-sizing: border-box;
  padding: 26px 44px 34px;
  transform: translateY(-18px);
  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 {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700;
  background: var(--paper);
  border: 1px solid var(--ink);
  clip-path: var(--chop-sm);
  padding: 10px 18px;
  margin-top: auto;
  transition: background .2s, color .2s;
}
.tp-other__card:hover .tp-other__go { background: var(--ink); color: var(--paper); }

/* ---------- Якоря: отступ под липкую шапку ---------- */
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);
}
.price-card__sale {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: #FFD23F;
  padding: 4px 10px;
  clip-path: var(--chop-sm);
  transform: rotate(-1.2deg);
}
.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 {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  clip-path: var(--chop-sm);
  padding: 12px 20px;
  margin-top: auto;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.track__link:hover {
  background: var(--track-color, var(--red));
  border-color: var(--track-color, var(--red));
  color: var(--ink);
}

@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: manual; }

/* Ошибка отправки заявки */
.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; }


/* ===== Портфолио проектов учеников ===== */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pf-card {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--paper);
  clip-path: var(--chop);
  overflow: hidden;
  transition: transform .25s ease;
}
.pf-card:hover { transform: translateY(-4px); }
.section--light .pf-card { border-color: var(--ink); }
.pf-card__img { position: relative; }
.pf-card__img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.pf-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pf-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-card__tag {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  color: var(--blue);
  border: 1px solid var(--blue);
  clip-path: var(--chop-sm);
}
.pf-card__title {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.25;
}
.pf-card__text { font-size: 15px; font-weight: 400; opacity: .85; }
.pf-card__meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--blue);
}
.pf-card__link {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  border-bottom: 1px solid var(--blue);
  align-self: flex-start;
}
.pf-card__link:hover { color: var(--blue); }
@media (max-width: 980px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .pf-grid { grid-template-columns: 1fr; } }


/* Портфолио: ссылка в карточке и карточки-заглушки «скоро» */
.pf-card__link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
}
.pf-card__link:hover { text-decoration: underline; }
.pf-card--soon {
  background: transparent;
  border: 2px dashed rgba(21,20,19,.3);
  clip-path: none;
  min-height: 280px;
}
.pf-card--soon:hover { transform: none; }
.pf-card--soon .pf-card__body { align-items: center; justify-content: center; }
.pf-card__soon {
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.45;
  color: rgba(21,20,19,.45);
  text-align: center;
}
.pf-card__soon a { color: var(--blue); text-decoration: none; }
.pf-card__soon a:hover { text-decoration: underline; }

/* ---------- Фоновая анимация «нейронная сеть» (см. script.js) ---------- */
.tech-bg { overflow: hidden; }
.neuro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Нейро-анимация на простых страницах (верхняя полоса) ---------- */
.legal { position: relative; overflow: hidden; }
.legal > .container { position: relative; z-index: 1; }
.tech-bg--top { inset: auto; top: 0; left: 0; right: 0; height: 420px; }

/* ==== Код доступа в хеддере ==== */
.hcode { display: flex; align-items: center; gap: 8px; flex: none; }
.hcode__inp {
  width: 96px;
  padding: 10px 12px;
  background: rgba(244,241,238,.06);
  border: 1px solid rgba(244,241,238,.3);
  clip-path: var(--chop-sm);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .22em;
  text-align: center;
}
.hcode__inp::placeholder { color: rgba(244,241,238,.45); letter-spacing: .08em; }
.hcode__inp:focus { outline: none; border-color: var(--blue); }
.hcode__inp.hcode__err { border-color: var(--red); animation: hcode-shake .3s; }
.hcode__btn {
  padding: 10px 14px;
  background: var(--blue);
  color: var(--ink);
  border: 0;
  clip-path: var(--chop-sm);
  font-family: var(--font-head);
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.hcode__btn:hover { background: var(--paper); }
.hcode__btn:active { transform: scale(.95); }
@keyframes hcode-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@media (max-width: 1024px) {
  .hcode { display: none; }
}

/* ---------- v1.0: поле кода под логотипом в hero ---------- */
.hcode--hero { display: block; width: min(280px, 60vw); margin-top: 20px; }
.hcode--hero .hcode__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,241,238,.55);
  margin-bottom: 8px;
}
.hcode--hero .hcode__row { display: flex; gap: 8px; }
.hcode--hero .hcode__inp { flex: 1; width: 100%; text-transform: uppercase; letter-spacing: .1em; }
.hcode--hero .hcode__btn { padding: 10px 18px; }

@media (max-width: 1024px) {
  .hcode--hero { width: 200px; margin: 16px auto 0; }
}
/* v1.1: парольное поле — акцентное */
.hcode--hero .hcode__inp {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(242,143,59,.28), 0 0 18px rgba(242,143,59,.4);
}
.hcode--hero .hcode__inp::placeholder { color: rgba(28,26,23,.5); }
.hcode--hero .hcode__inp:focus { box-shadow: 0 0 0 4px rgba(242,143,59,.45), 0 0 24px rgba(242,143,59,.55); }

/* =========================================================
   v1.3.0: компактная мобильная версия (≤720px)
   Цель — убрать «бесконечный скролл»: меньше базовый шрифт,
   паддинги и отступы. Десктопная вёрстка не затронута.
   ========================================================= */
@media (max-width: 720px) {
  body { font-size: 15px; line-height: 1.5; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; margin-bottom: 16px; }
  h3 { font-size: 17px; }

  .section { padding: 44px 0; }
  .section__lead { font-size: 16px; margin-bottom: 24px; }
  .eyebrow { font-size: 12px; margin-bottom: 12px; }

  /* Hero: маскот с паролем — компактно, без декора */
  .hero { padding: 36px 0 48px; }
  .hero__grid { gap: 28px; }
  .hero__rig { padding: 20px 20px 26px; }
  .hero__mark { width: 132px; }
  .rig-node, .rig-label { display: none; }
  .hero__title { margin-bottom: 14px; }
  .hero__lead { font-size: 16px; margin-bottom: 20px; }
  .hero__actions { margin-bottom: 18px; }
  .hero__chips { gap: 8px; }
  .hero__chips li { font-size: 12px; padding: 7px 12px; }
  .hero__micro { font-size: 13px; }
  .hcode--hero { width: 220px; margin-top: 14px; }

  /* Кнопки */
  .btn { padding: 15px 22px; font-size: 15px; }

  /* Сравнение «обычные школы / мы» */
  .compare { gap: 16px; margin-bottom: 40px; }
  .compare__col { padding: 18px; }
  .compare__tag { font-size: 16px; margin-bottom: 12px; }
  .compare__col li { padding: 8px 0 8px 26px; font-size: 14.5px; }
  .compare__col li::before { top: 14px; width: 10px; height: 10px; }

  /* Принципы */
  .principles { gap: 16px; }
  .principle { padding: 18px; }
  .principle__num { font-size: 13px; padding: 4px 10px; margin-bottom: 12px; }
  .principle__title { font-size: 16px; margin-bottom: 8px; }
  .principle p:last-child { font-size: 14px; }

  /* Направления — главный «пожиратель» прокрутки */
  .tracks { gap: 16px; }
  .track { padding: 16px; gap: 12px; }
  .track__head { padding-left: 52px; min-height: 40px; }
  .track__num { width: 38px; height: 38px; font-size: 13px; }
  .track__en { font-size: 11px; }
  .track__desc { font-size: 14px; }
  .track__bars-label { font-size: 11px; }
  .track__bars { gap: 7px; }
  .bar { grid-template-columns: 96px 1fr 30px; gap: 8px; font-size: 11.5px; }
  .bar__line { height: 7px; }
  .track__meta { gap: 8px; }
  .chip { font-size: 11.5px; padding: 6px 10px; }
  .track__portfolio { font-size: 13px; padding-top: 10px; }
  .track__link { font-size: 12px; padding: 10px 14px; }

  /* Проекты учеников */
  .pf-grid { gap: 18px; }
  .pf-card__body { padding: 16px 16px 18px; gap: 9px; }
  .pf-card__title { font-size: 16px; }
  .pf-card__text { font-size: 13.5px; }
  .pf-card__tag { font-size: 10.5px; padding: 4px 8px; }
  .pf-card__meta { font-size: 12px; }

  /* Квиз «Не знаете, что выбрать?» */
  .quiz { padding: 20px; }
  .quiz__opt { font-size: 13.5px; padding: 9px 14px; }
  .quiz__result { margin-top: 14px; padding-top: 16px; }
  .quiz__track { font-size: 22px; }

  /* Абонементы */
  .pricing__grid { gap: 18px; }
  .price-card { padding: 20px 18px; gap: 10px; }
  .price-card__name { font-size: 21px; }
  .price-card__list { font-size: 13.5px; gap: 6px; }
  .price-card__price { font-size: 24px; }
  .price-card__price s { font-size: 16px; }
  .price-card__per { font-size: 13.5px; }
  .pricing__note { margin-top: 18px; font-size: 13.5px; }

  /* Официально / гарантии */
  .guarantees { gap: 14px; margin-bottom: 24px; }
  .guarantee { padding: 22px 18px; }
  .guarantee__figure { font-size: 38px; margin-bottom: 10px; }
  .guarantee__title { font-size: 16px; margin-bottom: 8px; }
  .guarantee p:last-child { font-size: 14px; }

  /* FAQ */
  .faq__q { font-size: 15.5px; padding: 14px 0; gap: 14px; }
  .faq__a p { padding-bottom: 14px; font-size: 14.5px; }

  /* CTA + форма */
  .section--cta { padding-bottom: 72px; }
  .cta__grid { gap: 28px; }
  .cta__points { gap: 10px; margin-bottom: 20px; }
  .cta__points li { font-size: 15px; padding-left: 24px; }
  .cta__direct { margin-top: 20px; }
  .cta__messenger { font-size: 14px; padding: 10px 16px; }
  .form { padding: 20px; gap: 14px; }
  .form__title { font-size: 20px; }
  .form__field input, .form__field select { font-size: 15px; padding: 12px 14px; }

  /* Футер */
  .footer { padding: 28px 0; }
  .footer__inner { gap: 10px; }

  /* Плавающая кнопка записи — компактнее */
  .fab-cta { left: 12px; right: 12px; bottom: 12px; padding: 13px 16px; font-size: 14px; }
}

/* ---------- v1.3.1: на мобильном пароль вынесен из логотипа ниже ----------
   Панель растворяется (display: contents), логотип получает свою рамку,
   форма пароля идёт под ним. DOM и десктоп не меняются. */
@media (max-width: 720px) {
  .hero__rig { display: contents; }
  .hero__visual { flex-direction: column; align-items: center; gap: 20px; }
  .hero__mark {
    width: 148px;
    border: 1px solid rgba(58,182,216,.45);
    padding: 18px 18px 20px;
  }
  .rig-prompt:not(.rig-login--out) { display: none; }
  .hcode--hero { width: min(300px, 78vw); margin-top: 0; }
  .hcode--hero .hcode__inp { font-size: 15px; padding: 12px 14px; }
  .hcode--hero .hcode__btn { font-size: 13px; padding: 12px 18px; }
}


/* === v1.3.6: направления — аккордеон (карточки скрыты, открываются по клику) === */
.tracks { grid-template-columns: 1fr; gap: 16px; }
.track { padding: 0; gap: 0; }
.track__head.track__toggle {
  display: flex; align-items: center; gap: 18px;
  width: 100%; padding: 22px 26px; min-height: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .25s;
}
.track__head.track__toggle:hover { background: rgba(244,241,238,.04); }
.track__head.track__toggle:focus-visible { outline: 2px solid var(--track-color, var(--red)); outline-offset: -2px; }
.track__toggle .track__num { position: static; flex: none; }
.track__names { flex: 1; min-width: 0; }
.track__plus {
  position: relative; flex: none; width: 38px; height: 38px;
  border: 1.5px solid var(--paper); clip-path: var(--chop-sm);
  transition: transform .35s ease, border-color .35s ease;
}
.track__plus::before, .track__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--track-color, var(--red));
}
.track__plus::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.track__plus::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.track__toggle:hover .track__plus { border-color: var(--track-color, var(--red)); }
.track.open .track__plus { transform: rotate(135deg); border-color: var(--track-color, var(--red)); }
.track__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.22,.8,.32,1);
}
.track.open .track__body { grid-template-rows: 1fr; }
.track__inner {
  overflow: hidden; min-height: 0;
  display: flex; flex-direction: column; gap: 18px;
  padding: 0 26px; opacity: 0;
  transition: opacity .3s ease .05s, padding .45s cubic-bezier(.22,.8,.32,1);
}
.track.open .track__inner { opacity: 1; padding: 2px 26px 28px; }
.track.open { border-color: var(--track-color, var(--red)); }
@media (max-width: 720px) {
  .track__head.track__toggle { padding: 18px 16px; gap: 12px; }
  .track__toggle .track__num { width: 40px; height: 40px; font-size: 13px; }
  .track__plus { width: 32px; height: 32px; }
  .track__inner { padding: 0 16px; }
  .track.open .track__inner { padding: 2px 16px 22px; }
}


/* === v1.3.6: блок оплаты — 4 карточки === */
.guarantees--pay { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guarantees--pay .guarantee { min-width: 0; }
.guarantees--pay .guarantee__figure { font-size: clamp(20px, 1.7vw, 25px); letter-spacing: -.01em; }
.guarantees--pay .guarantee:nth-child(2) .guarantee__figure { color: var(--green); }
.guarantees--pay .guarantee:nth-child(3) .guarantee__figure { color: var(--orange); }
@media (max-width: 1024px) {
  .guarantees--pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .guarantees--pay { grid-template-columns: 1fr; }
}

/* === v1.4.0: лёгкие неон-акценты на светлом сайте === */
.eyebrow { filter: drop-shadow(0 0 8px rgba(242,143,59,.3)); }
.eyebrow--blue { filter: drop-shadow(0 0 8px rgba(58,182,216,.35)); }
.eyebrow--red { filter: drop-shadow(0 0 8px rgba(239,91,91,.3)); }
.hero__rig { filter: drop-shadow(0 0 18px rgba(58,182,216,.22)); }

/* roadmap teaser */
/* Чипы-примеры блоков в карточках направлений на главной */
.track__blocks { font-size: 15px; }
.track__blocks b { color: var(--track-color, var(--red)); }

/* Тизер-секция «Соберите маршрут из 48 занятий» на главной */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 44px 0 40px;
}
.mosaic__path {
  border: 1px solid var(--ink);
  clip-path: var(--chop-sm);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mosaic__title { font-family: var(--font-head); font-size: 18px; }
.mosaic__age {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--blue);
  text-transform: uppercase;
}
.mosaic__route { font-size: 15px; font-weight: 500; }
.mosaic__note { font-size: 15px; opacity: .75; }
@media (max-width: 1024px) {
  .mosaic { grid-template-columns: 1fr; }
}

/* Блоки «Программа по блокам» на страницах направлений */
.rblocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.rblock {
  border: 1px solid var(--ink);
  border-left: 6px solid var(--track-color, var(--blue));
  clip-path: var(--chop-sm);
  padding: 24px 26px;
}
.rblock__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 12px;
}
.rblock__title { font-family: var(--font-head); font-size: 19px; }
.rblock__chip {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 6px 12px;
  border: 1px solid var(--track-color, var(--blue));
  color: var(--ink);
  clip-path: var(--chop-sm);
}
.rblock__result { margin-bottom: 8px; }
.rblock__result b { color: var(--track-color, var(--blue)); }
.rblock__sum { font-size: 15px; opacity: .85; }
.rblocks__note { font-size: 16px; max-width: 68ch; }
.rblocks__note a { color: var(--blue); }

/* v20260830 — 5 обобщённых направлений и блок «Образовательный маршрут» */
.track__skills { font-size: 15px; opacity: .85; margin: 0 0 14px; }
.track__skills b { color: var(--track-color, var(--blue)); }
.rt-lines { display: flex; flex-direction: column; gap: 12px; margin: 34px 0 8px; }
.rt-line {
  display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: baseline;
  background: #fff; border: 2px solid rgba(21,20,19,.16); padding: 16px 20px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.rt-line__name { font-family: var(--font-head); font-size: 17px; color: var(--track-color, var(--blue)); }
.rt-line__blocks { font-size: 15px; opacity: .8; }
@media (max-width: 760px) {
  .rt-line { grid-template-columns: 1fr; gap: 4px; }
}

/* ==================== v20260830b ==================== */
/* Кнопка «Кабинет» в навигации — заметный, но аккуратный акцент */
.nav-cabinet {
  border: 2px solid var(--blue) !important;
  padding: 6px 14px;
  clip-path: var(--chop-sm);
  font-weight: 700;
  color: var(--blue) !important;
  transition: background .2s, color .2s;
}
.nav-cabinet:hover { background: var(--blue); color: var(--ink) !important; }
.mobile-nav a.nav-cabinet { align-self: flex-start; margin-top: 10px; }

/* Изображения направлений в карточках #tracks на главной.
   hotfix5: при открытии кадр увеличивается (карточка явно разворачивается),
   кадрирование держит ключевой объект через per-track --focal. */
.track__media {
  overflow: hidden;
  border-bottom: 1px solid rgba(244,241,238,.14);
}
.track__media img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: 50% var(--focal, 42%);
  transition: height .45s cubic-bezier(.22,.8,.32,1), transform .45s cubic-bezier(.22,.8,.32,1);
}
.track.open .track__media img {
  height: clamp(260px, 32vw, 380px);
  transform: scale(1.02);
}
@media (max-width: 720px) {
  .track__media img { height: 150px; }
  .track.open .track__media img { height: 220px; }
}
/* v20260830b: мобильная доступность (≤720px) — текст ≥14px, цели касания ≥44px */
@media (max-width: 720px) {
  .btn, .btn--small, .quiz__opt, .track__link, .cta__messenger, .gift-hint {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .faq__q { min-height: 44px; }
  .tp-back { display: inline-block; padding: 12px 0; }
  .footer__links a { display: inline-block; padding: 12px 4px; }
  .rig-login__inp { min-height: 44px; }
  .rig-login__btn { min-height: 44px; min-width: 44px; }

  .eyebrow { font-size: 14px; }
  .chip { font-size: 14px; }
  .track__en { font-size: 14px; }
  .track__link { font-size: 14px; }
  .mosaic__age { font-size: 14px; }
  .quiz__opt { font-size: 14px; }
  .quiz__link { font-size: 14px; }
  .price-card__per { font-size: 14px; }
  .price-card__badge { font-size: 14px; }
  .rblock__chip { font-size: 14px; }
  .btn, .btn--small { font-size: 14px; }
  .footer__legal { font-size: 14px; }
  .header__inner > .btn--small { font-size: 14px; }
  .price-card__list, .price-card__list li { font-size: 14px; }
  .hero__chips li { font-size: 14px; }
  .form__privacy { font-size: 14px; }
  .pricing__note { font-size: 14px; }
}
/* Шапка: компактность при добавленном пункте «Кабинет» */
.header__inner > .btn--small { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1500px) {
  .header__inner { gap: 24px; }
  .header__nav { gap: 20px; }
}

/* Десктопная шапка: основное меню по центру, «Кабинет» и CTA — справа.
   hotfix3: grid-раскладка вместо абсолютного центрирования — меню больше не
   может наехать на «Кабинет»/CTA ни на одной ширине (при нехватке места
   пункты просто переносятся на вторую строку). */
.header__inner > .header__cabinet { flex: none; }
@media (min-width: 1101px) {
  .header__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 24px; }
  .header__nav { margin-left: 0; justify-self: center; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .header__inner > .header__cabinet { margin-left: 0; }
  .header__inner > .btn--small { margin-left: 0; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .header__nav { display: none; }
  .burger { display: flex; }
  .header__inner { justify-content: space-between; }
  .header__inner > .header__cabinet { margin-left: auto; }
}
@media (max-width: 720px) {
  .header__inner > .header__cabinet { display: none; }
}
