/* ==========================================================================
   C-Level Club — стили
   Базируется на дизайн-системе Ontico (типографика TT Ontico, шкала отступов,
   брейкпойнты 480/800/1500), переопределяет на тёмную палитру клуба из ТЗ.
   ========================================================================== */

/* ===== Шрифт TT Ontico ===== */
@font-face {
  font-family: 'TT Ontico';
  src: url("../fonts/tt-ontico-400.woff2") format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Ontico';
  src: url("../fonts/tt-ontico-500.woff2") format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Ontico';
  src: url("../fonts/tt-ontico-600.woff2") format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Ontico';
  src: url("../fonts/tt-ontico-900.woff2") format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ==========================================================================
   ТОКЕНЫ — палитра клуба + примитивы Ontico
   ========================================================================== */
:root {
  /* Палитра C-Level Club (из ТЗ, приоритет над gray-шкалой ДС) */
  --bg:           #0E1420;
  --bg-inverse:   #080B12;
  --bg-surface:   #1A2030;
  --bg-surface-2: #222A3D;
  --border:       rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.14);

  --text:         #FFFFFF;
  --text-muted:   #9BA3B8;
  --text-dim:     #6E7891;

  --accent:       #46D160;
  --accent-ink:   #07210C; /* тёмный текст по зелёному фону, контраст 12:1 */
  --accent-soft:  rgba(70, 209, 96, .12);

  /* Декоративные маркеры категорий (точечно, по ТЗ) */
  --c-red:    #FF8585;
  --c-blue:   #7ABAFF;
  --c-gold:   #E8C66E;
  --c-green:  #46D160;

  /* Контейнер и боковые поля — гайдлайн Ontico */
  --container-max: 1200px;
  --container-padding: 20px;

  /* === Шкала отступов (fluid, ДС Ontico) === */
  --space-inset-xs:   8px;
  --space-inset-sm:   12px;
  --space-inset-md:   16px;
  --space-stack-xs:   4px;
  --space-stack-sm:   8px;

  --space-inset-lg:      clamp(20px, calc(20px + (100vw - 480px) * (24 - 20) / (800 - 480)), 24px);
  --space-inset-xl:      clamp(24px, calc(24px + (100vw - 480px) * (32 - 24) / (800 - 480)), 32px);
  --space-inset-section: clamp(48px, calc(48px + (100vw - 480px) * (64 - 48) / (800 - 480)), 64px);
  --space-stack-md:      clamp(12px, calc(12px + (100vw - 480px) * (16 - 12) / (800 - 480)), 16px);
  --space-stack-base:    16px;
  --space-stack-lg:      clamp(20px, calc(20px + (100vw - 480px) * (24 - 20) / (800 - 480)), 24px);
  --space-stack-xl:      clamp(32px, calc(32px + (100vw - 480px) * (40 - 32) / (800 - 480)), 40px);
  --space-grid-sm:       clamp(12px, calc(12px + (100vw - 480px) * (16 - 12) / (800 - 480)), 16px);
  --space-grid-md:       16px;
  --space-grid-lg:       clamp(20px, calc(20px + (100vw - 480px) * (24 - 20) / (800 - 480)), 24px);
  --space-section-sm:    32px;
  --space-section-md:    clamp(48px, calc(48px + (100vw - 480px) * (64 - 48) / (800 - 480)), 64px);
  --space-section-lg:    clamp(64px, calc(64px + (100vw - 480px) * (96 - 64) / (800 - 480)), 96px);
}

@media (min-width: 480px) {
  :root { --container-padding: 48px; }
}

