@import url("fonts.css");

/* ==========================================================================
   ИЗИ — дизайн-система
   Ink (тёмно-синий) + Coral (коралл) из логотипа, кремовый фон,
   фирменный приём — жёсткая смещённая тень (offset shadow), как в лого.
   ========================================================================== */

:root {
  /* — палитра — */
  --ink: #1e1b4b;
  --ink-2: #2b2767;
  --ink-3: #453f8f;
  --ink-soft: #6b66a8;

  --coral: #ff8a65;
  --coral-600: #ff6b3d;
  --coral-700: #f2542d;
  --coral-100: #ffe6dc;
  --coral-50: #fff2ec;

  --mint: #3fd8a4;
  --mint-600: #16b487;
  --mint-100: #d9f7ec;

  --lemon: #ffd166;
  --lemon-100: #fff1cf;

  --lilac: #a99cff;
  --lilac-100: #ece9ff;

  --cream: #fff8f3;
  --cream-2: #fdf1e8;
  --paper: #ffffff;
  --line: #eadfd6;
  --line-strong: #1e1b4b;

  /* — типографика — */
  --font-display: "Nunito", "Onest", system-ui, -apple-system, sans-serif;
  --font-sans: "Onest", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.12rem, 1.05rem + 0.35vw, 1.32rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.7rem + 4vw, 5.2rem);

  /* — сетка и радиусы — */
  --wrap: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* — тени — */
  --sh-hard: 0 4px 0 var(--ink);
  --sh-hard-lg: 0 6px 0 var(--ink);
  --sh-soft: 0 18px 40px -24px rgba(30, 27, 75, 0.45);
  --sh-lift: 0 30px 60px -30px rgba(30, 27, 75, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdr: 74px;
}

/* ==========================================================================
   Базовое
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01";
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--coral); color: var(--ink); }

/* ==========================================================================
   Утилиты
   ========================================================================== */

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - var(--gutter) * 2, 1360px); }

.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-700);
  background: var(--coral-50);
  border: 2px solid var(--coral-100);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
}
.eyebrow--mint { color: var(--mint-600); background: var(--mint-100); border-color: #b6eeda; }
.eyebrow--dark { color: var(--coral); background: rgba(255, 138, 101, 0.12); border-color: rgba(255, 138, 101, 0.3); }

.h-sec { font-size: var(--step-4); max-width: 22ch; }
.h-sec--wide { max-width: 30ch; }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 58ch; line-height: 1.55; }

.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.sec-head--split {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; }
  .sec-head--split .sec-head__aside { justify-self: end; max-width: 46ch; }
}

