/* Собрано tools/home-bundle.mjs из 16 файлов. Руками не править: правь исходник и пересобери. */

/* ===== css/why-section.css ===== */
/* ========================================
   WHY CHOOSE US SECTION — v2
   ======================================== */

.why-section {
  padding: 60px 0;
  position: relative;
  overflow: visible;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid var(--lt-l-c084fc80, rgba(192, 132, 252, 0.5));
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lt-i-e9d5ff, #e9d5ff); /* Максимальная контрастность для темного фона */
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
  margin-bottom: 16px;
  color:var(--lt-i-ffffff, var(--text-primary));
}

.section-description {
  font-size: 15px !important;
  color:var(--lt-i-ffffff, var(--text-primary));
  max-width: 600px;
  margin: 0 auto;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.benefit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.benefit-modal.active {
  display: flex;
}

.benefit-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--lt-c-000000cc, rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.benefit-modal-content {
  position: relative;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, var(--lt-c-0f172af2, rgba(15, 23, 42, 0.95)) 0%, var(--lt-c-0a0f1ef2, rgba(10, 15, 30, 0.95)) 100%);
  border:1px solid var(--lt-l-06b6d44d, var(--tint-brand-4));
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px var(--lt-h-00000099, rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.benefit-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:var(--lt-c-ffffff1a, var(--glass-10));
  border: 1px solid var(--lt-l-ffffff33, rgba(255, 255, 255, 0.2));
  color:var(--lt-i-ffffff, var(--text-primary));
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.benefit-modal-close:hover {
  background: var(--lt-c-ffffff33, rgba(255, 255, 255, 0.2));
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 2px solid var(--lt-l-06b6d466, rgba(6, 182, 212, 0.4));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color:var(--lt-i-06b6d4, var(--brand-ink));
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
}

.modal-title {
  font-size: 28px;
  font-weight: 900;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.modal-subtitle {
  font-size: 16px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  font-weight: 500;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.modal-stat {
  background:var(--lt-t-ffffff0d, var(--glass-05));
  border:1px solid var(--lt-l-ffffff1a, var(--edge-10));
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.modal-stat:hover {
  background:var(--lt-t-ffffff14, var(--glass-08));
  border-color:var(--lt-l-06b6d44d, var(--tint-brand-4));
  transform: translateY(-2px);
}

.modal-stat-value {
  font-size: 32px;
  font-weight: 900;
  color:var(--lt-i-06b6d4, var(--brand-ink));
  margin-bottom: 8px;
}

.modal-stat-label {
  font-size: 13px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  font-weight: 600;
}

.modal-features {
  margin: 32px 0;
}

.modal-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background:var(--lt-t-ffffff08, var(--glass-03));
  border:1px solid var(--lt-l-ffffff14, var(--edge-08));
  border-radius: 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.modal-feature:hover {
  background:var(--lt-t-ffffff0d, var(--glass-05));
  border-color:var(--lt-l-06b6d433, var(--tint-brand-3));
  transform: translateX(4px);
}

.modal-feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.modal-feature-content h4 {
  font-size: 16px;
  font-weight: 700;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin-bottom: 6px;
}

.modal-feature-content p {
  font-size: 14px !important;
  color:var(--lt-i-ffffff, var(--text-secondary));
  line-height: 1.5 !important;
  margin: 0;
}

.modal-cta {
  text-align: center;
  margin-top: 32px;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px var(--lt-h-06b6d44d, rgba(6, 182, 212, 0.3));
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--lt-h-06b6d480, rgba(6, 182, 212, 0.5));
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes iconPop {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Mobile Modal */
@media (max-width: 768px) {
  .benefit-modal-content {
    padding: 32px 24px;
    max-height: 90vh;
  }

  .modal-icon {
    width: 64px;
    height: 64px;
  }

  .modal-icon svg {
    width: 32px;
    height: 32px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-subtitle {
    font-size: 14px;
  }

  .modal-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-stat {
    padding: 16px;
  }

  .modal-stat-value {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .benefit-modal {
    padding: 10px;
  }

  .benefit-modal-content {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-feature {
    padding: 16px;
    gap: 12px;
  }

  .modal-feature-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .modal-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== css/inside-course.css ===== */
/* ============================================================
   «Как выглядит учёба изнутри» — секция главной сразу после
   первого экрана (заменила сетку карточек «Закрытое комьюнити»).

   Слева список из шести пунктов, справа «экран», на котором
   проигрывается короткая сцена-пример. Пункты переключаются сами
   (полоска под активным пунктом — таймер), после нажатия
   переключение только вручную. Логика — js/inside-course.js.

   Сцены — учебные иллюстрации, не платный материал. Цифры под
   сценами только проверенные (источники — в комментарии у секции
   в index.html).

   Цвета — свои токены --ic-*: тёмные на :root, светлые на
   :root[data-theme="light"]; генератор светлой темы этот файл не
   обходит. Глобальные p/h3 из css/main.css идут с !important,
   поэтому внутри сцен абзацев и h3 нет — только div/span/b.
   ============================================================ */

:root {
  --ic-t1: #ffffff;
  --ic-t2: #dbe3ee;
  --ic-t3: #9aa7b9;
  --ic-panel: linear-gradient(160deg, rgba(18, 24, 40, .88), rgba(8, 11, 20, .94));
  --ic-tab: rgba(255, 255, 255, .03);
  --ic-tab-on: rgba(255, 255, 255, .07);
  --ic-line: rgba(255, 255, 255, .08);
  --ic-line-2: rgba(255, 255, 255, .15);
  --ic-bubble: rgba(255, 255, 255, .07);
  --ic-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  --ic-ok: #34d399;
  --ic-warn: #fbbf24;
  --ic-bad: #f87171;
}
:root[data-theme="light"] {
  --ic-t1: #0f172a;
  --ic-t2: #334155;
  --ic-t3: #5a6675;
  --ic-panel: #ffffff;
  --ic-tab: rgba(15, 23, 42, .03);
  --ic-tab-on: #ffffff;
  --ic-line: rgba(15, 23, 42, .10);
  --ic-line-2: rgba(15, 23, 42, .18);
  --ic-bubble: rgba(15, 23, 42, .05);
  --ic-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 14px 36px rgba(15, 23, 42, .10);
  --ic-ok: #047857;
  --ic-warn: #b45309;
  --ic-bad: #b91c1c;
}

.ic-section { padding: clamp(40px, 5vw, 64px) 0; }
.ic-section .container { max-width: 1120px; }
.ic-section .section-header { margin-bottom: 32px; }

/* ── Раскладка ───────────────────────────────────────────── */
.ic {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  align-items: stretch;
}

/* ── Список пунктов ──────────────────────────────────────── */
.ic-list { display: flex; flex-direction: column; gap: 8px; }

.ic-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 14px 16px 16px;
  text-align: left;
  font: inherit;
  color: var(--ic-t1);
  background: var(--ic-tab);
  border: 1px solid var(--ic-line);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: background .25s, border-color .25s, transform .25s;
}
.ic-tab:hover { border-color: var(--ic-line-2); }
.ic-tab[aria-selected="true"] {
  background: var(--ic-tab-on);
  border-color: rgba(var(--acc-s), .45);
  box-shadow: 0 0 0 1px rgba(var(--acc-s), .12), 0 10px 28px rgba(var(--acc-s), .10);
}
.ic-tab:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.ic-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--acc);
  background: rgba(var(--acc-s), .12);
  border: 1px solid rgba(var(--acc-s), .28);
  font-variant-numeric: tabular-nums;
}
.ic-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ic-tx b { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ic-t1); }
.ic-tx i { font-style: normal; font-size: 13.5px; line-height: 1.45; color: var(--ic-t3); }
.ic-tab[aria-selected="true"] .ic-tx i { color: var(--ic-t2); }

/* Таймер автопереключения: полоска внизу активного пункта */
.ic-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.ic.is-auto .ic-tab[aria-selected="true"] .ic-bar {
  opacity: .9;
  animation: ic-fill var(--ic-dur, 9s) linear forwards;
}
.ic.is-paused .ic-tab[aria-selected="true"] .ic-bar { animation-play-state: paused; }
@keyframes ic-fill { to { transform: scaleX(1); } }

/* ── Экран ───────────────────────────────────────────────── */
.ic-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  background: var(--ic-panel);
  border: 1px solid var(--ic-line);
  border-radius: 18px;
  box-shadow: var(--ic-shadow);
  overflow: hidden;
}
.ic-scene::before { /* мягкий свет цвета текущей сцены */
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(var(--acc-s), .16), transparent);
  pointer-events: none;
  z-index: -1;
}
:root[data-theme="light"] .ic-scene::before { background: radial-gradient(closest-side, rgba(var(--acc-s), .08), transparent); }

/* Высоту экрана задаёт min-height и строка сетки (высота списка слева). Лента
   переписки — flex-basis 0: в высоту экрана она не вкладывается, а занимает
   свободное место, старые сообщения уходят вверх под маску. Остальные сцены
   своей высоты не теряют: если не влезут, экран просто станет выше. */
.ic-scene { display: none; position: relative; isolation: isolate; flex: 1 0 auto; flex-direction: column; padding: 18px 20px 16px; }
.ic-scene.is-on { display: flex; }

.ic-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ic-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ic-t2);
}
.ic-top svg { width: 18px; height: 18px; color: var(--acc); flex: none; }
.ic-tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ic-t3);
  border: 1px solid var(--ic-line-2);
  white-space: nowrap;
}
.ic-body { flex: 1 0 auto; display: flex; flex-direction: column; }

.ic-fact {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ic-line);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ic-t2);
}
.ic-fact svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--acc); }

/* Появление элементов сцены: --i — порядковый номер, шаг задаёт сцена */
.ic-scene.is-on .ic-in {
  animation: ic-in .45s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * var(--step, .9s) + .2s);
}
@keyframes ic-in { from { opacity: 0; transform: translateY(8px); } }

/* ── 1. Звонок брокеру ───────────────────────────────────── */
.ic-chat {
  --step: 1s;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 32px);
}
.ic-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ic-t1);
  background: var(--ic-bubble);
  border: 1px solid var(--ic-line);
}
.ic-msg small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; color: var(--ic-t3); }
.ic-msg.me {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: rgba(var(--acc-s), .14);
  border-color: rgba(var(--acc-s), .30);
}
/* сообщения «вырастают» и подталкивают ленту вверх, как в мессенджере */
.ic-scene.is-on .ic-msg {
  animation: ic-grow .5s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * var(--step, 1s) + .2s);
}
@keyframes ic-grow {
  from { opacity: 0; max-height: 0; padding-block: 0; margin-top: -8px; transform: translateY(10px); }
  to { opacity: 1; max-height: 140px; }
}
.ic-result { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ic-t1);
  background: var(--ic-bubble);
  border: 1px solid var(--ic-line-2);
}
.ic-chip s { color: var(--ic-t3); font-weight: 600; }
.ic-chip.ok { color: var(--ic-ok); border-color: currentColor; background: transparent; }

/* ── 2. Документ ─────────────────────────────────────────── */
.ic-doc {
  --step: 1.3s;
  border: 1px solid var(--ic-line-2);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13.5px;
}
.ic-doc-h {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ic-t2);
  background: var(--ic-bubble);
  border-bottom: 1px solid var(--ic-line);
}
.ic-doc-h span { font-weight: 600; letter-spacing: 0; color: var(--ic-t3); }
.ic-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ic-line);
  color: var(--ic-t1);
  transition: background .3s;
}
.ic-row:last-child { border-bottom: 0; }
.ic-row > span:first-child { color: var(--ic-t3); font-weight: 600; }
.ic-scene.is-on .ic-row[data-mark] { animation: ic-mark .5s ease both; animation-delay: calc(var(--i) * var(--step) + .3s); }
.ic-row[data-mark="ok"] { --mk: var(--ic-ok); }
.ic-row[data-mark="warn"] { --mk: var(--ic-warn); }
.ic-row[data-mark="bad"] { --mk: var(--ic-bad); }
@keyframes ic-mark {
  from { box-shadow: inset 3px 0 0 transparent; }
  to { box-shadow: inset 3px 0 0 var(--mk); background: color-mix(in srgb, var(--mk) 10%, transparent); }
}
.ic-notes { --step: 1.3s; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ic-note { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ic-t2); }
.ic-note::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--mk); }
.ic-note b { color: var(--ic-t1); }
.ic-note.ok { --mk: var(--ic-ok); }
.ic-note.warn { --mk: var(--ic-warn); }
.ic-note.bad { --mk: var(--ic-bad); }
.ic-scene.is-on .ic-note { animation: ic-in .45s ease both; animation-delay: calc(var(--i) * var(--step) + .5s); }

/* ── 4. Карьера ──────────────────────────────────────────── */
.ic-steps { --step: .7s; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ic-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ic-bubble);
  border: 1px solid var(--ic-line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ic-t1);
}
.ic-step small { display: block; font-size: 12px; color: var(--ic-t3); }
.ic-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ic-line-2);
  color: transparent;
}
.ic-check svg { width: 14px; height: 14px; }
.ic-scene.is-on .ic-check { animation: ic-tick .35s ease both; animation-delay: calc(var(--i) * var(--step) + .5s); }
@keyframes ic-tick { to { color: #fff; background: var(--acc); border-color: var(--acc); } }
.ic-step.pro .ic-check { border-style: dashed; }

/* ── 5. Аудио ────────────────────────────────────────────── */
.ic-player {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--ic-bubble);
  border: 1px solid var(--ic-line);
}
.ic-cover {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.ic-cover svg { width: 30px; height: 30px; }
.ic-pl-t { font-size: 15px; font-weight: 800; color: var(--ic-t1); line-height: 1.3; }
.ic-pl-s { font-size: 12.5px; color: var(--ic-t3); }
.ic-wave { display: flex; align-items: center; gap: 3px; height: 38px; margin: 16px 2px 8px; }
.ic-wave i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 2px;
  background: var(--ic-line-2);
}
.ic-scene.is-on .ic-wave i {
  background: var(--acc);
  animation: ic-wave 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--k, 0) * -.13s);
}
@keyframes ic-wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.ic-prog { position: relative; height: 4px; border-radius: 4px; background: var(--ic-line-2); overflow: hidden; }
.ic-prog::after { content: ''; position: absolute; inset: 0; width: 18%; background: var(--acc); border-radius: inherit; }
.ic-scene.is-on .ic-prog::after { animation: ic-prog 9s linear both; }
@keyframes ic-prog { to { width: 46%; } }
.ic-time { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ic-t3); font-variant-numeric: tabular-nums; }
.ic-tracks { --step: .35s; list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.ic-track {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  padding: 8px 4px;
  border-top: 1px solid var(--ic-line);
  font-size: 13.5px;
  color: var(--ic-t2);
}
.ic-track span:first-child { color: var(--ic-t3); font-variant-numeric: tabular-nums; }
.ic-track span:last-child { color: var(--ic-t3); font-variant-numeric: tabular-nums; }
.ic-track.on { color: var(--ic-t1); font-weight: 700; }
.ic-track.on span:first-child { color: var(--acc); }

/* ── 6. Курс растёт ──────────────────────────────────────── */
.ic-news { --step: .6s; list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.ic-news::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--ic-line-2); border-radius: 2px; }
.ic-new { position: relative; font-size: 14px; line-height: 1.45; color: var(--ic-t2); }
.ic-new::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px rgba(var(--acc-s), .18);
}
.ic-new b { display: block; font-size: 15px; color: var(--ic-t1); }

/* Светлая тема: акцентные цвета (жёлтый, голубой) на белом как текст не читаются */
:root[data-theme="light"] .ic-n,
:root[data-theme="light"] .ic-top svg,
:root[data-theme="light"] .ic-fact svg,
:root[data-theme="light"] .ic-track.on span:first-child { color: color-mix(in srgb, var(--acc) 55%, #0f172a); }

/* ── Призыв под секцией ──────────────────────────────────── */
.ic-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ic-t2);
  text-align: center;
}
.ic-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14.5px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  box-shadow: 0 8px 22px rgba(6, 182, 212, .25);
  transition: transform .2s, box-shadow .2s;
}
.ic-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(6, 182, 212, .35); }

/* ── Планшет и телефон: пункты лентой над экраном ─────────── */
@media (max-width: 880px) {
  .ic { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ic-list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * clamp(12px, 3vw, 32px));
    padding: 2px clamp(12px, 3vw, 32px) 4px;
  }
  .ic-list::-webkit-scrollbar { display: none; }
  .ic-tab {
    flex: none;
    width: auto;
    max-width: 240px;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 12px 10px;
    scroll-snap-align: start;
  }
  .ic-n { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
  .ic-tx b { font-size: 14px; white-space: nowrap; }
  .ic-tx i { display: none; }
  .ic-stage { min-height: 480px; }
}
@media (max-width: 480px) {
  .ic-scene { padding: 14px 14px 12px; }
  .ic-msg { max-width: 90%; font-size: 13.5px; }
  .ic-row { grid-template-columns: 80px 1fr; padding: 7px 12px; font-size: 13px; }
  .ic-stage { min-height: 520px; }
  .ic-steps { gap: 6px; }
  .ic-step { padding: 8px 10px; gap: 10px; }
}

/* Без анимаций: сцены сразу в конечном виде, без автопереключения */
@media (prefers-reduced-motion: reduce) {
  .ic-scene.is-on *, .ic-scene.is-on .ic-msg, .ic-scene.is-on .ic-in { animation: none !important; }
  .ic-scene.is-on .ic-row[data-mark] { box-shadow: inset 3px 0 0 var(--mk); background: color-mix(in srgb, var(--mk) 10%, transparent); }
  .ic-scene.is-on .ic-check { color: #fff; background: var(--acc); border-color: var(--acc); }
  .ic-prog::after { width: 46%; }
  .ic-bar { display: none; }
}

/* ===== css/map-trainer-banner.css ===== */
/* === USA Map Trainer — компактная секция: короткий текст + вырезанная карта === */
.map-trainer-section {
  /* Раньше 7vw/84px — на широком десктопе давало ~170px+ одних отступов
     сверху+снизу вокруг довольно скромного по факту контента ("слишком
     огромная, как будто не полноценная"). Верхний потолок ниже. */
  padding: clamp(36px, 4vw, 56px) 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.map-trainer-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 2vw, 26px);
  border-radius: 18px;
  border: 1px solid var(--lt-l-06b6d429, rgba(6, 182, 212, 0.16));
  background:
    radial-gradient(ellipse 65% 120% at 86% 42%, rgba(6, 182, 212, 0.09), transparent 60%),
    linear-gradient(160deg, var(--lt-c-121828d9, rgba(18, 24, 40, 0.85)), var(--lt-c-090c16eb, rgba(9, 12, 22, 0.92)));
  box-shadow: 0 20px 60px var(--lt-h-0000004d, rgba(0, 0, 0, 0.3));
}
/* Мягкие диагональные лучи света (за пылинками) */
.map-trainer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 32%, rgba(190, 232, 255, 0.05) 46%, transparent 60%),
    linear-gradient(150deg, transparent 55%, rgba(6, 182, 212, 0.04) 70%, transparent 86%);
}
/* Канва с частицами-пылинками — за текстом и картой */
.map-trainer-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Контент — поверх лучей и пылинок */
.map-trainer-text,
.map-trainer-visual {
  position: relative;
  z-index: 2;
}

