/* CSS BUILD v5 - CACHE MARKER: hamburger !important + toc mobile fix + no-site link + glossary items */
/* =====================================================================
   SurveyRank 2026 - Design System
   Dark-tech, PINTEL-inspired. Deep space blue base + electric accent.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:            #020715;
  --bg-2:          #03091e;
  --bg-3:          #050d28;
  --surface-1:     rgba(255, 255, 255, 0.03);
  --surface-2:     rgba(255, 255, 255, 0.05);
  --surface-3:     rgba(255, 255, 255, 0.08);
  --card:          rgba(255, 255, 255, 0.04);
  --card-strong:   rgba(255, 255, 255, 0.06);
  --card-border:   rgba(255, 255, 255, 0.08);
  --card-border-2: rgba(255, 255, 255, 0.14);
  --divider:       rgba(255, 255, 255, 0.06);

  --text:          #ffffff;
  --text-2:        rgba(255, 255, 255, 0.72);
  --text-3:        rgba(255, 255, 255, 0.6);
  --muted:         rgba(255, 255, 255, 0.5);
  --muted-2:       rgba(255, 255, 255, 0.35);

  --accent:        #1D59F5;
  --accent-2:      #2b66ff;
  --accent-3:      #4d84ff;
  --accent-cyan:   #4dabff;
  --accent-glow:   rgba(29, 89, 245, 0.35);
  --accent-glow-2: rgba(77, 171, 255, 0.18);

  --gold:          #f0b429;
  --gold-soft:     rgba(240, 180, 41, 0.15);
  --silver:        #c0c6d0;
  --silver-soft:   rgba(192, 198, 208, 0.15);
  --bronze:        #cd7f32;
  --bronze-soft:   rgba(205, 127, 50, 0.15);

  --success:       #10b981;
  --warn:          #f59e0b;
  --danger:        #ef4444;

  --font-sans:     'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:     'JetBrains Mono', 'Geist Mono', Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 60px -10px var(--accent-glow);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);

  --container: 1240px;
  --header-h: 68px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Global background: subtle noise + top hero glow + bottom fade */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 1200px 700px at 50% -200px, rgba(29, 89, 245, 0.28), transparent 60%),
    radial-gradient(ellipse 900px 500px at 90% 15%, rgba(77, 171, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 900px 500px at 10% 40%, rgba(29, 89, 245, 0.08), transparent 55%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 1200px 800px at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 1200px 800px at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.9;
}

/* Ambient particles: SVG covering the viewport at low opacity */
.ambient-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  width: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .ambient-particles { display: none; }
}

a {
  color: var(--accent-3);
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
}
a:hover { color: #7ea1ff; }

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(2, 7, 21, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  position: relative;
  box-shadow: 0 0 24px -6px var(--accent-glow);
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  background: var(--bg);
}
.logo-mark::after {
  content: 'SR';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0;
}
.logo span { color: var(--accent-3); }

.nav-main {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-main a {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.15s var(--ease-out);
}
.nav-main a:hover { color: var(--text); background: var(--surface-2); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .header-date {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-cta .header-date::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Reading progress bar */
.read-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.read-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.05s linear;
}

/* Hamburger — SVG-based, simple visibility rules */
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--card-border);
  background: var(--surface-1);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  color: var(--text);
  transition: background 0.15s var(--ease-out);
}
.hamburger:hover { background: var(--surface-2); }
.hamburger.is-open { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Show-on-desktop / show-on-mobile helpers (no media needed) */
.header-btn-desktop { display: inline-flex; }
.header-btn-mobile  { display: none; }
@media (max-width: 900px) {
  .header-btn-desktop { display: none !important; }
  .header-btn-mobile  { display: inline-flex !important; }
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(2, 7, 21, 0.98);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 40px 32px;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
  letter-spacing: -0.01em;
}
.mobile-nav a:hover { color: var(--accent-3); }

/* =====================================================================
   LAYOUT
   ===================================================================== */
main { padding-top: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 120px 0;
  position: relative;
  overflow: hidden; /* contain decorative blobs / prevent horizontal overflow */
}

section + section {
  border-top: 1px solid var(--divider);
}

/* But sections that use sticky children (like #companies-4-25 with sticky sidebar)
   MUST allow overflow visible — override those explicitly */
#companies-4-25 { overflow: visible; }

/* Subtle glow that alternates side-to-side across sections */
main > section:not(.hero)::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(29, 89, 245, 0.08), transparent 62%);
  pointer-events: none;
  filter: blur(20px);
  z-index: 0;
}
main > section:nth-of-type(even):not(.hero)::before {
  left: -12%;
  right: auto;
  background: radial-gradient(circle at center, rgba(77, 171, 255, 0.07), transparent 62%);
}
main > section > .container { position: relative; z-index: 1; }

