/* ============================================================
   code-code — онлайн-школа программирования
   Тёмная IDE-палитра. Без зависимостей.
   ============================================================ */

:root {
  /* Палитра «редактор кода» */
  --bg:        #0E1525;
  --bg-2:      #0B1120;
  --surface:   #161E33;
  --surface-2: #1D2740;
  --line:      #2A3554;
  --accent:    #FFB454;   /* янтарь — подсветка синтаксиса, CTA */
  --accent-hover: #FFC470;
  --mint:      #3DDC97;    /* «тест пройден» */
  --violet:    #8B7CFF;    /* теги, второстепенный акцент */
  --pink:      #F778BA;
  --text:      #E6EDF7;
  --muted:     #8A97B1;
  --muted-2:   #5C6788;

  /* Типографика */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Раскладка */
  --maxw: 1180px;
  --gap: 24px;
  --radius: 14px;
  --radius-s: 10px;

  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --shadow-s: 0 4px 18px rgba(0,0,0,.25);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--accent); color: #1a1205; }

/* фоновая сетка как в редакторе */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(138,151,177,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,151,177,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Утилиты раскладки ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { position: relative; z-index: 1; padding: 86px 0; }
.section--tight { padding: 56px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before { content: "//"; color: var(--muted-2); }

.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 620px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: var(--accent);
  color: #1a1205;
  box-shadow: 0 6px 22px rgba(255,180,84,.28);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,180,84,.4); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,21,37,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  white-space: nowrap;
  flex: none;
}
.brand__logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  display: grid; place-items: center;
  color: #1a1205;
  font-weight: 800;
  flex: none;
  box-shadow: 0 4px 14px rgba(255,180,84,.35);
}
.brand__name b { color: var(--accent); }
.brand__name .dash { color: var(--muted-2); }

.nav__links { display: flex; gap: 6px; margin-left: 8px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: color .18s, background .18s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--accent); }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .2s, transform .15s;
}
.cart-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.cart-btn svg { width: 20px; height: 20px; stroke: var(--text); }
.cart-count {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1205;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.cart-count.show { transform: scale(1); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* мобильное меню */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 22px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--accent); background: var(--surface); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 70px 0 64px; position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint);
  background: rgba(61,220,151,.08);
  border: 1px solid rgba(61,220,151,.25);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,151,.5); }
  70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .mono { font-family: var(--font-mono); font-weight: 600; }
.hero__text { color: var(--muted); font-size: 18px; max-width: 480px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat__num { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--text); }
.stat__num b { color: var(--accent); }
.stat__label { font-size: 13px; color: var(--muted-2); }

