/* ============================================================
   GEO Trust Index 2.0 — тёмный премиум
   Референсы: AURA AI + Louvre
   ============================================================ */

/* --- Токены --- */
:root {
  --bg: #050607;
  --bg-2: #0a0d10;
  --bg-3: #10161a;
  --panel: rgba(20, 28, 32, 0.55);
  --panel-solid: #0d1215;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecef;
  --text-2: #a8b2b9;
  --text-3: #6b7680;
  --accent: #2FE0A8;
  --accent-2: #35D0BA;
  --accent-dim: #1a7a5c;
  --accent-glow: rgba(47, 224, 168, 0.45);
  --leader: #FFD37A;
  --gold-glow: rgba(255, 211, 122, 0.4);
  --danger: #ff6b6b;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 10px;

  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Onest', 'Lato', sans-serif;

  --max-w: 1440px;
  --sidebar-w: 280px;
  --content-max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 21.5px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

section, main, header, footer { max-width: 100vw; overflow-x: clip; }
#hero { overflow: hidden; }

/* Общий тёмный фон-градиент */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 224, 168, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(53, 208, 186, 0.05), transparent 60%),
    #050607;
  z-index: -2;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Типографика --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

h2 {
  font-size: clamp(43px, 5.36vw, 75px);
  font-weight: 300;
  margin-bottom: 32px;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(29.5px, 2.95vw, 40px);
  font-weight: 400;
  margin: 28px 0 16px;
}

h4 {
  font-size: clamp(24px, 1.88vw, 29.5px);
  font-weight: 500;
  margin: 20px 0 10px;
  font-family: var(--font-body);
  color: var(--text);
}

p { margin: 0 0 16px; color: var(--text-2); font-size: 20px; line-height: 1.65; }
p strong { color: var(--text); font-weight: 600; }
em { color: var(--text-3); font-style: italic; }

/* --- Layout основной --- */
main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

section {
  padding: 100px 0;
  position: relative;
}

section > .container > p,
section > .container > ol > li,
section > .container > ul > li {
  max-width: 860px;
}

/* --- Site header (липкая шапка) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  text-decoration: none;
}

.brand sup { font-size: 12px; opacity: 0.6; }

.brand::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
  animation: pulse 2.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 18px;
  color: var(--text-2);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .18s, background .18s;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .main-nav { display: none; }
}

.header-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
}

.header-cta__meta {
  font-size: 16px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

/* Menu toggle button (hamburger) */
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  background: rgba(255, 255, 255, 0.02);
}

.menu-toggle:hover {
  border-color: var(--accent);
  background: rgba(47, 224, 168, 0.08);
}

@media (min-width: 1200px) {
  .menu-toggle { display: none; }
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .25s, opacity .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mega menu (dropdown) */
.mega-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(5, 6, 7, 0.96);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s, visibility .25s;
  z-index: 99;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.mega-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mega-menu__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 32px;
}

.mega-menu__title {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(47, 224, 168, 0.2);
}

.mega-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-menu ul a {
  display: block;
  padding: 10px 0;
  font-size: 19px;
  color: var(--text-2);
  transition: color .18s, padding-left .18s;
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.mega-menu ul a:hover {
  color: var(--accent);
  padding-left: 18px;
  border-left-color: var(--accent);
}

@media (max-width: 640px) {
  .mega-menu__inner { padding: 24px 20px; gap: 28px; }
  .header-cta__meta { display: none; }
}

.date-dot::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- Layout with sidebar --- */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .with-sidebar {
    grid-template-columns: var(--sidebar-w) 1fr;
    padding: 0 40px;
  }
}

.content-col { min-width: 0; }
.content-col section { min-width: 0; }

/* --- Sidebar TOC --- */
.toc {
  display: none;
}