@media (min-width: 800px) {
  :root {
    --container-padding: clamp(48px, calc(48px + (100vw - 800px) * (150 - 48) / (1500 - 800)), 150px);
    --space-inset-section: clamp(64px, calc(64px + (100vw - 800px) * (80 - 64) / (1500 - 800)), 80px);
    --space-stack-base:    clamp(16px, calc(16px + (100vw - 800px) * (20 - 16) / (1500 - 800)), 20px);
    --space-stack-lg:      clamp(24px, calc(24px + (100vw - 800px) * (32 - 24) / (1500 - 800)), 32px);
    --space-stack-xl:      clamp(40px, calc(40px + (100vw - 800px) * (48 - 40) / (1500 - 800)), 48px);
    --space-grid-md:       clamp(16px, calc(16px + (100vw - 800px) * (24 - 16) / (1500 - 800)), 24px);
    --space-grid-lg:       clamp(24px, calc(24px + (100vw - 800px) * (32 - 24) / (1500 - 800)), 32px);
    --space-section-sm:    clamp(32px, calc(32px + (100vw - 800px) * (48 - 32) / (1500 - 800)), 48px);
    --space-section-md:    clamp(64px, calc(64px + (100vw - 800px) * (80 - 64) / (1500 - 800)), 80px);
    --space-section-lg:    clamp(96px, calc(96px + (100vw - 800px) * (128 - 96) / (1500 - 800)), 128px);
  }
}

@media (min-width: 1500px) {
  :root { --container-padding: 0; }
}

/* ==========================================================================
   База
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'TT Ontico', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

/* ==========================================================================
   ТИПОГРАФИКА — fluid-классы ДС Ontico
   ========================================================================== */
.display-1 {
  font-weight: 900;
  font-size: clamp(40px, calc(40px + (100vw - 480px) * (64 - 40) / (800 - 480)), 64px);
  line-height: clamp(48px, calc(48px + (100vw - 480px) * (72 - 48) / (800 - 480)), 72px);
  letter-spacing: -2.88px;
  margin: 0;
}
@media (min-width: 800px) {
  .display-1 {
    font-size: clamp(64px, calc(64px + (100vw - 800px) * (96 - 64) / (1500 - 800)), 96px);
    line-height: clamp(72px, calc(72px + (100vw - 800px) * (104 - 72) / (1500 - 800)), 104px);
  }
}

.display-3 {
  font-weight: 600;
  font-size: 32px; line-height: 40px; letter-spacing: -1.68px;
  margin: 0;
}
@media (min-width: 800px) {
  .display-3 {
    font-size: clamp(32px, calc(32px + (100vw - 800px) * (56 - 32) / (1500 - 800)), 56px);
    line-height: clamp(40px, calc(40px + (100vw - 800px) * (64 - 40) / (1500 - 800)), 64px);
  }
}

.display-4 {
  font-weight: 600;
  font-size: 22px; line-height: 24px;
  letter-spacing: clamp(-0.66px, calc(-0.6px + (100vw - 480px) * (-0.66 - -0.6) / (800 - 480)), -0.6px);
  margin: 0;
}
@media (min-width: 800px) {
  .display-4 {
    font-size: clamp(22px, calc(22px + (100vw - 800px) * (40 - 22) / (1500 - 800)), 40px);
    line-height: clamp(24px, calc(24px + (100vw - 800px) * (44 - 24) / (1500 - 800)), 44px);
    letter-spacing: clamp(-1.2px, calc(-0.66px + (100vw - 800px) * (-1.2 - -0.66) / (1500 - 800)), -0.66px);
  }
}

.display-5 {
  font-weight: 600;
  font-size: clamp(24px, calc(24px + (100vw - 480px) * (26 - 24) / (800 - 480)), 26px);
  line-height: clamp(26px, calc(26px + (100vw - 480px) * (28 - 26) / (800 - 480)), 28px);
  letter-spacing: clamp(-0.78px, calc(-0.72px + (100vw - 480px) * (-0.78 - -0.72) / (800 - 480)), -0.72px);
  margin: 0;
}
@media (min-width: 800px) {
  .display-5 {
    font-size: clamp(26px, calc(26px + (100vw - 800px) * (32 - 26) / (1500 - 800)), 32px);
    line-height: clamp(28px, calc(28px + (100vw - 800px) * (34 - 28) / (1500 - 800)), 34px);
  }
}

.h1-xl {
  font-weight: 600;
  font-size: clamp(32px, calc(32px + (100vw - 480px) * (58 - 32) / (800 - 480)), 58px);
  line-height: clamp(34px, calc(34px + (100vw - 480px) * (60 - 34) / (800 - 480)), 60px);
  letter-spacing: clamp(-2px, calc(-1.28px + (100vw - 480px) * (-2 - -1.28) / (800 - 480)), -1.28px);
  margin: 0;
}
@media (min-width: 800px) {
  .h1-xl {
    font-size: clamp(58px, calc(58px + (100vw - 800px) * (84 - 58) / (1500 - 800)), 84px);
    line-height: clamp(60px, calc(60px + (100vw - 800px) * (86 - 60) / (1500 - 800)), 86px);
    letter-spacing: clamp(-2.52px, calc(-2px + (100vw - 800px) * (-2.52 - -2) / (1500 - 800)), -2px);
  }
}

