/* ============================================================
   PRO 100 TRADING — Shopifi-inspired design system
   Дизайн-токены из DESIGN.md
   Two-canvas: cinematic night (#000) + transactional light/cream
   Pill-only buttons · thin display type · ss03 · aloe/pistachio
   только на светлом треке (никакого синего/третьего холста)
   ============================================================ */
:root {
  /* ---- Surfaces ---- */
  --canvas-night:          #000000;
  --canvas-night-elevated: #0a0a0a;
  --surface-elevated-dark: #1e2c31;
  --canvas-light:          #ffffff;
  --canvas-cream:          #fbfbf5;

  /* ---- Text ---- */
  --ink:        #000000;
  --on-primary: #ffffff;

  /* ---- Accent (зелёная свеча трейдинг-графика) ---- */
  --accent:        #16C784;
  --accent-strong: #0FA968; /* нажатие / тёмный вариант */
  --on-accent:     #05140E; /* тёмный текст на ярко-зелёном (контраст) */

  /* ---- Accents (зарезервированы, светлый трек) ---- */
  --aloe:      #c1fbd4;
  --pistachio: #d4f9e0;

  /* ---- Shade ladder ---- */
  --shade-30: #d4d4d8;
  --shade-40: #a1a1aa;
  --shade-50: #71717a;
  --shade-60: #52525b;
  --shade-70: #3f3f46;

  /* ---- Hairlines ---- */
  --hairline-light: #e4e4e7;
  --hairline-dark:  #1e2c31;

  /* ---- Cool muted link tones (на тёмном) ---- */
  --link-cool-1: #9dabad;
  --link-cool-2: #9797a2;
  --link-cool-3: #bdbdca;

  /* ---- Type families ---- */
  --font-display: "Neue Haas Grotesk Display", "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;
  --font-ui:      "Inter", "Inter Variable", Helvetica, Arial, sans-serif;
  --font-code:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ---- Radius ---- */
  --r-xs:   4px;
  --r-sm:   5px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   20px;
  --r-pill: 9999px;

  /* ---- Spacing (8px base) ---- */
  --s-xxs:  2px;
  --s-xs:   4px;
  --s-sm:   8px;
  --s-md:   12px;
  --s-lg:   16px;
  --s-xl:   24px;
  --s-xxl:  32px;
  --s-huge: 64px;

  /* ---- Elevation ---- */
  --elev-1: 0 1px 2px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.04);
  --elev-2: 0 0 0 1px rgba(255,255,255,0.08), 0 1px 3px rgba(0,0,0,0.3), 0 5px 10px rgba(0,0,0,0.2);
  --elev-3: 0 8px 8px rgba(0,0,0,0.1), 0 4px 4px rgba(0,0,0,0.1), 0 2px 2px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.06);
}

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

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--canvas-night);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 420;
  line-height: 1.5;
  font-feature-settings: "ss03";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Якоря не прячутся под липкой шапкой */
[id] { scroll-margin-top: 84px; }

/* Дисплейная типографика — тонкий грот, вес 330 */
.hero__title,
.section__title,
.cta-final__title,
.manifest__hook,
.math-card__to,
.stat__value,
.acc-title,
.format-card__title {
  font-family: var(--font-display);
  font-weight: 330;
}

/* ============================================================
   Navbar (nav-bar-dark)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--s-xl);
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--s-xxl);
}

.site-header__logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-primary);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__logo-accent,
.footer__logo-accent { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  margin-left: auto;
}

.site-nav a {
  font-size: 16px;
  font-weight: 420;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--accent); }

/* CTA в шапке — button-outline-on-dark (пилюля) */
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  flex-shrink: 0;
  background: transparent;
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
  padding: 10px var(--s-xl);
  border: 2px solid var(--on-primary);
  border-radius: var(--r-pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header__cta:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.site-header__cta .btn__tg { width: 16px; height: 16px; }

/* Переключатель языка — пилюля (на тёмной шапке) */
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.lang-switch__btn {
  padding: 6px 13px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn:hover { color: var(--on-primary); }
.lang-switch__btn.is-active { background: var(--on-primary); color: var(--ink); }

/* Бургер */
.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.is-open .site-header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .site-header__burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .site-header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — cinematic / night, full-bleed photo
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: var(--s-huge) var(--s-xl);
  padding-bottom: calc(var(--s-huge) + 52px + 96px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  max-width: 680px;
}

.hero__title {
  margin: 0;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--on-primary);
}

.hero__lead {
  margin: var(--s-xl) 0 0;
  max-width: 46ch;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.92);
}

