/* =========================================================================
   НЕЙРОТОМ — единая таблица стилей (app.css)
   Дизайн-система строго по NEUROTOM_BRAND_KIT.md
   Светлая тема · фиолет #6C4DFF + мята #19D3A2 · шрифт Onest · скруглённость
   Один файл на весь сайт. Подключается один раз в шапке.
   ========================================================================= */

/* ----- Шрифт Onest (Google Fonts) ----- */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap');

/* =========================================================================
   1. ТОКЕНЫ (дизайн-переменные) — единственный источник цветов/размеров
   ========================================================================= */
:root {
  /* Бренд-пара */
  --violet: #6C4DFF;          /* главный акцент: лого, кнопки, ссылки, активное */
  --violet-hover: #5A3DE0;
  --violet-active: #4A30C4;
  --mint: #19D3A2;            /* вторичный акцент: успех, галочки, результат */

  /* Нейтральные */
  --ink: #1A1D24;             /* основной текст и заголовки */
  --text-secondary: #6E7480;  /* вторичный текст, подписи */
  --text-muted: #9AA0AA;      /* мелкие хинты */
  --bg-page: #FFFFFF;         /* главный фон */
  --bg-subtle: #F7F8FA;       /* подложки секций и карточек */
  --border: rgba(0,0,0,0.08); /* хайрлайн-границы */

  /* Тинты */
  --violet-tint: #ECE9FF;     /* фон бейджей/плашек */
  --violet-tint-ink: #4A36C4; /* текст на фиолет-тинте */
  --mint-tint: #DDF6EF;       /* фон плашек успеха */
  --mint-tint-ink: #0C7A5E;   /* текст на мята-тинте */

  /* Акценты курсов */
  --course-universe: var(--violet);
  --course-product: var(--mint);
  --course-business: var(--ink);

  /* Радиусы */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Отступы (шкала) */
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Тени (мягкие, без неона) */
  --shadow-sm: 0 2px 8px rgba(26,29,36,0.05);
  --shadow-md: 0 8px 24px rgba(26,29,36,0.07);
  --shadow-lg: 0 16px 48px rgba(26,29,36,0.10);
  --shadow-violet: 0 8px 24px rgba(108,77,255,0.22);

  /* Прочее */
  --container: 1180px;
  --header-h: 72px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* =========================================================================
   2. СБРОС И БАЗА
   ========================================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--violet); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--violet-hover); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

/* =========================================================================
   3. ТИПОГРАФИКА — регистр предложения, заголовки графитом (не цветные)
   ========================================================================= */
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; }
h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 500; line-height: 1.3; }
p  { font-size: 17px; line-height: 1.6; }
small, .small { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--text-secondary); }
.text-secondary { color: var(--text-secondary); }
.text-mint { color: var(--mint-tint-ink); }      /* мятный акцент в тексте — точечно */
.text-violet { color: var(--violet); }
.center { text-align: center; }

/* =========================================================================
   4. РАЗМЕТКА / СЕКЦИИ
   ========================================================================= */
.container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(48px, 8vw, 88px); position: relative; }
.section--subtle { background: var(--bg-subtle); }
.section-head { max-width: 720px; margin-bottom: var(--space-xl); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: var(--space-sm); }

/* Воздух между блоками: утилиты-отступы */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* =========================================================================
   5. БЕЙДЖИ / ТЕГИ / ПЛАШКИ
   ========================================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--violet-tint); color: var(--violet-tint-ink);
}
.badge svg { width: 14px; height: 14px; }
.badge--mint { background: var(--mint-tint); color: var(--mint-tint-ink); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--bg-page); border: 1px solid var(--border);
}

/* =========================================================================
   6. КНОПКИ — пилюли (border-radius 999px)
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 16px; font-weight: 500; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: all var(--transition); white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-violet); }
.btn-primary:active { background: var(--violet-active); transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--violet); border: 1.5px solid var(--violet); }
.btn-secondary:hover { background: var(--violet-tint); color: var(--violet-tint-ink); }
.btn-lg { font-size: 17px; padding: 17px 32px; }
.btn-sm { font-size: 14px; padding: 11px 18px; }
.btn-block { display: flex; width: 100%; }

/* =========================================================================
   7. КАРТОЧКИ
   ========================================================================= */