.h2 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px; line-height: 14px;
  letter-spacing: clamp(0.5px, calc(0.5px + (100vw - 480px) * (1 - 0.5) / (800 - 480)), 1px);
  margin: 0;
  color: var(--accent);
}
@media (min-width: 800px) {
  .h2 {
    font-size: clamp(12px, calc(12px + (100vw - 800px) * (14 - 12) / (1500 - 800)), 14px);
    line-height: clamp(14px, calc(14px + (100vw - 800px) * (16 - 14) / (1500 - 800)), 16px);
    letter-spacing: 1px;
  }
}

.h3 {
  font-weight: 600;
  font-size: clamp(24px, calc(24px + (100vw - 480px) * (26 - 24) / (800 - 480)), 26px);
  line-height: clamp(26px, calc(26px + (100vw - 480px) * (28 - 26) / (800 - 480)), 28px);
  letter-spacing: -0.72px;
  margin: 0;
}
@media (min-width: 800px) {
  .h3 {
    font-size: clamp(26px, calc(26px + (100vw - 800px) * (32 - 26) / (1500 - 800)), 32px);
    line-height: clamp(28px, calc(28px + (100vw - 800px) * (34 - 28) / (1500 - 800)), 34px);
  }
}

.h4 {
  font-weight: 600;
  font-size: clamp(20px, calc(20px + (100vw - 480px) * (22 - 20) / (800 - 480)), 22px);
  line-height: clamp(22px, calc(22px + (100vw - 480px) * (24 - 22) / (800 - 480)), 24px);
  letter-spacing: -0.6px;
  margin: 0;
}
@media (min-width: 800px) {
  .h4 {
    font-size: clamp(22px, calc(22px + (100vw - 800px) * (24 - 22) / (1500 - 800)), 24px);
    line-height: clamp(24px, calc(24px + (100vw - 800px) * (26 - 24) / (1500 - 800)), 26px);
  }
}

.h5 { font-weight: 600; font-size: 16px; line-height: 18px; letter-spacing: -0.48px; margin: 0; }
.h6 { font-weight: 600; font-size: 14px; line-height: 16px; letter-spacing: -0.42px; margin: 0; }

.subtitle-1 {
  font-weight: 500;
  font-size: clamp(16px, calc(16px + (100vw - 480px) * (20 - 16) / (800 - 480)), 20px);
  line-height: clamp(22px, calc(22px + (100vw - 480px) * (28 - 22) / (800 - 480)), 28px);
  letter-spacing: -0.48px;
  margin: 0;
}
@media (min-width: 800px) {
  .subtitle-1 { font-size: 20px; line-height: 28px; }
}

.body-1 {
  font-weight: 400;
  font-size: clamp(14px, calc(14px + (100vw - 480px) * (16 - 14) / (800 - 480)), 16px);
  line-height: clamp(22px, calc(22px + (100vw - 480px) * (24 - 22) / (800 - 480)), 24px);
  margin: 0;
}
@media (min-width: 800px) {
  .body-1 { font-size: 16px; line-height: 24px; }
}

.caption-1 { font-weight: 600; font-size: 14px; line-height: 18px; margin: 0; }
.caption-2 { font-weight: 600; font-size: 12px; line-height: 14px; margin: 0; }
.overline  { font-weight: 600; font-size: 12px; line-height: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 0; }

.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }
.accent{ color: var(--accent); }
.mono  { font-family: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; }

/* ==========================================================================
   КНОПКА — pill, ДС Ontico
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.32px;
  text-align: center;
  border-radius: 999px;
  padding: 16px 24px;
  min-height: 56px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .25s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(70,209,96,0);
}
.btn-primary:hover { box-shadow: 0 0 0 8px rgba(70,209,96,.12), 0 12px 32px rgba(70,209,96,.18); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,.04); border-color: var(--text-muted); }

.btn-disabled {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-arrow::after {
  content: "→";
  font-weight: 500;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* Размер small для футера/якорей */