/* ── Левая колонка: короткий текст ── */
.map-trainer-text { flex: 1 1 40%; min-width: 0; }

.map-trainer-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.map-trainer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color:var(--lt-i-22d3ee, var(--brand-ink-2));
  background: rgba(6, 182, 212, 0.10);
  border: 1px solid var(--lt-l-06b6d459, rgba(6, 182, 212, 0.35));
}
/* Плашка «бесплатно» — зелёная, заметная */
.map-trainer-free {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 4px 14px var(--lt-h-22c55e59, rgba(34, 197, 94, 0.35));
}

.map-trainer-title {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color:var(--lt-i-ffffff, var(--text-primary));
}
.map-trainer-title .gradient-text {
  background: linear-gradient(90deg, var(--lt-i-06b6d4, #06b6d4), var(--lt-i-8b5cf6, #8b5cf6));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.map-trainer-sub {
  margin: 0 0 20px;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 600;
  line-height: 1.5;
  color:var(--lt-i-ffffff, var(--text-secondary));
}

/* Компактные чипы вместо списка буллетов */
.map-trainer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.map-trainer-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color:var(--lt-i-ffffff, var(--text-primary));
  background:var(--lt-t-ffffff0d, var(--glass-05));
  border:1px solid var(--lt-l-ffffff1a, var(--edge-10));
}

.map-trainer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #06283a;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 8px 22px var(--lt-h-06b6d452, rgba(6, 182, 212, 0.32));
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.map-trainer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--lt-h-06b6d473, rgba(6, 182, 212, 0.45));
}
.map-trainer-btn:active { transform: translateY(0); }

/* ── Правая колонка: карта крупнее (вырезана, фон прозрачный) ── */
.map-trainer-visual {
  flex: 1 1 60%;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.map-trainer-visual img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 34px var(--lt-h-00000073, rgba(0, 0, 0, 0.45)));
}

/* ── Планшет/мобайл: в колонку, карта сверху ── */
@media (max-width: 860px) {
  .map-trainer-card {
    flex-direction: column-reverse;
    text-align: center;
    gap: 18px;
  }
  .map-trainer-tags { justify-content: center; }
  .map-trainer-chips { justify-content: center; }
  .map-trainer-visual img { max-width: 520px; }
}

/* ============================================================
   ПЕРЕКОМПОНОВКА: две карточки рядом, а не две полосы
   ------------------------------------------------------------
   Было: каждая карточка во всю ширину контейнера, одна под другой,
   внутри текст слева и крупный визуал справа. Пара занимала около
   1090px по высоте, внутри оставалась пустота, а на широком экране
   полосы читались тяжело.

   Стало: карточки встают рядом. auto-fit с минимумом 360px сам
   переводит их в одну колонку на узком экране — отдельная вёрстка
   под мобильный не нужна.
   ============================================================ */
.tools-section > .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* Шапка секции — через всю ширину сетки */
.tools-section > .container > .tools-head {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

/* Карточка: колонка вместо строки */
.map-trainer-card {
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  gap: 14px;
  border-radius: 18px;
  min-width: 0;
}

.map-trainer-card + .map-trainer-card { margin-top: 0; }

.map-trainer-text {
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Визуал наверх и заметно меньше: он приманка, а не половина карточки */
.map-trainer-visual {
  order: -1;
  width: auto;
  max-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-trainer-visual img {
  max-height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Цифры карьерной карточки — в строку, без пустого поля справа.
   Раньше блок жил в колонке визуала (картинки там не было, цифры её
   заменяли). Теперь в визуале лежит иллюстрация, а цифры переехали в
   текстовую колонку — значит и выравнивание по левому краю, как у
   остального текста, а не по центру пустого поля. */
.career-stats {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 22px;
  width: 100%;
}

.career-stat { text-align: center; }
/* Цвет задан явно, а не унаследован: в светлой теме body остаётся с белым
   текстом, и цифры без своего цвета становились белыми на белой карточке. */
.career-stat b {
  font-size: 26px;
  display: block;
  line-height: 1.1;
  color: var(--lt-i-ffffff, var(--text-primary));
}
.career-stat span { font-size: 12px; color: var(--lt-i-ffffff, var(--text-muted)); }

/* Список возможностей — вместо чипов-тегов.
   Чипы говорили одним словом («Столицы», «Границы») и места занимали столько
   же. Строка объясняет, что именно внутри, — карточка стала содержательной,
   не разъехавшись по высоте. Галочка нарисована псевдоэлементом: настоящий
   маркер списка не выровнять по базовой линии многострочного пункта. */
.map-trainer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.map-trainer-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--lt-i-ffffff, var(--text-secondary));
}
.map-trainer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--lt-i-06b6d4, var(--brand-ink));
}

/* Цифры отделены от списка тонкой линией — иначе три числа читались как
   продолжение перечисления. */
.career-stats {
  padding-top: 12px;
  border-top: 1px solid var(--lt-l-ffffff14, var(--edge-08));
}

/* Типографика под узкую карточку */
.map-trainer-title { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; margin: 0; }
.map-trainer-sub { font-size: 14px; line-height: 1.5; margin: 0; }
.map-trainer-chips { gap: 6px; }
.map-trainer-chips span { font-size: 12px; padding: 5px 10px; }
.map-trainer-btn { align-self: flex-start; margin-top: auto; }

/* Совсем узкие экраны — ещё компактнее */
@media (max-width: 480px) {
  .map-trainer-card { padding: 15px; gap: 12px; }
  .map-trainer-visual, .map-trainer-visual img { max-height: 118px; }
  .career-stats { gap: 16px; }
  .career-stat b { font-size: 22px; }
  .map-trainer-list li { font-size: 13px; padding-left: 20px; }
}

/* ===== css/profession-section.css ===== */
/* ========================================
   PROFESSION SECTION
   ======================================== */

.profession-section {
  padding: 60px 0;
  position: relative;
}

.profession-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.profession-section .section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid var(--lt-l-c084fc80, rgba(192, 132, 252, 0.5));
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lt-i-e9d5ff, #e9d5ff); /* Максимальная контрастность для темного фона */
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  font-family: 'Montserrat', sans-serif;
}

.profession-section .section-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
  margin-bottom: 16px;
  color:var(--lt-i-ffffff, var(--text-primary));
  font-family: 'Montserrat', sans-serif;
}

.profession-section .section-description {
  font-size: 15px !important;
  color:var(--lt-i-ffffff, var(--text-primary));
  max-width: 600px;
  margin: 0 auto;
  font-weight: 600;
  letter-spacing: -0.2px;
  font-family: 'Montserrat', sans-serif;
}

.profession-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.profession-card {
  position: relative;
  background: linear-gradient(135deg, var(--lt-c-ffffff0d, rgba(255, 255, 255, 0.05)) 0%, var(--lt-c-ffffff05, rgba(255, 255, 255, 0.02)) 100%);
  border:1px solid var(--lt-l-ffffff1a, var(--edge-10));
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow:
    0 8px 32px var(--lt-h-00000066, rgba(0, 0, 0, 0.4)),
    inset 0 1px 0 var(--lt-h-ffffff14, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  overflow: hidden;
}

.profession-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--lt-c-ffffff14, rgba(255, 255, 255, 0.08)) 0%, var(--lt-c-ffffff0a, rgba(255, 255, 255, 0.04)) 100%);
  border-color: var(--lt-l-ffffff2e, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 16px 48px var(--lt-h-00000080, rgba(0, 0, 0, 0.5)),
    inset 0 1px 0 var(--lt-h-ffffff1f, rgba(255, 255, 255, 0.12));
}

.profession-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 20px 0 0 20px;
}

.profession-icon {
  width: 46px;
  height: 46px;
  border: 1.5px solid;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.profession-icon svg {
  width: 22px;
  height: 22px;
}

.profession-card:hover .profession-icon {
  transform: scale(1.08);
}

.profession-title {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color:var(--lt-i-ffffff, var(--text-primary));
  font-family: 'Montserrat', sans-serif;
}

.profession-text {
  color:var(--lt-i-ffffff, var(--text-secondary));
  line-height: 1.55 !important;
  font-size: 13.5px !important;
  margin: 0;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

.profession-stats {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(14, 165, 233, 0.05));
  border:1px solid var(--lt-l-06b6d433, var(--tint-brand-3));
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px var(--lt-h-0000004d, rgba(0, 0, 0, 0.3));
}

.stats-title {
  font-size: 20px;
  font-weight: 800;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin: 0 0 8px 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
}

.stats-subtitle {
  font-size: 13px;
  color:var(--lt-i-ffffff, var(--text-muted));
  text-align: center;
  margin: 0 0 28px 0;
  font-family: 'Montserrat', sans-serif;
}

.chart-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.chart-tab {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color:var(--lt-i-ffffff, var(--text-muted));
  background:var(--lt-t-ffffff08, var(--glass-03));
  border:1px solid var(--lt-l-ffffff14, var(--edge-08));
  border-radius: 20px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chart-tab:hover {
  background:var(--lt-t-ffffff0f, var(--glass-06));
  color:var(--lt-i-ffffff, var(--text-secondary));
}

.chart-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.18));
  border-color: var(--lt-l-06b6d480, rgba(6, 182, 212, 0.5));
  color: var(--lt-i-ffffff, #ffffff);
}

.chart-open-hint {
  font-size: 10px;
  color:var(--lt-i-ffffff, var(--text-muted));
  text-align: center;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
}

/* Свежая недельная ставка под графиком. График показывает только закрытые
   месяцы, а секция называется «прямо сейчас» — эта строка закрывает разрыв
   между «последний месяц» и «сегодня». Текст — MARKET в js/stats-animation.js. */
.chart-latest {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--lt-l-ffffff14, var(--edge-08));
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--lt-i-ffffff, var(--text-secondary));
}

.chart-latest b {
  color: var(--lt-i-22d3ee, var(--brand-ink-2));
  font-weight: 700;
  white-space: nowrap;
}

.chart-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.05));
  border:1px solid var(--lt-l-06b6d433, var(--tint-brand-3));
  border-radius: 20px;
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.chart-card:hover {
  border-color: var(--lt-l-06b6d466, rgba(6, 182, 212, 0.4));
  transform: translateY(-2px);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2px;
}

