/* =====================================================
   AS — Demo Research
   styles-v2.css — Editorial Luxury "The Intelligence Brief"
   10.05.2026 — Production v2
   ===================================================== */

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

/* 2. SMOOTH SCROLL */
html { scroll-behavior: smooth; }

/* 3. DESIGN TOKENS — v2 DEEPENED PALETTE */
/* ============================================
   AS CONFIDENCE MARKERS — собственная система
   маркировки степени проверенности данных
   ============================================ */
.conf-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: -1px;
  margin-right: 4px;
  border: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
}
.conf-confirmed { background: #15803d; box-shadow: 0 0 0 2px rgba(21,128,61,.18); }
.conf-indirect  { background: #B45309; box-shadow: 0 0 0 2px rgba(180,83,9,.18); }
.conf-extra     { background: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.18); }
.conf-refuted   { background: #b91c1c; box-shadow: 0 0 0 2px rgba(185,28,28,.18); }
.section-dark .conf-dot,
.section-soft .conf-dot { border-color: rgba(255,255,255,.06); }

/* ============================================
   Mobile: широкие таблицы → стек карточек.
   JS проставляет data-label каждой <td> по <th>
   ============================================ */
@media (max-width: 768px) {
  .data-table.table-stacked,
  .data-table.table-stacked thead,
  .data-table.table-stacked tbody,
  .data-table.table-stacked tr,
  .data-table.table-stacked td {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .data-table.table-stacked thead { display: none; }
  .data-table.table-stacked tbody tr {
    border: 0.5px solid var(--border-mid);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(0,0,0,.02);
  }
  .section-dark .data-table.table-stacked tbody tr,
  .section-soft .data-table.table-stacked tbody tr {
    background: rgba(255,255,255,.03);
    border-color: rgba(237,233,223,.10);
  }
  .data-table.table-stacked td {
    padding: 5px 0;
    border: none;
    text-align: left !important;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .data-table.table-stacked td:not(:last-child) {
    border-bottom: 1px dashed rgba(0,0,0,.06);
    padding-bottom: 8px;
    margin-bottom: 6px;
  }
  .section-dark .data-table.table-stacked td:not(:last-child),
  .section-soft .data-table.table-stacked td:not(:last-child) {
    border-bottom-color: rgba(237,233,223,.08);
  }
  .data-table.table-stacked td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
  }
  .section-dark .data-table.table-stacked td::before,
  .section-soft .data-table.table-stacked td::before {
    color: var(--accent);
  }
  /* Wrap без скролла на мобиле, если таблица уже стек */
  .data-table-wrap:has(.table-stacked) {
    overflow-x: visible;
  }
}

:root {
  /* Base surfaces */
  --bg:            #F4F1EB;   /* warm mist — not white, not cream */
  --bg-2:          #EDE9E0;   /* secondary light surface */
  --card:          #FAFAF6;
  --dark:          #0F0E0D;   /* near-black — deeper than v1 */
  --dark-mid:      #1A1816;
  --dark-soft:     #221F1B;
  --dark-soft2:    #2A2622;

  /* Text */
  --text:          #1A1816;
  --text-on-dark:  #EDE9DF;
  --champagne:     #EDE9DF;
  --muted:         #524E49;  /* was #6F6862 — lifted for WCAG AA 4.5:1 on #F4F1EB */
  --muted-2:       #6B6560;  /* was #A8A39C — lifted for WCAG AA on light bg */
  --muted-on-dark: #9A9590;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0F0E0D;
  color: #EDE9DF;
  padding: 14px 24px;
  text-decoration: none;
  font-size: 14px;
  z-index: 9999;
  border-bottom: 1px solid #B8944A;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid #B8944A;
  outline-offset: 0;
}

:root {
  /* dummy to keep next root rule valid */
  --_dummy: 0;

  /* Borders */
  --border:        rgba(26,24,22,.11);
  --border-mid:    rgba(26,24,22,.18);
  --border-dark:   rgba(237,233,223,.10);
  --border-gold:   rgba(184,148,74,.28);
  --rule:          rgba(184,148,74,.18);

  /* Accent — deepened gold, less yellow */
  --accent:        #B8944A;
  --accent-dk:     #8C6F34;
  --accent-lt:     #D4B06A;
  --accent-soft:   #EDE3CD;
  --accent-ghost:  rgba(184,148,74,.06);

  /* Status colors */
  --green:   #15803d;
  --blue:    #2563eb;
  --amber:   #B45309;
  --red:     #b91c1c;
  --purple:  #7c3aed;

  /* Shadows — more dimensional */
  --shadow-xs: 0 1px 2px rgba(15,14,13,.04);
  --shadow:    0 1px 3px rgba(15,14,13,.05), 0 6px 20px rgba(15,14,13,.05);
  --shadow-lg: 0 4px 32px rgba(15,14,13,.10);
  --shadow-dk: 0 8px 32px rgba(0,0,0,.45);
  --shadow-gold: 0 4px 24px rgba(184,148,74,.22);

  /* Shape */
  --r:    14px;
  --r-sm: 7px;
  --r-xs: 4px;

  /* Typography */
  --ff-head: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --ff-body: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing rhythm */
  --section-pad: 96px;
}

/* 4. GRAIN TEXTURE — subtle noise over dark sections */
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  10%       { transform: translate(-2%,-2%); }
  20%       { transform: translate(2%,1%); }
  30%       { transform: translate(-1%,3%); }
  40%       { transform: translate(3%,-1%); }
  50%       { transform: translate(-2%,2%); }
  60%       { transform: translate(1%,-3%); }
  70%       { transform: translate(-3%,1%); }
  80%       { transform: translate(2%,2%); }
  90%       { transform: translate(-1%,-1%); }
}

.grain-overlay {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: .025;
  pointer-events: none;
  animation: grain 8s steps(10) infinite;
  mix-blend-mode: overlay;
}

/* 5. BASE */
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.18;
}

a { text-decoration: none; color: inherit; transition: all .25s ease; }
img { display: block; max-width: 100%; }

/* 6. LAYOUT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: var(--section-pad) 0; }

.grid   { display: grid; gap: 28px; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* 7. SECTION VARIANTS */
.section-dark  { background: var(--dark);     color: var(--text-on-dark); position: relative; overflow: hidden; }
.section-soft  { background: var(--dark-soft); color: var(--text-on-dark); position: relative; overflow: hidden; }
.section-light { background: var(--bg); }
.section-white { background: var(--card); }

.section-dark h2,
.section-soft h2 { color: #fff; }

/* Rule motif — left-edge vertical rule (FT/Economist signature) */
.ruled-left {
  border-left: 1px solid var(--accent);
  padding-left: 20px;
}

/* 8. STICKY NAV */
.sticky-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,14,13,.97);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 0.5px solid rgba(184,148,74,.20);
  padding: 13px 0;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.sticky-nav.visible { transform: translateY(0); }

.sticky-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-nav .nav-brand {
  font-family: var(--ff-head);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.sticky-nav .nav-brand span { color: var(--accent); }

.sticky-nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.sticky-nav .nav-links a {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-on-dark);
  letter-spacing: .10em;
  text-transform: uppercase;
  transition: color .2s;
}
.sticky-nav .nav-links a:hover { color: var(--accent-lt); }

/* 9. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: var(--r-xs);
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  text-transform: uppercase;
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.btn-primary {
  background: linear-gradient(
    90deg,
    #9A7B3A 0%,
    #B8944A 25%,
    #D4B06A 50%,
    #B8944A 75%,
    #9A7B3A 100%
  );
  background-size: 200% auto;
  color: #fff;
  box-shadow:
    0 4px 16px rgba(184,148,74,.40),
    inset 0 1px 0 rgba(255,255,255,.18);
  animation: shimmer 4s linear infinite;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.btn-primary:hover {
  box-shadow:
    0 6px 24px rgba(184,148,74,.55),
    inset 0 1px 0 rgba(255,255,255,.18);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 13px 30px;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Light outline variant on dark bg */
.section-light .btn-outline,
.section-white .btn-outline {
  border-color: var(--accent-dk);
  color: var(--accent-dk);
}
.section-light .btn-outline:hover,
.section-white .btn-outline:hover {
  background: var(--accent-dk);
  color: #fff;
}

/* 10. CARDS */
.card {
  height: 100%;
  background: var(--card);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--r);
  padding: 32px;
  box-shadow: var(--shadow);
}
.section-dark .card,
.section-soft .card {
  background: var(--dark-soft2);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-dk);
}