.btn-sm { min-height: 44px; padding: 12px 16px; font-size: 14px; line-height: 20px; gap: 8px; }
@media (min-width: 800px) { .btn-sm { min-height: 40px; padding: 8px 16px; } }

/* ==========================================================================
   KEYFRAMES — анимации поверх ДС
   ========================================================================== */
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(70,209,96,.16), 0 0 0 0 rgba(70,209,96,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(70,209,96,.06), 0 0 0 10px rgba(70,209,96,0); }
}
@keyframes glowFloat {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.05); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes marqueeRow {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   ХЕДЕР
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 20, 32, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: var(--space-inset-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.brand__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.nav {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
@media (min-width: 800px) {
  .nav { display: inline-flex; }
}
.nav a { transition: color .15s ease; }
.nav a:hover { color: var(--text); }

.site-header .btn {
  min-height: 44px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 20px;
}
@media (min-width: 800px) {
  .site-header .btn { min-height: 40px; padding: 8px 16px; }
}

/* ==========================================================================
   СЕКЦИЯ — базовые отступы и фоны (ритм плотностей)
   ========================================================================== */
.section { padding-block: var(--space-section-md); }
.section--hero { padding-block: 48px var(--space-section-lg); }
.section--lg { padding-block: var(--space-section-lg); }

.section--inverse {
  background: var(--bg-inverse);
  border-block: 1px solid var(--border);
}

.section__head { margin-bottom: var(--space-stack-xl); max-width: 820px; }
.section__head > * + * { margin-top: var(--space-stack-md); }
.section__head .subtitle-1 { color: var(--text-muted); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 80vh, 820px);
  display: flex;
  align-items: center;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: clamp(380px, 50vw, 720px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(70,209,96,.22) 0%, rgba(70,209,96,0) 60%);
  right: -10%;
  top: 10%;
  filter: blur(40px);
  pointer-events: none;
  animation: glowFloat 14s ease-in-out infinite;
  will-change: transform;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-stack-xl);
}
@media (min-width: 800px) {
  .hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-stack-lg);
}
.hero__eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}
.hero__title {
  /* Плакатная подача бренд-вордмарка. TT Ontico Black 900,
     fluid 56–96—128 по якорям ДС (display-1 масштаб) — это бренд-элемент, не слоган. */
  font-weight: 900;
  font-size: clamp(56px, calc(56px + (100vw - 480px) * (96 - 56) / (800 - 480)), 96px);
  line-height: 0.92;
  letter-spacing: -3px;
  position: relative;
  margin: 0;
  text-wrap: balance;
}
@media (min-width: 800px) {
  .hero__title {
    font-size: clamp(96px, calc(96px + (100vw - 800px) * (128 - 96) / (1500 - 800)), 128px);
    letter-spacing: -5px;
  }
}
.hero__title .word { display: inline-block; }
.hero__title .dot { color: var(--accent); display: inline-block; }
.hero__title .underline {
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 96px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  animation: underlineDraw .9s cubic-bezier(.2,.7,.2,1) .5s forwards;
  border-radius: 999px;
}
@keyframes underlineDraw { to { transform: scaleX(1); } }

.hero__lead { margin-top: var(--space-stack-lg); max-width: 640px; color: var(--text-muted); }
.hero__sub  { margin-top: var(--space-stack-base); max-width: 640px; }

.hero__cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-stack-md);
  margin-top: var(--space-stack-xl);
}
.hero__cta-note { color: var(--text-dim); max-width: 460px; }

.hero__side {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-inset-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.hero__side-label {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
  margin-bottom: var(--space-stack-base);
}
.hero__confs {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-xs);
}
.hero__conf {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-block: var(--space-stack-md);
  border-bottom: 1px solid var(--border);
}
.hero__conf:last-child { border-bottom: 0; }
.hero__conf-name { font-weight: 600; font-size: 16px; letter-spacing: -0.3px; }
.hero__conf-meta { color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hero__conf--past .hero__conf-name,
.hero__conf--past .hero__conf-meta { color: var(--text-dim); }
.hero__conf--past .hero__conf-name { font-weight: 500; }

/* ==========================================================================
   "ЧТО ТАКОЕ" — три карточки
   ========================================================================== */
.what-lead { max-width: 760px; color: var(--text-muted); margin-bottom: var(--space-stack-xl); }

.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-grid-md);
}
@media (min-width: 800px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-inset-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-md);
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-surface-2);
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(70,209,96,.12), rgba(70,209,96,0) 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card__num {
  font-family: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}