.mark {
  position: relative;
  white-space: nowrap;
  color: var(--coral-700);
}
.mark svg {
  position: absolute;
  left: -2%;
  bottom: -0.32em;
  width: 104%;
  height: 0.42em;
  overflow: visible;
  pointer-events: none;
}
.mark svg path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
}
.is-in .mark svg path { animation: draw 0.9s var(--ease) 0.25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hl {
  background: linear-gradient(180deg, transparent 58%, var(--lemon) 58%);
  padding-inline: 0.1em;
}

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

.btn {
  --btn-bg: var(--coral-600);
  --btn-fg: #fff;
  --btn-edge: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2.5px solid var(--btn-edge);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  box-shadow: 0 5px 0 var(--btn-edge);
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.2s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--btn-edge); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--btn-edge); }
.btn--lg { padding: 1.15rem 2rem; font-size: var(--step-1); }
.btn--sm { padding: 0.65rem 1.1rem; font-size: var(--step--1); box-shadow: 0 4px 0 var(--btn-edge); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: #fff; --btn-edge: var(--ink); }
.btn--mint { --btn-bg: var(--mint); --btn-fg: var(--ink); }
.btn--on-dark { --btn-edge: #0e0c29; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--coral-700);
  border-bottom: 2px solid var(--coral-100);
  padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s;
}
.link-arrow:hover { border-color: var(--coral); gap: 0.65rem; }

/* ==========================================================================
   Карточки
   ========================================================================== */

.card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-hard);
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  position: relative;
}
.card--flat { box-shadow: none; border-color: var(--line); }
.card--soft { border: 1.5px solid var(--line); box-shadow: var(--sh-soft); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  white-space: nowrap;
}
.chip--mint { background: var(--mint-100); border-color: #b6eeda; color: #0d7c5c; }
.chip--coral { background: var(--coral-50); border-color: var(--coral-100); color: var(--coral-700); }
.chip--lilac { background: var(--lilac-100); border-color: #d7d1ff; color: #4b3fd1; }
.chip--lemon { background: var(--lemon-100); border-color: #f7dc9e; color: #8a6200; }

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.header.is-stuck { border-bottom-color: var(--ink); background: color-mix(in srgb, var(--cream) 96%, transparent); }

.header__bar {
  height: var(--hdr);
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.brand { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }
.brand__tag {
  display: none;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-soft);
  border-left: 2px solid var(--line);
  padding-left: 0.6rem;
  max-width: 11ch;
}
@media (min-width: 1100px) { .brand__tag { display: block; } }

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(0.5rem, 1.4vw, 1.4rem); }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.2rem;
  position: relative;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0.25rem;
  height: 2.5px; border-radius: 2px;
  background: var(--coral);
  transition: right 0.25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { right: 0; }
@media (min-width: 1000px) { .nav { display: block; } }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
@media (min-width: 1000px) { .header__actions { margin-left: 0; } }

.header__phone { display: none; font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
@media (min-width: 1280px) { .header__phone { display: block; } }
.header__cta { display: none; }
@media (min-width: 560px) { .header__cta { display: inline-flex; } }

.burger {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s var(--ease); }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--hdr) 0 0;
  z-index: 55;
  background: var(--cream);
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: 0.28s var(--ease);
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a.mm-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  padding: 0.9rem 0;
  border-bottom: 2px solid var(--line);
}
.mobile-menu .mm-foot { margin-top: 1.75rem; display: grid; gap: 0.85rem; }

/* ==========================================================================
   Декор: пятно подсветки в hero
   ========================================================================== */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; padding-top: clamp(2rem, 1rem + 4vw, 4rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); overflow: hidden; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem); }
@media (min-width: 1060px) {
  .hero__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); align-items: center; }
}

.hero__title {
  font-size: var(--step-5);
  letter-spacing: -0.035em;
  margin-block: 1.1rem 1.2rem;
}
.hero__title em { font-style: normal; color: var(--coral-700); }

.hero__sub { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.hero__sub b { font-weight: 800; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }
@media (max-width: 560px) {
  .hero__cta { display: grid; gap: 0.7rem; }
  .hero__cta .btn { width: 100%; }
  .btn--lg { padding: 1rem 1.2rem; }
}

.hero__trust {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.4rem;
}
.trust-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.trust-item svg { flex: 0 0 auto; color: var(--mint-600); }

.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  margin-left: -10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  color: #fff;
}
.avatars span:first-child { margin-left: 0; }

/* — интерактивный подборщик в hero — */
.picker {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 0 10px 0 var(--ink), var(--sh-lift);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  position: relative;
}
.picker::before {
  content: "Займёт 20 секунд";
  position: absolute;
  top: -15px; right: 18px;
  background: var(--lemon);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  transform: rotate(3deg);
}
.picker__title { font-size: var(--step-2); margin-bottom: 0.3rem; }
.picker__hint { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.1rem; }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--cream-2);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
}
.seg button {
  border: 0;
  font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1rem);
  background: transparent;
  border-radius: var(--r-pill);
  padding: 0.6rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  color: var(--ink-soft);
  transition: 0.2s var(--ease);
}
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }

.field { display: grid; gap: 0.4rem; margin-bottom: 0.9rem; }
.field > label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  background: var(--cream);
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s;
  appearance: none;
  color: var(--ink);
}
select.control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231e1b4b' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.control:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.control::placeholder { color: #b3abc4; }

.picker__result {
  margin-top: 1.1rem;
  background: var(--cream-2);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.5rem;
}
.picker__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.picker__row b { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; }
.picker__price { color: var(--coral-700); }