/* 11. SECTION HEADERS */
.section-header { margin-bottom: 56px; }

.section-header .eyebrow {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header .eyebrow::after {
  content: '';
  display: block;
  height: 0.5px;
  width: 40px;
  background: var(--accent);
  opacity: .6;
}

.section-header h2 { font-size: 42px; margin-bottom: 16px; }
.section-header p  {
  font-size: 17px;
  line-height: 1.7;
  max-width: 760px;
  color: var(--muted);
}
.section-dark  .section-header p,
.section-soft  .section-header p { color: var(--muted-on-dark); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 88px 0 64px;
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

/* Atmospheric glow — asymmetric, not centered */
.hero::before {
  content: '';
  position: absolute;
  top: -15%; right: -5%;
  width: 720px; height: 720px;
  background: radial-gradient(
    ellipse at center,
    rgba(184,148,74,.12) 0%,
    rgba(184,148,74,.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%; left: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(
    circle,
    rgba(184,148,74,.06) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Diagonal line accent — architectural detail */
.hero-diagonal {
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(184,148,74,.15) 30%, rgba(184,148,74,.08) 70%, transparent);
  transform: translateX(-380px);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 960px;
}

/* Eyebrow / dateline */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: var(--accent);
}

/* H1 — Garamond display at max scale */
.hero h1 {
  font-family: var(--ff-head);
  font-size: 72px;
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
  max-width: 960px;
  margin-bottom: 32px;
  letter-spacing: -.012em;
}
@media (max-width: 900px) {
  .hero h1 { font-size: 48px; line-height: 1.10; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 38px; }
}
.hero h1 .accent { color: var(--accent-lt); }

.hero-sub {
  font-family: var(--ff-body);
  font-size: 20px;
  color: var(--muted-on-dark);
  max-width: 760px;
  margin-bottom: 52px;
  line-height: 1.65;
  font-weight: 400;
}
@media (max-width: 540px) {
  .hero-sub { font-size: 17px; }
}

/* Chips — pill tags, crisper */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 52px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(42,38,34,.8);
  border: 0.5px solid rgba(184,148,74,.25);
  border-radius: 3px;
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--champagne);
  letter-spacing: .015em;
  backdrop-filter: blur(4px);
}
.hero-chip .chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(184,148,74,.6);
}

.hero-meta {
  margin-top: 28px;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--muted-on-dark);
  opacity: .7;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-meta::before {
  content: '';
  display: block;
  width: 20px; height: 0.5px;
  background: var(--accent);
  opacity: .6;
}

/* =====================================================
   RELIABILITY LEGEND
   ===================================================== */
.legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(42,38,34,.7);
  border-radius: var(--r-xs);
  margin-bottom: 0;
  border: 0.5px solid var(--border-dark);
  border-top: 1px solid rgba(184,148,74,.12);
  backdrop-filter: blur(4px);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--muted-on-dark);
  letter-spacing: .01em;
}