@media (min-width: 1200px) {
  .toc {
    display: block;
    position: sticky;
    top: 90px;
    align-self: start;
    /* Не задаём max-height по умолчанию — 24 пункта влезают на любой ≥1080px монитор.
       На маленьких экранах включаем внутренний скролл (см. ниже). */
    padding: 24px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 224, 168, 0.35) transparent;
  }

  /* Если пунктов реально не влезло — включаем аккуратный скролл только тогда */
  @media (max-height: 900px) {
    .toc {
      max-height: calc(100vh - 110px);
      overflow-y: auto;
      /* мягкая fade-маска сверху/снизу вместо обычного скроллбара */
      mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
      -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }
    .toc::-webkit-scrollbar { width: 3px; }
    .toc::-webkit-scrollbar-thumb { background: rgba(47, 224, 168, 0.35); border-radius: 999px; }
    .toc::-webkit-scrollbar-track { background: transparent; }
  }

  .toc__title {
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-3);
    margin-bottom: 16px;
    padding-left: 12px;
  }

  .toc ol {
    counter-reset: toc;
    list-style: none;
    padding: 0;
  }

  .toc li {
    counter-increment: toc;
    position: relative;
  }

  .toc a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 12px 7px 12px;
    font-size: 12px;
    color: var(--text-3);
    border-left: 1px solid var(--line);
    transition: color .18s, border-color .18s, background .18s;
    line-height: 1.35;
  }

  .toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    opacity: 0.6;
    min-width: 20px;
  }

  .toc a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--text-3);
  }

  .toc a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: linear-gradient(90deg, rgba(47, 224, 168, 0.08), transparent);
  }

  .toc a.active::before {
    color: var(--accent);
    opacity: 1;
  }
}

/* --- Hero --- */
#hero {
  min-height: auto;
  padding: 48px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  #hero { padding: 56px 0 90px; }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ==============================================================
   HERO STAGE — «неоновый портал + фигура из частиц»
   Композиция: portal-ring.jpg / cta-portal.jpg (задник, вращение)
                + hero-sculpture.jpg (фигура, поверх, лёгкое дыхание)
                + orbit particles (canvas)
                + мышь-параллакс
   ============================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 55%, rgba(47, 224, 168, 0.10), transparent 70%),
    radial-gradient(circle at 50% 50%, #0a1015 0%, #04070a 55%, #000 100%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 100px rgba(47, 224, 168, 0.18),
    inset 0 0 0 1px rgba(47, 224, 168, 0.14);
  isolation: isolate;
  perspective: 1200px;
}

/* Слой с параллаксом (двигается за курсором) */
.hero-stage__parallax {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

/* Вертикальные «музейные» полосы (Louvre) */
.hero-stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 16.6666% 100%;
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

/* Задник — портал/кольцо */
.hero-stage__portal {
  position: absolute;
  inset: -18%;
  background-image: url('img/cta-portal.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(1.25) brightness(1.15);
  animation: heroPortalSpin 60s linear infinite, heroPortalBreath 6s ease-in-out infinite;
  z-index: 0;
  transform-origin: center center;
}

@keyframes heroPortalSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes heroPortalBreath {
  0%, 100% { filter: saturate(1.15) brightness(1.00); }
  50%      { filter: saturate(1.30) brightness(1.15); }
}

/* Halo — большой мягкий белый ореол в центре */
.hero-stage__halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 62%; aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,224,168,0.28), rgba(47,224,168,0.06) 55%, transparent 72%);
  filter: blur(18px);
  z-index: 1;
  animation: heroHaloPulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroHaloPulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}

/* Бюст Цезаря — центральный герой (в круге, поверх портала) */
.hero-stage__figure {
  position: absolute;
  top: 50%; left: 50%;
  width: 62%; aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  background-image: url('img/hero-caesar-poster.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 30%;
  border-radius: 50%;
  filter: contrast(1.06) saturate(1.05) brightness(1.02);
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.7),
    inset 0 0 90px rgba(0,0,0,0.5),
    0 0 60px rgba(47, 224, 168, 0.35),
    0 0 120px rgba(47, 224, 168, 0.18);
  animation: heroFigureFloat 7s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
/* мягкое затухание на краях круга, чтобы бюст «вплавлялся» в темноту, а не имел резкий контур */
.hero-stage__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(4,7,10,0.85) 85%, #04070a 100%);
  pointer-events: none;
}