/* Трек-рекорд — card-feature-cinematic */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: var(--s-xxl);
}

.stat {
  flex: 1 1 0;
  min-width: 140px;
  background: var(--canvas-night-elevated);
  color: var(--on-primary);
  padding: var(--s-xl);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.stat__value {
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

/* Главный результат трек-рекорда — акцентом */
.stat:first-child .stat__value { color: var(--accent); }

.stat__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--shade-40);
}

/* CTA */
.hero__cta-text {
  margin: var(--s-xxl) 0 var(--s-lg);
  font-size: 18px;
  font-weight: 550;
  color: var(--on-primary);
}

/* ---- Кнопки: только пилюли ---- */
.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  background: var(--ink);
  color: var(--on-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
  padding: var(--s-md) var(--s-xl);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }

.btn__icon { width: 18px; height: 18px; }

/* На тёмном (cinematic) — button-outline-on-dark */
.hero .btn,
.section--dark .btn {
  background: transparent;
  color: var(--on-primary);
  border: 2px solid var(--on-primary);
}

.hero .btn:hover,
.section--dark .btn:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* На светлом — button-outline-on-light */
.btn--ghost {
  background: var(--canvas-light);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn--ghost:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn--lg { font-size: 18px; padding: var(--s-lg) var(--s-xxl); }
.btn__tg { width: 20px; height: 20px; }

/* ---- Фото героя (full-bleed) ---- */
.hero__media {
  position: absolute;
  top: 48px;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
}

.hero__photo {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom left;
}

/* Портрет в потоке — только на мобиле (см. медиазапрос ниже) */
.hero__portrait { display: none; }

/* ---- Звуковая волна ---- */
.hero__wave {
  position: absolute;
  left: 0;
  bottom: 52px;
  z-index: 3;
  width: 100%;
  height: 96px;
  display: block;
  opacity: 0.85;
}

/* ---- Бегущая строка котировок ---- */
.ticker {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  background: var(--canvas-night);
  color: var(--on-primary);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}

.ticker__group { display: flex; flex-shrink: 0; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: var(--s-md) var(--s-xxl);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--shade-40);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker__item b { color: var(--on-primary); font-weight: 550; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker:hover .ticker__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ============================================================
   Секции (общее)
   ============================================================ */
.section {
  padding: 112px var(--s-xl);
}

/* Cinematic / night */
.section--dark {
  background: var(--canvas-night);
  color: var(--on-primary);
}

/* Transactional / light (cream) */
.section--light {
  background: var(--canvas-cream);
  color: var(--ink);
  padding: 88px var(--s-xl);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Eyebrow — eyebrow-cap (12px, caps, tracking) */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--shade-40);
  margin-bottom: var(--s-lg);
}

.section--light .eyebrow { color: var(--shade-50); }

/* Акцентный eyebrow — зелёная капсула (на любом фоне) */
.eyebrow--accent {
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--s-xs) var(--s-md);
  border-radius: var(--r-pill);
}

.section__title {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section__lead {
  margin: var(--s-xl) 0 0;
  max-width: 52ch;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.56;
}

.section--light .section__lead { color: var(--shade-60); }
.section--dark  .section__lead { color: rgba(255, 255, 255, 0.82); }

.section-head { margin-bottom: var(--s-huge); }

/* ============================================================
   Блок 2 — Видео-визитка (light)
   ============================================================ */
.video__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: var(--s-huge);
}