.legal { font-size: 0.75rem; line-height: 1.45; color: #9a93ae; }
.legal a { text-decoration: underline; }


/* ==========================================================================
   Цифры / статистика
   ========================================================================== */

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { text-align: left; padding: 1.3rem 1.2rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat__num sup { font-size: 0.5em; vertical-align: super; color: var(--coral-700); }
.stat__label { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.stat:nth-child(1) { background: var(--coral-50); }
.stat:nth-child(2) { background: var(--mint-100); }
.stat:nth-child(3) { background: var(--lilac-100); }
.stat:nth-child(4) { background: var(--lemon-100); }

/* ==========================================================================
   Боль / решение
   ========================================================================== */

.vs { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .vs { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }

.vs__col { border-radius: var(--r-xl); padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); border: 2.5px solid var(--ink); }
.vs__col--bad { background: var(--paper); box-shadow: var(--sh-hard); }
.vs__col--good { background: var(--ink); color: var(--cream); box-shadow: 0 4px 0 var(--coral); }
.vs__col h3 { font-size: var(--step-2); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem; }
.vs__list { display: grid; gap: 0.85rem; }
.vs__list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.vs__list .ic { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.vs__col--bad .ic { background: #ffe1e1; color: #d23f3f; }
.vs__col--good .ic { background: rgba(63, 216, 164, 0.18); color: var(--mint); }
.vs__col--good .vs__list li { color: #e8e4ff; }
.vs__col--good b { color: #fff; }

/* ==========================================================================
   Курсы
   ========================================================================== */

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter {
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-pill);
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: 0.18s var(--ease);
  white-space: nowrap;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.courses { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }

.course {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-hard);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.course:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }
.course__top { display: flex; align-items: flex-start; gap: 0.85rem; }
.course__top > span:last-child { min-width: 0; }
.course__ic {
  flex: 0 0 52px; width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--ink);
  border: 2.5px solid var(--ink);
}
.course__name { display: block; font-size: 1.22rem; font-family: var(--font-display); font-weight: 900; line-height: 1.15; }
.course__sub { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.15rem; }
.course__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.course__tags { display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--ink-soft); }
.course__tags li { position: relative; padding-left: 0.95rem; line-height: 1.4; }
.course__tags li::before {
  content: "";
  position: absolute; left: 0; top: 0.58em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--coral);
}
.course__foot { margin-top: auto; padding-top: 0.9rem; border-top: 2px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.course__foot .btn { flex: 0 0 auto; }
.course__price { flex: 1 1 auto; min-width: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; line-height: 1.1; }
.course__price span { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 0.72rem; line-height: 1.3; color: var(--ink-soft); letter-spacing: 0; margin-top: 2px; }
.course__seats { font-size: 0.78rem; font-weight: 700; color: var(--coral-700); }
.course__bar { height: 6px; background: var(--cream-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.course__bar i { display: block; height: 100%; background: var(--coral); border-radius: 99px; }
.is-hidden { display: none !important; }

/* ==========================================================================
   Шаги обучения
   ========================================================================== */

.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  position: relative;
  padding: 1.6rem 1.35rem 1.35rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  transition: 0.2s var(--ease);
}
.step:hover { border-color: var(--ink); transform: translateY(-3px); }
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--coral-700);
  letter-spacing: 0.08em;
}
.step h3 { font-size: 1.14rem; margin: 0.55rem 0 0.45rem; }
.step p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.5; }

/* ==========================================================================
   Платформа (тёмная секция)
   ========================================================================== */

.dark {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: #b9b3e0; }
.dark .h-sec { color: #fff; }

.bento { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  background: rgba(255, 255, 255, 0.055);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: 0.22s var(--ease);
  grid-column: span 2;
}
.tile:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 138, 101, 0.45); transform: translateY(-3px); }
@media (min-width: 900px) {
  .tile { grid-column: span 1; }
  .tile--wide { grid-column: span 2; }
}
.tile h3 { font-size: 1.16rem; }
.tile p { font-size: 0.92rem; color: #b9b3e0; line-height: 1.5; }
.tile__ic {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 138, 101, 0.16);
  color: var(--coral);
  margin-bottom: 0.2rem;
}

.progress-demo { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.pd-row { display: grid; grid-template-columns: 104px 1fr 44px; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: #cfcaf0; }
.pd-bar { height: 9px; background: rgba(255, 255, 255, 0.11); border-radius: 99px; overflow: hidden; }
.pd-bar i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.1s var(--ease); }
.pd-row b { font-family: var(--font-display); font-weight: 900; text-align: right; color: #fff; }

/* ==========================================================================
   Калькулятор
   ========================================================================== */

.calc {
  display: grid;
  gap: 1.5rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 0 var(--ink);
  padding: clamp(1.4rem, 1rem + 2vw, 2.5rem);
}
@media (min-width: 980px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 2.5rem; } }

.calc__controls { display: grid; gap: 1.4rem; align-content: start; }
@media (min-width: 980px) { .calc__controls { align-content: stretch; } }
.range-field { display: grid; gap: 0.55rem; }
.range-field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.range-field__head label { font-weight: 700; font-size: 0.95rem; }
.range-field__val { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--coral-700); }

input[type="range"] {
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--coral) var(--p, 50%), var(--cream-2) var(--p, 50%));
  border: 2px solid var(--ink);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2.5px var(--ink);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2.5px var(--ink);
  cursor: grab;
}