.card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card--subtle { background: var(--bg-subtle); border-color: transparent; }
.card h3 { font-weight: 700; font-size: 20px; }
.card p { font-size: 16px; color: var(--text-secondary); margin-top: var(--space-xs); }

/* Иконка-плашка внутри карточки (squircle с SVG-иконкой) */
.icon-box {
  width: 52px; height: 52px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--violet-tint); color: var(--violet);
  margin-bottom: var(--space-md);
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box--mint { background: var(--mint-tint); color: var(--mint-tint-ink); }
.icon-box--ink  { background: var(--bg-subtle); color: var(--ink); }

/* =========================================================================
   8. СЕТКИ
   ========================================================================= */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================================
   9. ШАПКА
   ========================================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; height: 100%;
  padding-inline: 24px; display: flex; align-items: center; gap: var(--space-lg);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--violet); }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* Бургер (моб.) */
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; color: var(--ink); margin-inline-start: auto; }
.burger svg { width: 26px; height: 26px; }
.mobile-nav { display: none; }

/* =========================================================================
   10. ПОДВАЛ
   ========================================================================= */
.footer { background: var(--bg-subtle); border-top: 1px solid var(--border); padding-block: var(--space-2xl) var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-xl); }
.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-slogan { color: var(--text-secondary); font-size: 16px; max-width: 320px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: var(--space-md); }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col a { font-size: 15px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--violet); }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-md); }
.footer-social a {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-page); border: 1px solid var(--border); color: var(--text-secondary);
}
.footer-social a:hover { color: var(--violet); border-color: var(--violet); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  margin-top: var(--space-xl); padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg);
  justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-eco { font-size: 13px; color: var(--text-muted); }

/* =========================================================================
   11. ПЛАВАЮЩАЯ КНОПКА «ЗАПИСАТЬСЯ» (моб.)
   ========================================================================= */
.floating-cta { display: none; }

/* =========================================================================
   12. НЕЙРО-МОТИВ (фоновый паттерн узлов) — SVG в коде, дозированно
   ========================================================================= */
.neuro-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.neuro-bg svg { position: absolute; width: 100%; height: 100%; opacity: 0.5; }
.neuro-bg + * { position: relative; z-index: 1; }

/* Декоративная мягкая клякса фиолет-тинта — только при пустоте в углах */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; pointer-events: none; }
.blob--violet { background: var(--violet-tint); }
.blob--mint { background: var(--mint-tint); }

/* =========================================================================
   13. ФОРМЫ (база — детально на этапе формы)
   ========================================================================= */
.form-field { margin-bottom: var(--space-md); }
.form-field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--space-xs); }
.form-control {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-page); transition: border-color var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { outline: none; border-color: var(--violet); }
.form-required { color: var(--violet); }

/* =========================================================================
   14. УТИЛИТЫ ДОСТУПНОСТИ
   ========================================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================================
   15. АДАПТИВ — mobile-first корректировки (брейкпоинты «вниз»)
   ========================================================================= */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }

  /* Мобильное меню (раскрывается по бургеру) */
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--bg-page); padding: var(--space-lg) 24px;
    transform: translateX(100%); transition: transform var(--transition);
    overflow-y: auto;
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav a { display: block; font-size: 18px; font-weight: 500; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--border); }
  .mobile-nav a.is-active { color: var(--violet); }
  .mobile-nav .btn { margin-top: var(--space-lg); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Плавающая кнопка «Записаться» снизу */
  .floating-cta {
    display: flex; position: fixed; inset-inline: 16px; bottom: 16px; z-index: 90;
    box-shadow: var(--shadow-lg);
  }
  /* запас места внизу, чтобы плавающая кнопка не перекрывала подвал */
  .footer { padding-bottom: 88px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
}

/* =========================================================================
   16. КОНТЕНТНЫЕ БЛОКИ СТРАНИЦ
   ========================================================================= */

/* ---- Геро главной / страниц ---- */
.hero { position: relative; padding-block: clamp(36px, 6vw, 64px) clamp(40px, 7vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero h1 { margin-top: var(--space-md); }
.hero .lead { margin-top: var(--space-md); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--space-lg); }
.hero-figure { text-align: center; }
.hero-figure img { margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(108,77,255,0.12)); }
.hero-facts { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xl); }
.hero-fact { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.hero-fact .icon-box { width: 40px; height: 40px; margin: 0; border-radius: var(--r-sm); }
.hero-fact .icon-box svg { width: 20px; height: 20px; }

/* Компактный геро для внутренних страниц */
.page-hero { position: relative; padding-block: clamp(40px, 6vw, 72px); }
.page-hero .badge { margin-bottom: var(--space-md); }
.page-hero .lead { margin-top: var(--space-md); max-width: 620px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xl); align-items: center; }
.page-hero-grid img { filter: drop-shadow(0 20px 36px rgba(108,77,255,0.12)); }