.video__text { display: flex; flex-direction: column; align-items: flex-start; }
.video__text .btn { margin-top: var(--s-xl); }

/* card-photo-frame / video — rounded md, без тени */
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas-night);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Блок 3 — Манифест (cinematic / night)
   ============================================================ */
.manifest__head { margin-bottom: var(--s-xxl); }

.manifest__hook {
  margin: 0 0 var(--s-xxl);
  max-width: 24ch;
  font-size: clamp(30px, 4.4vw, 55px);
  line-height: 1.16;
  color: var(--on-primary);
}

.manifest__body {
  max-width: 64ch;
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
}

.manifest__body p {
  margin: 0;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.8);
}

.manifest__subtitle {
  margin: var(--s-xxl) 0 var(--s-xl);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--shade-40);
}

.manifest__math {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}

/* card-feature-cinematic */
.math-card {
  background: var(--canvas-night-elevated);
  border-radius: var(--r-lg);
  padding: var(--s-xxl);
  box-shadow: var(--elev-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.math-card__from {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28px;
  color: var(--shade-40);
}

.math-card__to {
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}

.math-card__years {
  font-size: 18px;
  font-weight: 550;
  color: var(--on-primary);
}

.math-card__rate {
  margin-top: var(--s-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28px;
  color: var(--shade-50);
}

/* ============================================================
   Блок 4 — Продукты (light, pricing-cards)
   ============================================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

/* card-pricing */
.acc-item {
  background: var(--canvas-light);
  color: var(--ink);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-3);
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Открытый раздел — чёрная инверсия (акцент) */
.acc-item.is-open {
  background: var(--canvas-night);
  color: var(--on-primary);
  border-color: transparent;
}

.acc-item.is-open .acc-num,
.acc-item.is-open .acc-meta { color: var(--shade-40); }
.acc-item.is-open .product__desc { color: rgba(255, 255, 255, 0.82); }
.acc-item.is-open .product__meta { border-color: rgba(255, 255, 255, 0.18); }
.acc-item.is-open .product__meta dt,
.acc-item.is-open .modules__label,
.acc-item.is-open .modules__list li::before { color: var(--shade-40); }
.acc-item.is-open .product__meta dd,
.acc-item.is-open .modules__list li { color: var(--on-primary); }
.acc-item.is-open .acc-icon::before,
.acc-item.is-open .acc-icon::after { background: var(--on-primary); }

.acc-head {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  width: 100%;
  padding: var(--s-xl) var(--s-xxl);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
}

.acc-num {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.28px;
  color: var(--shade-50);
  flex-shrink: 0;
}

.acc-title {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}

.acc-meta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--shade-50);
  white-space: nowrap;
}

.acc-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.acc-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.acc-icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }

.acc-item.is-open .acc-icon::after { transform: scaleY(0); opacity: 0; }

.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-panel__inner { padding: 0 var(--s-xxl) var(--s-xxl); }

@media (prefers-reduced-motion: reduce) {
  .acc-panel { transition: none; }
}

.product__desc {
  margin: 0;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--shade-60);
}

.product__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-xl);
  margin: var(--s-xl) 0;
  padding: var(--s-xl) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.product__meta dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--shade-50);
  margin-bottom: var(--s-xs);
}

.product__meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.modules { margin-bottom: var(--s-xl); }

.modules__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--shade-50);
  margin-bottom: var(--s-lg);
}

.modules__list {
  list-style: none;
  counter-reset: m;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-md);
}

.modules__list li {
  counter-increment: m;
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}

.modules__list li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  font-weight: 550;
  color: var(--shade-50);
}

.formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-md);
  margin-top: var(--s-lg);
}

/* card-pricing внутри featured — белые карточки */
.format-card {
  background: var(--canvas-light);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.format-card__title {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
}

.format-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--shade-60);
}

.format-card b { color: var(--ink); font-weight: 550; }