.card__body { color: var(--text-muted); }

.callout {
  margin-top: var(--space-stack-xl);
  padding: var(--space-inset-xl);
  padding-left: calc(var(--space-inset-xl) + var(--space-inset-md));
  background: linear-gradient(180deg, rgba(70,209,96,.06), rgba(70,209,96,.02));
  border: 1px solid rgba(70,209,96,.18);
  border-radius: 16px;
  position: relative;
}
.callout::before {
  content: "";
  position: absolute;
  left: var(--space-inset-md); top: var(--space-inset-xl); bottom: var(--space-inset-xl);
  width: 3px; border-radius: 2px;
  background: var(--accent);
}

/* ==========================================================================
   "КТО В КЛУБЕ" — два среза
   ========================================================================== */
.audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-stack-xl);
}
@media (min-width: 800px) { .audience { grid-template-columns: 1fr 1fr; gap: var(--space-grid-lg); } }

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-inset-xl);
}
.panel__title { margin-bottom: var(--space-stack-lg); }

.bars { display: flex; flex-direction: column; gap: var(--space-stack-md); }
.bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-sm);
  --bar-delay: 0s;
}
.bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #6CE682);
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--bar-delay);
}
.bar__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.bar__track {
  height: 8px;
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  overflow: hidden;
}
.bar.is-visible .bar__fill { width: var(--w, 0%); }
.bar--secondary .bar__fill { background: rgba(255,255,255,.55); }

.scale {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-md);
  margin-top: var(--space-stack-xs);
}
.scale__seg {
  display: flex; align-items: center; gap: var(--space-inset-sm);
  padding: var(--space-inset-md);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  position: relative;
}
.scale__dot {
  width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto;
}
.scale__seg .scale__name { font-weight: 600; font-size: 16px; letter-spacing: -0.2px; }
.scale__seg .scale__hint { color: var(--text-muted); font-size: 12px; }

.scale--composite {
  display: flex; flex-direction: row;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: var(--space-stack-base);
}
.scale--composite > div {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .5px;
  transition: flex .9s cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   "О ЧЁМ ГОВОРИМ" — категории + облако
   ========================================================================== */
.topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-grid-sm);
}
@media (min-width: 800px) { .topics-grid { grid-template-columns: repeat(4, 1fr); } }

.topic {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-inset-md);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.topic:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.topic__no {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  font-weight: 600;
  align-self: flex-start;
}
.topic__name {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.2px;
  color: var(--text);
}

.cloud {
  margin-top: var(--space-stack-xl);
  padding: var(--space-inset-xl);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  border: 1px solid var(--border);
}
.cloud__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-stack-md);
  margin-bottom: var(--space-stack-lg);
}
.cloud__hint { color: var(--text-muted); }
.cloud__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-stack-md);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.4;
  text-wrap: balance;
}
.tag--lg { font-size: 18px; padding: 12px 20px; background: rgba(70,209,96,.08); border-color: rgba(70,209,96,.22); }
.tag--md { font-size: 16px; padding: 12px 16px; }
.tag--sm { font-size: 14px; padding: 8px 12px; color: var(--text-muted); }

/* ==========================================================================
   ВСТРЕЧИ КЛУБА
   ========================================================================== */
.meets-upcoming {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-grid-md);
}
@media (min-width: 800px) { .meets-upcoming { grid-template-columns: 1fr 1fr; } }

.meet {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--space-inset-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-base);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background .3s ease;
}
.meet:hover {
  transform: translateY(-3px);
  border-color: rgba(70,209,96,.35);
  background: var(--bg-surface-2);
}
.meet::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(70,209,96,0));
}
.meet__date-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-stack-sm);
  margin-bottom: var(--space-stack-xs);
}
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-stack-sm);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600; font-size: 14px; letter-spacing: 0.2px;
}
.date-pill__dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500; font-size: 14px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
a.venue-pill { text-decoration: none; }
a.venue-pill:hover {
  color: var(--accent);
  border-color: rgba(70,209,96,.35);
  background: rgba(70,209,96,.08);
}
.venue-pill__arrow {
  display: inline-block;
  font-size: 12px;
  transition: transform .2s ease;
  opacity: .7;
}
a.venue-pill:hover .venue-pill__arrow { transform: translate(2px, -2px); opacity: 1; }