/* Section separator lines between blocks */
section + section::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,171,255,0.15), transparent);
  pointer-events: none;
}

/* Fine grid overlay in some sections for texture */
main > section:nth-of-type(3n)::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(77, 171, 255, 0.08);
  border: 1px solid rgba(77, 171, 255, 0.18);
  border-radius: 999px;
}
.section-eyebrow::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.section-title {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 28px;
  text-wrap: balance;
  color: var(--text);
}
.section-title .accent {
  background: linear-gradient(120deg, #7ea1ff 0%, var(--accent-cyan) 60%, #b8dcff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title [data-date] {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.55em;
  vertical-align: middle;
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  margin-left: 16px;
  letter-spacing: 0;
}

.section-subtitle {
  font-size: 19px;
  color: var(--text-2);
  margin-bottom: 56px;
  max-width: 780px;
  line-height: 1.5;
  text-wrap: pretty;
  font-weight: 400;
}

.section-lead {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 880px;
  line-height: 1.65;
}

h3 {
  font-size: 26px;
  font-weight: 600;
  margin: 40px 0 16px;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--text);
}
h3:first-child { margin-top: 0; }

h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}

p {
  margin-bottom: 16px;
  color: var(--text-2);
  line-height: 1.65;
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }
p strong { color: var(--text); font-weight: 600; }

ul, ol { padding-left: 22px; margin-bottom: 20px; color: var(--text-2); }
li { margin-bottom: 8px; line-height: 1.6; }
li::marker { color: var(--muted-2); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 rgba(29, 89, 245, 0);
}
.btn-primary:hover {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--card-border-2);
  backdrop-filter: blur(12px);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
}

.btn-ghost {
  background: var(--surface-1);
  color: var(--text-2);
  border-color: var(--card-border);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-arrow::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.2s var(--ease-out);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Site-link: rich external link card for company websites */
.site-link {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label arrow"
    "url arrow";
  align-items: center;
  gap: 4px 22px;
  padding: 18px 22px;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 14px;
  color: var(--text);
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin: 24px 0;
  backdrop-filter: blur(12px);
  min-width: 300px;
}
.site-link::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(29,89,245,0.5), transparent 50%, rgba(77,171,255,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.site-link:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -14px rgba(29,89,245,0.6);
  text-decoration: none;
}
.site-link:hover::before { opacity: 1; }
.site-link[data-highlight] {
  background: linear-gradient(135deg, rgba(240,180,41,0.1), rgba(29,89,245,0.08) 60%);
  border-color: rgba(240,180,41,0.28);
}
.site-link[data-highlight]::before {
  background: linear-gradient(120deg, rgba(240,180,41,0.55), transparent 40%, rgba(29,89,245,0.4));
  opacity: 0.7;
}
.site-link[data-highlight]:hover::before { opacity: 1; }
.site-link__label {
  grid-area: label;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  line-height: 1;
}
.site-link__url {
  grid-area: url;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.site-link[data-highlight] .site-link__url {
  background: linear-gradient(120deg, #ffd76a, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-link__arrow {
  grid-area: arrow;
  align-self: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(29,89,245,0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s var(--ease-out);
  flex-shrink: 0;
  border: 1px solid rgba(29,89,245,0.25);
}
.site-link[data-highlight] .site-link__arrow {
  background: rgba(240,180,41,0.15);
  color: var(--gold);
  border-color: rgba(240,180,41,0.3);
}
.site-link:hover .site-link__arrow {
  transform: translate(2px, -2px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.site-link[data-highlight]:hover .site-link__arrow {
  background: var(--gold);
  color: #1a1200;
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(240,180,41,0.5);
}
/* Empty (no site) variant — muted, no gradient, no hover-lift */
.site-link.is-empty {
  cursor: default;
  background: var(--surface-1);
  border-style: dashed;
  border-color: var(--card-border);
  transform: none !important;
  box-shadow: none !important;
}
.site-link.is-empty::before { display: none; }
.site-link.is-empty .site-link__url {
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-sans);
}
.site-link.is-empty .site-link__arrow {
  background: transparent;
  border-color: var(--card-border);
  color: var(--muted);
  font-size: 16px;
  font-family: var(--font-mono);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  padding: calc(var(--header-h) + 60px) 0 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: none;
}

.hero .container { position: relative; z-index: 2; }

/* Background image slot */
.hero-image-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-image-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2,7,21,0.4) 0%, rgba(2,7,21,0.6) 40%, var(--bg) 100%),
    radial-gradient(ellipse 800px 500px at 50% 40%, rgba(29,89,245,0.15), transparent 70%);
  z-index: 2;
}
.hero-image-slot__placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #050d28 0%, #071233 50%, #030918 100%);
  overflow: hidden;
}
/* SVG particle canvas overlay */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

/* Растягиваем фото во весь hero */
.hero-image-slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  z-index: 1;
}