/* Светлый вариант легенды — для секции на светлом фоне */
.legend-bar.legend-light {
  background: rgba(26,24,22,.04);
  border: 0.5px solid var(--border);
  border-top: 1px solid rgba(184,148,74,.20);
  backdrop-filter: none;
}
.legend-light .legend-item { color: var(--muted); font-size: 13px; }

/* =====================================================
   RESEARCH SECTIONS
   ===================================================== */
.research-section { padding: var(--section-pad) 0; }

.research-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--border-mid);
}

.section-light .research-header { border-bottom-color: var(--border-mid); }
.section-white .research-header { border-bottom-color: var(--border); }

.research-header-text h2 {
  font-family: var(--ff-head);
  font-size: 40px;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.research-header-text .research-meta {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.research-header-text .research-meta::before {
  content: '';
  display: block;
  width: 16px; height: 0.5px;
  background: var(--accent);
}
.section-light .research-header-text .research-meta { color: var(--muted); }
.section-white .research-header-text .research-meta { color: var(--muted); }

/* =====================================================
   FINDINGS LIST — numbered with ghost anchors
   ===================================================== */
.findings-list {
  list-style: none;
  margin-bottom: 48px;
}

.finding-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
  position: relative;
}
.finding-item:first-child { padding-top: 0; }
.finding-item:last-child { border-bottom: none; }

.section-light .finding-item { border-bottom-color: var(--border); }
.section-white .finding-item { border-bottom-color: var(--border); }

/* Ghost numeral — architectural background element */
.finding-num {
  font-family: var(--ff-head);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .18;
  padding-top: 2px;
  user-select: none;
  letter-spacing: -.02em;
  transition: opacity .3s ease;
}
.finding-item:hover .finding-num { opacity: .35; }

.finding-body {
  padding-left: 20px;
  border-left: 1px solid rgba(184,148,74,.20);
}

.finding-lead {
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.45;
  letter-spacing: -.01em;
}
.section-dark .finding-lead,
.section-soft .finding-lead { color: #fff; }

.finding-detail {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.70;
}
.section-dark .finding-detail,
.section-soft .finding-detail { color: var(--muted-on-dark); }
.finding-detail strong { color: var(--accent); font-weight: 600; }

/* Section CTA row */
.section-cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding-top: 16px;
  flex-wrap: wrap;
}
.section-cta-label {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--muted-2);
  font-style: italic;
}
.section-dark .section-cta-label { color: var(--muted-on-dark); }