/* окно редактора — signature */
.editor {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
  position: relative;
}
.editor__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.editor__dot { width: 12px; height: 12px; border-radius: 50%; }
.editor__dot--r { background: #ff5f56; }
.editor__dot--y { background: #ffbd2e; }
.editor__dot--g { background: #27c93f; }
.editor__file { margin-left: 10px; color: var(--muted); font-size: 12.5px; }
.editor__tabs { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.editor__body { padding: 18px 20px 22px; line-height: 1.85; }
.editor__body .ln { color: var(--muted-2); user-select: none; display: inline-block; width: 24px; }
.tok-key { color: var(--violet); }
.tok-fn { color: var(--accent); }
.tok-str { color: var(--mint); }
.tok-num { color: var(--pink); }
.tok-com { color: var(--muted-2); font-style: italic; }
.tok-var { color: #79C0FF; }
.cursor-blink {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

.editor__run {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--mint); font-size: 12.5px;
}

/* лента «технологии» */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  position: relative; z-index: 1;
}
.marquee__track {
  display: flex;
  gap: 48px;
  padding: 18px 0;
  width: max-content;
  animation: scroll-x 30s linear infinite;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 15px;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "·"; color: var(--accent); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   Направления (категории)
   ============================================================ */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.dir-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .22s var(--ease), border-color .22s, background .22s;
  position: relative;
  overflow: hidden;
}
.dir-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(255,180,84,.07), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.dir-card:hover { transform: translateY(-5px); border-color: rgba(255,180,84,.4); background: var(--surface-2); }
.dir-card:hover::after { opacity: 1; }
.dir-card__icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.dir-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.dir-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.dir-card__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); display: flex; gap: 14px; }
.dir-card__meta b { color: var(--mint); }

/* ============================================================
   Карточки курсов
   ============================================================ */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 30px;
}
.tab {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all .18s;
}
.tab:hover { color: var(--text); border-color: var(--muted-2); }
.tab.is-active { background: var(--accent); color: #1a1205; border-color: var(--accent); font-weight: 700; }

.search-box {
  position: relative;
  max-width: 440px;
  margin-bottom: 26px;
}
.search-box input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 16px 13px 44px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s;
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box input::placeholder { color: var(--muted-2); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted-2); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.course-card:hover { transform: translateY(-6px); border-color: rgba(255,180,84,.4); box-shadow: var(--shadow); }
.course-card__top {
  height: 132px;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.course-card__top .glyph {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  z-index: 1;
  text-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.course-card__lvl {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(0,0,0,.45);
  color: #fff;
  backdrop-filter: blur(4px);
}
.course-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.course-card__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--violet);
  margin-bottom: 9px;
}
.course-card h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.25; margin-bottom: 10px; letter-spacing: -.01em; }
.course-card h3 a:hover { color: var(--accent); }
.course-card__meta {
  display: flex; gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.course-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price { display: flex; flex-direction: column; }
.price__now { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text); }
.price__old { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); text-decoration: line-through; }
.add-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 22px;
  color: var(--accent);
  transition: all .18s;
  flex: none;
}
.add-btn:hover { background: var(--accent); color: #1a1205; transform: rotate(90deg); }
.add-btn.added { background: var(--mint); color: #06120c; border-color: var(--mint); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.empty-state b { color: var(--accent); }

/* ============================================================
   «Как учим» — шаги
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step__n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* «почему мы» — фичи */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.feat {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feat__ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 11px;
  background: var(--surface-2);
  display: grid; place-items: center;
}
.feat__ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; }
.feat h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; }

/* ============================================================
   Отзывы — слайдер
   ============================================================ */
.reviews { position: relative; }
.slider {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  border-radius: var(--radius);
}
.slides {
  display: flex;
  transition: transform .5s var(--ease);
}
.slide { min-width: 100%; padding: 4px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.review-card__avatar {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #1a1205;
  flex: none;
}
.review-card__quote { font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.review-card__quote::before { content: "“"; font-family: var(--font-display); color: var(--accent); font-size: 30px; margin-right: 4px; }
.review-card__author { font-family: var(--font-display); font-weight: 700; }
.review-card__role { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.review-card__role b { color: var(--mint); }

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.slider-arrow {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .18s;
}
.slider-arrow:hover { border-color: var(--accent); color: var(--accent); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: all .2s;
}
.slider-dot.is-active { background: var(--accent); width: 24px; border-radius: 5px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 40px auto 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 16px;
}
.faq-q .plus { font-family: var(--font-mono); color: var(--accent); font-size: 22px; transition: transform .25s; flex: none; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq-a div { padding: 0 22px 20px; color: var(--muted); }

/* ============================================================
   CTA-баннер
   ============================================================ */
.cta-band {
  position: relative; z-index: 1;
  margin: 0 22px;
}
.cta-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "</>";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 200px;
  color: rgba(255,180,84,.04);
  right: -10px; bottom: -60px;
  font-weight: 700;
}
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(26px,3.5vw,38px); margin-bottom: 14px; letter-spacing: -.02em; position: relative; }
.cta-inner p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-inner .hero__cta { justify-content: center; margin-bottom: 0; position: relative; }

/* ============================================================
   Формы
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input.err, .field textarea.err { border-color: #ff5f56; }
.field textarea { resize: vertical; min-height: 120px; }
.field__msg { font-size: 12.5px; color: #ff6b6b; min-height: 16px; font-family: var(--font-mono); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 28px;
  margin-top: 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: 14.5px; transition: color .18s; }
.footer-col a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: 14.5px; margin: 14px 0 18px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 0;
}
.footer-social a:hover { border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; fill: var(--muted); }
.footer-social a:hover svg { fill: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

/* ============================================================
   Тосты
   ============================================================ */
.toast-host {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
  min-width: 260px;
  max-width: 340px;
  transform: translateX(120%);
  transition: transform .35s var(--ease);
  pointer-events: auto;
}
.toast.show { transform: translateX(0); }
.toast--ok { border-left-color: var(--mint); }
.toast--ok .toast__ic { color: var(--mint); }
.toast__ic { font-family: var(--font-mono); font-weight: 700; color: var(--accent); flex: none; }
.toast b { font-weight: 700; }

/* ============================================================
   Хлебные крошки + page hero
   ============================================================ */
.page-hero { padding: 50px 0 10px; position: relative; z-index: 1; }
.crumbs { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px,4.4vw,48px); letter-spacing: -.02em; margin-bottom: 14px; }

/* ============================================================
   Страница курса
   ============================================================ */
.course-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  margin-top: 14px;
}
.course-hero__tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet);
  margin-bottom: 14px;
}
.course-hero__main h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.course-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
  max-width: 480px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact__k { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.fact__v { font-weight: 700; font-size: 17px; }

.course-buy {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-s);
}
.course-buy__visual {
  height: 130px;
  border-radius: var(--radius-s);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.course-buy__visual span {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  text-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.course-buy__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.course-buy__hint { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.course-buy__list { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.course-buy__list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--muted); }
.course-buy__list li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }

.course-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  margin-top: 60px;
}
.course-block h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 22px;
  letter-spacing: -.01em;
}
.prog-list { display: flex; flex-direction: column; gap: 2px; }
.prog-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.prog-list__n { font-family: var(--font-mono); color: var(--accent); font-size: 13px; flex: none; }
.whom-list { display: flex; flex-direction: column; gap: 14px; }
.whom-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
}
.whom-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.course-result {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding: 20px;
  background: rgba(61,220,151,.06);
  border: 1px solid rgba(61,220,151,.22);
  border-radius: var(--radius-s);
}
.course-result__ic {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  background: var(--mint);
  color: #06120c;
  display: grid; place-items: center;
  font-weight: 700;
}
.course-result p { font-size: 14.5px; }