.meet__topic-label { color: var(--text-dim); margin-top: var(--space-stack-xs); }
.meet__theme { color: var(--text); margin-top: var(--space-stack-xs); }
.meet__desc  { color: var(--text-muted); margin-top: var(--space-stack-xs); }
.meet__format {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-stack-sm);
  padding-top: var(--space-stack-base);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.meet__format::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.meets-past {
  margin-top: var(--space-stack-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.past {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-stack-sm);
  padding: var(--space-inset-lg) var(--space-inset-xl);
  background: rgba(255,255,255,.015);
  border-bottom: 1px solid var(--border);
}
.past:last-child { border-bottom: 0; }
@media (min-width: 800px) {
  .past { grid-template-columns: 220px 1fr; align-items: center; gap: 32px; padding-block: var(--space-inset-lg); }
}
.past__date { color: var(--text); font-weight: 500; font-size: 14px; letter-spacing: -0.2px; }
.past__venue { color: var(--text-dim); font-size: 12px; }
.past__theme { color: var(--text-muted); }
.past__theme strong { color: var(--text); font-weight: 500; }
.past__count {
  font-family: 'SF Mono', ui-monospace, monospace;
  color: var(--accent);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.4px;
}
.past__count small { color: var(--text-dim); font-weight: 500; font-size: 12px; }

.meets-past__head { padding: var(--space-inset-sm) var(--space-inset-xl); color: var(--text-dim); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }

/* ==========================================================================
   ФОРМАТ ВСТРЕЧ — inverse-секция (манифест)
   ========================================================================== */
.format {
  position: relative;
  overflow: hidden;
}
.format__grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 70% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 50%, #000, transparent 80%);
  pointer-events: none;
}
.format__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-stack-xl);
}
@media (min-width: 800px) {
  .format__inner { grid-template-columns: 1fr 1fr; gap: var(--space-grid-lg); align-items: start; }
}
.format__statement { letter-spacing: -1.5px; }
.format__statement .accent-word {
  background: linear-gradient(180deg, transparent 60%, rgba(70,209,96,.25) 60%);
  padding-inline: 4px;
}

.format__pillars { display: flex; flex-direction: column; gap: var(--space-stack-lg); padding-top: var(--space-stack-md); }
.pillar { display: flex; gap: var(--space-stack-base); align-items: flex-start; }
.pillar__no {
  flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(70,209,96,.4);
  color: var(--accent);
  font-family: 'SF Mono', ui-monospace, monospace;
  font-weight: 600; font-size: 14px;
}
.pillar__title { color: var(--text); margin-bottom: var(--space-stack-xs); }
.pillar__body { color: var(--text-muted); }

/* ==========================================================================
   АРТЕФАКТЫ / ГОЛОСА — placeholder
   ========================================================================== */
.placeholder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-grid-md);
}
@media (min-width: 800px) { .placeholder-grid { grid-template-columns: 1fr 1fr; } }

.placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: var(--space-inset-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-base);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.012) 0 12px,
      transparent 12px 24px
    ),
    rgba(255,255,255,.01);
  min-height: 200px;
  position: relative;
}
.placeholder__badge {
  align-self: flex-start;
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600; font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.placeholder__title { color: var(--text); }
.placeholder__desc  { color: var(--text-muted); }
.placeholder__action { margin-top: auto; padding-top: var(--space-stack-md); }

/* Видео-слоты 9:16 */
.voices-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-grid-md);
}
@media (min-width: 800px) {
  .voices-strip { grid-template-columns: repeat(4, 1fr); }
}
.voice-slot {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.012) 0 12px,
      transparent 12px 24px
    ),
    rgba(255,255,255,.015);
  display: flex;
  align-items: flex-end;
  padding: var(--space-inset-md);
  overflow: hidden;
  margin: 0;
}
.voice-slot__label {
  color: var(--text-muted);
  font-weight: 600; font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.voice-slot::after {
  content: "9:16";
  position: absolute;
  top: 12px; right: 12px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-dim);
}

