/* ==========================================================================
   «Кодовое слово» — онлайн-школа веб-разработки.
   Тёмная bright-tech тема: стеклянные карточки, светящиеся градиенты,
   крупная типографика. Всё на переменных из :root.
   ========================================================================== */

:root {
  --bg:        #0b1020;
  --bg-2:      #0e1428;
  --surface:   #141a2e;
  --surface-2: #1a2340;
  --indigo:    #5b5bf5;
  --indigo-lt: #8b8bff;
  --lime:      #b8ff4f;
  --text:      #e8eaf2;
  --muted:     #9aa3be;
  --border:    rgba(255, 255, 255, .09);
  --border-lt: rgba(255, 255, 255, .16);

  --fs-xs:   .8125rem;
  --fs-sm:   .9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-xl:   clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  --fs-2xl:  clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px; --s-12: 96px;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-full: 999px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 128px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: .3s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

/* еле заметная техническая сетка на фоне */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, .display {
  font-family: Unbounded, Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--s-4); top: -120px;
  z-index: 200;
  padding: var(--s-3) var(--s-5);
  background: var(--lime);
  color: #10160b;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; z-index: 1; padding-block: var(--section-y); }
.section--line { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: currentColor;
}

.section__head { max-width: 62ch; margin-bottom: var(--s-9); }
.section__title { margin-top: var(--s-4); font-size: var(--fs-xl); }
.section__lead { margin-top: var(--s-4); color: var(--muted); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(91, 91, 245, .9);
}
.btn--primary:hover { background: #6a6aff; transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: #10160b; }
.btn--lime:hover { background: #c8ff70; transform: translateY(-2px); }
.btn--ghost { border-color: var(--border-lt); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding-inline: var(--s-4); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* ---------- стеклянная карточка ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

/* ============ шапка ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, .72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo__name { font-family: Unbounded, sans-serif; font-size: var(--fs-sm); letter-spacing: -.01em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; gap: var(--s-6); }
.nav__link { font-size: var(--fs-sm); color: var(--muted); transition: color .2s var(--ease); }
.nav__link:hover { color: var(--text); }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--border-lt);
  border-radius: var(--r-sm);
  color: var(--text);
}
.burger svg { width: 22px; height: 22px; margin-inline: auto; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ============ герой ============ */
.hero {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 7vw, 104px) var(--section-y);
  overflow: hidden;
}
/* «прожектор» за курсором */
.hero__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 420px at var(--mx, 70%) var(--my, 26%), rgba(91, 91, 245, .3), transparent 68%),
    radial-gradient(760px 520px at 88% -8%, rgba(91, 91, 245, .26), transparent 62%),
    radial-gradient(520px 420px at 4% 96%, rgba(184, 255, 79, .12), transparent 66%);
  transition: background-position .2s linear;
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../img/noise.svg");
  background-size: 200px 200px;
  opacity: .22;
  mix-blend-mode: overlay;
}
.hero__inner { position: relative; z-index: 2; }
.hero__grid { display: grid; gap: var(--s-9); align-items: start; }

.hero__title { margin-top: var(--s-5); font-size: var(--fs-2xl); text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__lead {
  margin-top: var(--s-6);
  max-width: 54ch;
  color: var(--muted);
  font-size: var(--fs-md);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.hero__note { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }

/* таймер набора */
.timer { padding: var(--s-7); }
.timer__label { font-size: var(--fs-xs); color: var(--muted); }
.timer__stream {
  margin-top: var(--s-2);
  font-family: Unbounded, sans-serif;
  font-size: var(--fs-md);
  font-weight: 600;
}
.timer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.timer__cell {
  padding: var(--s-3) var(--s-2);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-align: center;
}
.timer__num {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.timer__unit { display: block; margin-top: var(--s-1); font-size: 11px; color: var(--muted); }
.timer__foot { margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.timer__foot b { color: var(--lime); font-weight: 600; }
.timer--closed .timer__grid { display: none; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid var(--border);
}
.metric__value {
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric__unit { font-size: var(--fs-sm); color: var(--lime); margin-left: var(--s-2); }
.metric__label { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }

/* ============ кому подойдёт ============ */
.audience { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.aud { padding: var(--s-7); }
.aud__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: var(--s-5);
  border-radius: 13px;
  background: rgba(91, 91, 245, .18);
  color: var(--indigo-lt);
}
.aud__icon svg { width: 24px; height: 24px; }
.aud__title { font-size: var(--fs-md); }
.aud__text { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }
.aud__not {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border-lt);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.aud__not b { color: var(--text); font-weight: 600; }

/* ============ программа ============ */
.program__sum {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .03);
  font-size: var(--fs-sm);
}
.pill b { font-family: Unbounded, sans-serif; font-weight: 600; }

.modules { display: grid; gap: var(--s-3); }
.module { overflow: hidden; }
.module__btn {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-5) var(--s-6);
  text-align: left;
  transition: background-color var(--dur) var(--ease);
}
.module__btn:hover { background: rgba(255, 255, 255, .035); }
.module__num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(91, 91, 245, .2);
  color: var(--indigo-lt);
  font-family: Unbounded, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.module__title { font-size: var(--fs-md); font-family: Unbounded, sans-serif; font-weight: 600; line-height: 1.25; }
.module__meta { margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--muted); }
.module__tag {
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  background: rgba(184, 255, 79, .14);
  color: var(--lime);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.module__chev {
  width: 22px; height: 22px;
  color: var(--muted);
  transition: transform var(--dur) var(--ease);
}
.module__btn[aria-expanded="true"] .module__chev { transform: rotate(90deg); }
.module__btn[aria-expanded="true"] .module__num { background: var(--indigo); color: #fff; }

.module__panel { padding: 0 var(--s-6) var(--s-6) calc(var(--s-6) + 52px + var(--s-4)); }
.module__lessons { display: grid; gap: var(--s-2); }
.module__lessons li {
  position: relative;
  padding-left: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.module__lessons li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--indigo);
}
.module__result {
  margin-top: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: rgba(184, 255, 79, .07);
  border: 1px solid rgba(184, 255, 79, .2);
  font-size: var(--fs-sm);
}
.module__result b { display: block; margin-bottom: var(--s-2); color: var(--lime); }

/* ============ преподаватели ============ */
.teachers { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.teacher { display: flex; flex-direction: column; padding: var(--s-7); }
.teacher__avatar { width: 68px; height: 68px; margin-bottom: var(--s-5); }
.teacher__name { font-size: var(--fs-md); }
.teacher__role { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--indigo-lt); }
.teacher__years { margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--muted); }
.teacher__bio { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.teacher__modules {
  margin-top: auto;
  padding-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--lime);
}

/* ============ как проходит ============ */
.how { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.how__item { padding: var(--s-6); }
.how__n {
  font-family: Unbounded, sans-serif;
  font-size: var(--fs-sm);
  color: var(--lime);
}
.how__title { margin-top: var(--s-3); font-size: var(--fs-base); font-family: Unbounded, sans-serif; font-weight: 600; }
.how__text { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }

.week { margin-top: var(--s-8); padding: var(--s-6); overflow-x: auto; }
.week img { min-width: 640px; }
.week__cap { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }

.roadmap { margin-top: var(--s-8); overflow-x: auto; }
.roadmap img { margin-inline: auto; }
.roadmap__mobile { display: none; }

/* ============ проекты ============ */
.projects { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project { overflow: hidden; display: flex; flex-direction: column; }
.project img { width: 100%; border-bottom: 1px solid var(--border); }
.project__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-6); }
.project__title { font-size: var(--fs-base); font-family: Unbounded, sans-serif; font-weight: 600; }
.project__author { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--lime); }
.project__desc { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-5); }
.stack span {
  padding: 3px var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 11px;
  color: var(--muted);
}

/* ============ тарифы ============ */
.pay-switch {
  display: inline-flex;
  gap: var(--s-1);
  padding: var(--s-1);
  margin-bottom: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .03);
}
.pay-switch__btn {
  min-height: 44px;
  padding: 0 var(--s-6);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pay-switch__btn[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.pay-switch__btn small { display: block; font-size: 11px; font-weight: 400; opacity: .85; }

.plans { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.plan { display: flex; flex-direction: column; padding: var(--s-7); }
.plan--featured {
  border-color: rgba(91, 91, 245, .55);
  box-shadow: 0 24px 70px -34px rgba(91, 91, 245, .9);
}
.plan__badge {
  align-self: flex-start;
  padding: var(--s-1) var(--s-4);
  margin-bottom: var(--s-4);
  border-radius: var(--r-full);
  background: var(--lime);
  color: #10160b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan__name { font-size: var(--fs-lg); }
.plan__tagline { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.plan__price { margin-top: var(--s-6); }
.plan__amount {
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.plan__per { font-size: var(--fs-sm); color: var(--muted); }
.plan__sub { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); min-height: 2.6em; }
.plan__sub b { color: var(--lime); font-weight: 600; }
.plan__features { display: grid; gap: var(--s-3); margin: var(--s-6) 0; }
.plan__features li { display: flex; gap: var(--s-3); font-size: var(--fs-sm); }
.plan__features svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--lime); }
.plan__note { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.plan .btn { margin-top: auto; }

.compare-wrap {
  margin-top: var(--s-8);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.compare { min-width: 640px; font-size: var(--fs-sm); }
.compare th, .compare td { padding: var(--s-4) var(--s-5); text-align: left; border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; font-family: Unbounded, sans-serif; font-size: var(--fs-xs); }
.compare thead th:first-child { color: var(--muted); font-family: Inter, sans-serif; font-weight: 400; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 150px; }
.compare tbody tr:hover { background: rgba(255, 255, 255, .025); }
.compare .yes { color: var(--lime); }
.compare .no { color: #5b6480; }
.compare .val { color: var(--text); font-size: var(--fs-xs); }
.compare .is-featured { background: rgba(91, 91, 245, .09); }

/* ============ отзывы ============ */
.reviews { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.review { display: flex; flex-direction: column; padding: var(--s-7); }
.review__stars { display: flex; gap: 3px; color: var(--lime); }
.review__stars svg { width: 17px; height: 17px; }
.review__stars svg.is-off { color: #39415e; }
.review__text { margin-top: var(--s-4); font-size: var(--fs-sm); }
.review__path {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.review__path b { color: var(--text); font-weight: 600; }
.review__who { margin-top: auto; padding-top: var(--s-5); font-size: var(--fs-sm); font-weight: 600; }
.review__who span { color: var(--muted); font-weight: 400; }
.review__hired { margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--lime); }

/* ============ FAQ ============ */
.faq { display: grid; gap: var(--s-3); max-width: 900px; }
/* У элементов grid min-width по умолчанию auto — это min-content, и длинный
   вопрос крупным Unbounded раздвигал карточку шире контейнера (на 360px
   получалось 351 вместо 328 и текст уезжал за край экрана). */
.faq > * { min-width: 0; }
.faq__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  padding: var(--s-5) var(--s-6);
  text-align: left;
  font-size: var(--fs-md);
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color var(--dur) var(--ease);
}
.faq__btn:hover { background: rgba(255, 255, 255, .035); }
.faq__sign {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
  margin-top: 4px;
}
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__sign::after { transform: translate(-50%, -50%) rotate(0); }
.faq__panel { padding: 0 var(--s-6) var(--s-6); color: var(--muted); font-size: var(--fs-sm); max-width: 76ch; }

/* ============ форма ============ */
.signup { display: grid; gap: var(--s-9); align-items: start; }
.form { padding: var(--s-7); display: grid; gap: var(--s-5); }
.field { display: grid; }
.field__label { margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: 600; }
.field__input {
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-lt);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field__input::placeholder { color: #67708f; }
.field__input:focus { outline: none; border-color: var(--lime); background: rgba(255, 255, 255, .07); }
select.field__input { appearance: none; background-image: none; }
select.field__input option { background: var(--surface); color: var(--text); }
.field.has-error .field__input { border-color: #ff7a6e; }
.field__error { margin-top: var(--s-2); font-size: var(--fs-xs); color: #ff9c92; }

.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.check input {
  width: 22px; height: 22px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--lime);
}
.check span { font-size: var(--fs-xs); color: var(--muted); }

.form__ok {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: rgba(184, 255, 79, .1);
  border: 1px solid rgba(184, 255, 79, .3);
  font-size: var(--fs-sm);
}
.form__ok svg { width: 22px; height: 22px; flex: none; color: var(--lime); }

.signup__side { display: grid; gap: var(--s-5); }
.signup__side li {
  display: flex;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.signup__side svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--lime); }

/* ============ подвал ============ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding-block: var(--s-9) var(--s-7);
  background: var(--bg-2);
}
.footer__grid { display: grid; gap: var(--s-8); }
.footer__pitch { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); max-width: 34ch; }
.footer__title {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
  font-family: Inter, sans-serif;
  font-weight: 600;
}
.footer__list { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.footer__list a:hover { color: var(--lime); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-7);
  justify-content: space-between;
  margin-top: var(--s-9);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ============ адаптив ============ */
@media (min-width: 720px) {
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s-10); }
  .signup { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .roadmap__mobile { display: none; }
}

@media (max-width: 959px) {
  .roadmap__desktop { display: none; }
  .roadmap__mobile { display: block; }
}

@media (max-width: 860px) {
  .burger { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--s-4);
    padding: var(--s-7) var(--gutter) var(--s-10);
    background: var(--bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    display: block;
    min-height: 56px;
    line-height: 56px;
    font-size: var(--fs-md);
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .module__btn { grid-template-columns: 44px minmax(0, 1fr) auto; padding: var(--s-4) var(--s-5); }
  .module__tag { display: none; }
  .module__panel { padding-left: var(--s-5); padding-right: var(--s-5); }
}

@media (max-width: 520px) {
  .timer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-1); }
  .timer__num { font-size: 1.25rem; }
  .pay-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__spot { background: radial-gradient(760px 520px at 82% 0%, rgba(91, 91, 245, .26), transparent 62%); }
}