.calc__out {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  display: grid;
  gap: 1.05rem;
  align-content: start;
}
.calc__score { display: flex; align-items: flex-end; gap: 0.7rem; }
.calc__score b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--mint);
}
.calc__score span { font-size: 0.95rem; color: #b9b3e0; padding-bottom: 0.4rem; }
.calc__note { font-size: 0.92rem; color: #cfcaf0; line-height: 1.5; }
.calc__plan { display: grid; gap: 0.55rem; }
.calc__plan li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: #e4e1ff; }
.calc__plan svg { flex: 0 0 auto; color: var(--mint); margin-top: 3px; }
.calc__disclaimer { font-size: 0.74rem; color: #8b85b8; line-height: 1.45; }

.gauge { position: relative; max-width: 300px; margin-inline: auto; width: 100%; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__val {
  position: absolute;
  left: 0; right: 0; bottom: 4%;
  text-align: center;
}
.gauge__val b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 2rem + 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--mint);
}
.calc__unit { text-align: center; font-size: 0.95rem; color: #b9b3e0; margin-top: -0.3rem; }

.calc__how {
  margin-top: auto;
  background: var(--cream-2);
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
}
.calc__how h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.calc__how p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.calc__how ul { margin-top: 0.8rem; display: grid; gap: 0.4rem; }
.calc__how li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.86rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.calc__how li:last-child { border-bottom: 0; padding-bottom: 0; }
.calc__how b { font-family: var(--font-display); font-weight: 900; color: var(--coral-700); }
.gauge__track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 14; stroke-linecap: round; }
.gauge__fill { fill: none; stroke: var(--mint); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 0.7s var(--ease); }

/* ==========================================================================
   Кто ведёт занятия
   ========================================================================== */

.solo { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .solo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .solo { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.solo__item { display: flex; flex-direction: column; gap: 0.5rem; }
.solo__ic {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--cream-2);
  border: 2px solid var(--ink);
  color: var(--ink);
  display: grid; place-items: center;
  margin-bottom: 0.2rem;
}
.solo__item h3 { font-size: 1.14rem; margin-top: 0.15rem; }
.solo__item p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.5; }

/* ==========================================================================
   Честная плашка «мы новая школа»
   ========================================================================== */

.honest {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--lemon-100);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.35rem;
}
.honest__ic {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--lemon);
  border: 2.5px solid var(--ink);
  display: grid; place-items: center;
}
.honest p { font-size: 0.97rem; line-height: 1.55; color: var(--ink-2); max-width: 88ch; }
.honest b { font-family: var(--font-display); font-weight: 900; color: var(--ink); }

/* ==========================================================================
   Программа года
   ========================================================================== */

.road { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .road { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .road { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.road__item {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-hard);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.road__item:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }
.road__when {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-700);
}
.road__item h3 { font-size: 1.2rem; }
.road__item p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.5; }
.road__item .chip { margin-top: auto; align-self: flex-start; max-width: 100%; white-space: normal; }
.road__item--promise { background: var(--ink); box-shadow: 0 4px 0 var(--coral); }
.road__item--promise h3 { color: #fff; }
.road__item--promise p { color: #c8c3ec; }
.road__item--promise .road__when { color: var(--coral); }
.road__item--promise:hover { box-shadow: 0 10px 0 var(--coral); }

/* ==========================================================================
   Как проверить нас до оплаты
   ========================================================================== */

.proof { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proof__item { display: flex; flex-direction: column; gap: 0.6rem; }
.proof__n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--coral-700);
}
.proof__item h3 { font-size: 1.2rem; }
.proof__item p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.5; }
.proof__item .link-arrow { margin-top: auto; align-self: flex-start; font-size: 0.92rem; }