@keyframes heroFigureFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -52%) scale(1.02); }
}

/* Canvas для орбитирующих частиц (искр вокруг фигуры) */
.hero-stage__particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Верхний луч спота (сверху вниз) */
.hero-stage__spot {
  position: absolute;
  top: -10%; left: 50%;
  width: 45%; height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.22), transparent 65%);
  filter: blur(8px);
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Тонкий scanline поверх */
.hero-stage__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 5;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Внутренняя рамка */
.hero-stage__frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(47, 224, 168, 0.18);
  border-radius: calc(var(--radius-lg) - 12px);
  pointer-events: none;
  z-index: 6;
}

/* Уголки */
.hero-stage__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--accent);
  z-index: 6;
  pointer-events: none;
  opacity: 0.85;
}
.hero-stage__corner--tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.hero-stage__corner--tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.hero-stage__corner--bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.hero-stage__corner--br { bottom: 18px; right: 18px; border-left: none; border-top: none; }

/* Ярлык LIVE */
.hero-stage__badge-live {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(5, 10, 12, 0.55);
  border: 1px solid rgba(47, 224, 168, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-stage__badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

/* --- Legacy: старые классы, оставлены пустыми на всякий случай, чтобы не сломать разметку --- */
.hero-video-wrap, .hero-video, .hero-video-glow, .hero-video-scanlines { display: none; }

/* Плашка с лидером под видео */
.hero-badge {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(20, 28, 32, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-badge__label {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge__label::before {
  content: '★';
  font-size: 16px;
}

.hero-badge__row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-badge__score {
  font-family: var(--font-display);
  font-size: 75px;
  font-weight: 100;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.hero-badge__score sub {
  font-size: 0.25em;
  color: var(--text-3);
  vertical-align: baseline;
  font-weight: 300;
  margin-left: 4px;
}

.hero-badge__name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 17.5px;
}

.hero-badge__name strong {
  font-size: 23px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-badge__name span {
  font-size: 16px;
  color: var(--text-3);
}

#hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* старые правила hero-video/glow/ring убраны — новые ниже в блоке HERO VIDEO */

/* hero rings/sculpture заменены на видео */

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 480px);
    gap: 60px;
  }
}

.hero-left {
  position: relative;
  max-width: 620px;
}

.hero-right {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(51px, 7.37vw, 110px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--text);
  text-wrap: balance;
}

#hero h1 em, #hero h1 .accent {
  font-style: normal;
  color: var(--accent);
  font-weight: 300;
}

.lead {
  font-size: clamp(20px, 1.54vw, 23px);
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 620px;
}

.lead strong { color: var(--text); font-weight: 600; }
.lead a { color: var(--accent); border-bottom: 1px solid rgba(47, 224, 168, 0.3); }

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-meta li {
  position: relative;
  padding-left: 22px;
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.55;
}

.hero-meta li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta a,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  transition: all .18s;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-family: var(--font-body);
}

.hero-cta a:hover, .btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hero-cta a:first-child, .btn-primary {
  background: var(--accent);
  color: #002018;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(47, 224, 168, 0.25);
}

.hero-cta a:first-child:hover, .btn-primary:hover {
  background: #37f0b5;
  box-shadow: 0 12px 40px rgba(47, 224, 168, 0.35);
}

/* hero-card убраны — заменены на hero-badge под видео */

/* Top-4..10 grid */
.top4-10 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

@media (min-width: 900px) {
  .top4-10 { grid-template-columns: 1fr 1fr; }
}

.rating-rest-header {
  margin: 48px 0 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.rating-rest-header h3 {
  font-size: 29.5px;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 400;
}

.rating-rest-header p {
  margin: 0;
  font-size: 19px;
  color: var(--text-3);
}

/* --- Section headers style --- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* --- #numbers stats --- */
#numbers {
  position: relative;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  max-width: none;
}

@media (max-width: 1023px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stats li {
  background: var(--bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}

.stats li:hover {
  background: var(--bg-2);
}

.stats li::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.stats li:hover::before { opacity: 0.6; }

.stats strong {
  font-family: var(--font-display);
  font-size: clamp(48px, 4.82vw, 69.5px);
  font-weight: 200;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats span {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.5;
}

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin: 24px 0 32px;
  scrollbar-color: var(--accent-dim) rgba(255, 255, 255, 0.04);
  scrollbar-width: auto;
  position: relative;
}

.table-wrap::-webkit-scrollbar {
  height: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  margin: 0 12px;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
  border: 2px solid rgba(5, 6, 7, 0.5);
}
.table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Индикатор "прокрутите" на мобильных */
.table-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 12px;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(5, 6, 7, 0.6));
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

@media (max-width: 900px) {
  .table-wrap::after { opacity: 1; }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
  min-width: 640px;
}

thead {
  background: rgba(47, 224, 168, 0.04);
}

th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 500;
  color: var(--text);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-strong);
  background: #0a0d10;
}