.chart-label {
  font-size: 12.5px;
  color:var(--lt-i-ffffff, var(--text-muted));
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.chart-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--lt-i-34d399, #34d399);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid var(--lt-l-34d3994d, rgba(52, 211, 153, 0.3));
  padding: 4px 11px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

.chart-svg-wrap {
  margin-top: 8px;
  position: relative;
}

.chart-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.wave-path {
  fill: none;
  stroke: url(#waveStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wave-area {
  fill: url(#waveFill);
  opacity: 0;
}

.profession-stats.animated .wave-area {
  animation: fadeArea 1.2s ease forwards 1s;
}

.wave-dot {
  fill: #0d1424;
  stroke: var(--lt-i-0ea5e9, #0ea5e9);
  stroke-width: 2.5;
  opacity: 0;
  transform-origin: center;
}

.wave-dot.end {
  fill: var(--lt-i-0ea5e9, #0ea5e9);
}

.profession-stats.animated .wave-dot {
  animation: popIn 0.4s ease forwards;
}

.wave-dot-hit {
  fill: transparent;
  cursor: pointer;
  transition: fill 0.15s ease;
}

.wave-dot-hit:hover {
  fill: rgba(14, 165, 233, 0.16);
}

.end-pulse {
  fill: none;
  stroke: var(--lt-i-0ea5e9, #0ea5e9);
  stroke-width: 2;
  opacity: 0;
}

.profession-stats.animated .end-pulse {
  animation: pulseRing 2.2s ease-out infinite 2.4s;
}

@keyframes fadeArea {
  to { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseRing {
  0% { r: 5; opacity: 0.9; }
  100% { r: 16; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-path { transition: none; }
  .wave-area, .wave-dot { animation: none !important; opacity: 1 !important; transform: none !important; }
  .end-pulse { display: none; }
}

.chart-dates {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color:var(--lt-i-ffffff, var(--text-muted));
  margin-top: 4px;
  padding: 0 2px;
  font-family: 'Montserrat', sans-serif;
}

.chip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.chip {
  background:var(--lt-t-ffffff08, var(--glass-03));
  border:1px solid var(--lt-l-ffffff0f, var(--edge-06));
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  background:var(--lt-t-ffffff0f, var(--glass-06));
  border-color:var(--lt-l-06b6d44d, var(--tint-brand-4));
  transform: translateY(-2px);
}

.chip-icon {
  font-size: 15px;
}

.chip-label {
  font-size: 9px;
  color:var(--lt-i-ffffff, var(--text-muted));
  margin-top: 3px;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
}

.stat-value {
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(135deg, #9333ea, var(--lt-i-f97316, #f97316));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
  display: block;
  margin-top: 4px;
}

.chart-head .stat-value {
  font-size: 30px;
  margin-top: 0;
  display: inline-block;
}

.stat-value-cyan {
  background: linear-gradient(135deg, var(--lt-i-06b6d4, #06b6d4), var(--lt-i-0ea5e9, #0ea5e9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value-green {
  background: linear-gradient(135deg, var(--lt-i-10b981, #10b981), var(--lt-i-14b8a6, #14b8a6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-source {
  margin-top: 14px;
  padding-top: 14px;
  border-top:1px solid var(--lt-l-ffffff1a, var(--edge-10));
  text-align: center;
}

.stats-source p {
  font-size: 10.5px !important;
  color:var(--lt-i-ffffff, var(--text-muted));
  line-height: 1.5 !important;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .profession-section {
    padding: 50px 0;
  }

  .profession-section .section-header {
    margin-bottom: 36px;
  }

  .profession-section .section-title {
    font-size: 34px !important;
  }

  .profession-section .section-description {
    font-size: 14px !important;
  }

  .profession-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profession-card {
    padding: 22px 20px;
  }

  .profession-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .profession-title {
    font-size: 15px;
  }

  .profession-text {
    font-size: 12px;
  }

  .profession-stats {
    padding: 28px 24px;
  }

  .stats-title {
    font-size: 18px;
  }

  .chart-card {
    padding: 18px;
  }

  .chart-tab {
    font-size: 11.5px;
    padding: 6px 13px;
  }

  .stat-value {
    font-size: 13px;
  }

  .chart-head .stat-value {
    font-size: 25px;
  }

  .chart-label {
    font-size: 11.5px;
  }

  .chart-change {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .profession-section {
    padding: 40px 0;
  }

  .profession-section .section-title {
    font-size: 30px !important;
  }

  .profession-section .section-description {
    font-size: 13px !important;
  }

  .profession-card {
    padding: 20px 18px 20px 22px;
    border-radius: 20px;
  }

  .profession-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .profession-title {
    font-size: 14px;
  }

  .profession-text {
    font-size: 11px !important;
  }

  .profession-stats {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .stats-title {
    font-size: 16px;
  }

  .chart-tab {
    font-size: 11px;
    padding: 6px 11px;
  }

  .stat-value {
    font-size: 12px;
  }

  .chart-head .stat-value {
    font-size: 22px;
  }

  .chart-label {
    font-size: 10.5px;
  }

  .chip-label {
    font-size: 8.5px;
  }
}


/* ========================================
   PROFESSION MODAL (Desktop)
   ======================================== */

.profession-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.profession-modal.active {
  display: flex;
}

.profession-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--lt-c-000000cc, rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.profession-modal-content {
  position: relative;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, var(--lt-c-0f172af2, rgba(15, 23, 42, 0.95)) 0%, var(--lt-c-0a0f1ef2, rgba(10, 15, 30, 0.95)) 100%);
  border:1px solid var(--lt-l-06b6d44d, var(--tint-brand-4));
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px var(--lt-h-00000099, rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.profession-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:var(--lt-c-ffffff1a, var(--glass-10));
  border: 1px solid var(--lt-l-ffffff33, rgba(255, 255, 255, 0.2));
  color:var(--lt-i-ffffff, var(--text-primary));
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
}

.profession-modal-close:hover {
  background: var(--lt-c-ffffff33, rgba(255, 255, 255, 0.2));
  transform: rotate(90deg);
}

.profession-modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.profession-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 2px solid var(--lt-l-06b6d466, rgba(6, 182, 212, 0.4));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.profession-modal-header h2 {
  font-size: 28px;
  font-weight: 900;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  font-family: 'Montserrat', sans-serif;
}

.profession-modal-subtitle {
  font-size: 16px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

.profession-modal-body h4 {
  font-size: 20px;
  font-weight: 800;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
}

.profession-modal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.profession-modal-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background:var(--lt-t-ffffff08, var(--glass-03));
  border:1px solid var(--lt-l-ffffff14, var(--edge-08));
  border-radius: 16px;
  transition: all 0.3s ease;
}

.profession-modal-item:hover {
  background:var(--lt-t-ffffff0d, var(--glass-05));
  border-color:var(--lt-l-06b6d433, var(--tint-brand-3));
  transform: translateX(4px);
}

.profession-modal-item .item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.profession-modal-item strong {
  font-size: 16px;
  font-weight: 700;
  color:var(--lt-i-ffffff, var(--text-primary));
  display: block;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}

.profession-modal-item p {
  font-size: 14px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  line-height: 1.5;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.profession-modal-note {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(14, 165, 233, 0.05));
  border:1px solid var(--lt-l-06b6d433, var(--tint-brand-3));
  border-radius: 12px;
  padding: 16px 20px;
}

.profession-modal-note p {
  font-size: 14px;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

.profession-modal-note strong {
  color:var(--lt-i-06b6d4, var(--brand-ink));
  font-weight: 700;
}

/* ========================================
   ACCORDION (Mobile)
   ======================================== */

.profession-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profession-accordion-content.active {
  max-height: 1000px;
  margin-top: 16px;
}

.accordion-inner {
  padding: 20px;
  background:var(--lt-t-ffffff08, var(--glass-03));
  border:1px solid var(--lt-l-ffffff14, var(--edge-08));
  border-radius: 16px;
  margin-top: 16px;
}

.accordion-inner h4 {
  font-size: 16px;
  font-weight: 800;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
}

.accordion-inner ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.accordion-inner ul li {
  padding: 12px 0;
  border-bottom:1px solid var(--lt-l-ffffff0d, var(--glass-05));
  font-size: 13px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

.accordion-inner ul li:last-child {
  border-bottom: none;
}

.accordion-inner ul li strong {
  color:var(--lt-i-ffffff, var(--text-primary));
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.accordion-note {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(14, 165, 233, 0.05));
  border:1px solid var(--lt-l-06b6d433, var(--tint-brand-3));
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--lt-i-ffffffd9, rgba(255, 255, 255, 0.85));
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

.profession-card {
  cursor: pointer;
}

.profession-card.accordion-open {
  background: linear-gradient(135deg, var(--lt-t-ffffff14, rgba(255, 255, 255, 0.08)) 0%, var(--lt-t-ffffff0a, rgba(255, 255, 255, 0.04)) 100%);
}

/* Скрываем аккордеон на десктопе */
@media (min-width: 769px) {
  .profession-accordion-content {
    display: none !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes iconPop {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .profession-modal-content {
    padding: 32px 24px;
    max-height: 90vh;
  }

  .profession-modal-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .profession-modal-header h2 {
    font-size: 24px;
  }

  .profession-modal-subtitle {
    font-size: 14px;
  }

  .profession-modal-body h4 {
    font-size: 18px;
  }

  .profession-modal-item {
    padding: 16px;
    gap: 12px;
  }

  .profession-modal-item .item-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .profession-modal-item strong {
    font-size: 14px;
  }

  .profession-modal-item p {
    font-size: 13px;
  }
}


/* ========================================
   STATS MODAL
   ======================================== */

.stats-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.stats-modal.active {
  display: flex;
}

.stats-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--lt-c-000000d9, rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.stats-modal-content {
  position: relative;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, var(--lt-c-0f172afa, rgba(15, 23, 42, 0.98)) 0%, var(--lt-c-0a0f1efa, rgba(10, 15, 30, 0.98)) 100%);
  border:1px solid var(--lt-l-06b6d44d, var(--tint-brand-4));
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 60px var(--lt-h-000000b3, rgba(0, 0, 0, 0.7));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.stats-modal-close {
  /* .stats-modal-content — сам скроллящийся контейнер (overflow-y:auto).
     Крестик был position:absolute относительно него — при скролле контента
     вниз крестик уезжал вместе с ним и пропадал из виду. float+sticky:
     остаётся в потоке (float:right ставит его у правого края, как раньше
     right:20px), а sticky держит его прижатым к верху при скролле —
     виден всегда, независимо от прокрутки. Отрицательный margin-bottom
     компенсирует высоту float, чтобы не сдвигал контент под собой вниз. */
  /* !important на position/float: без него на этой кнопке (<button>,
     плавающая внутри скроллящегося .stats-modal-content) computed
     position упорно возвращался "relative" вместо "sticky" — тот же
     сценарий через инлайн-стиль (наивысшая специфичность) или !important
     срабатывал верно. Что именно тут побеждает по каскаду — не нашёл
     (grep по всем css на modal-close/button ничего не даёт), похоже на
     браузерный edge-case конкретно для float+button+sticky. !important
     решает надёжно, проверено вживую перед деплоем. */
  position: sticky !important;
  top: 16px;
  float: right !important;
  margin-bottom: -40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:var(--lt-c-ffffff1a, var(--glass-10));
  border: 1px solid var(--lt-l-ffffff33, rgba(255, 255, 255, 0.2));
  color:var(--lt-i-ffffff, var(--text-primary));
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 10;
  font-family: 'Montserrat', sans-serif;
}

.stats-modal-close:hover {
  background: var(--lt-c-ffffff33, rgba(255, 255, 255, 0.2));
  transform: rotate(90deg);
}

.stats-modal-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom:1px solid var(--lt-l-ffffff1a, var(--edge-10));
}

.stats-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border: 2px solid var(--lt-l-ffffff33, rgba(255, 255, 255, 0.2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.stats-modal-header h2 {
  font-size: 26px;
  font-weight: 900;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  font-family: 'Montserrat', sans-serif;
}

.stats-modal-subtitle {
  font-size: 14px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 16px;
}

.stats-modal-value {
  font-size: 48px;
  font-weight: 900;
  margin-top: 12px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -2px;
}

.stats-modal-body h3 {
  font-size: 18px;
  font-weight: 800;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin: 24px 0 16px 0;
  font-family: 'Montserrat', sans-serif;
}

/* Chart Styles */
.stats-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 200px;
  padding: 20px;
  background: var(--lt-t-ffffff05, rgba(255, 255, 255, 0.02));
  border:1px solid var(--lt-l-ffffff0d, var(--glass-05));
  border-radius: 16px;
  margin-bottom: 24px;
  /* Раньше .chart-bar-wrapper{flex:1} без min-width не сжимался ниже
     контента ("2.32/mi") — на 7 барах (год по месяцам) это распирало
     контейнер, и лишние бары обрезались рамкой модалки на мобильных.
     overflow-x — страховка: если сжатие упрётся в min-width, график
     скроллится, а не обрезается. */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.chart-bar-wrapper {
  flex: 1 1 0;
  min-width: 36px;
  display: flex;
  flex-direction: column;
  /* justify-content не было — бар без него висел у ВЕРХА колонки: у
     низкого бара под ним оставался пустой зазор перед подписью месяца,
     и визуально казалось, что бары растут "сверху вниз", а не от общей
     нижней линии вверх. flex-end прижимает бар+подпись к низу — у всех
     баров теперь общая нижняя базовая линия, растёт только верх бара. */
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.chart-bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px var(--lt-h-0000004d, rgba(0, 0, 0, 0.3));
}

.chart-value {
  font-size: 11px;
  font-weight: 700;
  color:var(--lt-i-ffffff, var(--text-primary));
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 2px 4px var(--lt-h-0000004d, rgba(0, 0, 0, 0.3));
}

.chart-year {
  font-size: 12px;
  font-weight: 600;
  color:var(--lt-i-ffffff, var(--text-secondary));
  font-family: 'Montserrat', sans-serif;
  /* margin-top:auto — вот кто на самом деле ломал рост "снизу вверх":
     auto-margin у флекс-айтема побеждает justify-content родителя
     всегда. Раньше (justify-content по умолчанию flex-start) это
     держало подпись месяца внизу, а сам бар — сверху с зазором. Теперь
     это же правило сводило на нет уже добавленный justify-content:
     flex-end на .chart-bar-wrapper. Убрано — bar+подпись выравниваются
     как единая группа по низу через justify-content родителя. */
}

/* Facts Styles */
.stats-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stats-fact {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background:var(--lt-t-ffffff08, var(--glass-03));
  border:1px solid var(--lt-l-ffffff14, var(--edge-08));
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stats-fact:hover {
  background:var(--lt-t-ffffff0d, var(--glass-05));
  border-color:var(--lt-l-06b6d433, var(--tint-brand-3));
  transform: translateY(-2px);
}

.stats-fact .fact-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.stats-fact p {
  font-size: 13px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  line-height: 1.5;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.stats-modal-source {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(14, 165, 233, 0.05));
  border:1px solid var(--lt-l-06b6d433, var(--tint-brand-3));
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
}

.stats-modal-source p {
  font-size: 12px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

/* Ссылки на отчёты-источники — цветом текста, с подчёркиванием (обе темы) */
.stats-source a,
.stats-modal-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .stats-modal-content {
    padding: 28px 20px;
    max-height: 90vh;
  }

  .stats-modal-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .stats-modal-header h2 {
    font-size: 22px;
  }

  .stats-modal-value {
    font-size: 40px;
  }

  .stats-chart {
    height: 160px;
    padding: 16px 12px;
    gap: 6px;
  }

  .chart-bar-wrapper {
    min-width: 30px;
  }

  .chart-value {
    font-size: 9px;
  }

  .chart-year {
    font-size: 10px;
  }

  .stats-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats-fact {
    padding: 14px;
  }

  .stats-fact .fact-icon {
    font-size: 20px;
  }

  .stats-fact p {
    font-size: 12px;
  }
}

/* ===== css/why-slider.css ===== */
/* ============================================================
   «Почему стоит стать диспетчером» — слайдер с глобусом (21.10.2026).
   Перенос компонента globe-feature-section (ruixen.ui, 21st.dev) на
   чистый CSS+JS: большая скруглённая карточка, текст слева, справа
   вращающийся глобус (cobe, js/vendor). Внутри — 6 слайдов: стрелки,
   точки, свайп и автопереключение (js/why-slider.js).
   Цвета — только токены (css/tokens.css), они сами переворачиваются в
   светлой теме; что токенами не выразить — правила :root[data-theme].
   ============================================================ */

.why-slider {
  --why-dur: 6.5s;            /* сколько стоит один слайд при автопрокрутке */
  --why-orange: #f97316;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(var(--brand-rgb), .14), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: var(--shadow-card);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: left;
  margin-bottom: 32px;        /* отступ до блока «Рынок грузоперевозок» */
}
/* Ролик с траками за карточкой: лёгкое размытие и чуть темнее под текстом,
   карточка остаётся полупрозрачной (Alex 05.11.2026). */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .why-slider {
    -webkit-backdrop-filter: blur(5px) saturate(1.1);
            backdrop-filter: blur(5px) saturate(1.1);
    background:
      radial-gradient(120% 90% at 100% 100%, rgba(var(--brand-rgb), .14), transparent 55%),
      linear-gradient(160deg, rgba(8, 12, 22, .34), rgba(8, 12, 22, .16));
  }
}
/* Шапка секции ближе к карточке — секция должна помещаться в один экран */
.profession-section .section-header { margin-bottom: 26px; }
:root[data-theme="light"] .why-slider {
  --why-orange: #c2410c;
  border-color: var(--border-subtle);
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(var(--brand-rgb), .10), transparent 55%),
    linear-gradient(160deg, #f8fafc, #e9eef5);
}

/* ── Глобус: справа, срезан краем карточки, как в образце ── */
.why-globe {
  position: absolute;
  z-index: 0;
  right: -100px;
  bottom: -170px;
  width: 500px;
  aspect-ratio: 1;
  pointer-events: none;
}
.why-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .9s ease;
  contain: layout paint size;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}
.why-globe.is-ready canvas { opacity: 1; }
.why-globe canvas:active { cursor: grabbing; }
/* Без WebGL — мягкий круг-заглушка, чтобы правая часть не пустовала */
.why-globe.is-fallback {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(var(--brand-rgb), .22), rgba(var(--brand-rgb), .04) 60%, transparent 70%);
}

/* ── Текстовая часть ── */
.why-body {
  position: relative;
  z-index: 1;
  width: min(100%, 530px);
  padding: 26px 0 22px 36px;
}
/* Счётчик «01 / 06» — в строке с меткой слайда, отдельной строки не занимает */
.why-top {
  position: absolute;
  z-index: 2;
  top: 26px;
  right: 0;
  height: 34px;
  display: flex;
  align-items: center;
}
.why-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.why-count b { color: var(--text-primary); font-weight: 800; }

/* Слайды лежат в одной ячейке сетки: высота = самому высокому, ничего не прыгает */
.why-viewport {
  display: grid;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.why-slide {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  transform: translateX(100%);
  opacity: 0;
}
.why-slide.is-active { visibility: visible; transform: none; opacity: 1; }
/* Без JS виден первый слайд — остальные тексты всё равно в разметке (для поиска) */

.why-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-ink, var(--brand));
  background: rgba(var(--brand-rgb), .10);
  border: 1px solid rgba(var(--brand-rgb), .30);
}
.why-chip svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), .16);
  flex: none;
}

.why-title {
  margin: 12px 0 0;
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 600 !important;          /* main.css задаёт h3 800/1.4 с !important */
  line-height: 1.3 !important;
  letter-spacing: -.3px !important;
  color: var(--text-primary) !important;
}
.why-title .why-accent { color: var(--brand-ink, var(--brand)); font-weight: 800; }
.why-title .why-muted { color: var(--text-muted); font-weight: 500; }

.why-points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.why-points li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.why-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
:root[data-theme="light"] .why-points li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5c74' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.why-points b { color: var(--text-primary); font-weight: 700; }

.why-note {
  margin: 10px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--why-orange);
  font-size: 12.5px !important;         /* main.css: p { 18px; белый } с !important */
  line-height: 1.45 !important;
  color: var(--text-muted) !important;
}

/* ── Низ: кнопка + управление ── */
.why-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}
.why-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--surface-base);
  background: var(--text-primary);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.why-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(var(--brand-rgb), .28); }
.why-cta:hover svg { transform: translateX(3px); }

.why-nav { display: flex; align-items: center; gap: 8px; }
.why-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--glass-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.why-btn:hover { border-color: rgba(var(--brand-rgb), .6); background: rgba(var(--brand-rgb), .12); }
.why-btn svg { width: 16px; height: 16px; }
.why-btn--play { width: 32px; height: 32px; }
.why-btn--play svg { width: 12px; height: 12px; }
.why-btn--play .i-play { display: none; }
.why-slider.is-paused .why-btn--play .i-play { display: block; }
.why-slider.is-paused .why-btn--play .i-pause { display: none; }

.why-dots { display: flex; align-items: center; }
/* Кнопка-точка крупнее, чем видимая полоска: по точкам надо попадать пальцем */
.why-dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width .35s ease;
}
.why-dot.is-active { width: 40px; }
.why-dot i {
  position: relative;
  display: block;
  width: calc(100% - 10px);
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
  background: var(--border-strong);
  transition: background .2s ease;
}
.why-dot:hover i { background: rgba(var(--brand-rgb), .5); }
.why-dot.is-active i { background: rgba(var(--brand-rgb), .22); }
/* Заполнение активной точки = таймер автопрокрутки: по его animationend идёт
   следующий слайд, поэтому пауза (наведение, касание, кнопка) — это просто
   animation-play-state: paused, и таймер с полоской не расходятся никогда. */
.why-dot i::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--brand);
}
.why-dot.is-active i::after { transform: scaleX(1); }
.why-slider.is-auto .why-dot.is-active i::after { animation: whyFill var(--why-dur) linear both; }
.why-slider.is-hold .why-dot.is-active i::after,
.why-slider.is-paused .why-dot.is-active i::after { animation-play-state: paused; }
@keyframes whyFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Общие правила кнопок сайта (interactive-feedback.css: подъём, тень, overflow)
   здесь не нужны — у стрелок и точек своё поведение */
.why-slider button:hover,
.why-slider button:active { transform: none; filter: none; box-shadow: none; }
.why-slider .why-btn:active { transform: scale(.94); }
.why-slider .why-dot { overflow: visible; }

.why-btn:focus-visible,
.why-dot:focus-visible,
.why-cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ── Телефон: глобус встаёт «горизонтом» над текстом ── */
@media (max-width: 720px) {
  .why-slider { border-radius: 22px; }
  .why-globe {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 118px;
    aspect-ratio: auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 72%, transparent);
    mask-image: linear-gradient(#000 72%, transparent);
  }
  .why-globe-box {
    position: absolute;
    left: 50%;
    top: -22px;
    width: 300px;
    height: 300px;
    transform: translateX(-50%);
  }
  .why-globe.is-fallback { border-radius: 0; background: radial-gradient(60% 100% at 50% 100%, rgba(var(--brand-rgb), .2), transparent 70%); }
  .why-body { width: 100%; padding: 0 16px 16px; }
  .why-top { top: 0; right: 16px; }
  .why-title { font-size: 17.5px; margin-top: 10px; }
  .why-points { margin-top: 10px; }
  .why-points li { font-size: 13.5px; }
  .why-foot { margin-top: 14px; }
  .why-cta { order: 2; width: 100%; justify-content: center; }
  .why-nav { order: 1; width: 100%; justify-content: space-between; }
  .why-btn { width: 32px; height: 32px; }
  .why-btn--play { width: 30px; height: 30px; }
  .why-dot { width: 16px; }
  .why-dot.is-active { width: 34px; }
  /* interactive-feedback.css даёт на телефоне каждой кнопке min-width 44px:
     шесть точек по 44px плюс стрелки не влезали, и «вперёд» с паузой уезжали
     за правый край карточки. Тройной селектор — чтобы перебить
     button:not(…):not(…) (0,2,1), который подключён позже. Палец попадает:
     у точки высота 28px, у стрелок 30–32px. */
  .why-slider .why-nav .why-btn,
  .why-slider .why-nav .why-dot { min-width: 0; min-height: 0; }
}
@media (min-width: 721px) {
  .why-globe-box { width: 100%; height: 100%; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .why-globe { right: -190px; bottom: -180px; width: 480px; }
  .why-body { width: min(100%, 500px); padding-left: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .why-dot, .why-cta, .why-cta svg, .why-globe canvas { transition: none; }
}

/* ===== css/section-video.css ===== */
/* ============================================================
   Фоновый слой видео СЕКЦИИ «Как это работает» — ТОЧНАЯ КОПИЯ
   hero-фона (css/hero.css + js/hero-parallax.js): скролл-скраб
   кадра + параллакс (translate3d) + «колокол» яркости + радиальная
   маска, растворяющая края. Слой вынесен ЗА секцию — абсолютный
   в <main> (position:relative), его top/height под секцию ставит
   JS (js/section-video.js). Отличие от hero только в привязке
   (мид-страница, а не самый верх) — настройки те же.
   ============================================================ */
.how-it-works-section { position: relative; z-index: 1; }   /* контент над фон-слоем */
.how-it-works-section > .container { position: relative; z-index: 2; }

.section-bg-stage {
  position: absolute;
  left: 0;
  width: 100%;
  /* top и height ставит JS — под секцию. Как и у трака, слой больше НЕ
     визуальный контейнер видео (видео на position:fixed) — это чисто
     измерительный ориентир: JS читает его геометрию для прогресса скролла
     и для диапазона видимости. Маску и overflow убрали: и то и другое
     резало бы/таскало фиксированного потомка вместе с прокруткой. */
  z-index: 0;
  pointer-events: none;
}

.section-bg-video {
  /* position:fixed — ровно как у видео с траком (css/midsection-video.css).
     Было position:absolute, а js/section-video.js каждый кадр писал
     transform, заново «прибивая» видео к вьюпорту и добавляя параллакс-
     дрейф. Такой пересчёт всегда отстаёт от прокрутки на кадр — картинка
     дрожала и всё время ползла. У fixed позиция — одна точка экрана,
     геометрия контейнера в позиционировании не участвует вообще, JS
     трогает только прозрачность. */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 120vh;
  height: 120svh;
  object-fit: cover;
  /* opacity:0 по умолчанию — fixed-видео потенциально видно НА ВСЮ страницу,
     если его не выключить. Яркость включает JS только пока секция на экране
     (см. inRange в js/section-video.js). Не выполнился JS — лучше невидимое
     видео, чем оверлей на всём сайте. Поэтому статичных opacity в медиа-
     запросах здесь больше нет. */
  opacity: 0;
  /* Радиальная маска гасит ВСЕ края в прозрачность → видео растворяется в фон
     (точь-в-точь как у hero). */
  -webkit-mask-image: radial-gradient(ellipse 88% 80% at 50% 46%, #000 46%, rgba(0,0,0,0.4) 72%, transparent 95%);
  mask-image: radial-gradient(ellipse 88% 80% at 50% 46%, #000 46%, rgba(0,0,0,0.4) 72%, transparent 95%);
  will-change: opacity;   /* позицию JS не трогает — только яркость */
}

.section-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:var(--lt-pg-050810, var(--surface-deep));
  opacity: 0.25;
  /* Вертикальная маска переехала сюда со слоя: она нужна, чтобы вуаль
     втекала сверху и вытекала снизу без жёсткой линии. Вуаль скроллится
     вместе с секцией — ей маска не мешает, в отличие от fixed-видео. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}

@media (max-width: 768px) {
  .section-bg-scrim { opacity: 0.22; }
}

/* ===== css/midsection-video.css ===== */
/* ============================================================
   Видео-фон за секциями «Что вы получите» + «Профессия Диспетчера».
   Абсолютный слой в <main> (position:relative), его top/height под
   диапазон двух секций ставит JS (js/midsection-video.js). Видео яркое
   (трасса/город) → сильно приглушаем opacity + тёмный scrim; края слоя
   scrim гасит в фон страницы, чтобы не было жёсткой линии на стыках.
   ============================================================ */

/* Контент секций — над видео-слоем */
.features-section,
.profession-section { position: relative; z-index: 1; }

.midfx-bg-stage {
  position: absolute;
  left: 0;
  width: 100%;
  /* top и height ставит JS — от начала features до конца profession.
     Сама stage больше НЕ визуальный контейнер видео (см. .midfx-bg-video
     ниже) — чисто измерительный ориентир: JS читает её геометрию, чтобы
     посчитать прогресс скролла для яркости и диапазон видимости видео. */
  z-index: 0;
  pointer-events: none;
}

.midfx-bg-video {
  /* position:fixed — видео закреплено ОТНОСИТЕЛЬНО ЭКРАНА и в принципе не
     двигается никогда, пока не скрыто; двигается только контент вокруг.
     Раньше было position:sticky — оно тоже "стоит", пока секция-контейнер
     прокручивается мимо, НО у sticky есть свои фазы входа/выхода (пока
     элемент ещё не "прилип" / уже "отлип" — в эти моменты он едет вместе с
     контентом), и смена геометрии контейнера во время скролла (лениво
     догружающиеся шрифты/картинки → ResizeObserver) двигала его прямо в
     процессе — это и было дёрганием. Fixed не имеет ни одной из этих фаз:
     позиция всегда одна и та же точка экрана, видимость включает/выключает
     JS через opacity (см. midsection-video.js), геометрия контейнера
     вообще не участвует в позиционировании. */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 120vh;
  height: 120svh;
  object-fit: cover;
  object-position: 50% 50%;
  /* opacity:0 по умолчанию — видео на fixed видно потенциально НА ВСЮ
     страницу, если его не выключить; JS включает яркость только пока
     секция features→profession реально на экране (см. inRange). Если JS
     не выполнился — лучше невидимое видео, чем оверлей на всём сайте. */
  opacity: 0;
  /* Радиальная маска растворяет ВСЕ края → видео читается как КОМПАКТНАЯ
     центральная «панель» (овал), а не крупный фон на всю секцию. */
  -webkit-mask-image: radial-gradient(ellipse 56% 74% at 50% 50%, #000 30%, rgba(0, 0, 0, 0.4) 60%, transparent 86%);
          mask-image: radial-gradient(ellipse 56% 74% at 50% 50%, #000 30%, rgba(0, 0, 0, 0.4) 60%, transparent 86%);
  will-change: opacity;     /* только яркость («колокол») пишет JS — позиция статична, JS её не трогает */
}

/* Лёгкая ровная вуаль для читаемости — края уже растворяет радиальная маска
   видео + маска слоя (верх/низ), как у второго видео (Марины). */
.midfx-bg-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--lt-pg-05081040, rgba(5, 8, 16, 0.25));
}

@media (max-width: 768px) {
  .midfx-bg-video {
    /* opacity — не трогаем: базовая 0 + JS-гейт (PEAK для мобильного
       выше, см. midsection-video.js) теперь работают одинаково для
       обоих режимов. Фикс-позиция видна на всю страницу, если её не
       выключать статичным opacity в CSS. */
    object-position: 50% 45%;
    /* Шире видимый овал → трак/truckstop читается, а не прячется в узкой панели */
    -webkit-mask-image: radial-gradient(ellipse 84% 94% at 50% 48%, #000 44%, rgba(0, 0, 0, 0.4) 72%, transparent 94%);
            mask-image: radial-gradient(ellipse 84% 94% at 50% 48%, #000 44%, rgba(0, 0, 0, 0.4) 72%, transparent 94%);
  }
}

/* ===== css/features-carousel.css ===== */
/* ========================================
   FEATURES CAROUSEL SECTION
   ======================================== */

.features-section {
  padding: 60px 0 40px;
  position: relative;
}

.features-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-section .section-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
  margin-bottom: 16px;
  color:var(--lt-i-ffffff, var(--text-primary));
  font-family: 'Montserrat', sans-serif;
}

.features-section .section-description {
  font-size: 15px !important;
  color:var(--lt-i-ffffff, var(--text-primary));
  max-width: 700px;
  margin: 0 auto;
  font-weight: 600;
  letter-spacing: -0.2px;
  font-family: 'Montserrat', sans-serif;
}

/* Features Grid Wrapper */
.features-grid-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

/* Features Grid - Horizontal Scroll */
.features-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px max(20px, calc((100vw - 1200px) / 2)) 20px;
  width: 100%;
  cursor: grab;
}

.features-grid::-webkit-scrollbar {
  display: none;
}

/* Протаскивание мышью (js/features-carousel.js) — курсор-«хватание»,
   без выделения текста, снап временно выключен, чтобы scrollLeft
   следовал за курсором 1:1 без «доскока» к соседней карточке. */
.features-grid.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Feature Card — «Номер-призрак» + медиа-ревил на hover/касании.
   Карточка — настоящая ссылка <a>: клавиатура и «открыть в новой вкладке». */
.feature-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  flex: 0 0 272px;
  min-width: 272px;
  min-height: 206px;
  scroll-snap-align: start;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--lt-c-ffffff0d, rgba(255, 255, 255, 0.05)), var(--lt-c-ffffff05, rgba(255, 255, 255, 0.02)));
  border:1px solid var(--lt-l-ffffff1a, var(--edge-10));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px var(--lt-h-00000066, rgba(0, 0, 0, 0.4)), inset 0 1px 0 var(--lt-h-ffffff14, rgba(255, 255, 255, 0.08));
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* медиа-слой: две картинки. РЕВЕРС кроссфейда — цветная (.feature-hover)
   видна по умолчанию (карточка «светится»), приглушённая (.feature-idle)
   проступает при наведении/касании. */
.feature-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-idle { opacity: 0; }
.feature-hover { opacity: 0.85; }
/* вуаль поверх картинок — держит читаемость заголовка/описания */
.feature-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--lt-t-05081059, rgba(5, 8, 16, 0.35)) 0%, var(--lt-t-0508108c, rgba(5, 8, 16, 0.55)) 55%, var(--lt-t-050810d1, rgba(5, 8, 16, 0.82)) 100%);
}
/* при наведении (десктоп) / активной карточке (мобайл): гаснет в тёмную (idle) + лёгкий зум */
.feature-card:hover .feature-idle,
.feature-card.is-active .feature-idle { opacity: 1; }
.feature-card:hover .feature-hover,
.feature-card.is-active .feature-hover { opacity: 0; }
.feature-card:hover .feature-media img,
.feature-card.is-active .feature-media img { transform: scale(1.05); }

/* номер-призрак — контурный водяной знак */
.feature-num {
  position: absolute;
  top: -18px;
  right: 6px;
  z-index: 1;
  font-size: 132px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
  font-family: 'Montserrat', sans-serif;
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.35s ease, transform 0.35s ease;
}

.feature-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.feature-content h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color:var(--lt-i-ffffff, var(--text-primary));
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-family: 'Montserrat', sans-serif;
}

.feature-content p {
  font-size: 14px !important;
  color:var(--lt-i-ffffff, var(--text-secondary));
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

/* hover (десктоп) или активная карточка (мобайл, по центру) */
.feature-card:hover,
.feature-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(var(--rgb, 6,182,212), 0.5);
  box-shadow: 0 14px 40px var(--lt-h-00000080, rgba(0, 0, 0, 0.5)), 0 0 0 1px rgba(var(--rgb, 6,182,212), 0.25), inset 0 1px 0 var(--lt-h-ffffff1a, rgba(255, 255, 255, 0.1));
}
.feature-card:hover .feature-num,
.feature-card.is-active .feature-num {
  -webkit-text-stroke-color: rgba(var(--rgb, 6,182,212), 0.6);
  transform: scale(1.04);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* Точки-пагинация: компактные, активная — короткая «пилюля» */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.carousel-dots .dot {
  width: 6px !important;
  height: 6px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none;
  border-radius: 50%;
  background: var(--lt-l-ffffff3d, rgba(255, 255, 255, 0.24));
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}
.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.carousel-dots .dot.active {
  width: 20px !important;
  border-radius: 3px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
}

/* Стрелки: компактные, плоские, современный стандарт (без глоу и баунса) */
.carousel-btn,
button.carousel-btn {
  position: relative;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  background: var(--lt-c-ffffff0a, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--lt-l-ffffff24, rgba(255, 255, 255, 0.14)) !important;
  color:var(--lt-i-ffffff, var(--text-secondary));
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.carousel-btn::before { display: none !important; }

.carousel-btn:hover {
  background: var(--lt-c-ffffff1a, rgba(255, 255, 255, 0.1)) !important;
  border-color: var(--lt-l-ffffff52, rgba(255, 255, 255, 0.32)) !important;
  color: var(--lt-i-ffffff, #ffffff) !important;
  transform: none !important;
  box-shadow: none !important;
}

.carousel-btn:active {
  transform: scale(0.93) !important;
  transition: transform 0.1s ease !important;
}

.carousel-btn svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.carousel-btn-prev:hover svg { transform: translateX(-2px); }
.carousel-btn-next:hover svg { transform: translateX(2px); }

/* Mobile Responsive */
@media (max-width: 768px) {
  .features-section {
    padding: 50px 0 30px;
  }

  .features-section .section-header {
    margin-bottom: 36px;
  }

  .features-section .section-title {
    font-size: 34px !important;
  }

  .features-section .section-description {
    font-size: 14px !important;
  }

  .features-grid {
    gap: 14px;
    padding: 15px calc((100vw - 270px) / 2) 15px;
  }

  .feature-card {
    flex: 0 0 270px;
    min-width: 270px;
    padding: 24px 20px;
    gap: 12px;
  }

  .feature-content h3 {
    font-size: 17px;
  }

  .feature-content p {
    font-size: 13.5px;
  }

  .carousel-controls {
    margin-top: 24px;
    gap: 12px;
  }

  .carousel-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .carousel-btn svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 480px) {
  .features-section {
    padding: 40px 0 20px;
  }

  .features-section .section-title {
    font-size: 30px !important;
  }

  .features-section .section-description {
    font-size: 13px !important;
  }

  .features-grid {
    gap: 12px;
    padding: 15px calc((100vw - 260px) / 2) 15px;
  }

  .feature-card {
    flex: 0 0 260px;
    min-width: 260px;
    padding: 20px 18px;
    gap: 10px;
  }

  .feature-content h3 {
    font-size: 16px;
  }

  .feature-content p {
    font-size: 13px !important;
  }
  
  .carousel-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .carousel-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* ===== css/how-it-works.css ===== */
/* How It Works Section */
.how-it-works-section {
  padding: 60px 0;
  position: relative;
}

/* Desktop: Professional Progress Timeline */
.progress-timeline {
  display: block;
  margin-top: 50px;
  position: relative;
  padding: 0 5%;
}

.timeline-track {
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 3px;
  background:var(--lt-l-ffffff14, var(--glass-08));
  border-radius: 2px;
  overflow: hidden;
}

.timeline-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #0ea5e9, #10b981, #f59e0b, #ef4444);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px var(--lt-h-06b6d480, rgba(6, 182, 212, 0.5));
}

.timeline-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.timeline-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.node-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--lt-c-ffffff03, rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--lt-l-ffffff1f, rgba(255, 255, 255, 0.12));
  box-shadow: 
    0 4px 16px var(--lt-h-0000000d, rgba(0, 0, 0, 0.05)),
    inset 0 1px 0 var(--lt-h-ffffff0d, rgba(255, 255, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color:var(--lt-i-ffffff, var(--text-primary));
  margin-bottom: 20px;
  transition: all 1.2s cubic-bezier(0.45, 0.5, 0.45, 1);
  position: relative;
  z-index: 3;
  transform: scale(1) translateY(0);
}

/* Рандомная анимация подпрыгивания для каждого кружка */
.timeline-node[data-step="1"] .node-circle {
  animation: randomBounce1 8s ease-in-out infinite;
  width: 60px;
  height: 60px;
  font-size: 20px;
}

.timeline-node[data-step="2"] .node-circle {
  animation: randomBounce2 10s ease-in-out infinite;
  width: 65px;
  height: 65px;
  font-size: 22px;
}

.timeline-node[data-step="3"] .node-circle {
  animation: randomBounce3 12s ease-in-out infinite;
  width: 70px;
  height: 70px;
  font-size: 24px;
}

.timeline-node[data-step="4"] .node-circle {
  animation: randomBounce4 9s ease-in-out infinite;
  width: 75px;
  height: 75px;
  font-size: 26px;
}

.timeline-node[data-step="5"] .node-circle {
  animation: randomBounce5 11s ease-in-out infinite;
  width: 80px;
  height: 80px;
  font-size: 28px;
}

/* Останавливаем анимацию при активном состоянии */
.timeline-node.active .node-circle {
  animation: none !important;
}

.node-circle span {
  position: relative;
  color: transparent;
}

/* Desktop: Show number by default */
.node-circle span::before {
  content: attr(data-number);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  color:var(--lt-i-ffffff, var(--text-primary));
  font-size: 18px;
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.45, 0.5, 0.45, 1);
}

/* Desktop: "Нажми" hint */
.node-circle span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  color:var(--lt-i-ffffff, var(--text-primary));
  text-shadow: none;
  pointer-events: none;
}

.timeline-node:not(.active) .node-circle.show-hint {
  border-radius: 12px;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.4s;
  border-color:var(--lt-l-ffffff14, var(--edge-08));
}

.timeline-node[data-step="1"]:not(.active) .node-circle.show-hint {
  width: 85px;
  height: 60px;
}

.timeline-node[data-step="2"]:not(.active) .node-circle.show-hint {
  width: 90px;
  height: 65px;
}

.timeline-node[data-step="3"]:not(.active) .node-circle.show-hint {
  width: 95px;
  height: 70px;
}

.timeline-node[data-step="4"]:not(.active) .node-circle.show-hint {
  width: 100px;
  height: 75px;
}

.timeline-node[data-step="5"]:not(.active) .node-circle.show-hint {
  width: 105px;
  height: 80px;
}

.timeline-node:not(.active) .node-circle:not(.show-hint) {
  border-radius: 50%;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0s;
}

.timeline-node:not(.active) .node-circle span.show-hint::before {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition-delay: 0s;
}

.timeline-node:not(.active) .node-circle span:not(.show-hint)::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.4s;
}

.timeline-node:not(.active) .node-circle span.show-hint::after {
  content: 'Нажми';
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(1.3);
  transition-delay: 0.4s;
}

.timeline-node:not(.active) .node-circle span:not(.show-hint)::after {
  content: 'Нажми';
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition-delay: 0s;
}

.node-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-node[data-step="1"] .node-circle::before {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.timeline-node[data-step="2"] .node-circle::before {
  background: linear-gradient(135deg, #0ea5e9, #9333ea);
}

.timeline-node[data-step="3"] .node-circle::before {
  background: linear-gradient(135deg, #10b981, #14b8a6);
}

.timeline-node[data-step="4"] .node-circle::before {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.timeline-node[data-step="5"] .node-circle::before {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.timeline-node.active .node-circle {
  border-color: transparent;
  color:var(--lt-i-ffffff, var(--text-primary));
  transform: scale(1.2) translateY(0);
  box-shadow: 0 8px 24px var(--lt-h-06b6d466, rgba(6, 182, 212, 0.4));
  animation: moveCircleUpDesktop 0.6s ease-out 1.2s forwards;
}

.timeline-node.active .node-circle span::before {
  color:var(--lt-i-ffffff, var(--text-primary));
  opacity: 1;
}

.timeline-node.active .node-circle span::after {
  content: '';
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

@keyframes moveCircleUpDesktop {
  from {
    transform: scale(1.2) translateY(0);
  }

  to {
    transform: scale(1.2) translateY(-10px);
  }
}

.timeline-node.active .node-circle::before {
  opacity: 1;
}

.timeline-node:hover .node-circle {
  transform: scale(1.15) translateY(-5px);
  border-color: var(--lt-l-06b6d480, rgba(6, 182, 212, 0.5));
  background:var(--lt-c-ffffff14, var(--glass-08));
  box-shadow: 
    0 12px 40px var(--lt-h-06b6d440, rgba(6, 182, 212, 0.25)),
    0 0 0 8px var(--lt-h-06b6d40d, rgba(6, 182, 212, 0.05)),
    inset 0 1px 0 var(--lt-h-ffffff26, rgba(255, 255, 255, 0.15));
}

.node-content {
  text-align: center;
  opacity: 1;
  transition: all 1.2s cubic-bezier(0.45, 0.5, 0.45, 1);
  max-height: 100px;
  overflow: hidden;
}

.timeline-node.active .node-content {
  opacity: 1;
  max-height: 500px;
}

/* How It Works Section */
.how-it-works-section {
  padding: 60px 0;
  position: relative;
}

.how-it-works-section .node-content h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--lt-i-ffffff, #ffffff) !important;
  margin-bottom: 6px !important;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.45, 0.5, 0.45, 1);
}

.how-it-works-section .node-time {
  font-size: 13px !important;
  color: var(--lt-i-ffffff, #ffffff) !important;
  margin-bottom: 12px !important;
  opacity: 0.9;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.45, 0.5, 0.45, 1);
}

/* Список деталей шага — крупнее прежнего (13px→15px) и уходит в 2 колонки
   на достаточно широких раскрытых панелях (см. ниже), а не тянется одной
   узкой колонкой. */
.how-it-works-section .node-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: max-height 0.4s cubic-bezier(0.45, 0.5, 0.45, 1), opacity 0.35s ease, transform 0.35s ease;
  font-size: 15px !important;
  color: var(--lt-i-ffffff, #ffffff) !important;
  line-height: 1.6 !important;
  text-align: left;
}

.how-it-works-section .node-details p {
  margin: 3px 0 !important;
  text-align: left;
  font-size: 15px !important;
  color: var(--lt-i-ffffff, #ffffff) !important;
  break-inside: avoid;
}

.how-it-works-section .node-details strong {
  display: block;
  text-align: left;
  font-size: 14px !important;
  margin-top: 10px !important;
  margin-bottom: 4px !important;
  font-weight: 700 !important;
  color: var(--lt-i-06b6d4, #06b6d4) !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.how-it-works-section .node-details p:first-child strong {
  margin-top: 0 !important;
}

/* Раскрытие — та же механика, что была изначально: узел .active просто
   снимает max-height/opacity ограничение, контент проявляется на месте. */
.timeline-node.active .node-details {
  max-height: 420px;
  opacity: 1;
  margin-top: 8px;
  transform: translateY(0);
}

.cards-timeline {
  display: none;
}

/* ========================================
   DESKTOP: открытый узел раскрывается на месте, как и раньше (обычный
   поток, никакого absolute/модалок) — просто его колонка в ряду становится
   шире (flex-grow), а не остаётся зажатой в 1/5 ширины ряда. Соседи
   пропорционально сужаются (flex:1 у них не меняется).
   ======================================== */
@media (min-width: 769px) {
  .timeline-node.active {
    flex: 3 1 0%;
  }

  /* Медленнее открывается и медленнее закрывается (0.4s/0.35s → 0.9s/0.8s) —
     тот же transition, что у базового .node-details, просто дольше. */
  .how-it-works-section .node-details {
    transition: max-height 0.9s cubic-bezier(0.45, 0.5, 0.45, 1),
                opacity 0.8s ease,
                transform 0.8s ease,
                background-color 0.8s ease,
                padding 0.8s ease;
  }

  /* Небольшой затемнённый прозрачный фон за раскрытым текстом. */
  .timeline-node.active .node-details {
    background: var(--lt-c-05081073, rgba(5, 8, 16, 0.45));
    border-radius: 14px;
    padding: 18px 22px;
    column-count: 2;
    column-gap: 24px;
  }

  .timeline-node.active .node-details strong {
    -webkit-column-span: all;
    column-span: all;
  }
}

/* Мобильный размер/раскрытие .node-details задаёт более специфичное
   правило .how-it-works-section .timeline-node.active .node-details ниже
   по файлу (внутри @media max-width:768px рядом с остальными мобильными
   правилами узлов) — здесь дублировать не нужно. */

/* Рандомные анимации подпрыгивания для кружков */
@keyframes randomBounce1 {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  15% {
    transform: scale(1.05) translateY(-6px);
  }

  20% {
    transform: scale(1) translateY(0);
  }
}

@keyframes randomBounce2 {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  35% {
    transform: scale(1.12) translateY(-12px);
  }

  40% {
    transform: scale(1) translateY(0);
  }
}

@keyframes randomBounce3 {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  55% {
    transform: scale(1.08) translateY(-8px);
  }

  60% {
    transform: scale(1) translateY(0);
  }
}

@keyframes randomBounce4 {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  25% {
    transform: scale(1.15) translateY(-15px);
  }

  30% {
    transform: scale(1) translateY(0);
  }
}

@keyframes randomBounce5 {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  45% {
    transform: scale(1.06) translateY(-5px);
  }

  50% {
    transform: scale(1) translateY(0);
  }
}

/* Mobile: Cards Timeline (only for small screens) */
@media (max-width: 768px) {
  .cards-timeline {
    display: none !important;
  }

  .progress-timeline {
    display: block;
    margin-top: 60px;
    padding: 0 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    height: auto;
    background:var(--lt-l-ffffff14, var(--glass-08));
    border-radius: 2px;
  }

  .timeline-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #06b6d4, #0ea5e9, #10b981, #f59e0b, #ef4444);
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--lt-h-06b6d480, rgba(6, 182, 212, 0.5));
  }

  .timeline-nodes {
    display: block;
    position: relative;
  }

  .timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    cursor: pointer;
    transition: all 3.2s cubic-bezier(0.45, 0.5, 0.45, 1);
  }

  .timeline-node:last-child {
    margin-bottom: 0;
  }

  .node-circle {
    position: relative;
    left: 0;
    top: 0;
    width: 55px;
    height: 55px;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: all 3.2s cubic-bezier(0.45, 0.5, 0.45, 1);
    transform: scale(1) translateX(0) translateY(0);
    border-radius: 50%;
  }

  /* Усиленная анимация для мобильных */
  .timeline-node:not(.active)[data-step="1"] .node-circle {
    animation: randomBounce1 8s ease-in-out infinite !important;
  }

  .timeline-node:not(.active)[data-step="2"] .node-circle {
    animation: randomBounce2 10s ease-in-out infinite !important;
  }

  .timeline-node:not(.active)[data-step="3"] .node-circle {
    animation: randomBounce3 12s ease-in-out infinite !important;
  }

  .timeline-node:not(.active)[data-step="4"] .node-circle {
    animation: randomBounce4 9s ease-in-out infinite !important;
  }

  .timeline-node:not(.active)[data-step="5"] .node-circle {
    animation: randomBounce5 11s ease-in-out infinite !important;
  }

  .timeline-node:not(.active) .node-circle.show-hint {
    width: 130px;
    height: 75px;
    border-radius: 12px;
    transition: all 2.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 1.2s;
  }

  .timeline-node:not(.active) .node-circle:not(.show-hint) {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    transition: all 2.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0s;
  }

  .timeline-node.active .node-circle {
    margin-bottom: 0;
    margin-right: 16px;
    transform: scale(1) translateX(0) translateY(0);
    animation: none;
  }

  .node-circle span {
    font-size: 20px;
    display: inline-block;
    position: relative;
    color: transparent;
    transition: all 1.6s cubic-bezier(0.45, 0.5, 0.45, 1);
  }

  .node-circle span::before {
    content: attr(data-number);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color:var(--lt-i-ffffff, var(--text-primary));
    font-size: 20px;
    opacity: 1;
    transition: all 2.4s cubic-bezier(0.45, 0.5, 0.45, 1);
  }

  .timeline-node:not(.active) .node-circle span.show-hint::before {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition-delay: 0s;
  }

  .timeline-node:not(.active) .node-circle span:not(.show-hint)::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 1.2s;
  }

  .node-circle span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 2.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    color:var(--lt-i-ffffff, var(--text-primary));
    text-shadow: none;
    pointer-events: none;
  }

  .timeline-node:not(.active) .node-circle span.show-hint::after {
    content: 'Нажми';
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.5);
    transition-delay: 1.2s;
  }

  .timeline-node:not(.active) .node-circle span:not(.show-hint)::after {
    content: 'Нажми';
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition-delay: 0s;
  }

  .timeline-node.active .node-circle span::before {
    opacity: 1;
  }

  .timeline-node.active .node-circle span::after {
    content: '';
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  .node-content {
    text-align: center;
    opacity: 1;
    transition: all 3.2s cubic-bezier(0.45, 0.5, 0.45, 1);
    width: 100%;
    max-height: 100px;
    overflow: hidden;
  }

  .timeline-node.active .node-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    max-height: 1000px;
  }

  .how-it-works-section .node-content h3 {
    font-size: 18px !important;
    margin-bottom: 6px !important;
    color: var(--lt-i-ffffff, #ffffff) !important;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.45, 0.5, 0.45, 1);
    font-weight: 700 !important;
  }

  .how-it-works-section .timeline-node.active .node-content h3 {
    margin-left: 0;
    font-size: 18px !important;
    opacity: 1;
    transform: translateY(0);
  }

  .how-it-works-section .node-time {
    font-size: 14px !important;
    margin-bottom: 12px !important;
    color: var(--lt-i-ffffff, #ffffff) !important;
    opacity: 0.9;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.45, 0.5, 0.45, 1);
    font-weight: 600 !important;
  }

  .how-it-works-section .timeline-node.active .node-time {
    margin-left: 0;
    font-size: 14px !important;
    margin-bottom: 10px !important;
    opacity: 1;
    transform: translateY(0);
  }

  .how-it-works-section .node-details {
    font-size: 15px !important;
    line-height: 1.6 !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s cubic-bezier(0.45, 0.5, 0.45, 1);
    margin-left: 0;
    font-weight: 500 !important;
  }

  .how-it-works-section .node-details strong {
    color: var(--lt-i-06b6d4, #06b6d4) !important;
    display: block;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .how-it-works-section .node-details p {
    margin: 3px 0 !important;
    color: var(--lt-i-ffffff, #ffffff) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
  }

  .how-it-works-section .timeline-node.active .node-details {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
    margin-left: 0;
  }

  .how-it-works-section {
    padding: 10px 0 60px 0 !important;
  }

  .how-it-works-section .section-header {
    margin-bottom: 15px !important;
  }
}

/* ── Шрифт секции — Montserrat (как на сайте) ──────────────────────────
   Наследуется всеми узлами; заголовки шагов жирнее, текст читаемее. */
.how-it-works-section {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.how-it-works-section .node-content h3 {
  font-weight: 800 !important;
  letter-spacing: -0.2px;
}
.how-it-works-section .node-time { font-weight: 600 !important; }
.how-it-works-section .node-details p { font-weight: 500 !important; }
.how-it-works-section .node-details strong { font-weight: 700 !important; }

/* Средний десктоп: раскрытая панель узкая → 2 колонки жмут текст. Одна колонка. */
@media (min-width: 769px) and (max-width: 1150px) {
  .timeline-node.active .node-details { column-count: 1; }
}

/* ===== css/explore-section.css ===== */
/* ============================================================
   Секция «Что внутри курса» — 5 всегда-открытых карточек-кнопок с
   фоновым видео. Клик по карточке открывает pop-up по центру с инфо.
   js/explore-section.js: ленивая загрузка/пауза видео + открытие модалки.
   ============================================================ */
.explore-section {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  z-index: 1;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.explore-section > .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.explore-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 14px);
  max-width: 760px;
  margin: clamp(24px, 3vw, 40px) auto 0;
  /* Точка отсчёта для cqw у карточек ниже — их высота считается от ШИРИНЫ ленты. */
  container-type: inline-size;
}

/* ── Карточка-кнопка ── */
.explore-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: clamp(104px, 16vw, 140px);
  border-radius: 14px;
  overflow: hidden;
  border:1px solid var(--edge-08);
  /* Тёмная подложка под ВСЕ карточки: видео грузится лениво (preload=none, src
     ставит JS при подходе к вьюпорту), и без неё карточка до загрузки просвечивала
     насквозь. */
  background: linear-gradient(150deg, rgba(20, 27, 45, 0.92), rgba(9, 12, 22, 0.97));
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
/* ВЫСОТА КАРТОЧКИ = её ширина ÷ 5.42, то есть ПРОПОРЦИИ РОЛИКОВ (1280x236;
   236/1280 = 18.4375%). Это единственное число, задающее размер секции: при
   ленте 760px карточка выходит 760x140 — тонкая широкая полоса.

   Связь жёсткая в обе стороны. Сделать карточку ниже, не тронув ролики,
   нельзя: object-fit: cover начнёт срезать кадр, а object-position это не
   лечит — он выбирает лишь КАКУЮ часть отрезать, а не отрезать ли вообще.
   Хотите другую высоту — надо перекодировать ролики под новую пропорцию
   (исходники 720p лежат в Video/, они вне git) и поменять это число.

   Почему min-height + cqw, а НЕ aspect-ratio: aspect-ratio вместе с явным
   min-height отключает авторазмер по содержимому, и у «Договариваться с
   брокерами» на мобильной (тег в три строки) текст обрезался. Здесь height
   остаётся auto — пропорция работает как ПОЛ, а длинный текст всё ещё может
   растянуть карточку.

   max(...) со старым clamp сохраняет прежний нижний предел: он же перебивает
   [role="button"]{min-height:44px}, который инжектит interactive-feedback.css
   на мобильных (карточки помечены role=button для доступности). На узких
   экранах он перевешивает пропорцию — там кадр режется по БОКАМ, а не снизу,
   и края всё равно гасит радиальная маска. */
.explore-list .explore-item { min-height: max(clamp(104px, 16vw, 140px), 18.4375cqw); }
.explore-item:hover,
.explore-item:focus-visible {
  border-color: rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  outline: none;
}

/* Здесь были правила .explore-item--static (заглушка «ролика ещё нет»: тёмный
   градиент + свечение по --ex-accent) и .explore-item-img. Удалены: с
   появлением ролика у «Дойти до первой сделки» видео есть у ВСЕХ пяти карточек,
   разметка эти классы больше не использует. История в git, если понадобится
   вернуть карточку на картинку. */

/* Фоновое видео карточки: меньше карточки, по центру, с виньеткой по периметру. */
.explore-item-video {
  position: absolute;
  /* Ролик занимает НЕ всю карточку — иначе объекты в кадре выглядят огромными
     и упираются в края. 80% и по ширине, и по высоте: множитель одинаковый,
     поэтому пропорция сохраняется и кадр остаётся целым, просто мельче.
     inset:0 + размер в % + margin:auto — это центрирование БЕЗ transform:
     transform занят точечными сдвигами кадра, они заданы инлайном в разметке. */
  inset: 0;
  width: 80%;
  height: 80%;
  margin: auto;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.8;
  transition: opacity 0.6s ease;
  /* Виньетка: ДВА линейных градиента, пересечение — каждый край гаснет отдельно
     и ДО НУЛЯ, поэтому ролик растворяется в подложке без видимой рамки.
     Раньше тут был радиальный градиент, и это была ошибка дважды:
       1) на краю он давал ~39% непрозрачности, а не 0 — граница оставалась видна;
       2) эллипс, вписанный в бокс 5.5:1, срезает левый и правый концы сцены —
          для длинной узкой полосы радиальная маска не годится по форме.
     Проценты = ширина растушёвки: 14% по бокам, 20% сверху и снизу. */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
          mask-image:
    linear-gradient(to right,  transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;   /* старый синтаксис WebKit */
          mask-composite: intersect;
}
.explore-item:hover .explore-item-video { opacity: 0.92; }

/* Вуаль-притемнение: темнее ПО ЦЕНТРУ, прозрачно к бокам — под текстом
   контраст, а по краям видны диспетчер и объект. */
/* Надпись сидит слева-сверху → притемняем этот угол по диагонали, справа видно видео. */
.explore-item-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
              rgba(3, 6, 14, 0.86) 0%,
              rgba(3, 6, 14, 0.55) 30%,
              rgba(3, 6, 14, 0.14) 58%,
              rgba(3, 6, 14, 0) 78%);
  pointer-events: none;
}

.explore-item-header {
  position: relative;
  z-index: 2;
  padding: clamp(14px, 2.2vw, 20px) clamp(16px, 3vw, 24px);
  max-width: 84%;
  text-align: left;
  pointer-events: none;   /* клик ловит вся карточка */
}
.explore-item-name {
  display: block;
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 400;                 /* Russo One — единственное начертание */
  letter-spacing: 0.2px;
  color:var(--text-primary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}
.explore-item-tag {
  display: block;
  margin-top: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12px, 1.35vw, 13.5px);
  font-weight: 600;
  line-height: 1.45;
  color:var(--text-secondary);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* Описание живёт в разметке как источник для модалки — на карточке скрыто. */
.explore-item-desc { display: none; }

/* ── Pop-up ── */
.explore-modal[hidden] { display: none; }
.explore-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.explore-modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--lt-c-03060eb8, rgba(3, 6, 14, 0.72));
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.explore-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: clamp(30px, 5vw, 44px) clamp(24px, 4vw, 38px);
  border-radius: 18px;
  border: 1px solid var(--lt-l-06b6d447, rgba(6, 182, 212, 0.28));
  background: linear-gradient(180deg, var(--lt-c-121828fa, rgba(18, 24, 40, 0.98)), var(--lt-c-0b0f1afa, rgba(11, 15, 26, 0.98)));
  box-shadow: 0 24px 70px var(--lt-h-00000099, rgba(0, 0, 0, 0.6));
  text-align: left;
  animation: exploreModalIn 0.24s ease;
}
@keyframes exploreModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.explore-modal-title {
  margin: 0 0 14px;
  padding-right: 34px;              /* не под крестик */
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 800;
  line-height: 1.2;
  color:var(--lt-i-ffffff, var(--text-primary));
}
.explore-modal-text {
  margin: 0;
  font-size: clamp(14px, 1.9vw, 15.5px);
  line-height: 1.6;
  color:var(--lt-i-ffffff, var(--text-secondary));
}
.explore-modal-text p { margin: 0 0 14px; }
.explore-modal-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.explore-modal-text li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(13.5px, 1.8vw, 15px);
  line-height: 1.45;
  color:var(--lt-i-ffffff, var(--text-secondary));
}
.explore-modal-text li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}
/* Селектор с родителем — специфичнее глобального button{position:relative},
   который инжектит interactive-feedback.js; иначе крестик уезжает из угла. */
.explore-modal-box .explore-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--lt-l-ffffff29, rgba(255, 255, 255, 0.16));
  background:var(--lt-c-ffffff14, var(--glass-08));
  color:var(--lt-i-ffffff, var(--text-primary));
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.explore-modal-box .explore-modal-close:hover { background: var(--lt-c-ffffff2e, rgba(255, 255, 255, 0.18)); }

@media (prefers-reduced-motion: reduce) {
  .explore-modal-box { animation: none; }
  .explore-item { transition: border-color 0.3s ease; }
}

/* ── Две колонки по три плашки (Alex 05.11.2026: «компактнее, три и три») ──
   Слева первые три, справа следующие три (grid-auto-flow: column). Шестая
   плашка — ссылка на программу курса. Высота плашки считается от ширины
   КОЛОНКИ (≈ половина ленты), поэтому 9.2cqw вместо 18.4375cqw. */
@media (min-width: 721px) {
  .explore-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    max-width: 1080px;
  }
  .explore-list .explore-item,
  .explore-list .explore-link { min-height: max(132px, 9.2cqw); }
  .explore-item-header { max-width: 92%; }
}

.explore-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(14px, 2.2vw, 20px) clamp(16px, 3vw, 24px);
  min-height: clamp(104px, 16vw, 140px);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background:
    radial-gradient(90% 140% at 100% 100%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(70% 120% at 0% 0%, rgba(6, 182, 212, 0.18), transparent 60%),
    linear-gradient(150deg, rgba(20, 27, 45, 0.92), rgba(9, 12, 22, 0.97));
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.explore-link:hover,
.explore-link:focus-visible {
  border-color: rgba(6, 182, 212, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  outline: none;
}
.explore-link .explore-item-tag { max-width: 92%; }
.explore-link-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #22d3ee;
}
.explore-link-go svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.explore-link:hover .explore-link-go svg { transform: translateX(3px); }
:root[data-theme="light"] .explore-link { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14); }
:root[data-theme="light"] .explore-link .explore-item-name,
:root[data-theme="light"] .explore-link .explore-item-tag { color: #ffffff; }
/* На телефоне секция как была: одна колонка из пяти плашек, без шестой */
@media (max-width: 720px) { .explore-link { display: none; } }

/* ===== css/pricing-section.css ===== */
/* ========================================
   PRICING SECTION — «Featured-hero»
   Центральный тариф доминирует; боковые компактнее.
   ======================================== */
.pricing-section.p2-root,
.p2-root {
  --p2-cyan:#06b6d4; --p2-purple:#8b5cf6; --p2-orange:#f97316; --p2-blue:#3b82f6;
  --p2-glass:rgba(255,255,255,.05); --p2-border:rgba(255,255,255,.1);
  --p2-txt:#fff; --p2-mut:rgba(255,255,255,.7); --p2-dim:rgba(255,255,255,.4);
  font-family:'Montserrat',sans-serif; color:var(--lt-i-ffffff, var(--p2-txt));
  /* без своего фона — секция прозрачная, сливается с тёмным body (без шва между секциями) */
  padding:clamp(48px,8vw,96px) clamp(16px,4vw,32px);
  -webkit-font-smoothing:antialiased;
}
.p2-root *{box-sizing:border-box;margin:0;padding:0}
.p2-head{text-align:center;max-width:640px;margin:0 auto clamp(40px,6vw,64px)}
.p2-title{
  font-size:clamp(28px,5vw,44px);font-weight:800;letter-spacing:-.02em;line-height:1.1;
  background:linear-gradient(120deg,var(--lt-g-ffffff, #fff) 30%,var(--lt-g-a5b4fc, #a5b4fc) 70%,var(--lt-g-06b6d4, var(--p2-cyan)));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.p2-sub{margin-top:14px;font-size:clamp(15px,2.2vw,18px);color:var(--lt-i-ffffffb3, var(--p2-mut));font-weight:400}

.p2-grid{
  /* десктоп/планшет — 2 карточки в ряд, одинаковой высоты; мобилка — друг под другом (см. медиа ниже) */
  display:grid;gap:clamp(16px,2.5vw,24px);align-items:stretch;
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:760px;margin:0 auto;
}

.p2-card{
  position:relative;border-radius:22px;padding:28px 24px;
  background:var(--lt-c-ffffff0d, var(--p2-glass));border:1px solid var(--lt-l-ffffff1a, var(--p2-border));
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  display:flex;flex-direction:column;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s,box-shadow .35s;
}
.p2-card--side{opacity:.92}
.p2-card--side:hover{transform:translateY(-6px);border-color:var(--lt-l-ffffff33, rgba(255,255,255,.2));
  box-shadow:0 20px 50px -20px var(--lt-h-00000099, rgba(0,0,0,.6))}

/* Featured — те же размеры, что у второй карточки (для симметрии), выделен только свечением/лентой */
.p2-card--feat{
  padding:28px 24px;z-index:2;
  background:linear-gradient(180deg,rgba(139,92,246,.14),rgba(6,182,212,.06)),var(--lt-c-ffffff0d, var(--p2-glass));
  border:1px solid transparent;
  background-clip:padding-box;
  box-shadow:0 0 0 1px var(--lt-h-8b5cf666, rgba(139,92,246,.4)),0 30px 70px -30px var(--lt-h-8b5cf68c, rgba(139,92,246,.55)),0 0 60px -20px var(--lt-h-06b6d466, rgba(6,182,212,.4));
}
.p2-card--feat::before{
  content:"";position:absolute;inset:-1px;border-radius:23px;padding:1px;z-index:-1;
  background:linear-gradient(135deg,var(--p2-cyan),var(--p2-purple),var(--p2-blue));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;opacity:.9;
}
.p2-card--feat::after{
  content:"";position:absolute;top:-40%;left:50%;transform:translateX(-50%);
  width:120%;height:80%;border-radius:50%;z-index:-2;
  background:radial-gradient(closest-side,rgba(139,92,246,.35),transparent);
  filter:blur(30px);pointer-events:none;
}
.p2-card--feat:hover{transform:translateY(-8px)}

.p2-ribbon{
  position:absolute;top:0;left:50%;transform:translate(-50%,-50%);
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 18px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  background:linear-gradient(135deg,var(--p2-cyan),var(--p2-purple));color:#fff;
  box-shadow:0 8px 24px -6px var(--lt-h-8b5cf6b3, rgba(139,92,246,.7));white-space:nowrap;
}
.p2-ribbon svg{width:13px;height:13px}

.p2-tag{
  align-self:center;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  padding:5px 12px;border-radius:999px;border:1px solid var(--lt-l-ffffff1a, var(--p2-border));color:var(--lt-i-ffffffb3, var(--p2-mut));
}
.p2-tag--free{color:var(--p2-cyan);border-color:var(--lt-l-06b6d466, rgba(6,182,212,.4))}
.p2-tag--prem{color:var(--lt-i-f97316, var(--p2-orange));border-color:var(--lt-l-f9731666, rgba(249,115,22,.4))}

.p2-name{margin-top:16px;font-size:20px;font-weight:700;letter-spacing:-.01em;text-align:center}

.p2-price{display:flex;align-items:baseline;justify-content:center;gap:6px;margin-top:8px}
.p2-amount{font-size:clamp(34px,5vw,40px);font-weight:800;letter-spacing:-.02em;line-height:1}
.p2-card--feat .p2-amount{
  background:linear-gradient(120deg,var(--lt-g-ffffff, #fff),var(--lt-g-06b6d4, var(--p2-cyan)));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.p2-per{font-size:13px;color:var(--p2-dim);font-weight:500}

.p2-desc{margin-top:14px;font-size:13.5px;line-height:1.5;color:var(--lt-i-ffffffb3, var(--p2-mut));min-height:42px;text-align:center}

.p2-divider{height:1px;background:linear-gradient(90deg,transparent,var(--lt-l-ffffff1a, var(--p2-border)),transparent);margin:20px 0 18px}

.p2-feats{list-style:none;display:flex;flex-direction:column;gap:12px;flex:1}
.p2-feats li{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;line-height:1.4;color:var(--lt-i-ffffffb3, var(--p2-mut))}
.p2-feats li.p2-on{color:var(--lt-i-ffffff, var(--text-primary))}
.p2-ic{flex:0 0 18px;width:18px;height:18px;margin-top:1px}
.p2-ic--on{color:var(--lt-i-06b6d4, var(--p2-cyan))}
.p2-ic--feat{color:var(--lt-i-8b5cf6, var(--p2-purple))}
.p2-ic--off{color:var(--p2-dim)}
.p2-feats li.p2-off{color:var(--p2-dim)}

.p2-btn{
  margin-top:22px;display:block;width:100%;text-align:center;
  padding:14px 20px;border-radius:14px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;
  border:1px solid var(--lt-l-ffffff1a, var(--p2-border));background:var(--lt-t-ffffff0f, var(--glass-06));color:var(--lt-i-ffffff, var(--text-primary));
  transition:background .25s,transform .2s,box-shadow .25s,border-color .25s;
  text-decoration:none;
}
.p2-btn:hover{background:var(--lt-t-ffffff1f, rgba(255,255,255,.12));border-color:var(--lt-l-ffffff40, rgba(255,255,255,.25));transform:translateY(-2px)}
/* 25.11.2026 Alex: «на русской версии премиум должен быть более заметным» —
   золотая рамка со свечением, лента, золотая цена и золотая кнопка. */
.p2-card--prem{
  opacity:1;z-index:2;
  background:linear-gradient(180deg,rgba(245,158,11,.14),rgba(249,115,22,.05)),var(--lt-c-ffffff0d, var(--p2-glass));
  border:1px solid rgba(245,158,11,.75);
  box-shadow:0 0 0 1px rgba(245,158,11,.35),0 30px 70px -30px rgba(245,158,11,.55),0 0 60px -20px rgba(249,115,22,.45);
}
.p2-card--prem:hover{transform:translateY(-8px);border-color:#fbbf24;box-shadow:0 0 0 1px rgba(251,191,36,.5),0 30px 70px -26px rgba(245,158,11,.7),0 0 70px -18px rgba(249,115,22,.55)}
.p2-ribbon--prem{background:linear-gradient(135deg,#fbbf24,#f97316);color:#1f1300;box-shadow:0 8px 24px -6px rgba(249,115,22,.7)}
.p2-card--prem .p2-amount{
  background:linear-gradient(120deg,#fde68a,#fbbf24 45%,#f97316);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.p2-btn.p2-btn--gold{
  border:none;color:#1f1300;font-weight:800;
  background:linear-gradient(120deg,#fbbf24,#f97316);
  box-shadow:0 12px 30px -10px rgba(249,115,22,.75);
}
.p2-btn.p2-btn--gold:hover{background:linear-gradient(120deg,#fcd34d,#fb923c);transform:translateY(-3px);box-shadow:0 18px 40px -10px rgba(249,115,22,.85)}
:root[data-theme="light"] .p2-card--prem{background:linear-gradient(180deg,#fffbeb,#fff);border-color:#f59e0b}
:root[data-theme="light"] .p2-card--prem .p2-amount{background:none;-webkit-text-fill-color:#b45309;color:#b45309}
/* 25.11.2026: Премиум на английской главной виден, но временно недоступен. */
.p2-btn.p2-btn--off,.p2-btn.p2-btn--off:hover{opacity:.6;cursor:default;transform:none;background:var(--lt-t-ffffff0d, rgba(255,255,255,.05));border-color:var(--lt-l-ffffff1a, rgba(255,255,255,.1))}
.p2-card--off .p2-price,.p2-card--off .p2-feats{opacity:.72}
.p2-off-note{margin:10px 0 0;font-size:13px;line-height:1.45;text-align:center;color:var(--lt-t-94a3b8, #94a3b8)}
.p2-btn--primary{
  border:none;color:#fff;
  background:linear-gradient(120deg,var(--p2-cyan),var(--p2-purple));
  box-shadow:0 12px 30px -10px var(--lt-h-8b5cf6b3, rgba(139,92,246,.7));
}
.p2-btn--primary:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px -10px var(--lt-h-8b5cf6d9, rgba(139,92,246,.85)),0 0 24px -6px var(--lt-h-06b6d499, rgba(6,182,212,.6));
}

.p2-footer{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 26px;
  margin:clamp(36px,5vw,52px) auto 0;max-width:760px;
  font-size:13.5px;color:var(--lt-i-ffffffb3, var(--p2-mut));
}
.p2-footer span{display:inline-flex;align-items:center;gap:8px}
.p2-footer svg{width:16px;height:16px;color:var(--lt-i-06b6d4, var(--p2-cyan))}

/* Мобилка/узкий экран: тарифы друг под другом, компактно и аккуратно */
@media(max-width:760px){
  .p2-grid{grid-template-columns:1fr;max-width:400px;gap:16px}
  .p2-card{padding:24px 22px}
  .p2-card--feat{padding:28px 24px}
  .p2-card--feat::after{display:none}
  .p2-desc{min-height:0}
}

/* ==== СКИДКА + КАНВАС-ЭФФЕКТ ==== */
/* канвас-искры за карточками (сквозь стеклянный blur — мягкое свечение) */
.pricing-section.p2-root{position:relative;z-index:2}
/* canvas — replaced-элемент: inset:0 его высоту НЕ растягивает, нужен явный 100%.
   Выше/ниже секции запас в 60px — под него уезжает parallax-сдвиг (pricing-fx.js),
   чтобы при скролле не обнажался пустой край без частиц. */
.p2-fx{position:absolute;top:-60px;left:0;width:100%;height:calc(100% + 120px);z-index:0;pointer-events:none;will-change:transform;
  /* Поле частиц растворяется на верхнем/нижнем краях (в зоне запаса), а не
     обрывается жёсткой линией на стыке секций. */
  -webkit-mask:linear-gradient(to bottom,transparent 0,#000 7%,#000 93%,transparent 100%);
  mask:linear-gradient(to bottom,transparent 0,#000 7%,#000 93%,transparent 100%)}
.p2-head,.p2-grid,.p2-footer{position:relative;z-index:1}

.p2-price{flex-wrap:wrap;row-gap:4px}
/* старая (перечёркнутая) цена */
.p2-old{
  align-self:center;font-size:16px;font-weight:600;color:var(--lt-i-ffffff66, var(--p2-dim));
  text-decoration:line-through;text-decoration-color:var(--lt-i-ffffff66, rgba(255,255,255,.4));
}
.p2-card--feat .p2-old{font-size:19px}

/* бейдж «−15%» с бегущим бликом */
.p2-save{
  align-self:center;margin-left:6px;position:relative;overflow:hidden;
  font-size:12px;font-weight:800;letter-spacing:.02em;padding:4px 9px;border-radius:999px;
  color:#052e18;background:linear-gradient(120deg,#34d399,#10b981);
  box-shadow:0 4px 14px -4px var(--lt-h-10b981b3, rgba(16,185,129,.7));
}
.p2-save--hot{color:#2a1206;background:linear-gradient(120deg,#fb923c,#f97316);
  box-shadow:0 4px 14px -4px var(--lt-h-f97316bf, rgba(249,115,22,.75))}
.p2-save::after{
  content:"";position:absolute;top:0;left:-60%;width:45%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);
  transform:skewX(-20deg);animation:p2shine 2.8s ease-in-out infinite;
}
@keyframes p2shine{0%{left:-60%}55%,100%{left:135%}}

/* «сгорающая» премиум-скидка: осталось N вводных мест из 15 */
.p2-spots{
  align-self:stretch;margin-top:12px;padding:11px 13px;border-radius:12px;
  background:rgba(249,115,22,.1);border:1px solid var(--lt-l-f9731652, rgba(249,115,22,.32));
  animation:p2pulse 2.4s ease-in-out infinite;
}
.p2-spots-lbl{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--lt-i-fed7aa, #fed7aa)}
.p2-spots-lbl b{color:var(--lt-i-ffffff, var(--text-primary));font-weight:800}
.p2-spots-lbl svg{width:14px;height:14px;color:var(--lt-i-f97316, var(--p2-orange));flex:0 0 14px}
.p2-spots-bar{margin-top:8px;height:6px;border-radius:999px;background:var(--lt-t-ffffff1f, rgba(255,255,255,.12));overflow:hidden}
.p2-spots-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#fb923c,#f97316)}
.p2-spots-note{margin-top:6px;font-size:10.5px;color:var(--lt-i-ffffff, var(--text-muted))}
@keyframes p2pulse{0%,100%{box-shadow:0 0 0 0 var(--lt-h-f9731600, rgba(249,115,22,0))}50%{box-shadow:0 0 0 4px var(--lt-h-f9731621, rgba(249,115,22,.13))}}

@media(prefers-reduced-motion:reduce){
  .p2-save::after{animation:none}
  .p2-spots{animation:none}
}

/* ===== css/final-cta.css ===== */
/* Final CTA Section */
/* Секция без своего фона — прозрачная, показывает непрерывный фон страницы
   (как секции выше). Ничего не режется на границе. */
.final-cta-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.final-cta-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
}

.final-cta-badge {
  display: inline-block;
  padding: 6px 18px;
  background:var(--tint-brand-2);
  border: 1px solid var(--lt-l-06b6d459, rgba(6, 182, 212, 0.35));
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color:var(--lt-i-06b6d4, var(--brand-ink));
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.final-cta-title {
  font-size: 48px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
  margin-bottom: 20px !important;
  color: var(--lt-i-ffffff, #ffffff) !important;
}

.final-cta-description {
  font-size: 18px !important;
  color:var(--lt-i-ffffff, var(--text-primary));
  max-width: 700px !important;
  margin: 0 auto 40px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  overflow-wrap: break-word;
}

.final-cta-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.final-stat-item {
  text-align: center;
}

.final-stat-number {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--lt-g-06b6d4, #06b6d4), var(--lt-g-0ea5e9, #0ea5e9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.final-stat-label {
  font-size: 14px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  font-weight: 600;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.final-cta-btn {
  padding: 16px 40px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.final-cta-btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  color: white;
  box-shadow: 0 10px 30px var(--lt-h-06b6d44d, rgba(6, 182, 212, 0.3));
}

.final-cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--lt-h-06b6d480, rgba(6, 182, 212, 0.5));
}

.final-cta-btn-secondary {
  background:var(--lt-c-ffffff0d, var(--glass-05));
  color:var(--lt-i-ffffff, var(--text-primary));
  border: 1px solid var(--lt-l-ffffff26, rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(10px);
}

.final-cta-btn-secondary:hover {
  background:var(--lt-c-ffffff1a, var(--glass-10));
  border-color: var(--lt-l-06b6d466, rgba(6, 182, 212, 0.4));
  transform: translateY(-3px);
}

.final-cta-note {
  font-size: 13px;
  color:var(--lt-i-ffffff, var(--text-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.final-cta-note svg {
  width: 16px;
  height: 16px;
  color:var(--lt-i-10b981, var(--status-success));
}

/* Tablet */
@media (max-width: 1024px) {
  .final-cta-section {
    padding: 70px 0;
  }

  .final-cta-title {
    font-size: 42px !important;
  }

  .final-cta-description {
    font-size: 17px !important;
  }

  .final-stat-number {
    font-size: 38px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .final-cta-section {
    padding: 60px 0;
  }

  .final-cta-title {
    font-size: 36px !important;
  }

  .final-cta-description {
    font-size: 16px !important;
    margin-bottom: 32px !important;
  }

  .final-cta-stats {
    gap: 32px;
    margin-bottom: 40px;
  }

  .final-stat-number {
    font-size: 34px;
  }

  .final-stat-label {
    font-size: 13px;
  }

  .final-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .final-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .final-cta-section {
    padding: 50px 0;
  }

  .final-cta-title {
    font-size: 32px !important;
  }

  .final-cta-description {
    font-size: 15px !important;
  }

  .final-cta-stats {
    gap: 24px;
  }

  .final-stat-number {
    font-size: 30px;
  }

  .final-stat-label {
    font-size: 12px;
  }
}

/* Третья кнопка — Telegram, главный контакт (/tg?s=home-cta) */
.final-cta-btn-tg {
  background: #177aad;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.28);
}

.final-cta-btn-tg:hover {
  background: #136a97;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(34, 158, 217, 0.4);
}

/* ===== interactive-feedback.css ===== */
/* ============================================
   ГЛОБАЛЬНАЯ СИСТЕМА ВИЗУАЛЬНОЙ ОБРАТНОЙ СВЯЗИ
   Для всех кликабельных элементов проекта
   ============================================ */

/* === БАЗОВЫЕ ПРАВИЛА ДЛЯ ВСЕХ КНОПОК === */
button,
.btn,
[role="button"],
.clickable {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover эффект для desktop */
button:hover,
.btn:hover,
[role="button"]:hover,
.clickable:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.15);
    box-shadow: 0 8px 20px var(--lt-h-0000004d, rgba(0, 0, 0, 0.3));
}

/* Active эффект (нажатие) - БОЛЕЕ ВЫРАЖЕННЫЙ */
button:active,
.btn:active,
[role="button"]:active,
.clickable:active {
    transform: scale(0.95) translateY(2px);
    filter: brightness(0.9);
    box-shadow: 0 2px 4px var(--lt-h-00000033, rgba(0, 0, 0, 0.2));
    transition: all 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}



/* === КАРТОЧКИ ТРАКОВ === */
.truck-card,
[class*="truck-card"],
[onclick*="assignLoad"],
[onclick*="viewTruck"] {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.truck-card:hover,
[class*="truck-card"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--lt-h-06b6d440, rgba(6, 182, 212, 0.25)) !important;
    border-color: var(--lt-l-06b6d480, rgba(6, 182, 212, 0.5)) !important;
}

.truck-card:active,
[class*="truck-card"]:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 8px var(--lt-h-06b6d426, rgba(6, 182, 212, 0.15)) !important;
    transition: all 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === ЗЕЛЁНЫЕ КНОПКИ "НАЗНАЧИТЬ" - УЛУЧШЕННЫЕ === */
button[style*="rgb(34, 197, 94)"],
button[style*="#22c55e"],
.assign-btn,
.btn-green,
[onclick*="assignLoad"] button {
    box-shadow: 0 4px 12px var(--lt-h-22c55e66, rgba(34, 197, 94, 0.4));
}

button[style*="rgb(34, 197, 94)"]:hover,
button[style*="#22c55e"]:hover,
.assign-btn:hover,
.btn-green:hover {
    box-shadow: 0 8px 24px var(--lt-h-22c55e99, rgba(34, 197, 94, 0.6)) !important;
    background: rgb(22, 163, 74) !important;
    transform: translateY(-3px) scale(1.03) !important;
}

button[style*="rgb(34, 197, 94)"]:active,
button[style*="#22c55e"]:active,
.assign-btn:active,
.btn-green:active {
    box-shadow: 0 2px 6px var(--lt-h-22c55e4d, rgba(34, 197, 94, 0.3)) !important;
    background: rgb(21, 128, 61) !important;
    transform: scale(0.94) translateY(2px) !important;
}

/* === СИНИЕ КНОПКИ (PRIMARY) - УЛУЧШЕННЫЕ === */
button[style*="rgb(6, 182, 212)"],
button[style*="#06b6d4"],
.primary-btn,
.btn-blue {
    box-shadow: 0 4px 12px var(--lt-h-06b6d466, rgba(6, 182, 212, 0.4));
}

button[style*="rgb(6, 182, 212)"]:hover,
button[style*="#06b6d4"]:hover,
.primary-btn:hover,
.btn-blue:hover {
    box-shadow: 0 8px 24px var(--lt-h-06b6d499, rgba(6, 182, 212, 0.6)) !important;
    background: rgb(8, 145, 178) !important;
    transform: translateY(-3px) scale(1.03) !important;
}

button[style*="rgb(6, 182, 212)"]:active,
button[style*="#06b6d4"]:active,
.primary-btn:active,
.btn-blue:active {
    box-shadow: 0 2px 6px var(--lt-h-06b6d44d, rgba(6, 182, 212, 0.3)) !important;
    background: rgb(14, 116, 144) !important;
    transform: scale(0.94) translateY(2px) !important;
}

/* === КРАСНЫЕ КНОПКИ (DANGER) - УЛУЧШЕННЫЕ === */
button[style*="rgb(239, 68, 68)"],
button[style*="#ef4444"],
.danger-btn,
.btn-red {
    box-shadow: 0 4px 12px var(--lt-h-ef444466, rgba(239, 68, 68, 0.4));
}

button[style*="rgb(239, 68, 68)"]:hover,
button[style*="#ef4444"]:hover,
.danger-btn:hover,
.btn-red:hover {
    box-shadow: 0 8px 24px var(--lt-h-ef444499, rgba(239, 68, 68, 0.6)) !important;
    background: rgb(220, 38, 38) !important;
    transform: translateY(-3px) scale(1.03) !important;
}

button[style*="rgb(239, 68, 68)"]:active,
button[style*="#ef4444"]:active,
.danger-btn:active,
.btn-red:active {
    box-shadow: 0 2px 6px var(--lt-h-ef44444d, rgba(239, 68, 68, 0.3)) !important;
    background: rgb(185, 28, 28) !important;
    transform: scale(0.94) translateY(2px) !important;
}

/* === КАРТОЧКИ ГРУЗОВ === */
[onclick*="selectLoad"],
.load-card,
[class*="load-card"] {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[onclick*="selectLoad"]:hover,
.load-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--lt-h-06b6d433, rgba(6, 182, 212, 0.2)) !important;
    border-color: var(--lt-l-06b6d466, rgba(6, 182, 212, 0.4)) !important;
}

[onclick*="selectLoad"]:active,
.load-card:active {
    transform: scale(0.99) translateY(0);
    box-shadow: 0 2px 8px var(--lt-h-06b6d41a, rgba(6, 182, 212, 0.1)) !important;
    transition: all 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === ЭЛЕМЕНТЫ НАВИГАЦИИ === */
nav button,
.nav-btn,
[class*="nav-"] button {
    transition: all 0.15s ease;
}

nav button:hover,
.nav-btn:hover {
    background: rgba(6, 182, 212, 0.15) !important;
}

nav button:active,
.nav-btn:active {
    background: rgba(6, 182, 212, 0.25) !important;
    transform: scale(0.95);
}

/* === ТАБЫ И ПЕРЕКЛЮЧАТЕЛИ === */
[role="tab"],
.tab,
[class*="tab-"] {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

[role="tab"]:hover,
.tab:hover {
    background: var(--lt-c-ffffff0d, rgba(255, 255, 255, 0.05)) !important;
}

[role="tab"]:active,
.tab:active {
    background: var(--lt-c-ffffff14, rgba(255, 255, 255, 0.08)) !important;
    transform: scale(0.98);
}

/* === ИКОНКИ И МАЛЕНЬКИЕ КНОПКИ - УЛУЧШЕННЫЕ === */
.icon-btn,
button[style*="width: 40px"],
button[style*="width: 36px"],
button[style*="width: 32px"] {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover,
button[style*="width: 40px"]:hover,
button[style*="width: 36px"]:hover,
button[style*="width: 32px"]:hover {
    transform: scale(1.15) rotate(5deg);
    background: rgba(6, 182, 212, 0.25) !important;
    box-shadow: 0 4px 12px var(--lt-h-06b6d44d, rgba(6, 182, 212, 0.3));
}

.icon-btn:active,
button[style*="width: 40px"]:active,
button[style*="width: 36px"]:active,
button[style*="width: 32px"]:active {
    transform: scale(0.9) rotate(0deg);
    background: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 2px 4px var(--lt-h-06b6d433, rgba(6, 182, 212, 0.2));
}

/* === МОДАЛЬНЫЕ ОКНА - OVERLAY === */
[onclick*="closeModal"],
[onclick*="hideModal"],
.modal-overlay {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* === ЧЕКБОКСЫ И RADIO === */
input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    transition: all 0.15s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    transform: scale(1.1);
}

input[type="checkbox"]:active,
input[type="radio"]:active {
    transform: scale(0.95);
}

/* === ССЫЛКИ === */
a {
    transition: all 0.15s ease;
}

a:hover {
    filter: brightness(1.2);
}

a:active {
    filter: brightness(0.9);
    transform: scale(0.98);
}

/* === DISABLED СОСТОЯНИЕ === */
button:disabled,
.btn:disabled,
[disabled] {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: none;
}

/* === МОБИЛЬНЫЕ УСТРОЙСТВА === */
@media (max-width: 768px) {
    /* Увеличенная область нажатия */
    button:not(.carousel-indicator):not(.carousel-pause-btn),
    .btn,
    [role="button"],
    .clickable {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* БОЛЕЕ ВЫРАЖЕННЫЙ feedback на мобильных */
    button:active,
    .btn:active,
    [role="button"]:active,
    .clickable:active {
        transform: scale(0.92) !important;
        opacity: 0.75 !important;
        filter: brightness(0.85) !important;
    }
    
    /* Убираем hover эффекты на touch устройствах */
    @media (hover: none) {
        button:hover,
        .btn:hover,
        [role="button"]:hover,
        .clickable:hover {
            transform: none;
            filter: none;
            box-shadow: none;
        }
    }
}

/* === АНИМАЦИЯ ЗАГРУЗКИ - УЛУЧШЕННАЯ === */
@keyframes pulse-click {
    0% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(0.94); 
        filter: brightness(0.9);
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
        filter: brightness(1);
    }
}

.clicking {
    animation: pulse-click 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === КНОПКИ ЗАКРЫТИЯ (КРЕСТИКИ) - УВЕЛИЧЕННЫЕ === */
.modal-close,
button[onclick*="closeModal"],
button[onclick*="hideModal"],
[class*="close-btn"],
button:has(> :only-child):is(:has(> :only-child:is([innerHTML*="✕"], [innerHTML*="×"], [innerHTML*="✖"]))),
button[aria-label*="close" i],
button[aria-label*="закрыть" i] {
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    border-radius: 12px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 2px solid var(--lt-l-ef44444d, rgba(239, 68, 68, 0.3)) !important;
    color: var(--lt-i-ef4444, #ef4444) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modal-close:hover,
button[onclick*="closeModal"]:hover,
button[onclick*="hideModal"]:hover,
[class*="close-btn"]:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: var(--lt-l-ef444480, rgba(239, 68, 68, 0.5)) !important;
    transform: scale(1.1) rotate(90deg) !important;
    box-shadow: 0 4px 12px var(--lt-h-ef44444d, rgba(239, 68, 68, 0.3)) !important;
}

.modal-close:active,
button[onclick*="closeModal"]:active,
button[onclick*="hideModal"]:active,
[class*="close-btn"]:active {
    background: rgba(239, 68, 68, 0.3) !important;
    transform: scale(0.95) rotate(90deg) !important;
    box-shadow: 0 2px 6px var(--lt-h-ef444433, rgba(239, 68, 68, 0.2)) !important;
}

/* Мобильные - ещё больше */
@media (max-width: 768px) {
    .modal-close,
    button[onclick*="closeModal"],
    button[onclick*="hideModal"],
    [class*="close-btn"] {
        min-width: 56px !important;
        min-height: 56px !important;
        font-size: 28px !important;
        padding: 16px !important;
        border-radius: 14px !important;
        border-width: 3px !important;
    }
}

/* === ФОКУС ДЛЯ ACCESSIBILITY === */
button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--lt-l-06b6d4, #06b6d4);
    outline-offset: 2px;
}

/* ===== css/home-2026.css ===== */
/* ============================================================
   Главная 2026 — новые блоки ПОВЕРХ прежней главной.
   Прежняя главная целиком лежит в index-classic.html со своими
   стилями; этот файл её не трогает и подключается только на новой.

   Что здесь: вводный урок (hv-), своя TMS с живыми экранами (ws-/wt-),
   карточка «Звонок брокеру» в тренажёрах (bc-), вопросы и ответы
   (fq-) и несколько мелких правок первого экрана.

   Цвета — свои токены --hn-*: тёмные на :root, светлые на
   :root[data-theme="light"] (тот же атрибут ставит theme-boot).
   Генератор светлой темы (tools/light-theme) этот файл не обходит,
   поэтому обе темы заданы руками.

   Глобальные правила css/main.css ставят p { 18px; белый } и
   h1–h3 { 1.4; -0.5px } через !important — поэтому у абзацев и
   заголовков ниже свои !important, иначе их не перебить.
   ============================================================ */

:root {
  --hn-t1: #ffffff;
  --hn-t2: #e2e8f0;
  --hn-t3: #a3aec0;
  --hn-card: linear-gradient(160deg, rgba(18, 24, 40, .85), rgba(9, 12, 22, .92));
  --hn-line: rgba(255, 255, 255, .08);
  --hn-line-2: rgba(255, 255, 255, .14);
  --hn-accent: #22d3ee;
  --hn-accent-rgb: 6, 182, 212;
  --hn-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  --hn-tag-bg: rgba(255, 255, 255, .05);
  --hn-free: #4ade80;
  --hn-pro: #fbbf24;
}
:root[data-theme="light"] {
  --hn-t1: #0f172a;
  --hn-t2: #334155;
  --hn-t3: #5a6675;
  --hn-card: #ffffff;
  --hn-line: rgba(15, 23, 42, .10);
  --hn-line-2: rgba(15, 23, 42, .18);
  --hn-accent: #0b5c74;
  --hn-accent-rgb: 8, 145, 178;
  --hn-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .10);
  --hn-tag-bg: rgba(15, 23, 42, .04);
  --hn-free: #047857;
  --hn-pro: #b45309;
}

/* ── Первый экран: флаги и звёзды рисуются SVG, а не эмодзи ──
   Эмодзи-флаги в Windows показываются буквами «RU»/«US», звёзды —
   разным цветом в разных системах. */
.hlt-flag { width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.stars { display: inline-flex; gap: 2px; letter-spacing: 0; }
.stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ── Общее для новых секций ──────────────────────────────── */
.hn-section {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 5vw, 72px) 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hn-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hn-accent);
  background: rgba(var(--hn-accent-rgb), .10);
  border: 1px solid rgba(var(--hn-accent-rgb), .35);
}
.hn-title {
  margin: 14px 0 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15 !important;
  letter-spacing: -.5px !important;
}
.hn-sub {
  margin: 0 0 20px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 500;
  color: var(--hn-t2) !important;
}

/* Кнопка — как у тренажёров (map-trainer-btn): тёмный текст на бирюзе,
   читается в обеих темах. */
.hn-btn, .wt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 100px;
  font: 800 14px/1.2 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #06283a;
  text-decoration: none;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 8px 22px rgba(6, 182, 212, .3);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease;
}
.hn-btn:hover, .wt-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(6, 182, 212, .42); }
.hn-btn:active, .wt-btn:active { transform: translateY(0); }
.hn-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Появление при прокрутке — только с JS и когда движение разрешено */
.hn-js .hn-rise { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.hn-js .hn-rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hn-js .hn-rise { opacity: 1; transform: none; transition: none; }
}

/* ── Вводный урок ─────────────────────────────────────────── */
.hv-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: 20px;
  background: var(--hn-card);
  border: 1px solid var(--hn-line);
  box-shadow: var(--hn-shadow);
}
.hv-text .hn-title { margin-top: 14px; }
.hv-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(var(--hn-accent-rgb), .3);
  border-radius: 14px;
  overflow: hidden;
  background: #080d18;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  cursor: pointer;
}
.hv-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hv-thumb:hover img { transform: scale(1.03); }
.hv-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0) 40%, rgba(8, 13, 24, .55));
  transition: background .2s;
}
.hv-thumb:hover::after { background: rgba(8, 13, 24, .25); }
.hv-thumb:focus-visible { outline: 3px solid var(--hn-accent); outline-offset: 3px; }
.hv-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  box-shadow: 0 8px 26px rgba(6, 182, 212, .45);
  transition: transform .2s;
}
.hv-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.hv-thumb:hover .hv-play { transform: scale(1.08); }
.hv-dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  font: 700 12px/1.2 'Montserrat', sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, .65);
}
@media (max-width: 760px) {
  .hv-card { grid-template-columns: 1fr; text-align: center; }
  .hv-thumb { order: -1; }
}

/* Окно с уроком поверх страницы: фрейм создаётся при открытии и убирается
   при закрытии, поэтому звук останавливается. Ширина ограничена и высотой
   экрана — на ноутбуке и на телефоне боком окно 16:9 иначе выше экрана. */
.hv-modal {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 16px;
  background: rgba(3, 6, 12, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hv-modal[hidden] { display: none; }
.hv-modal-box {
  position: relative;
  width: min(1180px, 100%, calc((100vh - 96px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #080d18;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: hvIn .22s ease both;
}
@supports (height: 100dvh) {
  .hv-modal-box { width: min(1180px, 100%, calc((100dvh - 96px) * 16 / 9)); }
}
.hv-modal-frame, .hv-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hv-close {
  position: fixed; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(4, 6, 9, .9);
  color: #fff;
  font-size: 26px; line-height: 1;
  cursor: pointer;
}
.hv-close:hover { border-color: #fff; }
html.hv-lock, html.hv-lock body { overflow: hidden; }
@keyframes hvIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hv-modal-box { animation: none; } }

/* ── Рабочие инструменты: TMS с живыми экранами ───────────── */
/* Карточка: первый ряд — текст слева, экраны справа (текст короткий, поэтому
   выровнен по центру экранов); второй ряд — возможности полосой на всю ширину.
   Список в левой колонке делал её вдвое выше экранов, справа под ними
   оставалась пустота. */
.ws-tms {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 20px;
  background: var(--hn-card);
  border: 1px solid var(--hn-line);
  box-shadow: var(--hn-shadow);
}
.ws-tms-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ws-feats {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--hn-line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.ws-feats li { font-size: 13px; line-height: 1.45; color: var(--hn-t2); min-width: 0; }
.ws-feats b { display: block; margin-bottom: 4px; font-size: 13.5px; line-height: 1.3; font-weight: 800; color: var(--hn-t1); }
.ws-feats svg { display: block; width: 20px; height: 20px; margin-bottom: 8px; color: var(--hn-accent); }
.ws-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.ws-note { font-size: 12.5px; line-height: 1.4; color: var(--hn-t3); }
@media (max-width: 1000px) { .ws-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .ws-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .ws-feats { grid-template-columns: 1fr; gap: 12px; } .ws-feats svg { margin-bottom: 6px; } }

.ws-shots { margin: 0; min-width: 0; }
.ws-tabs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ws-tab {
  position: relative;
  overflow: hidden;
  font: 700 12.5px/1.2 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hn-t2);
  background: var(--hn-tag-bg);
  border: 1px solid var(--hn-line-2);
  border-radius: 20px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ws-tab:hover { color: var(--hn-t1); border-color: rgba(var(--hn-accent-rgb), .5); }
.ws-tab[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(6, 182, 212, .25), rgba(14, 165, 233, .18));
  border-color: rgba(var(--hn-accent-rgb), .5);
  color: var(--hn-t1);
}
:root[data-theme="light"] .ws-tab[aria-selected="true"] { background: rgba(8, 145, 178, .12); }
/* Полоска отсчёта до следующего экрана на активной вкладке (js/home-2026.js) */
.ws-tab::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--hn-accent, #06b6d4);
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}
.ws-tab.is-run::after { animation: wsRun var(--ws-step, 5000ms) linear forwards; }
@keyframes wsRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* «Окно браузера» — тёмная рамка в обеих темах, как кадр видео */
.ws-browser {
  border: 1px solid var(--hn-line-2);
  border-radius: 12px;
  overflow: hidden;
  background: #eef0f5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
.ws-bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  background: #111a2c;
  border-bottom: 1px solid #1e293b;
}
.ws-bar i { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.ws-url {
  flex: 1; min-width: 0; margin-left: 6px;
  padding: 5px 10px;
  border-radius: 5px;
  font: 500 11px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-style: normal;
  color: #94a3b8;
  background: #0b1220;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-view { position: relative; aspect-ratio: 1004 / 560; overflow: hidden; background: #eef0f5; }
.ws-view img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto; max-width: none;
  display: block;
  opacity: 0;
  transition: opacity .35s ease;
}
.ws-view img.is-on { opacity: 1; }
.ws-cap { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--hn-t3); min-height: 2.9em; }

@media (max-width: 900px) {
  .ws-tms { grid-template-columns: 1fr; }
  .ws-shots { order: -1; }
}

/* Плашки, заголовок и описание карточки TMS */
.wt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-tag {
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--hn-t2);
  background: var(--hn-tag-bg);
  border: 1px solid var(--hn-line-2);
}
.wt-tag.pro { color: var(--hn-pro); border-color: currentColor; background: transparent; }
.wt-name { margin: 0; font-size: 21px; line-height: 1.2 !important; letter-spacing: -.3px !important; }
.wt-desc {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 500;
  color: var(--hn-t2) !important;
}

/* ── Тренажёры: три карточки в ряд ───────────────────────────
   В css/map-trainer-banner.css сетка auto-fit с минимумом 320px —
   при трёх карточках третья уходила одна на вторую строку. */
.tools-section > .container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .tools-section > .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-section .map-trainer-card:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .tools-section > .container { grid-template-columns: 1fr; }
  .tools-section .map-trainer-card:nth-child(4) { grid-column: auto; }
}

/* Карточка «Звонок брокеру»: визуал звонка вместо картинки */
.bc-visual {
  width: 100%; max-width: 360px; height: 150px;
  border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, .25), transparent 60%), #0b1220;
  border: 1px solid #1e293b;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #e2e8f0;
  font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.bc-who { display: flex; align-items: center; gap: 8px; }
.bc-ava { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); display: grid; place-items: center; }
.bc-ava svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bc-who small { display: block; color: #94a3b8; font-weight: 500; }
.bc-wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.bc-wave i { width: 4px; border-radius: 2px; background: #22d3ee; animation: bcWave 1.1s ease-in-out infinite; }
.bc-wave i:nth-child(odd) { animation-delay: -.4s; }
.bc-wave i:nth-child(3n) { animation-delay: -.7s; background: #0ea5e9; }
@keyframes bcWave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.bc-line { color: #cbd5e1; font-weight: 500; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .bc-wave i { animation: none; height: 14px; } }

/* ── Вопросы и ответы ─────────────────────────────────────── */
.fq-section .section-description a {
  color: var(--hn-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fq-list { display: flex; flex-direction: column; gap: 10px; }
.fq-item {
  border-radius: 14px;
  background: var(--hn-card);
  border: 1px solid var(--hn-line);
  box-shadow: var(--hn-shadow);
  overflow: hidden;
  transition: border-color .2s ease;
}
.fq-item[open] { border-color: rgba(var(--hn-accent-rgb), .45); }
.fq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  font: 700 16px/1.35 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hn-t1);
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-ic {
  position: relative; flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hn-line-2);
  transition: transform .25s ease, border-color .2s ease;
}
.fq-ic::before, .fq-ic::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: var(--hn-accent);
  transform: translate(-50%, -50%);
}
.fq-ic::before { width: 12px; height: 2px; }
.fq-ic::after { width: 2px; height: 12px; }
.fq-item[open] .fq-ic { transform: rotate(45deg); border-color: rgba(var(--hn-accent-rgb), .5); }
.fq-body { padding: 0 20px 18px; }
.fq-body p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  font-weight: 500;
  color: var(--hn-t2) !important;
}
@media (max-width: 480px) {
  .fq-item summary { padding: 14px 16px; font-size: 15px; }
  .fq-body { padding: 0 16px 16px; }
}

/* ── «Как это работает» (2026): шаги описаны абзацами, а не короткими
   строками, как раньше. В css/how-it-works.css раскрытый шаг на десктопе —
   две колонки в панели ~400px (текст ужимается в столбик 170px) и
   max-height 420/500px, которые режут абзацы. Здесь: одна колонка, панель
   пошире, запас по высоте — раскрытие через max-height остаётся прежним. */
@media (min-width: 769px) {
  .how-it-works-section .timeline-node.active { flex: 3.5 1 0%; }
  .how-it-works-section .timeline-node.active .node-content { max-height: 1000px; }
  .how-it-works-section .timeline-node.active .node-details {
    column-count: 1;
    max-height: 800px;
  }
}
@media (max-width: 768px) {
  .how-it-works-section .timeline-node.active .node-content { max-height: 1600px; }
  .how-it-works-section .timeline-node.active .node-details { max-height: 1200px; }
}

/* ── Кадр вводного урока на английской главной рисует сам плеер во фрейме
   (embed/course-intro.en.html?preview=1): статичной английской картинки нет.
   Фрейм не ловит события, поверх него прозрачная кнопка с «play». ─────── */
.hv-thumb-live { cursor: pointer; }
.hv-thumb-live .hv-live {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  pointer-events: none;
  background: #080d18;
}
.hv-thumb-live::after { z-index: 1; pointer-events: none; }
.hv-thumb-btn {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: transparent;
  cursor: pointer;
}
.hv-thumb-btn:focus-visible { outline: 3px solid var(--hn-accent); outline-offset: 3px; }
.hv-thumb-live:hover .hv-play { transform: scale(1.08); }

/* ===== css/course-facts.css ===== */
/* ============================================================
   Главная: «Что вы получаете» (#course-facts), сразу после героя.
   Компактный вид (05.11.2026, Alex: «слишком растянуто»): одна панель
   с 4 цифрами и строкой «Каждый урок», программа из 9 блоков спрятана
   за кнопкой. Подробности на /course-2.html.
   Разметка в index.html и en/index.html, движение и кнопка — js/course-facts.js.
   Токены --hn-* (тёмная и светлая тема) из css/home-2026.css.
   Без JS и при prefers-reduced-motion всё видно сразу, с итоговыми цифрами.
   ============================================================ */

.cf { --cf-acc: #22d3ee; --cf-acc-rgb: 34, 211, 238; --cf-acc2: #a78bfa; }
:root[data-theme="light"] .cf { --cf-acc: #0b5c74; --cf-acc-rgb: 8, 145, 178; --cf-acc2: #6d28d9; }

.cf-head { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.cf-head .hn-title { font-size: clamp(25px, 3.4vw, 38px); }
.cf-lead {
  margin: 0 auto !important;
  max-width: 620px;
  font-size: 16px !important;
  line-height: 1.55 !important;
  font-weight: 500;
  color: var(--hn-t2) !important;
}

/* ── Панель: цифры + «Каждый урок» ─────────────────────── */
.cf-panel {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  border-radius: 22px;
  background: var(--hn-card);
  border: 1px solid var(--hn-line);
  box-shadow: var(--hn-shadow);
  overflow: hidden;
}
.cf-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cf-acc) 25%, var(--cf-acc2) 75%, transparent);
  opacity: .8;
}

.cf-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cf-stat {
  padding: 26px 14px 22px;
  text-align: center;
}
.cf-stat + .cf-stat { border-left: 1px solid var(--hn-line); }
.cf-n {
  display: block;
  font: 800 clamp(30px, 3.6vw, 44px)/1 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -1.2px;
  color: var(--hn-t1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cf-n i { font-style: normal; color: var(--cf-acc); }
.cf-n u { text-decoration: none; font-size: .5em; letter-spacing: 0; color: var(--hn-t2); margin-left: 3px; }
.cf-l {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hn-t3);
}

/* Строка «Каждый урок: Текст → Видео → Тренажёр → Проверка → Шпаргалка» */
.cf-flow {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-top: 1px solid var(--hn-line);
  background: rgba(var(--cf-acc-rgb), .035);
}
.cf-flow-h {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cf-acc);
}
.cf-anat {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.cf-a {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cf-a + .cf-a::before {
  content: "";
  flex: none;
  width: clamp(10px, 2.4vw, 34px);
  height: 1px;
  margin-right: clamp(0px, .6vw, 8px);
  background: linear-gradient(90deg, transparent, rgba(var(--cf-acc-rgb), .6));
}
.cf-a-ic {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--cf-acc);
  background: rgba(var(--cf-acc-rgb), .10);
  border: 1px solid rgba(var(--cf-acc-rgb), .28);
}
.cf-a-ic svg { width: 16px; height: 16px; }
.cf-a b { font-size: 14px; font-weight: 700; color: var(--hn-t1); }

/* ── Кнопки и программа ────────────────────────────────── */
.cf-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.cf-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid var(--hn-line-2);
  background: transparent;
  color: var(--hn-t1);
  font: 700 14px/1.2 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.cf-more:hover { border-color: rgba(var(--cf-acc-rgb), .55); background: rgba(var(--cf-acc-rgb), .06); }
.cf-more:focus-visible { outline: 2px solid var(--cf-acc); outline-offset: 3px; }
.cf-more svg { width: 15px; height: 15px; transition: transform .25s ease; }
.cf-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.cf-map {
  list-style: none;
  max-width: 940px;
  margin: 18px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 8px;
}
.cf-map[hidden] { display: none; }
.cf-b {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--hn-tag-bg);
  border: 1px solid var(--hn-line);
  min-width: 0;
}
.cf-b-n {
  flex: none;
  font: 800 12px/1 'Montserrat', sans-serif;
  color: var(--cf-acc);
  font-variant-numeric: tabular-nums;
}
.cf-b-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--hn-t1); }
.cf-b-r { flex: none; font-size: 12px; font-weight: 600; color: var(--hn-t3); white-space: nowrap; }

/* ── Движение: только с JS (класс cf-js) и без reduced-motion ── */
.cf-js .cf-stat,
.cf-js .cf-a { opacity: 0; transform: translateY(10px); }
.cf-js .is-in > .cf-stat,
.cf-js .is-in > .cf-a {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.cf-js .cf-map:not([hidden]) .cf-b { animation: cf-in .35s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes cf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cf-js .cf-stat, .cf-js .cf-a { opacity: 1; transform: none; }
  .cf-js .cf-map:not([hidden]) .cf-b { animation: none; }
}

/* ── Адаптив ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .cf-flow { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .cf-flow-h { text-align: center; }
  .cf-anat { justify-content: center; flex-wrap: wrap; gap: 8px 6px; }
  .cf-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-stat { padding: 18px 10px 16px; }
  .cf-stat:nth-child(3) { border-left: 0; }
  .cf-stat:nth-child(n+3) { border-top: 1px solid var(--hn-line); }
  .cf-n { font-size: 32px; }
  .cf-l { font-size: 12.5px; }
  .cf-a + .cf-a::before { display: none; }
  .cf-a { gap: 6px; padding: 4px 10px 4px 4px; border-radius: 100px; border: 1px solid var(--hn-line); }
  .cf-a-ic { width: 26px; height: 26px; border-radius: 50%; }
  .cf-a-ic svg { width: 14px; height: 14px; }
  .cf-a b { font-size: 13px; }
  .cf-map { grid-template-columns: 1fr; }
  .cf-lead { font-size: 15px !important; }
  .cf-cta .hn-btn, .cf-more { width: 100%; justify-content: center; }
}

/* ── Кто учит на главной: одна строка-ссылка (11.11.2026, Alex: «намного меньше и компактнее, главная и так длинная»).
   Полный блок с карточками живёт только на «О нас» (css/about-2026.css). ─── */
.hn-section.tm { padding: clamp(10px, 1.6vw, 20px) 0; }
.tm-strip {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 18px; text-decoration: none;
  background: var(--hn-card); border: 1px solid var(--hn-line); box-shadow: var(--hn-shadow); transition: border-color .2s ease;
}
.tm-strip:hover, .tm-strip:focus-visible { border-color: rgba(var(--hn-accent-rgb), .5); }
.tm-avs { flex: none; display: flex; gap: 6px; }
.tm-avs i {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: normal 800 15px/1 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--hn-accent);
  background: rgba(var(--hn-accent-rgb), .10); border: 1px solid rgba(var(--hn-accent-rgb), .40);
}
.tm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-txt b { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--hn-t1); }
.tm-txt span { font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--hn-t2); }
.tm-go { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--hn-accent); }
@media (max-width: 640px) {
  .tm-strip { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; }
  .tm-txt { flex: 1 1 100%; order: 3; }
  .tm-go { margin-left: auto; }
}

/* ===== css/home-light-bg.css ===== */
/* Главная, светлая тема: живой фон «Облака» (04.12.2026).
   История: фоновые ролики главной сняты под тёмную тему и на светлой
   странице почти не видны, страница выглядела пустой. Пробовали точечную
   карту США, фото белых волн и «Сияние с огоньками»; Alex выбрал облака
   Vanta.js CLOUDS2 со своими настройками (vantajs.com).

   Слои, все под контентом и под фоновыми видео (самый задний план):
   1. body::before — то же небо градиентом: видно, пока грузятся облака,
      при «уменьшить движение» и если WebGL нет.
   2. .lt-clouds — холст облаков (создаёт js/home-2026.js, библиотеки в
      js/vendor/vanta/). Появляется плавно, когда первый кадр готов.
   Над фоновыми видео облака приглушаются, но не исчезают (Alex 04.12:
   «видно немножко чаще, но чтобы не перекрывало видеофон»).
   Тёмная тема не меняется: всё под :root[data-theme="light"]. Файл
   подключается только на главной (склейка css/home-bundle.css). */

:root[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 30% 70%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #7fb6dc 0%, #b4d6ee 38%, #e3eef8 70%, #f7f9fc 100%);
}

.lt-clouds { display: none; }
:root[data-theme="light"] .lt-clouds {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}
:root[data-theme="light"] .lt-clouds.is-on { opacity: 1; }
:root[data-theme="light"] .lt-clouds canvas { display: block; }

/* Середина экрана над фоновым видео (класс lt-vid-on ставит js/home-2026.js):
   облака приглушаются, видео проступает сильнее. */
:root[data-theme="light"] body::before { transition: opacity 1.1s ease; }
:root[data-theme="light"].lt-vid-on body::before { opacity: 0.45; }
:root[data-theme="light"].lt-vid-on .lt-clouds.is-on { opacity: 0.45; }
:root[data-theme="light"] .hero-bg-stage,
:root[data-theme="light"] .midfx-bg-stage,
:root[data-theme="light"] .section-bg-stage { transition: opacity 1.1s ease; }
:root[data-theme="light"].lt-vid-on .hero-bg-stage { opacity: 0.9; }
:root[data-theme="light"].lt-vid-on .midfx-bg-stage,
:root[data-theme="light"].lt-vid-on .section-bg-stage { opacity: 0.75; }
@media (max-width: 768px) {
  :root[data-theme="light"].lt-vid-on .midfx-bg-stage,
  :root[data-theme="light"].lt-vid-on .section-bg-stage { opacity: 0.6; }
}

/* Частицы главной (#neuralCanvas, js/main.js) на светлом фоне выглядят мусором
   (Alex 03.12.2026): в светлой теме холст скрыт, а main.js его не рисует.
   В тёмной теме частицы остаются. */
:root[data-theme="light"] #neuralCanvas { display: none !important; }