/* =====================================================
   DIVERGENCE BOX (И2 INSIGHT)
   ===================================================== */
.divergence-box {
  background: var(--dark-soft2);
  border: 0.5px solid var(--border-gold);
  border-radius: var(--r-sm);
  padding: 28px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.divergence-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.divergence-box h4 {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: 18px;
}
.divergence-list { list-style: none; display: grid; gap: 10px; }
.divergence-item {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--champagne);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.65;
}
.div-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.div-badge-red  { background: rgba(185,28,28,.25);  color: #FCA5A5; }
.div-badge-blue { background: rgba(37,99,235,.25);  color: #93C5FD; }

/* =====================================================
   SEGMENT CARDS (И2)
   ===================================================== */
.segment-cards {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.segment-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .25s ease;
}
.segment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.segment-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.segment-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.segment-card-title {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.segment-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px;
  background: var(--accent-soft);
  border-radius: var(--r-xs);
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dk);
  white-space: nowrap;
  letter-spacing: .02em;
}

.segment-job {
  font-family: var(--ff-head);
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--bg-2);
  border-radius: var(--r-xs);
  margin-bottom: 16px;
  border-left: 2px solid var(--accent-soft);
  line-height: 1.65;
}

.segment-insights { list-style: none; display: block; padding: 0; margin: 0; }
.segment-insight {
  position: relative;
  padding: 0 0 0 22px;
  margin: 0 0 10px;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}
.segment-insight:last-child { margin-bottom: 0; }
.segment-insight::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
}

/* =====================================================
   COMPETITORS SECTION
   ===================================================== */