/* Слот с реальным видео: убираем штриховой плейсхолдер и аспект-маркер,
   видео заполняет слот, подпись поверх нижнего градиента. */
.voice-slot--video {
  border-style: solid;
  border-color: var(--border);
  background: var(--bg-inverse);
  padding: 0;
  display: block;
}
.voice-slot--video::after { content: none; }
.voice-slot--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-inverse);
}
.voice-slot__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px var(--space-inset-md) var(--space-inset-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  pointer-events: none;
}
.voice-slot__name {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
}
.voice-slot__role {
  color: var(--text-muted);
  font-size: 12px;
}

/* ==========================================================================
   ФИНАЛЬНЫЙ CTA
   ========================================================================== */
.final {
  text-align: left;
}
.final__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-stack-xl);
  align-items: end;
}
@media (min-width: 800px) {
  .final__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-grid-lg); }
}
.final__lead { color: var(--text-muted); margin-top: var(--space-stack-lg); max-width: 580px; }
.final__cta { display: flex; flex-direction: column; gap: var(--space-stack-md); align-items: flex-start; }
.final__note { color: var(--text-dim); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-inverse);
  border-top: 1px solid var(--border);
  padding-block: var(--space-section-md);
  color: var(--text-muted);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-stack-xl);
}
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-grid-lg); }
}
.footer__col-title {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-stack-md);
}
.footer__list { display: flex; flex-direction: column; gap: var(--space-stack-sm); }
.footer__list a { color: var(--text); transition: color .15s; }
.footer__list a:hover { color: var(--accent); }
.footer__link { color: var(--accent); border-bottom: 1px solid rgba(70,209,96,.3); transition: border-color .2s; }
.footer__link:hover { border-bottom-color: var(--accent); }
.footer__contact { color: var(--text); }
.footer__contact a { color: var(--accent); }
.footer__bottom {
  margin-top: var(--space-stack-xl);
  padding-top: var(--space-stack-base);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-stack-md) var(--space-stack-lg);
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 12px;
}

/* ==========================================================================
   Reveal — мягкая страничная подача (без скрытия контента)
   ========================================================================== */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
main { animation: pageFadeIn .5s ease both; }

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .bar__fill { transition: none; }
  html { scroll-behavior: auto; }
  .brand__dot,
  .date-pill__dot,
  .hero__glow,
  .marquee__track { animation: none !important; }
  .hero__title .underline { animation: none; transform: scaleX(1); }
}

/* Stagger reveal — animation-delay по nth-child */
.cards-3 .reveal:nth-child(1) { animation-delay: 0ms; }
.cards-3 .reveal:nth-child(2) { animation-delay: 90ms; }
.cards-3 .reveal:nth-child(3) { animation-delay: 180ms; }
.topics-grid .reveal:nth-child(1) { animation-delay: 0ms; }
.topics-grid .reveal:nth-child(2) { animation-delay: 50ms; }
.topics-grid .reveal:nth-child(3) { animation-delay: 100ms; }
.topics-grid .reveal:nth-child(4) { animation-delay: 150ms; }
.topics-grid .reveal:nth-child(5) { animation-delay: 200ms; }
.topics-grid .reveal:nth-child(6) { animation-delay: 250ms; }
.topics-grid .reveal:nth-child(7) { animation-delay: 300ms; }
.topics-grid .reveal:nth-child(8) { animation-delay: 350ms; }
.voices-strip .reveal:nth-child(1) { animation-delay: 0ms; }
.voices-strip .reveal:nth-child(2) { animation-delay: 90ms; }
.voices-strip .reveal:nth-child(3) { animation-delay: 180ms; }
.voices-strip .reveal:nth-child(4) { animation-delay: 270ms; }
.meets-upcoming .reveal:nth-child(1) { animation-delay: 0ms; }
.meets-upcoming .reveal:nth-child(2) { animation-delay: 120ms; }

/* Hero — лёгкий стаггер внутри */
.hero__copy .reveal:nth-child(1) { animation-delay: 0ms; }
.hero__copy .reveal:nth-child(2) { animation-delay: 80ms; }
.hero__copy .reveal:nth-child(3) { animation-delay: 160ms; }
.hero__copy .reveal:nth-child(4) { animation-delay: 240ms; }
.hero__copy .reveal:nth-child(5) { animation-delay: 320ms; }
.hero__side.reveal { animation-delay: 400ms; }