/* Плавный фейд фото в тёмный фон справа (чтобы не было резкого стыка) */
.hero-image-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(2,7,21,0.15) 0%,
      rgba(2,7,21,0.35) 45%,
      rgba(2,7,21,0.85) 80%,
      rgba(2,7,21,1) 100%);
  z-index: 2;
  pointer-events: none;
}

/* placeholder hint (only visible in dev) */
.hero-image-slot__placeholder::after {
  content: '⌘  фото порта / контейнеров / судов будет добавлено';
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 4px;
  white-space: nowrap;
  z-index: 3;
}

.hero-content {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 32px;
  font-weight: 500;
}
.hero-badge__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(44px, 6.8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #b8dcff 0%, var(--accent-cyan) 40%, #7ea1ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}

.hero-lead {
  font-size: 20px;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 44px;
  line-height: 1.55;
  text-wrap: pretty;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 88px;
}

/* Hero stats — big thin numbers */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--card-border);
  max-width: 1000px;
  margin: 0 auto;
}
.hero-stat {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--card-border);
}
.hero-stat__num {
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.hero-stat__num .unit {
  font-size: 0.5em;
  color: var(--muted);
  font-weight: 300;
  margin-left: 4px;
}
.hero-stat__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* =====================================================================
   CARDS & GRIDS
   ===================================================================== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-lg { gap: 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.25s var(--ease-out);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card:hover {
  border-color: var(--card-border-2);
  background: var(--card-strong);
  transform: translateY(-2px);
}

.card-num {
  font-size: 56px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.card-num.accent {
  color: var(--accent-cyan);
}

.card h3 { margin-top: 0; }

.card p { font-size: 15px; }

/* =====================================================================
   CALLOUTS
   ===================================================================== */
.callout {
  padding: 24px 28px;
  border: 1px solid rgba(29, 89, 245, 0.25);
  background: linear-gradient(135deg, rgba(29,89,245,0.08), rgba(29,89,245,0.02));
  border-radius: var(--radius);
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.callout.warn {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
}
.callout.warn::before { background: var(--warn); box-shadow: 0 0 12px rgba(245,158,11,0.4); }
.callout.success {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
}
.callout.success::before { background: var(--success); box-shadow: 0 0 12px rgba(16,185,129,0.4); }
.callout p { font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }

/* =====================================================================
   TOP-3 LEADER CARDS
   ===================================================================== */
.leaders-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.leader-card {
  position: relative;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

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

.leader-card.top-1 {
  background: linear-gradient(160deg, rgba(240, 180, 41, 0.08) 0%, rgba(29, 89, 245, 0.06) 60%, transparent 100%);
  border: 1px solid rgba(240, 180, 41, 0.25);
}
.leader-card.top-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 300px at 100% 0%, rgba(240, 180, 41, 0.12), transparent 60%);
  pointer-events: none;
}

.leader-card.top-2 {
  background: linear-gradient(160deg, rgba(192, 198, 208, 0.06), rgba(255,255,255,0.02));
}
.leader-card.top-3 {
  background: linear-gradient(160deg, rgba(205, 127, 50, 0.06), rgba(255,255,255,0.02));
}

.leader-medal {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  font-family: var(--font-mono);
  z-index: 2;
}
.top-1 .leader-medal {
  background: linear-gradient(135deg, #ffd76a, var(--gold));
  color: #1a1200;
  box-shadow: 0 0 40px rgba(240, 180, 41, 0.5);
}
.top-2 .leader-medal {
  background: linear-gradient(135deg, #dde0e6, var(--silver));
  color: #1a1a20;
  box-shadow: 0 0 40px rgba(192, 198, 208, 0.3);
}
.top-3 .leader-medal {
  background: linear-gradient(135deg, #e39a5f, var(--bronze));
  color: #1a0f00;
  box-shadow: 0 0 40px rgba(205, 127, 50, 0.35);
}

.leader-position {
  font-size: 120px;
  font-weight: 100;
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
  font-family: var(--font-mono);
}
.top-1 .leader-position { color: rgba(240, 180, 41, 0.5); }
.top-2 .leader-position { color: rgba(192, 198, 208, 0.4); }
.top-3 .leader-position { color: rgba(205, 127, 50, 0.5); }

.leader-name {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
  color: var(--text);
}

.leader-tagline {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-weight: 500;
}

.leader-score-wrap {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.leader-score {
  font-size: 56px;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.leader-score .of {
  font-size: 18px;
  color: var(--muted);
  font-weight: 300;
}
.top-1 .leader-score { color: var(--gold); }

.leader-cta {
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(77, 171, 255, 0.3);
  border-radius: 999px;
  transition: all 0.2s var(--ease-out);
}
.leader-cta:hover {
  background: rgba(77, 171, 255, 0.1);
  border-color: rgba(77, 171, 255, 0.5);
  color: var(--accent-cyan);
}

.leader-body p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}

.leader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 24px;
}
.leader-tag {
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

/* =====================================================================
   TABLE (Top-25)
   ===================================================================== */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
th, td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  vertical-align: middle;
}
thead th {
  background: linear-gradient(180deg, rgba(29,89,245,0.08), rgba(29,89,245,0.02));
  color: var(--accent-cyan);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(29,89,245,0.25);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr {
  transition: background 0.15s var(--ease-out);
}
tbody tr:hover { background: rgba(29,89,245,0.05); }

td.rank {
  font-weight: 500;
  color: var(--text);
  font-size: 20px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  width: 80px;
}
tr.gold td.rank { color: var(--gold); }
tr.silver td.rank { color: var(--silver); }
tr.bronze td.rank { color: var(--bronze); }

td.name-cell {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
td.name-cell small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }

td.score-cell {
  text-align: right;
  min-width: 200px;
}
.score-bar-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.score-bar-mini__track {
  width: 100px;
  height: 4px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.score-bar-mini__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  border-radius: 999px;
  transition: width 0.6s var(--ease-out);
}
tr.gold .score-bar-mini__fill { background: linear-gradient(90deg, var(--accent), var(--gold)); }
.score-bar-mini__val {
  font-weight: 500;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 15px;
  min-width: 44px;
  text-align: right;
}

/* =====================================================================
   FORMULA BLOCK
   ===================================================================== */
.formula-box {
  background:
    linear-gradient(135deg, rgba(29,89,245,0.12), rgba(77,171,255,0.02)),
    radial-gradient(ellipse 600px 300px at 30% 30%, rgba(29, 89, 245, 0.12), transparent 60%);
  border: 1px solid rgba(29,89,245,0.25);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  margin: 40px 0;
  font-family: var(--font-mono);
  text-align: center;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.9;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.formula-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(77,171,255,0.15), transparent 50%);
  pointer-events: none;
}
.formula-box .weight { color: var(--accent-cyan); font-weight: 600; }
.formula-box .var { color: var(--text); font-weight: 500; padding: 0 2px; border-bottom: 1px dashed var(--accent-3); }
.formula-box .op { color: var(--muted); font-weight: 300; padding: 0 4px; }

/* Weights: circle chart + horizontal bars */
.weights-viz {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  margin: 40px 0;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}
.weights-donut {
  position: relative;
  width: 260px; height: 260px;
}
.weights-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.weights-donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.weights-donut__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.weights-donut__value {
  font-size: 48px;
  font-weight: 200;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.weights-list { display: flex; flex-direction: column; gap: 14px; }
.weights-row {
  display: grid;
  grid-template-columns: 26px 1fr 60px;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out);
}
.weights-row:hover { transform: translateX(4px); }
.weights-row__dot {
  width: 14px; height: 14px;
  border-radius: 4px;
}
.weights-row__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.weights-row__label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.weights-row__label .code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 2px 6px;
  background: var(--surface-2);
  border-radius: 4px;
}
.weights-row__track {
  height: 4px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.weights-row__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s var(--ease-out);
}
.weights-row__pct {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Score range scale */
.score-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.score-scale__step {
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  position: relative;
  overflow: hidden;
}
.score-scale__step::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--muted-2);
}
.score-scale__step.excellent::before { background: var(--gold); box-shadow: 0 0 12px var(--gold-soft); }
.score-scale__step.great::before { background: var(--accent-cyan); box-shadow: 0 0 12px var(--accent-glow-2); }
.score-scale__step.good::before { background: var(--accent); }
.score-scale__step.avg::before { background: var(--warn); }
.score-scale__step.low::before { background: var(--danger); }
.score-scale__range {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.score-scale__label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =====================================================================
   TOC (grouped card set, at top of article)
   ===================================================================== */
.toc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.toc-group {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: all 0.25s var(--ease-out);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.toc-group::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 340px 200px at 0% 0%, rgba(29,89,245,0.08), transparent 60%);
  pointer-events: none;
}
.toc-group:hover {
  border-color: var(--card-border-2);
  background: var(--card-strong);
  transform: translateY(-2px);
}
.toc-group__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}
.toc-group__dot {
  width: 32px; height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 20px -4px currentColor;
}
.toc-group__dot::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: rgba(2,7,21,0.5);
  border-radius: 6px;
}
.toc-group__meta { min-width: 0; }
.toc-group__label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 3px;
}
.toc-group__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.toc-group__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}
.toc-group__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.3;
  transition: all 0.15s var(--ease-out);
  border: 1px solid transparent;
}
.toc-group__list a:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--card-border);
  padding-left: 14px;
}
.toc-group__list .toc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  min-width: 22px;
  letter-spacing: 0.04em;
}
.toc-group__list a:hover .toc-num { color: var(--accent-cyan); }
.toc-group__list .toc-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(77,171,255,0.1);
  border: 1px solid rgba(77,171,255,0.2);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* =====================================================================
   OLD TOC (block full) - kept for legacy references
   ===================================================================== */