.pledge {
  margin-top: 1.5rem;
  background: var(--ink);
  color: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 0 var(--coral);
  padding: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
}
.pledge h3 { font-size: var(--step-2); color: #fff; margin-bottom: 1rem; }
.pledge ul { display: grid; gap: 0.7rem; }
@media (min-width: 820px) { .pledge ul { grid-template-columns: 1fr 1fr; gap: 0.7rem 2rem; } }
.pledge li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; color: #ddd9ff; line-height: 1.45; }
.pledge li span {
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 138, 101, 0.18);
  color: var(--coral);
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800;
  margin-top: 1px;
}

/* ==========================================================================
   Telegram в шапке
   ========================================================================== */

.header__tg {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.93rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s;
}
.header__tg:hover { color: var(--coral-700); }
@media (min-width: 1240px) { .header__tg { display: inline-flex; } }

/* ==========================================================================
   Экономия
   ========================================================================== */

.save { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .save { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; } }
.save__card { border-radius: var(--r-xl); border: 2.5px solid var(--ink); padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); display: grid; gap: 1rem; align-content: start; }
.save__card--tutor { background: var(--paper); }
.save__card--izi { background: var(--coral-50); box-shadow: var(--sh-hard); }
.save__sum { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; }
.save__card--tutor .save__sum { color: #b9445f; text-decoration: line-through; text-decoration-thickness: 4px; }
.save__card--izi .save__sum { color: var(--coral-700); }
.save__list { display: grid; gap: 0.5rem; font-size: 0.93rem; color: var(--ink-2); }
.save__list li { display: flex; gap: 0.55rem; }
.save__banner {
  grid-column: 1 / -1;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
}
.save__banner b { color: var(--mint); font-size: 1.25em; }

/* ==========================================================================
   Тарифы
   ========================================================================== */

.plans { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); align-items: stretch; }
.plan {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 1rem + 1vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  box-shadow: var(--sh-hard);
}
.plan--hot { background: var(--ink); color: var(--cream); box-shadow: 0 6px 0 var(--coral); }
.plan--hot h3 { color: #fff; }
.plan--hot .plan__feat li { color: #ddd9ff; }
.plan--hot .plan__old { color: #918ac2; }
.plan__tag {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--lemon);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}
.plan h3 { font-size: var(--step-2); }
.plan__desc { font-size: 0.9rem; color: var(--ink-soft); min-height: 2.6em; }
.plan--hot .plan__desc { color: #b9b3e0; }
.plan__price { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.plan__price b { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); line-height: 1; letter-spacing: -0.04em; }
.plan__old { text-decoration: line-through; color: var(--ink-soft); font-weight: 600; }
.plan__per { font-size: 0.85rem; color: var(--ink-soft); }
.plan--hot .plan__per { color: #b9b3e0; }
.plan__feat { display: grid; gap: 0.6rem; font-size: 0.93rem; }
.plan__feat li { display: flex; gap: 0.55rem; align-items: flex-start; line-height: 1.4; }
.plan__feat svg { flex: 0 0 auto; margin-top: 3px; color: var(--mint-600); }
.plan--hot .plan__feat svg { color: var(--mint); }
.plan__feat li.off { opacity: 0.45; }
.plan__feat li.off svg { color: var(--ink-soft); }
.plan .btn { margin-top: auto; }

.guarantee {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  background: var(--mint-100);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(1.2rem, 1rem + 1vw, 1.8rem);
}
.guarantee__ic { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; background: var(--mint); border: 2.5px solid var(--ink); display: grid; place-items: center; }
.guarantee h3 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.guarantee p { font-size: 0.95rem; color: var(--ink-2); max-width: 62ch; }

/* ряд чипов (способы оплаты, пометки у формы) */
.ratings { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; gap: 0.7rem; max-width: 900px; }
.faq details {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0 1.3rem;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--ink); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  position: relative;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 26px; height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink) 0 0) center / 12px 2.5px no-repeat,
    linear-gradient(var(--ink) 0 0) center / 2.5px 12px no-repeat;
  transition: transform 0.25s var(--ease), background-size 0.25s;
}
.faq details[open] summary::after { transform: rotate(180deg); background-size: 12px 2.5px, 0 0; }
.faq__body { padding-bottom: 1.2rem; font-size: 0.96rem; color: var(--ink-2); line-height: 1.6; max-width: 72ch; }
.faq__body p + p { margin-top: 0.7rem; }

/* ==========================================================================
   Форма / финальный CTA
   ========================================================================== */

.cta-final { position: relative; overflow: hidden; }
.cta-grid { display: grid; gap: 2rem; position: relative; z-index: 1; }
@media (min-width: 980px) { .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 3.5rem; align-items: center; } }