/* ---- Манифест-блок ---- */
.manifest { text-align: center; }
.manifest .container { max-width: 820px; }
.manifest__big { font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.manifest__big b { color: var(--violet); font-weight: 700; }
.manifest__sub { margin-top: var(--space-md); }

/* ---- Карточка курса ---- */
.course-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.course-card .icon-box { margin-bottom: var(--space-md); }
.course-card__age { font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-top: 2px; }
.course-card__list { margin: var(--space-md) 0 var(--space-lg); }
.course-card__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }
.course-card__list svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; margin-top: 2px; }
.course-card .btn { margin-top: auto; align-self: flex-start; }
.course-card--mint { border-top: 3px solid var(--mint); }
.course-card--violet { border-top: 3px solid var(--violet); }
.course-card--ink { border-top: 3px solid var(--ink); }

/* ---- Список «фича + текст» (почему мы / что унесёт) ---- */
.feature { display: flex; gap: var(--space-md); align-items: flex-start; }
.feature .icon-box { margin: 0; }
.feature h3 { font-weight: 700; font-size: 18px; }
.feature p { font-size: 15px; color: var(--text-secondary); margin-top: 4px; }

/* ---- Шаги/таймлайн (как проходит, 5 фаз) ---- */
.steps { counter-reset: step; display: grid; gap: var(--space-lg); }
.step { display: flex; gap: var(--space-md); align-items: flex-start; }
.step__num {
  counter-increment: step; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet-tint); color: var(--violet-tint-ink); font-weight: 700; font-size: 18px;
}
.step__num::before { content: counter(step); }
.step h3 { font-weight: 700; font-size: 19px; }
.step p { font-size: 15px; color: var(--text-secondary); margin-top: 4px; }