.toc-block {
  columns: 2;
  column-gap: 48px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.toc-block a {
  display: block;
  padding: 8px 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  break-inside: avoid;
  border-bottom: 1px solid transparent;
  transition: all 0.15s var(--ease-out);
}
.toc-block a:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--card-border);
}
.toc-block .toc-num {
  display: inline-block;
  width: 32px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* =====================================================================
   FLOATING TOC (sticky sidebar / floating reader nav)
   ===================================================================== */
.float-toc {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  background: rgba(2, 7, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border-2);
  border-radius: 20px;
  padding: 16px;
  width: 320px;
  max-width: calc(100vw - 48px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.9);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.float-toc.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-toc.is-collapsed .float-toc__body { display: none; }
.float-toc.is-collapsed {
  padding: 0;
  width: auto;
  border-radius: 999px;
  border-color: var(--card-border);
  overflow: hidden;
}
.float-toc.is-collapsed .float-toc__header {
  padding: 10px 18px 10px 14px;
  position: relative;
}
/* Collapsed: show a mini progress ring around the toggle */
.float-toc.is-collapsed .float-toc__title {
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-toc__mini-ring {
  width: 20px; height: 20px;
  display: none;
  flex-shrink: 0;
}
.float-toc.is-collapsed .float-toc__mini-ring { display: inline-block; }
.float-toc__mini-ring circle { fill: none; stroke-width: 2.5; }
.float-toc__mini-ring .ring-track { stroke: var(--card-border); }
.float-toc__mini-ring .ring-bar {
  stroke: var(--accent-cyan);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 3px var(--accent-cyan));
}

.float-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.float-toc__title {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.float-toc__toggle {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: transform 0.2s var(--ease-out);
  font-size: 10px;
}
.float-toc.is-collapsed .float-toc__toggle { transform: rotate(180deg); }

.float-toc__progress {
  height: 3px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 14px;
}
.float-toc__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  width: 0%;
  transition: width 0.1s linear;
}

.float-toc__current {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.float-toc__current .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(77,171,255,0.1);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid rgba(77,171,255,0.25);
}

.float-toc__nearby {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}
.float-toc__nearby a {
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s var(--ease-out);
  line-height: 1.3;
}
.float-toc__nearby a:hover {
  background: var(--surface-2);
  color: var(--text-2);
}
.float-toc__nearby a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
}
.float-toc__nearby a.is-active { color: var(--accent-cyan); }
.float-toc__nearby a.is-active::before { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }

.float-toc__back-top {
  margin-top: 8px;
  padding: 10px;
  width: 100%;
  border: 1px solid var(--card-border);
  background: var(--surface-1);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.float-toc__back-top:hover { background: var(--surface-2); color: var(--text); }

/* =====================================================================
   CRITERIA (6 criteria breakdown blocks)
   ===================================================================== */
.criteria-grid {
  display: grid;
  gap: 16px;
}
.criterion {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
  transition: all 0.25s var(--ease-out);
}
.criterion:hover {
  border-color: var(--card-border-2);
  background: var(--card-strong);
}
.criterion__badge {
  width: 100px; height: 100px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(29,89,245,0.15), rgba(77,171,255,0.05));
  border: 1px solid rgba(29,89,245,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.criterion__badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(77,171,255,0.2), transparent 60%);
}
.criterion__letter {
  font-size: 36px;
  font-weight: 300;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  line-height: 1;
  z-index: 1;
}
.criterion__weight {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  z-index: 1;
  font-weight: 500;
}
.criterion__body h3 { margin-top: 0; margin-bottom: 12px; font-size: 24px; }
.criterion__body p { margin-bottom: 12px; }
.criterion__body ul { margin-top: 12px; }

/* =====================================================================
   COMPANIES #4-#25 (accordion + sidebar)
   ===================================================================== */
.companies-lab {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  margin-top: 40px;
}

.companies-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.companies-nav::-webkit-scrollbar { width: 4px; }
.companies-nav::-webkit-scrollbar-thumb { background: var(--surface-3); }

.companies-nav__title {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding: 0 8px;
  font-weight: 500;
}
.companies-nav__list { display: flex; flex-direction: column; gap: 2px; }
.companies-nav__item {
  display: grid;
  grid-template-columns: 32px 1fr 48px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
}
.companies-nav__item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.companies-nav__item.is-active {
  background: rgba(29, 89, 245, 0.12);
  border-color: rgba(29, 89, 245, 0.35);
  color: var(--text);
}
.companies-nav__num {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.companies-nav__item.is-active .companies-nav__num { color: var(--accent-cyan); }
.companies-nav__name { font-weight: 500; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.companies-nav__score {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.companies-nav__item.is-active .companies-nav__score { color: var(--accent-cyan); }

.companies-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 400px;
}

.company-panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out);
}
.company-panel:hover { border-color: var(--card-border-2); }
.company-panel.is-open { border-color: rgba(29, 89, 245, 0.3); background: var(--card-strong); }

.company-panel__head {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  transition: background 0.15s var(--ease-out);
}
.company-panel__head:hover { background: var(--surface-1); }
.company-panel__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.company-panel.is-open .company-panel__num { color: var(--accent-cyan); }
.company-panel__name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}
.company-panel__name small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: 0;
}
.company-panel__score {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.company-panel__score small { font-size: 11px; color: var(--muted); font-weight: 400; }
.company-panel__chevron {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 0.2s var(--ease-out);
  font-size: 12px;
}
.company-panel.is-open .company-panel__chevron {
  background: var(--accent);
  color: #fff;
  transform: rotate(180deg);
}

.company-panel__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-io);
}
.company-panel.is-open .company-panel__body { max-height: 4000px; }
.company-panel__body-inner {
  padding: 8px 28px 32px;
  border-top: 1px solid var(--divider);
}
.company-panel__body-inner h3 { font-size: 18px; margin-top: 24px; margin-bottom: 12px; color: var(--text-2); font-weight: 600; }
.company-panel__body-inner h3:first-child { margin-top: 16px; }
.company-panel__body-inner ul { font-size: 14px; }
.company-panel__body-inner p { font-size: 15px; }