.cta-list { display: grid; gap: 0.9rem; margin-top: 1.75rem; }
.cta-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; }
.cta-list .n {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 0.85rem;
  border: 2px solid var(--ink);
}

.form {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 0 var(--ink);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  display: grid;
  gap: 0.9rem;
  color: var(--ink);
}
.form h3, .dark .form h3 { font-size: var(--step-2); color: var(--ink); }
.form__note { font-size: 0.9rem; color: var(--ink-soft); margin-top: -0.4rem; }
.form__ok {
  display: none;
  background: var(--mint-100);
  border: 2px solid var(--mint-600);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: #0d7c5c;
}
.form.is-sent .form__ok { display: block; }
.form.is-sent .form__fields { display: none; }
/* Заявка не дошла до сервера — честно говорим об этом прямо в экране «спасибо» */
.form__sent-note {
  margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1.5px dashed var(--mint-600);
  font-size: 0.88rem; font-weight: 500; color: #0d5c46;
}
.form__sent-note[hidden] { display: none; }
.form__fields { display: grid; gap: 0.9rem; }
.form__row { display: grid; gap: 0.9rem; }
@media (min-width: 520px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__err { font-size: 0.8rem; color: #d23f3f; font-weight: 600; display: none; }
.field.is-invalid .control { border-color: #d23f3f; background: #fff6f6; }
.field.is-invalid .form__err { display: block; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--coral-600); margin-top: 1px; }

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer { background: var(--ink); color: #b9b3e0; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer a { color: #d7d3f5; transition: color 0.2s; }
.footer a:hover { color: var(--coral); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; } }
.footer__logo { height: 34px; width: auto; margin-bottom: 1rem; }
.footer h4 { font-family: var(--font-display); font-weight: 900; color: #fff; font-size: 1rem; margin-bottom: 0.9rem; }
.footer__links { display: grid; gap: 0.55rem; font-size: 0.92rem; }
.footer__soc { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer__soc a {
  width: 42px; height: 42px; border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
  transition: 0.2s var(--ease);
}
.footer__soc a:hover { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8b85b8;
  line-height: 1.55;
}
.footer__phone { font-family: var(--font-display); font-weight: 900; font-size: 1.28rem; color: #fff; }

/* ==========================================================================
   Плавающая панель на мобильных
   ========================================================================== */

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 2.5px solid var(--ink);
  display: flex;
  gap: 0.6rem;
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.dock.is-on { transform: none; }
.dock .btn { flex: 1; }
@media (min-width: 860px) { .dock { display: none; } }

/* индикатор прогресса чтения */
.progressbar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--coral-600);
  z-index: 70;
  width: 0;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Появление при скролле
   ========================================================================== */

.js [data-anim] { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.js [data-anim].is-in { opacity: 1; transform: none; }
.js [data-anim][data-delay="1"] { transition-delay: 0.08s; }
.js [data-anim][data-delay="2"] { transition-delay: 0.16s; }
.js [data-anim][data-delay="3"] { transition-delay: 0.24s; }
.js [data-anim][data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-anim] { opacity: 1; transform: none; }
}

/* печать */
@media print {
  .header, .dock, .progressbar { display: none !important; }
  body { background: #fff; }
}