@media (max-width: 1024px) {
  .course-hero { grid-template-columns: 1fr; }
  .course-buy { position: static; max-width: 420px; }
  .course-cols { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 460px) {
  .course-hero__facts { grid-template-columns: 1fr; }
}

/* ============================================================
   Страница «О школе» — цифры и команда
   ============================================================ */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.num-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.num-card__big {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
}
.num-card__label { color: var(--muted); font-size: 14px; margin-top: 6px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.teacher {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.teacher__avatar {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #1a1205;
  margin-bottom: 16px;
}
.teacher h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.teacher__role { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin-bottom: 12px; }
.teacher p { color: var(--muted); font-size: 14px; }

.about-text {
  max-width: 760px;
  margin-top: 24px;
}
.about-text p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.about-text p b { color: var(--text); }

@media (max-width: 1024px) {
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .num-card__big { font-size: 30px; }
}

/* ============================================================
   Страница контактов
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 14px;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.contact-form > p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card__ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 11px;
  background: var(--surface-2);
  display: grid; place-items: center;
}
.info-card__ic svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; }
.info-card h3 { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); margin-bottom: 5px; font-weight: 500; }
.info-card a, .info-card p { font-size: 16px; font-weight: 600; }
.info-card a:hover { color: var(--accent); }
.info-card .sub { font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 3px; }

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   404
   ============================================================ */
.nf {
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative; z-index: 1;
  padding: 60px 22px;
}
.nf__code {
  font-family: var(--font-mono);
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--accent), #ff7a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf__term {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  margin: 24px auto;
  max-width: 440px;
  text-align: left;
}
.nf__term .err { color: #ff6b6b; }
.nf__term .ok { color: var(--mint); }
.nf h1 { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; }
.nf p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }

/* ============================================================
   Анимация появления (IntersectionObserver)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }

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

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .editor { max-width: 540px; }
  .dir-grid, .courses-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav__links { display: none; }
  .nav__right > .btn--primary { display: none; }
  .burger { display: block; }
  .hero { padding: 44px 0 40px; }
  .hero__stats { gap: 24px; }
  .review-card { grid-template-columns: 1fr; }
  .review-card__avatar { width: 54px; height: 54px; font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 26px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .wrap { padding-inline: 16px; }
  .dir-grid, .courses-grid, .feat-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .toast-host { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: none; }
  .tabs { gap: 6px; }
  .tab { font-size: 13px; padding: 8px 13px; }
}