/* Company Facts row (top of body) */
.company-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
  padding: 20px;
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.company-fact__label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  font-weight: 500;
}
.company-fact__value {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.2;
}

/* Criteria breakdown mini (inside company card) */
.crit-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.crit-bar {
  padding: 14px 12px;
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  text-align: center;
}
.crit-bar__label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.crit-bar__value {
  font-size: 20px;
  color: var(--text);
  font-weight: 400;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.crit-bar__track {
  height: 3px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.crit-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  border-radius: 999px;
  transition: width 0.6s var(--ease-out);
}

/* =====================================================================
   TOP-3 COMPANY DEEP CARDS (sections company-1, company-2, company-3)
   ===================================================================== */
.company-deep {
  padding: 60px 0;
}
.company-deep__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 40px;
}
.company-deep__rank {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.company-deep.gold .company-deep__rank { color: var(--gold); }
.company-deep.silver .company-deep__rank { color: var(--silver); }
.company-deep.bronze .company-deep__rank { color: var(--bronze); }
.company-deep__rank::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}
.company-deep__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}
.company-deep__meta {
  font-size: 15px;
  color: var(--text-2);
  max-width: 640px;
}
.company-deep__score {
  text-align: right;
  padding-left: 40px;
}
.company-deep__score-num {
  font-size: 96px;
  font-weight: 100;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.company-deep.gold .company-deep__score-num { color: var(--gold); }
.company-deep__score-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
  font-weight: 500;
}