/* pill-tag-shade */
.format-card__tag {
  align-self: flex-start;
  margin-top: auto;
  background: var(--shade-30);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.72px;
  padding: var(--s-xs) var(--s-md);
  border-radius: var(--r-pill);
}

/* ============================================================
   Блок 5 — Бесплатный урок (cinematic / night)
   ============================================================ */
.event__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-huge);
  align-items: start;
}

.event__topic {
  margin: var(--s-xl) 0 var(--s-lg);
  font-size: 18px;
  font-weight: 550;
  line-height: 1.56;
  color: var(--on-primary);
}

.event__for {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--shade-40);
}

/* card-feature-cinematic */
.event__card {
  background: var(--canvas-night-elevated);
  border-radius: var(--r-lg);
  padding: var(--s-xxl);
  box-shadow: var(--elev-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.event__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-md);
  padding-bottom: var(--s-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
}

.event__row span { color: var(--shade-40); }
.event__row b { color: var(--on-primary); font-weight: 550; }

.event__seats { margin: var(--s-sm) 0; }

.event__seats-bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.event__seats-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.event__seats-text {
  margin: var(--s-md) 0 0;
  font-size: 14px;
  font-weight: 550;
  color: var(--accent);
}

.event__card .btn { margin-top: var(--s-sm); align-self: stretch; justify-content: center; }

/* ============================================================
   Отзывы — переписка в стиле Telegram (light)
   ============================================================ */
.tg-carousel { position: relative; margin: 0 auto; }
.tg-viewport { overflow: hidden; padding: 8px 4px; }

.tg-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-slide { flex: 0 0 100%; }

.tg-phone {
  display: flex;
  flex-direction: column;
  height: 530px;
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--elev-3);
}

.tg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eceff3;
  flex-shrink: 0;
}

.tg-back { color: #2EA6FF; font-size: 28px; line-height: 1; margin-right: 2px; }

.tg-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: var(--c, #2EA6FF);
}

.tg-meta { display: flex; flex-direction: column; line-height: 1.25; }
.tg-uname { font-size: 15px; font-weight: 600; color: #0f172a; }
.tg-seen { font-size: 12px; color: #9aa3ad; }

.tg-wall {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #d8e2ec;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 80% 80%, rgba(120, 160, 200, 0.25) 0, rgba(120, 160, 200, 0) 45%);
}

.tg-date {
  align-self: center;
  margin-bottom: 6px;
  background: rgba(70, 90, 110, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 11px;
  border-radius: 12px;
}

.tg-in {
  position: relative;
  align-self: flex-start;
  max-width: 80%;
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  padding: 6px 10px 5px;
  box-shadow: 0 1px 1.5px rgba(15, 23, 42, 0.12);
}

.tg-in p { margin: 0; font-size: 14px; line-height: 19px; color: #0f172a; }
.tg-in time { display: block; text-align: right; margin-top: 2px; font-size: 11px; color: #9aa3ad; }

/* Стрелки и точки — нейтральная чёрнильная фурнитура (без синего) */
.tg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hairline-light);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--elev-3);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tg-nav:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tg-nav--prev { left: -22px; }
.tg-nav--next { right: -22px; }

.tg-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }

.tg-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--shade-30);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.tg-dot.is-active { width: 22px; border-radius: 5px; background: var(--accent); }

/* ---- Отзывы: видео + скрины переписки ---- */
.review-video {
  max-width: 440px;
  margin: 0 auto var(--s-xxl);
}

.review-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  border-radius: var(--r-xl);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--elev-3);
}

.review-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
  margin: 0;
  padding: var(--s-md);
  background: var(--canvas-light);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-3);
  overflow: hidden;
}

.review-shot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
}

@media (max-width: 480px) {
  .review-shot { height: 64vh; }
}

/* ---- Лайтбокс отзывов ---- */
body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox.is-open { display: flex; }

