@layer reset, tokens, base, layout, components, sections, dialog, utilities;

/* ==========================================================================
   RESET
   ========================================================================== */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5rem;
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  body {
    margin: 0;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  dl,
  dt,
  dd,
  figure,
  pre,
  fieldset {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
    list-style: none;
  }

  fieldset {
    border: 0;
    padding: 0;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
  }

  button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  a {
    color: inherit;
  }

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

  svg {
    flex-shrink: 0;
  }
}

/* ==========================================================================
   TOKENS & COLOR SCHEME (synced with lab.html via incubator-theme)
   ========================================================================== */
@layer tokens {
  :root {
    color-scheme: light dark;

    --font-display: 'Unbounded', 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    --font-sans: 'Golos Text', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;

    /* Светлая тема: тёплая архитектурная бумага × графит × вермилион */
    --bg: #f4f2eb;
    --bg-alt: #ece8dd;
    --surface: #fcfbf7;
    --surface-elevated: #ffffff;
    --surface-subtle: #efece3;
    --ink: #141412;
    --ink-muted: #504d46;
    --border: #d5d0c3;
    --border-dash: #bdb6a4;
    --border-strong: #171614;

    /* Вермилион (WCAG AA+) */
    --accent: #c72b12;
    --accent-vivid: #e63b1f;
    --accent-hover: #a5220d;
    --accent-ink: #ffffff;
    --accent-soft: #fcece7;
    --accent-border: #f0b6a6;

    /* Живой сигнал / подтверждено */
    --live-fg: #0b653f;
    --live-bg: #e3f4eb;
    --live-border: #9cd4b7;

    /* Стелс / криптография */
    --stealth-fg: #3b2f63;
    --stealth-bg: #eeeaf8;
    --stealth-border: #c3bae2;

    /* Разгон / внимание */
    --momentum-fg: #9a3808;
    --momentum-bg: #fdf0e6;
    --momentum-border: #e0af8b;

    --grid-hairline: rgba(20, 20, 18, 0.055);
    --header-bg: rgba(244, 242, 235, 0.9);
    --backdrop: rgba(16, 16, 14, 0.62);
    --shadow-hard: 4px 4px 0 var(--border-strong);
    --shadow-hard-sm: 2px 2px 0 var(--border-strong);
    --shadow-dialog: 0 28px 72px rgba(15, 15, 13, 0.34);

    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --container-max: 78rem;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Отражение <meta name="color-scheme"> в CSS color-scheme (dark-mode-toggle) */
  :root:has(> head > meta[name='color-scheme'][content='dark']) {
    color-scheme: dark;
  }

  :root:has(> head > meta[name='color-scheme'][content='light']) {
    color-scheme: light;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
      --bg: #0e0e0d;
      --bg-alt: #141412;
      --surface: #161614;
      --surface-elevated: #1f1f1c;
      --surface-subtle: #23221e;
      --ink: #f2efe7;
      --ink-muted: #aca89d;
      --border: #2e2d28;
      --border-dash: #46443d;
      --border-strong: #ece8de;

      --accent: #ff6243;
      --accent-vivid: #ff6243;
      --accent-hover: #ff7c61;
      --accent-ink: #111110;
      --accent-soft: #2e1712;
      --accent-border: #6c2f21;

      --live-fg: #67dfa4;
      --live-bg: #102a1e;
      --live-border: #21573e;

      --stealth-fg: #d0c5f8;
      --stealth-bg: #201b32;
      --stealth-border: #4a3f6e;

      --momentum-fg: #ffb178;
      --momentum-bg: #2d1c11;
      --momentum-border: #6a4024;

      --grid-hairline: rgba(242, 239, 231, 0.045);
      --header-bg: rgba(14, 14, 13, 0.9);
      --backdrop: rgba(0, 0, 0, 0.78);
      --shadow-dialog: 0 28px 80px rgba(0, 0, 0, 0.75);
    }
  }

  :root[data-theme='dark'] {
    color-scheme: dark;
    --bg: #0e0e0d;
    --bg-alt: #141412;
    --surface: #161614;
    --surface-elevated: #1f1f1c;
    --surface-subtle: #23221e;
    --ink: #f2efe7;
    --ink-muted: #aca89d;
    --border: #2e2d28;
    --border-dash: #46443d;
    --border-strong: #ece8de;

    --accent: #ff6243;
    --accent-vivid: #ff6243;
    --accent-hover: #ff7c61;
    --accent-ink: #111110;
    --accent-soft: #2e1712;
    --accent-border: #6c2f21;

    --live-fg: #67dfa4;
    --live-bg: #102a1e;
    --live-border: #21573e;

    --stealth-fg: #d0c5f8;
    --stealth-bg: #201b32;
    --stealth-border: #4a3f6e;

    --momentum-fg: #ffb178;
    --momentum-bg: #2d1c11;
    --momentum-border: #6a4024;

    --grid-hairline: rgba(242, 239, 231, 0.045);
    --header-bg: rgba(14, 14, 13, 0.9);
    --backdrop: rgba(0, 0, 0, 0.78);
    --shadow-dialog: 0 28px 80px rgba(0, 0, 0, 0.75);
  }

  :root[data-theme='light'] {
    color-scheme: light;
  }

  @supports (color: light-dark(white, black)) {
    :root {
      --bg: light-dark(#f4f2eb, #0e0e0d);
      --bg-alt: light-dark(#ece8dd, #141412);
      --surface: light-dark(#fcfbf7, #161614);
      --surface-elevated: light-dark(#ffffff, #1f1f1c);
      --surface-subtle: light-dark(#efece3, #23221e);
      --ink: light-dark(#141412, #f2efe7);
      --ink-muted: light-dark(#504d46, #aca89d);
      --border: light-dark(#d5d0c3, #2e2d28);
      --border-dash: light-dark(#bdb6a4, #46443d);
      --border-strong: light-dark(#171614, #ece8de);

      --accent: light-dark(#c72b12, #ff6243);
      --accent-vivid: light-dark(#e63b1f, #ff6243);
      --accent-hover: light-dark(#a5220d, #ff7c61);
      --accent-ink: light-dark(#ffffff, #111110);
      --accent-soft: light-dark(#fcece7, #2e1712);
      --accent-border: light-dark(#f0b6a6, #6c2f21);

      --live-fg: light-dark(#0b653f, #67dfa4);
      --live-bg: light-dark(#e3f4eb, #102a1e);
      --live-border: light-dark(#9cd4b7, #21573e);

      --stealth-fg: light-dark(#3b2f63, #d0c5f8);
      --stealth-bg: light-dark(#eeeaf8, #201b32);
      --stealth-border: light-dark(#c3bae2, #4a3f6e);

      --momentum-fg: light-dark(#9a3808, #ffb178);
      --momentum-bg: light-dark(#fdf0e6, #2d1c11);
      --momentum-border: light-dark(#e0af8b, #6a4024);

      --grid-hairline: light-dark(rgba(20, 20, 18, 0.055), rgba(242, 239, 231, 0.045));
      --header-bg: light-dark(rgba(244, 242, 235, 0.9), rgba(14, 14, 13, 0.9));
      --backdrop: light-dark(rgba(16, 16, 14, 0.62), rgba(0, 0, 0, 0.78));
    }
  }
}

/* ==========================================================================
   BASE
   ========================================================================== */
@layer base {
  body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--bg);
    text-align: start;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1,
  h2,
  h3 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  p {
    text-wrap: pretty;
    overflow-wrap: break-word;
  }

  code.inline-code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.1em 0.35em;
    border-radius: var(--radius-xs);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
  }

  :where(a:any-link, button, summary, input, textarea, [tabindex='-1']):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .mono {
    font-family: var(--font-mono);
  }

  .tabular {
    font-variant-numeric: tabular-nums;
  }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2.25rem);
  }

  .section {
    padding-block: clamp(3.5rem, 6.5vw, 6.25rem);
    border-top: 1px solid var(--border);
  }

  .section--concept,
  .section--formats,
  .section--process,
  .section--faq {
    background-color: var(--bg-alt);
  }

  .section-head {
    max-width: 48rem;
    margin-block-end: clamp(2rem, 4vw, 3.25rem);
  }

  .section-head--split {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
  }

  .section-head--split > div {
    max-width: 46rem;
  }

  .section-index {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-block-end: 0.85rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 1.15rem + 2vw, 2.85rem);
    font-weight: 700;
    margin-block-end: 0.9rem;
  }

  .section-lead {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 60ch;
  }
}

/* ==========================================================================
   COMPONENTS (Header, Buttons, Theme Toggle, Badges, Reveal)
   ========================================================================== */
@layer components {
  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.65rem 1rem;
    background: var(--border-strong);
    color: var(--bg);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-xs);
    text-decoration: none;
    transform: translateY(-200%);
  }

  .skip-link:focus-visible {
    transform: translateY(0);
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-block-size: 3.85rem;
    padding-block: 0.45rem;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
  }

  .brand-mark {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-xs);
    background: var(--border-strong);
    position: relative;
    flex-shrink: 0;
  }

  .brand-mark::before {
    content: '';
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent-vivid);
  }

  .brand-mark::after {
    content: '';
    position: absolute;
    right: 0.25rem;
    bottom: 0.25rem;
    width: 0.55rem;
    height: 0.22rem;
    background: var(--bg);
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
  }

  .brand-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  .brand-sub {
    font-size: 0.64rem;
    letter-spacing: 0.09em;
    color: var(--ink-muted);
    line-height: 1;
  }

  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.5rem;
    padding-inline: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: color 0.16s ease, background-color 0.16s ease;
  }

  .main-nav a:hover {
    color: var(--ink);
    background: var(--surface-subtle);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-block-size: 2.5rem;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition:
      background-color 0.16s var(--ease-out),
      color 0.16s var(--ease-out),
      border-color 0.16s var(--ease-out),
      box-shadow 0.16s var(--ease-out),
      translate 0.16s var(--ease-out);
  }

  .btn--lg {
    min-block-size: 3.1rem;
    padding: 0.78rem 1.45rem;
    font-size: 0.95rem;
  }

  .btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hard-sm);
  }

  .btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-hard);
  }

  @media (prefers-reduced-motion: no-preference) {
    .btn--primary:hover,
    .btn--outline:hover {
      translate: -1px -1px;
    }

    .btn--primary:active,
    .btn--outline:active {
      translate: 1px 1px;
    }
  }

  .btn--outline {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hard-sm);
  }

  .btn--outline:hover {
    background: var(--surface-elevated);
    box-shadow: var(--shadow-hard);
  }

  .btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
  }

  .btn--ghost:hover {
    background: var(--surface-subtle);
    border-color: var(--border-strong);
  }

  .btn-admin-short {
    display: none;
  }

  .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 2.5rem;
    min-block-size: 2.5rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    transition: background-color 0.16s ease, border-color 0.16s ease;
  }

  .icon-btn:hover {
    background: var(--surface-subtle);
    border-color: var(--border-strong);
  }

  /* Two-state theme toggle (dark-mode-toggle non-color branching without JS lag) */
  .theme-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .theme-option--to-light {
    display: none;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']):not(:has(> head > meta[name='color-scheme'][content='light'])) .theme-option--to-dark {
      display: none;
    }

    :root:not([data-theme='light']):not(:has(> head > meta[name='color-scheme'][content='light'])) .theme-option--to-light {
      display: inline-flex;
    }
  }

  :root:has(> head > meta[name='color-scheme'][content='dark']) .theme-option--to-dark,
  :root[data-theme='dark'] .theme-option--to-dark {
    display: none;
  }

  :root:has(> head > meta[name='color-scheme'][content='dark']) .theme-option--to-light,
  :root[data-theme='dark'] .theme-option--to-light {
    display: inline-flex;
  }

  :root:has(> head > meta[name='color-scheme'][content='light']) .theme-option--to-dark,
  :root[data-theme='light'] .theme-option--to-dark {
    display: inline-flex;
  }

  :root:has(> head > meta[name='color-scheme'][content='light']) .theme-option--to-light,
  :root[data-theme='light'] .theme-option--to-light {
    display: none;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-nav-panel {
    border-top: 1px solid var(--border);
    background: var(--surface);
  }

  .mobile-nav-panel[hidden] {
    display: none;
  }

  .mobile-nav-inner {
    padding-block: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-nav-inner ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
  }

  .mobile-nav-inner li a {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.5rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
  }

  .mobile-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .mobile-nav-actions > * {
    flex: 1 1 12rem;
  }

  /* Live pulse dot */
  .pulse-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: var(--live-fg);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
  }

  .pulse-dot--sm {
    width: 0.48rem;
    height: 0.48rem;
  }

  @media (prefers-reduced-motion: no-preference) {
    .pulse-dot::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      border: 1.5px solid var(--live-fg);
      opacity: 0;
      animation: live-ping 2.4s var(--ease-out) infinite;
    }
  }

  @keyframes live-ping {
    0% {
      transform: scale(0.8);
      opacity: 0.75;
    }
    70%,
    100% {
      transform: scale(1.9);
      opacity: 0;
    }
  }

  /* Tag lists */
  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .tag-list li {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    padding: 0.24rem 0.55rem;
    border-radius: var(--radius-xs);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    color: var(--ink-muted);
  }

  /* Progressive scroll reveal: defaults to VISIBLE (opacity: 1) */
  .reveal {
    opacity: 1;
    translate: 0 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-pending {
      opacity: 0;
      translate: 0 18px;
      transition:
        opacity 0.52s var(--ease-out),
        translate 0.52s var(--ease-out);
    }

    .reveal.reveal-pending.is-revealed {
      opacity: 1;
      translate: 0 0;
    }
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
@layer sections {
  /* ---------- HERO ---------- */
  .hero {
    position: relative;
    padding-block: clamp(1.35rem, 2.2vw, 2rem) clamp(1.5rem, 2.5vw, 2.15rem);
    overflow: hidden;
  }

  .hero-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(to right, var(--grid-hairline) 1px, transparent 1px),
      linear-gradient(to bottom, var(--grid-hairline) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }

  .hero-inner {
    position: relative;
    z-index: 1;
  }

  .hero-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.5rem;
    margin-block-end: clamp(0.9rem, 1.5vw, 1.25rem);
  }

  .live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: var(--live-bg);
    border: 1px solid var(--live-border);
    color: var(--live-fg);
    font-size: 0.77rem;
    font-weight: 500;
    max-width: 100%;
  }

  .hero-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
  }

  .hero-wordmark-block {
    margin-block-end: clamp(1.15rem, 2vw, 1.7rem);
  }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.55rem, 1.15rem + 6.4vw, 6.25rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-block-end: 0.75rem;
  }

  .hero-title-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .hero-title-rule-bar {
    flex: 1 1 auto;
    height: 3px;
    background: linear-gradient(to right, var(--accent-vivid) 0%, var(--accent-vivid) 18%, var(--border-strong) 18%, var(--border-strong) 100%);
  }

  .hero-title-rule-tag {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    flex-shrink: 0;
  }

  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: clamp(1.4rem, 3.2vw, 2.75rem);
    align-items: start;
    margin-block-end: clamp(1.25rem, 2.1vw, 1.75rem);
  }

  .hero-subtitle {
    font-size: clamp(1.15rem, 1rem + 0.72vw, 1.44rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    max-width: 40ch;
    margin-block-end: 0.75rem;
  }

  .hero-lead {
    font-size: clamp(0.96rem, 0.92rem + 0.22vw, 1.04rem);
    line-height: 1.56;
    color: var(--ink-muted);
    max-width: 56ch;
    margin-block-end: 1.25rem;
  }

  .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  /* Hero Live Pulse Card */
  .hero-pulse-card {
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard);
    overflow: hidden;
  }

  .pulse-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.58rem 0.95rem;
    background: var(--surface-subtle);
    border-bottom: 1px solid var(--border);
  }

  .pulse-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--live-fg);
  }

  .pulse-card-link {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.16s ease, color 0.16s ease;
  }

  .pulse-card-link:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .pulse-feed {
    display: flex;
    flex-direction: column;
  }

  .pulse-feed-item {
    padding: 0.62rem 0.95rem;
    border-bottom: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .pulse-feed-item:last-child {
    border-bottom: 0;
  }

  .pulse-feed-tag {
    align-self: flex-start;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .pulse-feed-item p {
    font-size: 0.83rem;
    line-height: 1.42;
    color: var(--ink);
  }

  .pulse-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    background: var(--surface-subtle);
    border-top: 1px solid var(--border);
    font-size: 0.71rem;
    color: var(--ink-muted);
  }

  .hash-chip {
    padding: 0.14rem 0.45rem;
    border-radius: var(--radius-xs);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
  }

  /* Hero Telemetry Strip */
  .hero-telemetry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
  }

  .telemetry-cell {
    padding: 0.82rem 1.1rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    min-width: 0;
  }

  .telemetry-cell:last-child {
    border-right: 0;
  }

  .telemetry-cell dt {
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.03em;
  }

  .telemetry-cell dd {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.05rem + 1vw, 1.95rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
  }

  .telemetry-cell--accent {
    background: var(--accent-soft);
  }

  .telemetry-cell--accent dd {
    color: var(--accent);
  }

  /* ---------- TELEMETRY TICKER ---------- */
  .ticker-band {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
    background: var(--surface);
  }

  .ticker-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-block: 0.72rem;
    min-width: 0;
  }

  .ticker-track {
    display: flex;
    width: max-content;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ink);
  }

  .ticker-group {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding-inline-end: 1.15rem;
    white-space: nowrap;
  }

  .ticker-sep {
    color: var(--accent-vivid);
    font-size: 0.65rem;
  }

  @media (prefers-reduced-motion: no-preference) {
    .ticker-track {
      animation: ticker-scroll 34s linear infinite;
    }

    .ticker-band:hover .ticker-track,
    .ticker-band.is-paused .ticker-track {
      animation-play-state: paused;
    }
  }

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

  .ticker-control {
    flex-shrink: 0;
    min-inline-size: 5.2rem;
    padding-inline: 0.9rem;
    border-left: 1px solid var(--border-strong);
    background: var(--surface-subtle);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ink);
    transition: background-color 0.16s ease, color 0.16s ease;
  }

  .ticker-control:hover {
    background: var(--border-strong);
    color: var(--bg);
  }

  /* ---------- 01 / КОНЦЕПЦИЯ ---------- */
  .concept-thesis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-block-end: 2rem;
  }

  .thesis-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
  }

  .thesis-num {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
  }

  .thesis-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
  }

  .thesis-card p {
    font-size: 0.94rem;
    color: var(--ink-muted);
    line-height: 1.6;
  }

  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .pillar-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .pillar-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hard-sm);
  }

  .pillar-card--lock {
    border-color: var(--border-strong);
    background: linear-gradient(155deg, var(--surface) 60%, var(--accent-soft) 100%);
  }

  .pillar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .pillar-code {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.06em;
  }

  .pillar-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-xs);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    color: var(--ink);
  }

  .pillar-card--lock .pillar-badge {
    background: var(--live-bg);
    border-color: var(--live-border);
    color: var(--live-fg);
  }

  .pillar-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
  }

  .pillar-card p {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.62;
  }

  .pillar-proof {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
    font-size: 0.76rem;
    color: var(--live-fg);
    font-weight: 500;
  }

  /* ---------- 02 / ЛАБОРАТОРИИ СЕТИ ---------- */
  .labs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
  }

  .lab-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.88rem;
    min-width: 0;
    position: relative;
    transition:
      border-color 0.2s var(--ease-out),
      box-shadow 0.2s var(--ease-out),
      translate 0.2s var(--ease-out);
  }

  .lab-card--active {
    border: 1.5px solid var(--border-strong);
    box-shadow: var(--shadow-hard);
  }

  .lab-card--active:hover {
    border-color: var(--accent);
  }

  @media (prefers-reduced-motion: no-preference) {
    .lab-card--active:hover {
      translate: -2px -2px;
    }
  }

  .lab-card--stub {
    border: 1.5px dashed var(--border-dash);
    background:
      linear-gradient(to right, var(--grid-hairline) 1px, transparent 1px) 0 0 / 1.5rem 1.5rem,
      linear-gradient(to bottom, var(--grid-hairline) 1px, transparent 1px) 0 0 / 1.5rem 1.5rem,
      var(--surface);
  }

  .lab-card--stub:hover {
    border-color: var(--border-strong);
  }

  .lab-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .lab-code {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
  }

  .lab-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
  }

  .lab-status--live {
    background: var(--live-bg);
    border: 1px solid var(--live-border);
    color: var(--live-fg);
  }

  .lab-status--stub {
    background: var(--surface-subtle);
    border: 1px dashed var(--border-dash);
    color: var(--ink-muted);
  }

  .stub-dot {
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: inline-block;
  }

  .lab-card-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .lab-avatar-frame {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--border-strong);
    flex-shrink: 0;
    background: var(--surface-subtle);
  }

  .lab-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 46% 45%;
    transition: transform 0.35s var(--ease-out);
  }

  @media (prefers-reduced-motion: no-preference) {
    .lab-card--active:hover .lab-avatar-frame img {
      transform: scale(1.05);
    }
  }

  .lab-monogram {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-sm);
    border: 1.5px dashed var(--border-dash);
    background: var(--surface-subtle);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
  }

  .lab-monogram span {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
  }

  .lab-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-block-end: 0.15rem;
  }

  .lab-handle {
    font-size: 0.78rem;
    color: var(--accent);
    margin-block-end: 0.25rem;
  }

  .lab-card--stub .lab-handle {
    color: var(--ink-muted);
  }

  .lab-role {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.35;
  }

  .lab-desc {
    font-size: 0.93rem;
    line-height: 1.58;
    color: var(--ink-muted);
  }

  .lab-metrics {
    margin-top: auto;
    min-block-size: 3.85rem;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
  }

  .lab-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .lab-metrics dt {
    font-size: 0.67rem;
    color: var(--ink-muted);
    text-transform: uppercase;
  }

  .lab-metrics dd {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
  }

  .lab-stub-schematic {
    margin-top: auto;
    min-block-size: 3.85rem;
    display: flex;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    border: 1px dashed var(--border-dash);
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
  }

  .lab-card-footer {
    margin-top: 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .lab-proof {
    font-size: 0.73rem;
    color: var(--ink-muted);
  }

  .lab-card--active .lab-proof {
    color: var(--live-fg);
    font-weight: 500;
  }

  .lab-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
  }

  /* Stretched link makes the entire active Lab #01 card clickable & accessible */
  .lab-card-cta::after {
    content: '';
    position: absolute;
    inset: 0;
  }

  .lab-card-cta:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .lab-stub-action {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    min-block-size: 2.25rem;
    transition: background-color 0.16s ease, color 0.16s ease;
  }

  .lab-stub-action:hover {
    background: var(--border-strong);
    color: var(--bg);
  }

  /* ---------- 03 / ЧТО ДЕЛАЕМ ---------- */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .service-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .service-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hard-sm);
  }

  .service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .service-card h3 {
    font-size: 1.22rem;
    font-weight: 700;
  }

  .service-card > p {
    font-size: 0.96rem;
    color: var(--ink-muted);
    line-height: 1.62;
  }

  .service-points {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .service-points li {
    position: relative;
    padding-inline-start: 1.15rem;
    font-size: 0.89rem;
    color: var(--ink);
  }

  .service-points li::before {
    content: '—';
    position: absolute;
    inset-inline-start: 0;
    color: var(--accent);
    font-weight: 700;
  }

  /* ---------- 04 / ФОРМАТЫ ---------- */
  .formats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .format-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
  }

  .format-card--featured {
    border-color: var(--border-strong);
    border-top: 4px solid var(--accent-vivid);
    box-shadow: var(--shadow-hard);
  }

  .format-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
  }

  .format-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
  }

  .format-card--featured .format-tag {
    color: var(--accent);
  }

  .format-term {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xs);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    color: var(--ink);
  }

  .format-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
  }

  .format-fit {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.55;
  }

  .format-deliverable {
    margin-top: auto;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .format-deliverable span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
  }

  .format-deliverable p {
    font-size: 0.85rem;
    line-height: 1.48;
    color: var(--ink);
  }

  .format-btn {
    width: 100%;
    margin-top: 0.25rem;
  }

  /* ---------- 05 / СРАВНЕНИЕ ---------- */
  .table-wrap {
    overflow-x: auto;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-hard-sm);
  }

  .compare-table {
    width: 100%;
    min-width: 44rem;
    border-collapse: collapse;
    text-align: start;
  }

  .compare-table th,
  .compare-table td {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    vertical-align: top;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .compare-table th:last-child,
  .compare-table td:last-child {
    border-right: 0;
  }

  .compare-table tbody tr:last-child th,
  .compare-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .compare-table thead th {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    background: var(--surface-subtle);
    border-bottom: 1.5px solid var(--border-strong);
    text-wrap: balance;
  }

  .compare-table tbody th {
    font-weight: 700;
    color: var(--ink);
    width: 18%;
    background: var(--surface);
  }

  .compare-table tbody td {
    color: var(--ink-muted);
    width: 26%;
  }

  .compare-table .col-ready {
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 600;
    width: 30%;
  }

  .compare-table thead .col-ready {
    background: var(--accent);
    color: var(--accent-ink);
  }

  /* ---------- 06 / ПРОЦЕСС И ГАРАНТИИ ---------- */
  .process-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-block-end: 2rem;
  }

  .process-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
  }

  .step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius-xs);
    background: var(--border-strong);
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 700;
  }

  .process-step h3 {
    font-size: 0.98rem;
    font-weight: 700;
  }

  .process-step p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-muted);
  }

  .guarantee-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-strong);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .guarantee-item {
    background: var(--surface);
    padding: 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .guarantee-item--crypto {
    background: var(--live-bg);
  }

  .guarantee-kicker {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
  }

  .guarantee-item--crypto .guarantee-kicker {
    color: var(--live-fg);
  }

  .guarantee-item strong {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
  }

  .guarantee-item p {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.48;
  }

  .guarantee-item--crypto p {
    color: var(--live-fg);
    font-size: 0.76rem;
  }

  /* ---------- 07 / ЖИВОЙ СРЕЗ ВИТРИНЫ ---------- */
  .showcase-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.2rem;
    margin-block-end: 2rem;
  }

  .project-card {
    grid-column: span 2;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .project-card:nth-child(4),
  .project-card:nth-child(5) {
    grid-column: span 3;
  }

  .project-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hard-sm);
  }

  .project-card--stealth {
    background: var(--stealth-bg);
    border: 1.5px dashed var(--stealth-border);
  }

  .project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
  }

  .project-badge {
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-xs);
    font-weight: 600;
  }

  .project-badge--stack {
    background: var(--live-bg);
    color: var(--live-fg);
    border: 1px solid var(--live-border);
  }

  .project-badge--momentum {
    background: var(--momentum-bg);
    color: var(--momentum-fg);
    border: 1px solid var(--momentum-border);
  }

  .project-badge--stealth {
    background: var(--surface);
    color: var(--stealth-fg);
    border: 1px solid var(--stealth-border);
  }

  .project-num {
    color: var(--ink-muted);
    font-weight: 600;
  }

  .project-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
  }

  .project-card p {
    font-size: 0.91rem;
    line-height: 1.56;
    color: var(--ink-muted);
  }

  .project-card--stealth p {
    color: var(--ink);
  }

  .project-card-foot {
    margin-top: auto;
    padding-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .project-live-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
  }

  .project-live-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .stealth-lock-row {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--stealth-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--stealth-fg);
  }

  .showcase-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .showcase-note {
    font-size: 0.78rem;
    color: var(--ink-muted);
  }

  /* ---------- 08 / FAQ (ACCORDION GUIDE) ---------- */
  .section--faq .section-head--split {
    max-width: 60rem;
  }

  .faq-toggle-all[aria-expanded='true'] .faq-toggle-expand,
  .faq-toggle-all[aria-expanded='false'] .faq-toggle-collapse {
    display: none;
  }

  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 60rem;
  }

  .faq-item {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.16s ease;
  }

  .faq-item[open] {
    border-color: var(--border-strong);
  }

  .faq-item > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem;
    font-family: var(--font-display);
    font-size: clamp(0.96rem, 0.9rem + 0.25vw, 1.08rem);
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    min-block-size: 3.4rem;
  }

  .faq-item > summary::-webkit-details-marker {
    display: none;
  }

  /* Marker placed directly BEFORE label text per accordion guide */
  .faq-item > summary::before {
    content: '';
    inline-size: 1.1rem;
    block-size: 1.1rem;
    flex-shrink: 0;
    background-color: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06Z'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06Z'/%3E%3C/svg%3E") no-repeat center / contain;
    rotate: -90deg;
  }

  .faq-item[open] > summary::before {
    rotate: 0deg;
  }

  @media (prefers-reduced-motion: no-preference) {
    .faq-item > summary::before {
      transition: rotate 0.2s var(--ease-out);
    }
  }

  .faq-item > summary:hover {
    background: var(--surface-subtle);
  }

  .faq-item::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    contain: layout;
  }

  .faq-item:not([open])::details-content {
    block-size: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .faq-item::details-content {
      transition-property: block-size, content-visibility, display;
      transition-duration: 0.28s;
      transition-timing-function: var(--ease-out);
      transition-behavior: allow-discrete;
    }
  }

  .faq-body {
    padding: 0 1.35rem 1.3rem 3.3rem;
    border-top: 1px dashed var(--border);
  }

  .faq-body p {
    padding-top: 0.95rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ink-muted);
    max-width: 66ch;
  }

  /* ---------- 09 / ФИНАЛЬНЫЙ CTA ---------- */
  .cta-panel {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard);
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
  }

  .cta-panel-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(to right, var(--grid-hairline) 1px, transparent 1px),
      linear-gradient(to bottom, var(--grid-hairline) 1px, transparent 1px);
    background-size: 2.25rem 2.25rem;
  }

  .cta-panel-content {
    position: relative;
    z-index: 1;
    max-width: 44rem;
  }

  .cta-title {
    font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.8rem);
    font-weight: 800;
    margin-block-end: 1rem;
  }

  .cta-lead {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
    line-height: 1.6;
    color: var(--ink-muted);
    margin-block-end: 1.85rem;
    max-width: 56ch;
  }

  .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  /* ---------- FOOTER ---------- */
  .site-footer {
    border-top: 1.5px solid var(--border-strong);
    background: var(--surface);
    padding-block: 2.75rem 2rem;
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
  }

  .footer-brand {
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .footer-note {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.55;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.4rem;
    align-items: center;
  }

  .footer-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    min-block-size: 2.5rem;
    display: inline-flex;
    align-items: center;
  }

  .footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .footer-bottom {
    padding-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.5rem;
    font-size: 0.74rem;
    color: var(--ink-muted);
  }
}