td {
  padding: 14px 18px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}

td strong { color: var(--text); font-weight: 600; }

tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
tbody tr:last-child td { border-bottom: none; }

/* --- Methodology special: formula box --- */
.formula-box {
  background: linear-gradient(135deg, rgba(47, 224, 168, 0.08), rgba(47, 224, 168, 0.02));
  border: 1px solid rgba(47, 224, 168, 0.2);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 28px 0;
  font-family: var(--font-display);
}

.formula-box p {
  color: var(--text);
  font-size: 23px;
  margin: 0;
  line-height: 1.5;
}

.formula-box strong { color: var(--accent); font-weight: 400; }

/* --- Company cards (main rating) --- */
#rating .company-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 17px;
  color: var(--text-3);
}

.company-legend span strong { color: var(--accent); font-weight: 600; }

.top3-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.company {
  background: rgba(20, 28, 32, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}

.company:hover { border-color: var(--line-strong); }

.company > header {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 20px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.company .place {
  font-family: var(--font-display);
  font-size: 75px;
  font-weight: 100;
  color: var(--text-3);
  line-height: 1;
  letter-spacing: -0.04em;
  grid-row: 1 / 3;
  align-self: center;
  min-width: 64px;
  text-align: center;
  position: relative;
}

.company h3 {
  font-size: 29.5px;
  margin: 0;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text);
  align-self: end;
  letter-spacing: -0.01em;
}

.company h3 a { color: var(--text); }
.company h3 a:hover { color: var(--accent); }

.company .domain {
  font-size: 16px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 8px;
}

.company .score {
  align-self: start;
  margin: 0;
  font-size: 19px;
  color: var(--text-3);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.company .score strong {
  font-family: var(--font-display);
  font-size: 43px;
  font-weight: 200;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.company .score .raw {
  font-size: 16px;
  color: var(--text-3);
}

.company h4 {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin: 0 0 14px;
  font-weight: 500;
  font-family: var(--font-body);
}

/* Factor bars */
.factors {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.factors li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

@media (min-width: 640px) {
  .factors li {
    grid-template-columns: 180px 1fr 70px;
    gap: 16px;
    align-items: center;
  }
}

.f-name {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 500;
}

.f-val {
  font-size: 16px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 500;
}

/* Стилизованные meter-бары */
.factors meter {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  overflow: hidden;
  display: block;
}

.factors meter::-webkit-meter-bar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: none;
  height: 6px;
}
.factors meter::-webkit-meter-optimum-value,
.factors meter::-webkit-meter-suboptimum-value,
.factors meter::-webkit-meter-even-less-good-value {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.factors meter::-moz-meter-bar {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
}

/* Facts (dl) */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

.facts > div {
  background: rgba(255, 255, 255, 0.015);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.facts dt {
  font-size: 14.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.facts dd {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}

.sw {
  font-size: 17.5px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.sw strong { color: var(--text); font-weight: 600; }

.company details {
  background: rgba(47, 224, 168, 0.04);
  border: 1px solid rgba(47, 224, 168, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 8px;
}

.company details summary {
  cursor: default;
  list-style: none;
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.company details summary::-webkit-details-marker { display: none; }
.company details summary::before {
  content: '⚠ ';
  color: var(--accent);
}

.company details p {
  font-size: 17.5px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* --- Top-3: специальное оформление --- */
.company--top {
  padding: 40px;
}

.company--top::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.company--1 {
  background: linear-gradient(135deg, rgba(47, 224, 168, 0.06), rgba(20, 28, 32, 0.6));
  box-shadow: 0 30px 80px rgba(47, 224, 168, 0.12);
}

.company--1::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent), rgba(47, 224, 168, 0.3), transparent, var(--accent-2));
}

.company--1 .place {
  color: var(--accent);
  font-size: 96.5px;
  text-shadow: 0 0 40px var(--accent-glow);
}

.company--2 .place, .company--3 .place {
  color: var(--text-2);
  font-size: 86px;
}

.badge-leader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(47, 224, 168, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
  border: 1px solid rgba(47, 224, 168, 0.3);
}

.badge-leader::before {
  content: '★';
  font-size: 13.5px;
}

/* Leader extra tariffs */
.leader-extra {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.leader-extra > ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (min-width: 720px) {
  .leader-extra > ul { grid-template-columns: repeat(3, 1fr); }
}

.leader-extra li {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}

.leader-extra li:hover {
  border-color: rgba(47, 224, 168, 0.3);
  transform: translateY(-2px);
}

.leader-extra li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.leader-extra li:not(:first-child) strong { color: var(--text); }

/* --- Rating list (11-50) grid --- */
.rating-rest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 720px) {
  .rating-rest { grid-template-columns: repeat(2, 1fr); }
}

.rating-rest .company {
  padding: 24px;
  border-radius: var(--radius);
}

.rating-rest .company > header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  gap: 2px 16px;
}

.rating-rest .company .place {
  font-size: 53.5px;
  min-width: 48px;
}

.rating-rest .company h3 {
  font-size: 23px;
  font-weight: 500;
}

.rating-rest .company .score strong {
  font-size: 32px;
}

.rating-rest .company h4 { margin-top: 4px; }

.rating-rest .factors li {
  grid-template-columns: 140px 1fr 56px;
  gap: 10px;
}

.rating-rest .facts {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .rating-rest .facts { grid-template-columns: 1fr 1fr; }
}

/* --- Section dividers --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0 auto;
  max-width: 900px;
}

/* --- Content lists --- */
ol.numbered {
  counter-reset: item;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  max-width: 860px;
}

ol.numbered li {
  counter-increment: item;
  position: relative;
  padding-left: 48px;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.65;
}

ol.numbered li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--accent);
  font-weight: 400;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(47, 224, 168, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

ol.numbered li strong { color: var(--text); font-weight: 600; }

/* Regular ol */
section ol:not(.numbered):not(.toc ol) {
  counter-reset: n;
  padding-left: 0;
  margin: 16px 0;
  max-width: 860px;
}

section ol:not(.numbered):not(.toc ol) > li {
  counter-increment: n;
  position: relative;
  padding: 8px 0 8px 40px;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.65;
}

section ol:not(.numbered):not(.toc ol) > li::before {
  content: counter(n) ".";
  position: absolute;
  left: 0; top: 8px;
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 500;
  width: 28px;
}

section ol:not(.numbered):not(.toc ol) > li strong { color: var(--text); font-weight: 600; }

/* Regular ul */
section ul:not(.stats):not(.hero-meta):not(.hero-cta):not(.factors):not(.leader-extra > ul):not(.toc ul):not(.main-nav ul):not(.platforms-list):not(.services-list) {
  padding-left: 0;
  margin: 16px 0;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

section ul:not(.stats):not(.hero-meta):not(.hero-cta):not(.factors):not(.leader-extra > ul):not(.toc ul):not(.main-nav ul):not(.platforms-list):not(.services-list) > li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.65;
}

section ul:not(.stats):not(.hero-meta):not(.hero-cta):not(.factors):not(.leader-extra > ul):not(.toc ul):not(.main-nav ul):not(.platforms-list):not(.services-list) > li::before {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 1px;
  background: var(--accent);
}

section ul li strong { color: var(--text); font-weight: 600; }

/* --- Special: story cards --- */
.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}

@media (min-width: 720px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}

.story {
  background: rgba(20, 28, 32, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.story::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(47, 224, 168, 0.15), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.story h4 {
  color: var(--accent);
  font-size: 21.5px;
  margin: 0 0 12px;
  font-weight: 500;
  position: relative;
}

.story p { position: relative; }

/* --- Guide steps --- */
.guide-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.guide-step:last-child { border-bottom: none; }

.guide-step__num {
  font-family: var(--font-display);
  font-size: 53.5px;
  font-weight: 100;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* --- FAQ --- */
.faq-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.faq-controls button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  color: var(--text-2);
  transition: all .2s;
  background: transparent;
}

.faq-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group > h3 {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 32px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(47, 224, 168, 0.2);
  font-family: var(--font-body);
  font-weight: 500;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }

.faq-item__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 23px;
  font-weight: 500;
  color: var(--text);
  padding: 4px 0;
  font-family: var(--font-body);
  line-height: 1.4;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  font-weight: 200;
  transition: transform .25s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item p { margin: 12px 0 0; font-size: 19.5px; }

/* --- Glossary --- */
.glossary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  counter-reset: gloss;
  padding: 0 !important;
  margin: 24px 0 !important;
  max-width: none !important;
}

@media (min-width: 720px) {
  .glossary-list { grid-template-columns: 1fr 1fr; }
}

.glossary-list li {
  counter-increment: gloss;
  background: var(--bg);
  padding: 20px 24px !important;
  font-size: 18px !important;
  color: var(--text-2) !important;
  line-height: 1.55 !important;
  position: relative;
  padding-left: 24px !important;
}

.glossary-list li::before {
  content: none !important;
}

.glossary-list li strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 19px;
}

.glossary-list li::after {
  content: counter(gloss, decimal-leading-zero);
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* --- Disclaimers --- */
#disclaimers ol {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px !important;
  max-width: none !important;
}

/* --- Footer --- */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

#footer-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.site-footer p {
  max-width: 900px;
  margin: 0 auto 12px;
  padding: 0 32px;
  color: var(--text-3);
  font-size: 17.5px;
  text-align: center;
  position: relative;
}

/* --- Canvas containers для секций --- */
.section-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

section > .container,
section > * { position: relative; z-index: 1; }

section.has-canvas { position: relative; }
section.has-canvas > .container { position: relative; z-index: 2; }

/* ============================================================
   GLOBAL FIXED BACKGROUND LAYER (.site-bg)
   Один общий фиксированный слой под всем контентом.
   Даёт настоящий full-bleed фон на всю ширину экрана — независимо
   от того, что секции сидят внутри узкой .content-col с overflow:clip.
   Активная картинка переключается JS'ом при скролле.
   ============================================================ */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;             /* под всем контентом, но над body-фоном */
  pointer-events: none;
  overflow: hidden;
  background: #04070a;
}

.site-bg__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.05) brightness(0.75);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
  will-change: opacity;
}

.site-bg__layer.is-active {
  opacity: 0.55;
}

/* лёгкий кен-бёрнс эффект — плавный zoom-in, чтобы фон "жил" */
@keyframes bgDrift {
  0%   { transform: scale(1.00) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-1%, -1%); }
  100% { transform: scale(1.00) translate(0, 0); }
}
.site-bg__layer.is-active {
  animation: bgDrift 40s ease-in-out infinite;
}