.lightbox__stage {
  max-width: 100vw;
  max-height: 100vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox.is-zoomed .lightbox__stage { align-items: flex-start; }

.lightbox.is-zoomed .lightbox__img {
  max-width: none;
  max-height: none;
  height: 165vh;
  cursor: zoom-out;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.lightbox__close { top: 16px; right: 16px; font-size: 26px; }

.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 30px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (max-width: 560px) {
  .lightbox__close { width: 44px; height: 44px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ============================================================
   CTA — Telegram (cinematic / night)
   ============================================================ */
.cta-final { background: var(--canvas-cream); }

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-final__title {
  font-family: var(--font-display);
  font-weight: 330;
  margin: 0 0 var(--s-lg);
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--ink);
}

.cta-final__text {
  margin: 0 0 var(--s-xl);
  max-width: 48ch;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.56;
  color: var(--shade-60);
}

.cta-final .btn { align-self: center; }

/* ============================================================
   Футер (footer-dark)
   ============================================================ */
.footer {
  background: var(--canvas-night);
  color: var(--on-primary);
  padding: var(--s-huge) var(--s-xl) var(--s-xxl);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-xxl);
  padding-bottom: var(--s-xxl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__tagline {
  margin: var(--s-md) 0 0;
  max-width: 34ch;
  font-size: 14px;
  color: var(--link-cool-1);
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  min-width: 160px;
  padding: var(--s-xl);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--link-cool-1);
}

.contact-card__value {
  font-size: 16px;
  font-weight: 550;
  color: var(--on-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: var(--s-xl);
  font-size: 14px;
  color: var(--link-cool-2);
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 880px) {
  /* На мобиле прячем фоновую вырезку и показываем портрет в потоке —
     имя сверху, портрет под ним, низ портрета перекрывают блоки ниже */
  .hero__media { display: none; }
  .hero__content { max-width: 100%; }
  .hero__portrait {
    display: block;
    width: min(80%, 300px);
    margin: var(--s-md) auto -72px; /* по центру; отрицательный низ → наезд контента */
    position: relative;
    z-index: 0;
  }
  .hero__portrait img { display: block; width: 100%; height: auto; }
  /* блоки под портретом — поверх его нижней (тёмной) части */
  .hero__lead,
  .hero__stats,
  .hero__cta-text,
  .hero .btn { position: relative; z-index: 1; }

  .site-header__inner { padding: 0 var(--s-lg); gap: var(--s-md); }
  .site-header__burger { display: flex; margin-left: var(--s-sm); }
  .site-header__cta { margin-left: auto; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--canvas-night);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--s-sm) var(--s-xl) var(--s-xl);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-header.is-open .site-nav { transform: none; opacity: 1; pointer-events: auto; }

  .site-nav a {
    padding: var(--s-md) 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .section { padding: 72px var(--s-lg); }
  .section--light { padding: 64px var(--s-lg); }
  .video__grid { grid-template-columns: 1fr; gap: var(--s-xxl); }
  .manifest__math { grid-template-columns: 1fr; }
  .product__meta { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .event__grid { grid-template-columns: 1fr; gap: var(--s-xxl); }
  .tg-nav--prev { left: 4px; }
  .tg-nav--next { right: 4px; }
  .footer { padding: var(--s-xxl) var(--s-lg) var(--s-lg); }
}

@media (max-width: 600px) {
  /* Шапка раздела аккордеона: мета уезжала за карточку (nowrap) —
     переносим её на отдельную строку под заголовком */
  .acc-head { flex-wrap: wrap; gap: var(--s-sm) var(--s-md); padding: var(--s-lg) var(--s-xl); }
  .acc-title { flex: 1 1 auto; min-width: 0; }
  .acc-meta {
    order: 5;
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 28px;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  /* На узких экранах прячем CTA шапки — приоритет у переключателя языка */
  .site-header__cta { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: var(--s-lg); padding-bottom: calc(var(--s-lg) + 52px + 96px); }
  .hero__title { font-size: clamp(44px, 14vw, 64px); }
  .hero__stats { gap: var(--s-sm); }
  .stat { min-width: 100%; }
}