/* ==========================================================================
   NATIVE <dialog> (dialog, light-dismiss, animate-to-from-top-layer guides)
   ========================================================================== */
@layer dialog {
  dialog.brief-dialog {
    padding: 0;
    margin: auto;
    width: min(46rem, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-dialog);
    overflow: auto;

    opacity: 0;
    transition-property: opacity, transform, display, overlay;
    transition-duration: 0.24s;
    transition-timing-function: var(--ease-out);
    transition-behavior: allow-discrete;
  }

  @media (prefers-reduced-motion: no-preference) {
    dialog.brief-dialog {
      transform: translateY(10px) scale(0.98);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    dialog.brief-dialog {
      transition-duration: 0.1s;
    }
  }

  dialog.brief-dialog[open]:where(:not([data-closing])) {
    opacity: 1;

    @starting-style {
      opacity: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
      transform: translateY(0) scale(1);

      @starting-style {
        transform: translateY(10px) scale(0.98);
      }
    }
  }

  /* MANDATORY: prevent underlying page scroll behind modal dialog */
  dialog.brief-dialog:modal {
    overscroll-behavior: contain;
  }

  dialog.brief-dialog::backdrop {
    background-color: transparent;
    overflow: hidden;
    overscroll-behavior: contain;
    transition-property: background-color, display, overlay;
    transition-duration: 0.24s;
    transition-timing-function: var(--ease-out);
    transition-behavior: allow-discrete;
  }

  dialog.brief-dialog[open]:where(:not([data-closing]))::backdrop {
    background-color: var(--backdrop);

    @starting-style {
      background-color: transparent;
    }
  }

  .dialog-shell {
    display: flex;
    flex-direction: column;
  }

  .dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.35rem 0.78rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-subtle);
  }

  .dialog-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-block-end: 0.2rem;
  }

  .dialog-title {
    font-size: 1.28rem;
    font-weight: 700;
  }

  .brief-form {
    padding: 0.95rem 1.35rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.78rem;
  }

  .form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .chip-fieldset legend,
  .form-field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    margin-block-end: 0.35rem;
  }

  .chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .chip-group input[type='radio'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
  }

  .chip-group label {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.1rem;
    padding: 0.28rem 0.68rem;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--border);
    background: var(--surface-subtle);
    font-size: 0.81rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }

  .chip-group label:hover {
    border-color: var(--border-strong);
  }

  .chip-group input[type='radio']:checked + label {
    background: var(--border-strong);
    color: var(--bg);
    border-color: var(--border-strong);
  }

  .chip-group input[type='radio']:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .form-field {
    display: flex;
    flex-direction: column;
  }

  .field-hint {
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin-block-end: 0.32rem;
  }

  .form-field input[type='text'],
  .form-field textarea {
    width: 100%;
    padding: 0.52rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .form-field textarea {
    resize: vertical;
    min-block-size: 4.4rem;
  }

  .form-field input[type='text']:focus,
  .form-field textarea:focus {
    border-color: var(--border-strong);
  }

  .nda-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.52rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--stealth-bg);
    border: 1px solid var(--stealth-border);
  }

  .nda-check input[type='checkbox'] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
    flex-shrink: 0;
  }

  .nda-check label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--stealth-fg);
    cursor: pointer;
  }

  .brief-preview-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    overflow: hidden;
  }

  .brief-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.38rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.68rem;
    color: var(--ink-muted);
  }

  #brief-copy-status {
    color: var(--live-fg);
    font-weight: 600;
  }

  .brief-preview-text {
    padding: 0.55rem 0.75rem;
    font-size: 0.74rem;
    line-height: 1.44;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-block-size: 6.2rem;
    overflow-y: auto;
  }

  .dialog-actions {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.65rem;
    padding-bottom: 0.1rem;
    border-top: 1px solid var(--border);
  }

  .dialog-actions .btn--ghost {
    margin-inline-start: auto;
  }
}