.competitors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.competitor-chip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 18px;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xs);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .2s;
}
.competitor-chip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.competitor-chip-name {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .01em;
}
.competitor-chip-meta {
  font-family: var(--ff-body);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
.competitor-chip.danger {
  border-color: rgba(185,28,28,.22);
  background: rgba(185,28,28,.03);
}
.competitor-chip.danger .competitor-chip-name { color: #991b1b; }

/* Top 3 threat cards */
.top3-grid { display: grid; gap: 20px; margin-bottom: 36px; }

.top3-card {
  background: var(--dark-soft2);
  border: 0.5px solid var(--border-gold);
  border-radius: var(--r);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.top3-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(184,148,74,.05) 0%, transparent 70%);
  pointer-events: none;
}

.top3-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.top3-name {
  font-family: var(--ff-head);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}
.threat-badge {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: var(--r-xs);
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.threat-high { background: rgba(185,28,28,.28); color: #FCA5A5; }
.threat-mid  { background: rgba(184,148,74,.22); color: var(--accent-lt); }

.top3-desc {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--muted-on-dark);
  margin-bottom: 16px;
  line-height: 1.70;
}
.top3-gap {
  font-family: var(--ff-body);
  font-size: 13.5px;
  color: var(--accent-lt);
  font-weight: 500;
  padding-top: 14px;
  border-top: 0.5px solid rgba(237,233,223,.10);
  line-height: 1.60;
}
.top3-gap::before {
  content: 'Уязвимость: ';
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 4px;
}

/* Avito stats box */
.avito-box {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.avito-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.avito-box h4 {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.avito-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--border);
}
.avito-stat { display: flex; flex-direction: column; gap: 4px; }
.avito-stat-val {
  font-family: var(--ff-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-dk);
  line-height: 1;
  letter-spacing: -.02em;
}
.avito-stat-label {
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  max-width: 160px;
  line-height: 1.4;
}

.avito-reviews {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.avito-reviews em {
  display: block;
  background: var(--bg);
  border-left: 2px solid var(--amber);
  padding: 10px 14px;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  margin-top: 10px;
  font-style: normal;
  color: var(--text);
  font-size: 13px;
  line-height: 1.60;
}

/* =====================================================
   WINDOW SECTION (bridge to proposal)
   ===================================================== */
.window-section {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

/* Architectural vertical lines */
.window-section::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 0.5px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(184,148,74,.08) 15%,
    rgba(184,148,74,.08) 85%,
    transparent
  );
}

.window-intro {
  max-width: 800px;
  margin: 0 auto 72px;
  text-align: center;
}
.window-intro .eyebrow {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.window-intro .eyebrow::before,
.window-intro .eyebrow::after {
  content: '';
  display: block;
  height: 0.5px;
  width: 32px;
  background: var(--accent);
  opacity: .5;
}
.window-intro h2 {
  font-family: var(--ff-head);
  font-size: 46px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.window-intro p {
  font-family: var(--ff-body);
  font-size: 17px;
  color: var(--muted-on-dark);
  line-height: 1.75;
}

/* 5 windows grid */
.windows-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 72px;
}

.window-card {
  background: var(--dark-soft2);
  border: 0.5px solid var(--border-gold);
  border-radius: var(--r-sm);
  padding: 24px 20px;
  text-align: center;
  transition: background .25s, border-color .25s, transform .25s;
  cursor: default;
}
.window-card:hover {
  background: var(--dark-mid);
  border-color: rgba(184,148,74,.50);
  transform: translateY(-4px);
}

.window-num {
  font-family: var(--ff-head);
  font-size: 44px;
  font-weight: 700;
  color: rgba(184,148,74,.22);
  line-height: 1;
  margin-bottom: 12px;
  transition: color .25s;
  letter-spacing: -.02em;
}
.window-card:hover .window-num { color: rgba(184,148,74,.45); }

.window-title {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.window-desc {
  font-family: var(--ff-body);
  font-size: 12.5px;
  color: var(--muted-on-dark);
  line-height: 1.65;
}

/* Semantic / Avito box inside window section */
.semantic-box {
  background: rgba(184,148,74,.06);
  border: 0.5px solid rgba(184,148,74,.28);
  border-radius: var(--r-sm);
  padding: 32px;
  margin-bottom: 56px;
  position: relative;
}
.semantic-box-eyebrow {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.semantic-box-body {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--muted-on-dark);
  line-height: 1.75;
  max-width: 800px;
}
.semantic-box-body strong { color: var(--accent-lt); }

/* Risks row */
.risks-section-label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.risks-section-label::before,
.risks-section-label::after {
  content: '';
  height: 0.5px;
  flex: 1;
  max-width: 80px;
  background: rgba(184,148,74,.3);
}

.risks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.risk-card {
  background: rgba(185,28,28,.06);
  border: 0.5px solid rgba(185,28,28,.22);
  border-radius: var(--r-sm);
  padding: 22px 20px;
  transition: background .25s;
}
.risk-card:hover { background: rgba(185,28,28,.10); }

.risk-title {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  color: #FCA5A5;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.risk-title::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
}
.risk-desc {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--champagne);
  opacity: 0.88;
  line-height: 1.70;
}

/* CTA block inside window */
.window-cta-block {
  text-align: center;
  padding: 56px 40px;
  background: var(--dark-soft);
  border: 0.5px solid var(--border-gold);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}
.window-cta-block::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,148,74,.08) 0%, transparent 65%);
  pointer-events: none;
}
.window-cta-block h3 {
  font-family: var(--ff-head);
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.window-cta-block p {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--muted-on-dark);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.70;
}

/* =====================================================
   TEAM
   ===================================================== */
.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.team-card h3 {
  font-family: var(--ff-head);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.section-soft .team-card h3 { color: #fff; }

.team-role {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.team-thesis {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 16px;
  line-height: 1.70;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 2px solid rgba(184,148,74,.30);
  color: rgba(237,233,223,.72);
}

.team-achievements { list-style: none; }
.team-achievements li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-family: var(--ff-body);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-on-dark);
}
.team-achievements li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}
.team-achievements strong { color: #fff; font-weight: 600; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  padding: 40px 0;
  border-top: 0.5px solid rgba(184,148,74,.15);
  text-align: center;
  background: var(--dark);
  position: relative;
}