/* виньетка сверху/снизу и лёгкий teal-halo — чтобы текст всегда читался */
.site-bg__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(47,224,168,0.05), transparent 70%),
    linear-gradient(180deg,
      rgba(5,6,7,0.55) 0%,
      rgba(5,6,7,0.20) 15%,
      rgba(5,6,7,0.20) 85%,
      rgba(5,6,7,0.75) 100%);
}

/* Мелкая точечная сетка сверху всего — «музейный» слой */
.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(47,224,168,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  mix-blend-mode: screen;
}

/* body::before раньше давал глобальный градиент — можно оставить как безопасный фолбэк */

/* Убираем per-section ::before / ::after (они теперь не нужны, фон общий).
   На всякий случай — сброс, чтобы старые правила ниже по каскаду не мешали. */
main section::before,
main section::after {
  content: none !important;
}
main section { position: relative; }
main section > * { position: relative; z-index: 2; }

/* hero-canvas и hero-inner должны быть поверх site-bg */
#hero-canvas { z-index: 2; }
.hero-inner { z-index: 3; }

/* --- Next-step CTA section --- */
#next-step {
  padding: 100px 0 120px;
}

#next-step .container {
  background: linear-gradient(135deg, rgba(47, 224, 168, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(47, 224, 168, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#next-step .container::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(47, 224, 168, 0.15), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

#next-step h2 { position: relative; }
#next-step p {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  font-size: 21.5px;
}

/* --- Calculator (interactive) --- */
.calculator {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 40px 0;
  background: rgba(20, 28, 32, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

@media (min-width: 900px) {
  .calculator {
    grid-template-columns: 1fr 320px;
  }
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-field label {
  display: block;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 10px;
  font-weight: 500;
}

.calc-field label .val {
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  font-size: 17.5px;
  font-weight: 600;
  margin-left: 6px;
}

.calc-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.calc-option {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 17px;
  color: var(--text-2);
  background: transparent;
  transition: all .18s;
  cursor: pointer;
}

.calc-option:hover { color: var(--text); }

.calc-option.active {
  background: var(--accent);
  color: #002018;
  border-color: var(--accent);
  font-weight: 600;
}

.calc-result {
  background: linear-gradient(135deg, rgba(47, 224, 168, 0.12), rgba(47, 224, 168, 0.02));
  border: 1px solid rgba(47, 224, 168, 0.25);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  align-self: start;
  position: sticky;
  top: 90px;
}

.calc-result__label {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.calc-result__value {
  font-family: var(--font-display);
  font-size: 59px;
  font-weight: 200;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.calc-result__unit {
  font-size: 19px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.calc-result__note {
  font-size: 14.5px;
  color: var(--text-3);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  line-height: 1.5;
}

/* --- Maturity matrix --- */
.matrix-table th:first-child, .matrix-table td:first-child {
  position: sticky;
  left: 0;
  background: #0a0d10;
  z-index: 2;
  min-width: 180px;
}

.matrix-table tbody td:first-child strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
}

/* --- 28 индикаторов: сетка карточек --- */
.indicators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}

@media (min-width: 720px) {
  .indicators-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

.indicators-factor {
  background: rgba(20, 28, 32, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s;
}

.indicators-factor::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--factor-color, var(--accent));
  opacity: 0.7;
}

.indicators-factor::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--factor-color, var(--accent)), transparent 70%);
  opacity: 0.06;
  pointer-events: none;
}

.indicators-factor:hover { border-color: var(--line-strong); }

.indicators-factor__head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.indicators-factor__letter {
  font-family: var(--font-display);
  font-size: 59px;
  font-weight: 100;
  color: var(--factor-color, var(--accent));
  line-height: 1;
  letter-spacing: -0.03em;
  min-width: 44px;
  text-align: center;
  text-shadow: 0 0 30px currentColor;
  filter: drop-shadow(0 0 10px currentColor);
  opacity: 0.9;
}

.indicators-factor__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.indicators-factor__desc {
  font-size: 16px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.indicators-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.indicator {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background .18s;
}

.indicator:hover { background: rgba(255, 255, 255, 0.04); }

.indicator__code {
  font-family: var(--font-display);
  font-size: 17.5px;
  color: var(--factor-color, var(--accent));
  font-weight: 500;
  background: rgba(47, 224, 168, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0.02em;
}

.indicator__name {
  font-size: 17.5px;
  color: var(--text-2);
  line-height: 1.4;
}

.indicator__weight {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  #hero-canvas, .section-canvas, #footer-canvas { display: none; }
}

/* --- Mobile fixes --- */
@media (max-width: 1199px) {
  .with-sidebar { padding: 0 24px; }
}

@media (max-width: 900px) {
  section { padding: 60px 0; }
  .container { padding: 0; }
  .with-sidebar { padding: 0 20px; }
  .company { padding: 24px; border-radius: var(--radius); }
  .company--top { padding: 28px; }
  .company .place { font-size: 59px; }
  .company--1 .place { font-size: 69.5px; }
  .company > header {
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
  }
  .site-header__inner { padding: 0 20px; height: 60px; }
  .mega-menu { top: 60px; }
  .brand { font-size: 17.5px; }
  .hero-inner { padding: 0 20px; }
  #hero { min-height: auto; padding: 100px 0 60px; }
  #hero h1 { font-size: 51px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta a { justify-content: center; }
  #next-step .container { padding: 32px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats strong { font-size: 43px; }
  .company--top .factors li,
  .company .factors li {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .company .factors meter { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr !important; }
  h2 { font-size: 40px; }
  .hero-video-wrap { max-width: 420px; margin: 0 auto; }
  .hero-badge { max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  .with-sidebar { padding: 0 16px; }
  .hero-inner { padding: 0 16px; }
  .site-header__inner { padding: 0 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .company .place { font-size: 48px; }
  .company--1 .place { font-size: 56.5px; }
  .company h3 { font-size: 21.5px; }
  .company .score strong { font-size: 29.5px; }
  #hero h1 { font-size: 43px; }
  .rating-rest { grid-template-columns: 1fr; }
  .top4-10 { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .leader-extra > ul { grid-template-columns: 1fr; }
  .calculator { grid-template-columns: 1fr; padding: 24px; }
  .calc-result { position: static; }
  #next-step .container { padding: 28px 20px; }
  .hero-badge__score { font-size: 59px; }
  .hero-badge__row { gap: 14px; }
}

/* ============================================================
   GLASS-ПАНЕЛЬ ПОД ТЕКСТОМ СЕКЦИЙ
   (в самом конце файла — на случай, если ранний парсер задерживает
   применение из-за ошибок в предыдущих правилах).
   Тёмное полупрозрачное стекло с backdrop-blur + тонкой teal-полосой
   сверху. Читаемость как у чёрной плашки, но фон-текстура «дышит»
   по краям и между секциями, а не гасится глухим фоном.
   Не применяется к: #hero (своя сцена) и #next-step (свой стиль CTA).
   ============================================================ */
.content-col section:not(#next-step) > .container {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 14, 17, 0.72) 0%, rgba(6, 9, 11, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  padding: 48px 44px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.content-col section:not(#next-step) > .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 224, 168, 0.5), transparent);
  pointer-events: none;
}

.content-col section:not(#next-step) > .container::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 30%;
  width: 40%;
  height: 60px;
  background: radial-gradient(ellipse at top, rgba(47, 224, 168, 0.08), transparent 70%);
  pointer-events: none;
  filter: blur(4px);
  z-index: -1;
}

.content-col section:not(#next-step) {
  padding: 32px 0;
}

@media (max-width: 900px) {
  .content-col section:not(#next-step) > .container {
    padding: 32px 22px;
    border-radius: 18px;
  }
  .content-col section:not(#next-step) {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .content-col section:not(#next-step) > .container {
    padding: 28px 18px;
  }
}