/* ---- Результаты / портфолио (плейсхолдеры проектов) ---- */
.project-card { overflow: hidden; padding: 0; }
.project-thumb {
  aspect-ratio: 4 / 3; background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); position: relative; border-bottom: 1px solid var(--border);
}
.project-thumb span { font-size: 14px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.project-thumb svg { width: 34px; height: 34px; opacity: 0.6; }
.project-card__body { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.project-card__body h3 { font-size: 17px; font-weight: 700; }
.project-card__meta { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.project-card__tag { margin-top: var(--space-md); }

/* ---- Отзывы ---- */
.quote { display: flex; flex-direction: column; }
.quote p { font-size: 16px; color: var(--ink); line-height: 1.6; }
.quote footer { margin-top: var(--space-md); font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ---- Цены ---- */
.price-card { display: flex; flex-direction: column; }
.price-card__name { font-size: 20px; font-weight: 700; }
.price-card__age { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.price-card__amount { font-size: clamp(26px, 3vw, 32px); font-weight: 700; color: var(--ink); margin-top: var(--space-md); }
.price-card__period { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.price-card__features { margin: var(--space-lg) 0; }
.price-card__features li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--text-secondary); margin-bottom: 10px; }
.price-card__features svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: auto; }
.price-card--featured { border: 2px solid var(--violet); box-shadow: var(--shadow-md); }

/* ---- FAQ (нативный details/summary) ---- */
.faq { max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: var(--space-lg) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  font-size: 18px; font-weight: 500; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 24px; color: var(--violet); flex-shrink: 0; line-height: 1; transition: transform var(--transition); }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { padding-bottom: var(--space-lg); color: var(--text-secondary); font-size: 16px; max-width: 660px; }

/* ---- Лестница курсов (обзор) ---- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); align-items: stretch; }
.ladder-step { background: var(--bg-subtle); border-radius: var(--r-lg); padding: var(--space-lg); position: relative; }
.ladder-step:nth-child(1) { transform: translateY(32px); }
.ladder-step:nth-child(2) { transform: translateY(16px); }
.ladder-step__num { font-size: 13px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: 0.04em; }
.ladder-step h3 { font-size: 19px; font-weight: 700; margin-top: 6px; }
.ladder-step p { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

/* ---- Финальный CTA-блок ---- */
.cta-final { position: relative; }
.cta-card {
  position: relative; background: var(--violet-tint); border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto;
  gap: var(--space-xl); align-items: center; overflow: hidden;
}
.cta-card__text { max-width: 560px; }
.cta-card__tom img { filter: drop-shadow(0 16px 28px rgba(108,77,255,0.18)); }

/* ---- Хлебная плашка курса (акцентная) ---- */
.course-hero--violet { background: var(--violet-tint); }
.course-hero--mint { background: var(--mint-tint); }
.course-hero--ink { background: var(--bg-subtle); }

/* ---- 404 ---- */
.notfound { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.notfound img { margin-inline: auto; margin-bottom: var(--space-lg); }
.notfound h1 { font-size: clamp(60px, 12vw, 110px); color: var(--violet); }

/* ---- Раскладка формы записи ---- */
.grid-form { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 40px); align-items: start; }
@media (max-width: 768px) { .grid-form { grid-template-columns: 1fr; } }

/* ---- Бейдж благодарности (форма) ---- */
.success-box { text-align: center; max-width: 560px; margin-inline: auto; padding-block: clamp(40px, 8vw, 80px); }
.success-box .icon-box { width: 72px; height: 72px; margin-inline: auto; margin-bottom: var(--space-lg); }
.success-box .icon-box svg { width: 36px; height: 36px; }

/* ---- Адаптив контентных блоков ---- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { max-width: 280px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid img { display: none; }
  .ladder { grid-template-columns: 1fr; }
  .ladder-step:nth-child(1), .ladder-step:nth-child(2) { transform: none; }
  .cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-card__text { max-width: none; }
  .cta-card__tom { display: none; }
}

/* =========================================================================
   17. МИНИ-CRM /admin (рабочий инструмент: плотно, но в фирменном стиле)
   ========================================================================= */
.admin-body { background: var(--bg-subtle); min-height: 100vh; }

.admin-bar { background: var(--bg-page); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.admin-bar__inner { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.admin-counters { display: flex; gap: 10px; margin-inline-start: auto; flex-wrap: wrap; }
.admin-counter { display: inline-flex; align-items: baseline; gap: 6px; background: var(--bg-subtle); border-radius: var(--r-pill); padding: 7px 14px; font-size: 14px; color: var(--text-secondary); }
.admin-counter b { font-size: 16px; color: var(--ink); }
.admin-counter--new b { color: var(--violet); }

.admin-wrap { max-width: 1280px; margin: 0 auto; padding: 24px; }

.admin-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 20px; }
.admin-filters .form-control { width: auto; padding: 9px 14px; font-size: 14px; }
.admin-filters input[type="search"] { min-width: 220px; }

.admin-table-wrap { overflow-x: auto; background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--r-md); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 980px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.admin-table th { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; background: var(--bg-subtle); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-subtle); }
.admin-table .nowrap { white-space: nowrap; }
.admin-name { font-weight: 600; color: var(--ink); }
.admin-contact { color: var(--violet); }

.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.status--new       { background: var(--violet-tint); color: var(--violet-tint-ink); }
.status--contacted { background: #FFF4E0; color: #9A6B00; }
.status--scheduled { background: #E5F0FF; color: #1F5FBF; }
.status--enrolled  { background: var(--mint-tint); color: var(--mint-tint-ink); }
.status--rejected  { background: #FDECEC; color: #A12B2B; }

.admin-row-form { display: flex; flex-direction: column; gap: 8px; min-width: 210px; }
.admin-row-form select, .admin-row-form textarea { width: 100%; font-family: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-page); }
.admin-row-form textarea { resize: vertical; min-height: 38px; }
.admin-row-form button { font-size: 13px; padding: 7px 14px; align-self: flex-start; }

.admin-empty { text-align: center; padding: 48px; color: var(--text-secondary); }

.admin-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg-subtle); }
.admin-auth__card { width: 100%; max-width: 400px; background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-md); }
.admin-auth__card .logo { justify-content: center; margin-bottom: var(--space-lg); }
.admin-flash { background: #FDECEC; border: 1px solid #F5C2C2; color: #A12B2B; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; }
.admin-flash--ok { background: var(--mint-tint); border-color: #B6E8D8; color: var(--mint-tint-ink); }

@media (max-width: 600px) {
  .admin-counters { width: 100%; margin-inline-start: 0; }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