.footer-brand {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.footer-brand span { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--muted-on-dark);
  transition: color .2s;
  letter-spacing: .03em;
}
.footer-links a:hover { color: var(--accent-lt); }

.footer-copy {
  font-family: var(--ff-body);
  font-size: 11.5px;
  color: var(--muted-on-dark);
  opacity: .55;
  line-height: 1.7;
}

/* =====================================================
   SECTION DIVIDER — gold gradient rule
   ===================================================== */
.section-divider {
  height: 0.5px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--accent) 30%,
    var(--accent) 70%,
    transparent 100%
  );
  opacity: .20;
  margin: 0 40px;
}

/* =====================================================
   REVEAL ANIMATIONS — refined easing
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* =====================================================
   DOTS & STATUS UTILS
   ===================================================== */
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-green  { background: var(--green); }
.dot-blue   { background: var(--blue); }
.dot-amber  { background: var(--amber); }
.dot-red    { background: var(--red); }
.dot-purple { background: var(--purple); }

.marker { display: inline-block; font-size: 13px; margin-left: 3px; cursor: help; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .hero h1 { font-size: 48px; }
  .windows-grid { grid-template-columns: repeat(3, 1fr); }
  :root { --section-pad: 80px; }
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(237,233,223,.80);
  border-radius: 2px;
  transition: background .2s;
}
.nav-hamburger:hover span { background: var(--accent-lt); }
.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(15,14,13,.98);
  backdrop-filter: blur(16px) saturate(180%);
  padding: 80px 32px 40px;
  border-bottom: 0.5px solid rgba(184,148,74,.20);
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.mobile-nav.open {
  transform: translateY(0);
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav ul a {
  display: block;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(237,233,223,.80);
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(237,233,223,.06);
  letter-spacing: .02em;
  transition: color .2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav ul a:hover { color: var(--accent-lt); }
.mobile-nav-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: rgba(237,233,223,.60);
  font-size: 22px;
  font-family: sans-serif;
  transition: color .2s;
}
.mobile-nav-close:hover { color: var(--accent-lt); }
.mobile-nav-close:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }

@media (max-width: 992px) {
  :root { --section-pad: 72px; }
  .hero h1 { font-size: 38px; }
  .competitors-grid { grid-template-columns: repeat(2, 1fr); }
  .windows-grid { grid-template-columns: repeat(2, 1fr); }
  .risks-row { grid-template-columns: 1fr; }
  .sticky-nav .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }
  .container { padding: 0 28px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 88px 0 60px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .section-header h2 { font-size: 30px; }
  .research-header { flex-direction: column; gap: 20px; }
  .research-header-text h2 { font-size: 30px; }
  .competitors-grid { grid-template-columns: 1fr; }
  .windows-grid { grid-template-columns: 1fr; }
  .window-intro h2 { font-size: 30px; }
  .avito-stat-row { gap: 20px; }
  .legend-bar { padding: 14px 18px; gap: 14px; }
  .finding-item { grid-template-columns: 44px 1fr; }
  .finding-num { font-size: 44px; }
  .section-divider { margin: 0 20px; }
  .window-cta-block { padding: 40px 24px; }
  .risks-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero-chips { gap: 8px; }
  .hero-chip { font-size: 13px; padding: 9px 14px; }
  .btn { padding: 13px 24px; font-size: 13px; }
  .finding-item { grid-template-columns: 1fr; }
  .finding-num { font-size: 36px; opacity: .12; margin-bottom: 4px; }
  .finding-body { padding-left: 0; border-left: none; padding-top: 4px; }
  .avito-stat-val { font-size: 28px; }
}

/* ── CONTACT SECTION ─────────────────────────────── */
.contact-card {
  background: var(--dark-soft2);
  border: 0.5px solid var(--border-gold);
}

.btn-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(184,148,74,.08);
  border: 0.5px solid rgba(184,148,74,.22);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--champagne);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-contact:hover {
  background: rgba(184,148,74,.16);
  border-color: rgba(184,148,74,.5);
  color: var(--accent-lt);
}
.btn-contact svg {
  fill: var(--accent);
  flex-shrink: 0;
}