.company-deep__body h3 { font-size: 22px; margin-top: 40px; }
.company-deep__body h3:first-of-type { margin-top: 24px; }

/* =====================================================================
   FAQ / DETAILS
   ===================================================================== */
details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 10px;
  transition: all 0.2s var(--ease-out);
}
details[open] {
  border-color: rgba(29,89,245,0.3);
  background: var(--card-strong);
}
details summary {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 32px;
  position: relative;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.2s var(--ease-out);
  background:
    linear-gradient(currentColor, currentColor) center/8px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 8px no-repeat;
  color: var(--text-3);
}
details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center/8px 1px no-repeat;
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent-cyan);
  border-color: rgba(77,171,255,0.4);
}
details > *:not(summary) {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}
details p { font-size: 15px; }

/* =====================================================================
   GLOSSARY
   ===================================================================== */
/* Glossary: 3-column grid of cards (built by JS from <dl>) */
.glossary-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.glossary-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: all 0.25s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.glossary-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(29,89,245,0.35), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.glossary-item:hover {
  background: var(--card-strong);
  transform: translateY(-2px);
}
.glossary-item:hover::before { opacity: 1; }
.glossary-item__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(77,171,255,0.08);
  border: 1px solid rgba(77,171,255,0.2);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-weight: 500;
  align-self: flex-start;
}
.glossary-item__term {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.glossary-item__def {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

/* =====================================================================
   IMAGE SLOTS (placeholders for future imagery)
   ===================================================================== */
.image-slot {
  position: relative;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px dashed var(--card-border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--muted);
}
.image-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 250px at 30% 30%, rgba(29,89,245,0.1), transparent 60%),
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}
.image-slot__hint {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}
.image-slot__hint-icon {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--accent-cyan);
  font-weight: 300;
  margin-bottom: 12px;
  opacity: 0.6;
}
.image-slot__hint-text {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Russia map slot */
.map-slot {
  min-height: 480px;
  background:
    radial-gradient(ellipse 60% 50% at 55% 45%, rgba(29,89,245,0.12), transparent 60%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

/* =====================================================================
   MARKET MAP: cities pinlist (works with or without image)
   ===================================================================== */
.pin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.pin {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s var(--ease-out);
}
.pin:hover { border-color: var(--card-border-2); background: var(--card-strong); }
.pin__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  margin-top: 6px;
  flex-shrink: 0;
}
.pin__body { min-width: 0; }
.pin__city {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}
.pin__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

/* =====================================================================
   BADGES / TAGS
   ===================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(29, 89, 245, 0.12);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 500;
  margin-right: 6px;
  border: 1px solid rgba(29,89,245,0.2);
}
.badge.gold { background: rgba(240,180,41,0.12); color: var(--gold); border-color: rgba(240,180,41,0.25); }
.badge.silver { background: rgba(192,198,208,0.1); color: var(--silver); border-color: rgba(192,198,208,0.25); }
.badge.bronze { background: rgba(205,127,50,0.12); color: var(--bronze); border-color: rgba(205,127,50,0.25); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--card-border);
  padding: 100px 0 40px;
  margin-top: 40px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.15s var(--ease-out);
}
.footer-col a:hover { color: var(--text); }
.footer-brand { max-width: 340px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 16px; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* =====================================================================
   UTILITY
   ===================================================================== */
.text-accent { color: var(--accent-cyan); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: 40px; }
.mt-xl { margin-top: 60px; }
.center { text-align: center; }
.no-mt { margin-top: 0; }

/* =====================================================================
   REVEAL (fade-in on scroll)
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal-delay="2"] { transition-delay: 120ms; }
[data-reveal-delay="3"] { transition-delay: 180ms; }
[data-reveal-delay="4"] { transition-delay: 240ms; }
[data-reveal-delay="5"] { transition-delay: 300ms; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .leaders-grid { grid-template-columns: 1fr; }
  .leader-card { min-height: unset; }
  .companies-lab { grid-template-columns: 1fr; }
  .companies-nav {
    position: relative;
    top: auto;
    max-height: none;
    max-height: 400px;
  }
  .weights-viz { grid-template-columns: 1fr; text-align: center; }
  .weights-donut { margin: 0 auto; }
  .glossary-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .container, .header-inner, .footer-inner { padding: 0 20px; }
  .header-cta .header-date { display: none !important; }
  .nav-main { display: none !important; }
  .header-cta { gap: 8px; }
  .mobile-nav { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 0; padding: 32px 0 0; }
  .hero-stat + .hero-stat:nth-child(3)::before { display: none; }
  .hero { min-height: unset; padding: calc(var(--header-h) + 40px) 0 60px; }
  .float-toc {
    right: 12px; bottom: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
  .float-toc:not(.is-collapsed) {
    width: calc(100vw - 24px);
    padding: 14px;
  }
  .float-toc.is-collapsed { width: auto; }
  .company-deep__head { grid-template-columns: 1fr; }
  .company-deep__score { text-align: left; padding-left: 0; }
  .company-deep__score-num { font-size: 64px; }
  .criterion { grid-template-columns: 1fr; gap: 20px; }
  .criterion__badge { width: 80px; height: 80px; }
  .company-panel__head { grid-template-columns: 40px 1fr auto; padding: 20px; gap: 12px; }
  .company-panel__score { display: none; }
  .crit-bars { grid-template-columns: repeat(3, 1fr); }
  .toc-block { columns: 1; padding: 24px; }
  .glossary-items { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .score-scale { grid-template-columns: 1fr 1fr; }
  .formula-box { padding: 32px 24px; font-size: 16px; }
  section .container > .section-title [data-date] { display: block; margin: 12px 0 0; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .score-scale { grid-template-columns: 1fr; }
  .company-deep__score-num { font-size: 56px; }
}

/* Print */
@media print {
  body::before, body::after, .site-header, .float-toc, .mobile-nav { display: none; }
  section { break-inside: avoid; padding: 20px 0; }
  a { color: #000 !important; }
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* =====================================================================
   CONTACT CARD (email plate in Редакция и контакты)
   ===================================================================== */
.contact-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(29,89,245,0.08), rgba(77,171,255,0.03) 60%);
  border: 1px solid rgba(29,89,245,0.25);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s var(--ease-out);
  margin: 8px 0 44px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 200px at 100% 0%, rgba(77,171,255,0.15), transparent 60%);
  pointer-events: none;
}
.contact-card:hover {
  color: var(--text);
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(29,89,245,0.5);
  box-shadow: 0 16px 40px -20px rgba(29,89,245,0.5);
}
.contact-card__icon {
  order: -1;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(29,89,245,0.15);
  border: 1px solid rgba(29,89,245,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.contact-card__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.contact-card__value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.2;
  word-break: break-all;
}
.contact-card__hint {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.4;
  margin-top: 4px;
}
.contact-card__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(29,89,245,0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s var(--ease-out);
  border: 1px solid rgba(29,89,245,0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.contact-card:hover .contact-card__arrow {
  transform: translate(2px, -2px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 640px) {
  .contact-card {
    grid-template-columns: 44px 1fr;
    padding: 20px;
    gap: 14px;
  }
  .contact-card__icon { width: 44px; height: 44px; border-radius: 10px; }
  .contact-card__icon svg { width: 20px; height: 20px; }
  .contact-card__arrow { display: none; }
  .contact-card__body { grid-column: 2 / -1; }
  .contact-card__value { font-size: 16px; }
}

/* =====================================================================
   CHECKLIST (Чек-лист выбора сюрвейерской компании)
   ===================================================================== */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: chk;
}
.checklist li {
  counter-increment: chk;
  padding: 20px 22px 20px 68px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.25s var(--ease-out);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  overflow: hidden;
  margin: 0;
  backdrop-filter: blur(12px);
}
.checklist li::before {
  content: counter(chk, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(29,89,245,0.1);
  border: 1px solid rgba(29,89,245,0.25);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease-out);
}
.checklist li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 320px 160px at 100% 0%, rgba(77,171,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  pointer-events: none;
}
.checklist li:hover {
  border-color: rgba(29,89,245,0.35);
  background: var(--card-strong);
  transform: translateY(-2px);
}
.checklist li:hover::before {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.checklist li:hover::after { opacity: 1; }
.checklist li strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 15.5px;
  letter-spacing: -0.005em;
}
@media (max-width: 900px) {
  .checklist { grid-template-columns: 1fr; }
  .checklist li { padding: 16px 18px 16px 60px; }
  .checklist li::before { left: 16px; top: 16px; width: 32px; height: 32px; font-size: 12px; }
}

/* === FINAL MOBILE GUARDS === */
@media (max-width: 900px) {
  .float-toc {
    right: 8px !important;
    bottom: 8px !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    overflow-y: auto !important;
  }
  .float-toc:not(.is-collapsed) {
    width: calc(100vw - 16px) !important;
  }
}