.bars .bar:nth-child(1) .bar__fill { transition-delay: 0ms; }
.bars .bar:nth-child(2) .bar__fill { transition-delay: 100ms; }
.bars .bar:nth-child(3) .bar__fill { transition-delay: 200ms; }
.bars .bar:nth-child(4) .bar__fill { transition-delay: 300ms; }
.bars .bar:nth-child(5) .bar__fill { transition-delay: 400ms; }
.bars .bar:nth-child(6) .bar__fill { transition-delay: 500ms; }
.bars .bar:nth-child(7) .bar__fill { transition-delay: 600ms; }

/* ==========================================================================
   УТП-ЗАТРАВКА — кликабельная карточка-якорь к секции «Формат»
   ========================================================================== */
.teaser-section {
  padding-block: var(--space-section-sm);
}
.teaser-card {
  display: block;
  position: relative;
  padding: var(--space-inset-xl);
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 100% at 20% 0%, rgba(70,209,96,.08), transparent 60%),
    var(--bg-surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
.teaser-card:hover {
  border-color: rgba(70,209,96,.35);
  transform: translateY(-2px);
  background:
    radial-gradient(ellipse 60% 100% at 20% 0%, rgba(70,209,96,.14), transparent 60%),
    var(--bg-surface-2);
}
.teaser-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.teaser-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-stack-base);
}
.teaser-card__eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}
.teaser-card__text {
  /* Крупная плакатная подача — близко к display-4 ДС */
  font-weight: 600;
  font-size: clamp(24px, calc(24px + (100vw - 480px) * (40 - 24) / (1500 - 480)), 40px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0;
  max-width: 900px;
  text-wrap: balance;
}
.teaser-card__hl {
  color: var(--accent);
}
.teaser-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-stack-lg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
  color: var(--text-muted);
  transition: color .2s ease;
}
.teaser-card:hover .teaser-card__cta { color: var(--text); }
.teaser-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background .25s ease;
}
.teaser-card:hover .teaser-card__arrow {
  transform: translateY(3px);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==========================================================================
   MARQUEE — бесконечный трек конференций
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,.015);
  padding-block: var(--space-inset-md);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marqueeRow 36s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}
.marquee__item .meta {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 14px;
}
.marquee__city {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.marquee__city--spb {
  background: rgba(70,209,96,.12);
  border-color: rgba(70,209,96,.3);
  color: var(--accent);
}
.marquee__item--past {
  color: var(--text-dim);
}
.marquee__item--past::before {
  background: rgba(255,255,255,.15);
}
.marquee__item--past .meta {
  color: var(--text-dim);
  opacity: .7;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Утилиты */
.stack-sm > * + * { margin-top: var(--space-stack-sm); }
.stack-md > * + * { margin-top: var(--space-stack-md); }
.stack-base > * + * { margin-top: var(--space-stack-base); }
.stack-lg > * + * { margin-top: var(--space-stack-lg); }

/* ==========================================================================
   COOKIE-БАННЕР
   ========================================================================== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 120%);
  z-index: 1000;
  width: min(960px, calc(100vw - 24px));
  margin-bottom: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.03) inset;
  opacity: 0;
  visibility: hidden;
  transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .4s ease, visibility .4s;
}
.cookie.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.cookie__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(16px, 2.4vw, 22px) clamp(18px, 2.6vw, 26px);
}
.cookie__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}
.cookie__link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color .2s ease;
}
.cookie__link:hover { text-decoration-color: var(--accent); }
.cookie__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie__btn {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}
.cookie__btn:active { transform: translateY(1px); }
.cookie__btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.cookie__btn--accent:hover { background: #5ce077; }
.cookie__btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.cookie__btn--ghost:hover { color: var(--text); border-color: var(--text-dim); }

@media (max-width: 600px) {
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie__actions { justify-content: stretch; }
  .cookie__btn { flex: 1 1 auto; padding: 13px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie { transition: opacity .2s ease, visibility .2s; transform: translate(-50%, 0); }
}