/* ==========================================================================
   UTILITIES & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@layer utilities {
  .visually-hidden:where(:not(:focus-within, :active)) {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

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

    .mobile-menu-btn {
      display: inline-flex;
    }

    .labs-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .formats-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-steps {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-step:last-child {
      grid-column: span 2;
    }
  }

  @media (max-width: 900px) {
    .hero-split {
      grid-template-columns: minmax(0, 1fr);
    }

    .hero-telemetry {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .telemetry-cell:nth-child(2) {
      border-right: 0;
    }

    .telemetry-cell:nth-child(1),
    .telemetry-cell:nth-child(2) {
      border-bottom: 1px solid var(--border);
    }

    .concept-thesis-grid,
    .pillars-grid,
    .services-grid,
    .guarantee-strip {
      grid-template-columns: minmax(0, 1fr);
    }

    .showcase-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .project-card,
    .project-card:nth-child(4),
    .project-card:nth-child(5) {
      grid-column: span 1;
    }
  }

  @media (max-width: 640px) {
    .brand-sub,
    .btn--header-cta,
    .btn-admin-full {
      display: none;
    }

    .btn-admin-short {
      display: inline;
    }

    .btn--admin {
      padding-inline: 0.7rem;
      font-size: 0.82rem;
    }

    .hero-title-rule-tag {
      display: none;
    }

    .labs-grid,
    .formats-grid,
    .process-steps {
      grid-template-columns: minmax(0, 1fr);
    }

    .lab-card--active,
    .process-step:last-child {
      grid-column: span 1;
    }

    .lab-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-body {
      padding: 0 1.1rem 1.15rem 1.1rem;
    }

    .dialog-head,
    .brief-form {
      padding-inline: 1.05rem;
    }

    .form-row-2 {
      grid-template-columns: minmax(0, 1fr);
    }

    .dialog-actions {
      position: static;
      flex-direction: column;
      align-items: stretch;
    }

    .dialog-actions .btn--ghost {
      margin-inline-start: 0;
    }
  }

  @media (pointer: coarse) {
    .btn,
    .icon-btn,
    .chip-group label,
    .lab-stub-action {
      min-block-size: 2.75rem;
    }
  }
}
