/* FlowTrafix — общие стили сайта (Brand/README «Сайт»). Подключаются на всех страницах. */
  /* ---------- шрифты бренда (Brand/README «Шрифт») ---------- */
  @font-face { font-family: "Unbounded"; src: url("/fonts/Unbounded.woff") format("woff"); font-weight: 200 900; font-display: swap; }
  @font-face { font-family: "Onest"; src: url("/fonts/Onest.woff") format("woff"); font-weight: 100 900; font-display: swap; }
  @font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono.woff") format("woff"); font-weight: 100 800; font-display: swap; }

  /* ---------- токены (Brand/brand.css, тема «Ночь») ---------- */
  :root {
    --ink: #07090d; --surface: #10141b; --line: #253041;
    --glass: rgba(16, 20, 27, 0.55); --glass-line: rgba(242, 245, 250, 0.14);
    --text: #f2f5fa; --text-muted: #9aa6b8;
    --blue-900: #03195b; --blue-800: #0b2cb1; --blue-600: #1951fc; --blue-500: #3781fc; --blue-300: #59b0fd; --blue-100: #cbe9fd;
    --flow-blue: var(--blue-600); --accent-text: var(--blue-300); --on-flow-blue: #ffffff; --signal-live: #37d67a;
    --radius-l: 28px; --radius-pill: 999px;
    --font-display: "Unbounded", system-ui, sans-serif;
    --font-sans: "Onest", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --ease: cubic-bezier(.16, 1, .3, 1);

    --seam: 44vw;                         /* граница стекла = шов между FLOW и TRAFIX */
    --word: clamp(64px, 10.4vw, 210px);   /* размер FLOWTRAFIX */
    --lens: 220px;                        /* диаметр «рентгена» */
    --giant: clamp(72px, 21vw, 400px);    /* крупное слово над карточками */
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--ink); color: var(--text); }
  body { font-family: var(--font-sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }

  /* ---------- шапка ---------- */
  .nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 19.5px clamp(16px, 3.4vw, 48px); }
  .brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
  .brand img { width: 30px; height: 30px; border-radius: 7px; }  /* знак на тёмной плашке — img/flowtrafix-icon.png */
  .nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--text-muted); }
  .nav-links a:hover { color: var(--text); }
  .nav-actions { display: flex; align-items: center; gap: 12px; }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s, transform .2s var(--ease); }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--flow-blue); color: var(--on-flow-blue); box-shadow: 0 10px 30px -10px rgba(25, 81, 252, .7); }
  .btn-primary:hover { background: #2a5ffd; }
  .btn-glass { background: rgba(242, 245, 250, .06); border: 1px solid var(--glass-line); }
  .btn-glass:hover { border-color: rgba(89, 176, 253, .5); }
  .nav .btn { height: 42px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

  /* ---------- первый экран: однотонный фон ink ---------- */
  .hero { position: relative; z-index: 1; min-height: max(100svh, 680px); overflow: hidden; isolation: isolate; }

  /* линия потока: размытие рисуется один раз, двигается только transform */
  main { position: relative; isolation: isolate; }
  .pageflow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .pageflow-drift { position: absolute; inset: 0; will-change: transform; animation: drift 12s ease-in-out infinite alternate; }
  .pageflow svg { position: absolute; left: 0; top: 0; overflow: visible; }
  @keyframes drift { from { transform: translate3d(-1.2%, 1%, 0); } to { transform: translate3d(1.2%, -1%, 0); } }

  /* стеклянная панель слева */
  .glass { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent); position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: var(--seam); background: var(--glass); border-right: 1px solid var(--glass-line); backdrop-filter: blur(9px) saturate(140%); -webkit-backdrop-filter: blur(9px) saturate(140%); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--surface); } }

  /* разрезанное имя бренда */
  .word { -webkit-user-select: none; user-select: none; position: absolute; top: 40%; transform: translateY(-50%); margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--word); line-height: .82; letter-spacing: -0.035em; white-space: nowrap; }
  .word-flow { right: calc(100vw - var(--seam)); padding-right: .04em; }
  .word-trafix { left: var(--seam); padding-left: .04em; }
  .hero > .word-flow { z-index: 3; color: rgba(242, 245, 250, .78); animation: flowIn 1.1s var(--ease) .15s both; }
  .hero > .word-trafix { z-index: 5; color: var(--text); animation: fadeIn .9s var(--ease) .35s both; }
  @keyframes flowIn { from { opacity: 0; transform: translate(-0.35em, calc(-50% + .2em)); } to { opacity: 1; transform: translate(0, -50%); } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  /* ---------- «Рентген»: линза с мягким краем ----------
     Линза и её содержимое двигаются только transform (без перерисовки),
     маска мягкого края постоянная. Внутри — бегущие полоски потока и чёткое FLOW. */
  .lens {
    position: absolute; left: 0; top: 0; width: var(--lens); height: var(--lens);
    pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; overflow: hidden;
    will-change: transform, opacity; contain: strict;
    -webkit-mask-image: radial-gradient(closest-side, #000 35%, rgba(0,0,0,.6) 65%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 35%, rgba(0,0,0,.6) 65%, transparent 100%);
  }
  .lens.on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
  /* линза заменяет курсор: стрелку прячем, над кнопками и ссылками она возвращается */
  html.xray-on, html.xray-on * { cursor: none; }
  html.xray-on a, html.xray-on a *, html.xray-on button, html.xray-on button * { cursor: pointer; }
  /* lens-inner — слой размером с блок; у краёв без соседнего «рентгена» плавно растворяется (--ft / --fb),
     поэтому линза нигде не обрезается прямой линией */
  .lens-inner { position: absolute; left: 0; top: 0; will-change: transform; background: rgba(3, 25, 91, .55);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft, 0px), #000 calc(100% - var(--fb, 0px)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft, 0px), #000 calc(100% - var(--fb, 0px)), transparent 100%); }
  .lens-glow { position: absolute; left: 0; top: 0; width: var(--lens); height: var(--lens); will-change: transform; background: radial-gradient(closest-side, rgba(25, 81, 252, .6), rgba(25, 81, 252, 0) 100%); }
  /* инверсия букв под линзой: копии помеченных букв (data-xray-word) — тёмные на светлом поле.
     Поле — полоса на высоте букв, верх и низ мягко растворяются, по бокам её скругляет линза. */
  .lens-inner { --bt: -9999px; --bh: 0px; --bl: -9999px; --bw: 0px; }
  .lens-inner .xray-copy { position: absolute; margin: 0; right: auto; bottom: auto; transform: none; animation: none; filter: none; opacity: 1; z-index: auto; color: var(--ink); }
  .invert {
    position: absolute; inset: 0; background: var(--blue-100);
    /* поле только там, где буквы: по высоте строки и по ширине самого текста. Края растворяются плавно,
       с промежуточными ступенями (не уже 60–100px даже у мелких слов), — иначе в линзе видна граница поля.
       У верхнего края блока поле прозрачное, поэтому стык с соседним блоком без шва. */
    -webkit-mask-image: linear-gradient(to bottom, transparent max(0px, calc(var(--bt) - max(var(--bh) * .6, 90px))), rgba(0,0,0,.18) calc(var(--bt) - max(var(--bh) * .25, 40px)), rgba(0,0,0,.6) var(--bt), #000 calc(var(--bt) + var(--bh) * .25), #000 calc(var(--bt) + var(--bh) * .75), rgba(0,0,0,.6) calc(var(--bt) + var(--bh)), rgba(0,0,0,.18) calc(var(--bt) + var(--bh) + max(var(--bh) * .3, 45px)), transparent calc(var(--bt) + var(--bh) + max(var(--bh) * .7, 100px))), linear-gradient(to right, transparent calc(var(--bl) - max(var(--bh) * .35, 60px)), rgba(0,0,0,.5) calc(var(--bl) - max(var(--bh) * .1, 18px)), #000 calc(var(--bl) + max(var(--bh) * .08, 14px)), #000 calc(var(--bl) + var(--bw) - max(var(--bh) * .08, 14px)), rgba(0,0,0,.5) calc(var(--bl) + var(--bw) + max(var(--bh) * .1, 18px)), transparent calc(var(--bl) + var(--bw) + max(var(--bh) * .35, 60px))); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent max(0px, calc(var(--bt) - max(var(--bh) * .6, 90px))), rgba(0,0,0,.18) calc(var(--bt) - max(var(--bh) * .25, 40px)), rgba(0,0,0,.6) var(--bt), #000 calc(var(--bt) + var(--bh) * .25), #000 calc(var(--bt) + var(--bh) * .75), rgba(0,0,0,.6) calc(var(--bt) + var(--bh)), rgba(0,0,0,.18) calc(var(--bt) + var(--bh) + max(var(--bh) * .3, 45px)), transparent calc(var(--bt) + var(--bh) + max(var(--bh) * .7, 100px))), linear-gradient(to right, transparent calc(var(--bl) - max(var(--bh) * .35, 60px)), rgba(0,0,0,.5) calc(var(--bl) - max(var(--bh) * .1, 18px)), #000 calc(var(--bl) + max(var(--bh) * .08, 14px)), #000 calc(var(--bl) + var(--bw) - max(var(--bh) * .08, 14px)), rgba(0,0,0,.5) calc(var(--bl) + var(--bw) + max(var(--bh) * .1, 18px)), transparent calc(var(--bl) + var(--bw) + max(var(--bh) * .35, 60px))); mask-composite: intersect;
  }
  /* полоски потока внутри линзы: летят по диагонали 30° вправо-вверх, видны только в «рентгене» */
  /* слой полосок чуть больше линзы и ездит за ней; узор привязан к координатам страницы (сдвиг <b> считает скрипт),
     поэтому на стыке двух блоков полоски совпадают без шва */
  .streaks { position: absolute; left: 0; top: 0; width: calc(var(--lens) * 1.6); height: calc(var(--lens) * 1.6); overflow: hidden; will-change: transform; pointer-events: none; }
  .streaks b { position: absolute; left: 0; top: 0; will-change: transform; }
  .streaks i { position: absolute; left: -1000px; top: -300px; width: 2400px; height: 1000px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='140'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%2359b0fd' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23cbe9fd'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%231951fc' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%2359b0fd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='20' y='16' width='130' height='2' rx='1' fill='url(%23a)'/%3E%3Crect x='230' y='44' width='70' height='1.5' rx='.75' fill='url(%23a)' opacity='.7'/%3E%3Crect x='320' y='74' width='150' height='3' rx='1.5' fill='url(%23b)'/%3E%3Crect x='70' y='98' width='90' height='2' rx='1' fill='url(%23b)' opacity='.85'/%3E%3Crect x='250' y='124' width='50' height='1.5' rx='.75' fill='url(%23a)' opacity='.6'/%3E%3C/svg%3E"); background-size: 480px 140px; will-change: transform; animation: stream 2.6s linear infinite; }
  @keyframes stream { from { transform: translate3d(-480px, 0, 0); } to { transform: translate3d(0, 0, 0); } }

  /* текст первого экрана — внутри стекла */
  .content { position: absolute; z-index: 7; left: 0; top: calc(40% + var(--word) * 0.41 + clamp(28px, 4.5vh, 52px)); width: var(--seam); padding: 0 clamp(20px, 3.4vw, 48px); animation: up .9s var(--ease) .45s both; }
  @keyframes up { from { opacity: 0; transform: translate(-12px, 16px); } to { opacity: 1; transform: none; } }
  .content h1 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; margin: 0 0 14px; }
  .content h1 em { font-style: normal; color: var(--accent-text); }
  .content p { color: var(--text-muted); margin: 0 0 26px; max-width: 34em; }
  .cta { display: flex; gap: 12px; flex-wrap: wrap; }

  /* ---------- телефоны: шов горизонтальный ---------- */
  @media (max-width: 900px) {
    :root { --band: 34svh; --word: clamp(56px, 19vw, 120px); --lens: 170px; }
    .nav-links, .nav-actions .btn-glass { display: none; }
    .nav-actions { margin-left: auto; }
    .hero { min-height: 100svh; }
    .glass { -webkit-mask-image: none; mask-image: none; width: 100vw; bottom: auto; height: var(--band); border-right: 0; border-bottom: 1px solid var(--glass-line); }
    .word { left: 50% !important; right: auto !important; top: auto; padding: 0 !important; transform: translateX(-50%); }
    .word-flow { bottom: calc(100% - var(--band)); }
    .word-trafix { top: var(--band); }
    .hero > .word-flow { animation-name: flowInM; }
    @keyframes flowInM { from { opacity: 0; transform: translate(calc(-50% - .3em), .2em); } to { opacity: 1; transform: translate(-50%, 0); } }
    .content { top: auto; bottom: 0; width: auto; right: 0; margin: 0 12px 12px; padding: 22px 20px; border-radius: var(--radius-l); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
    .content p { font-size: 15px; margin-bottom: 18px; }
  }

  /* ---------- шапка при прокрутке — матовое стекло ---------- */
  .nav { transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; }
  .nav.scrolled { background: rgba(7, 9, 13, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--glass-line); padding-top: 11.5px; padding-bottom: 11.5px; }

  /* ---------- блок «Софт» ---------- */
  .products { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: clamp(96px, 12vh, 140px) clamp(16px, 3.4vw, 48px) clamp(96px, 12vh, 140px); }
  .giant {
    position: relative; z-index: 2; margin: 0; text-align: center; -webkit-user-select: none; user-select: none;
    font-family: var(--font-display); font-weight: 800; font-size: var(--giant); line-height: .82; letter-spacing: -0.035em;
    color: var(--text); opacity: .92;
  }
  .cards { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: calc(var(--giant) * -0.26) auto 0; }
  .card {
    position: relative; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.6vw, 36px);
    background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-l);
    backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .card { background: var(--surface); } }
  .card:hover { border-color: rgba(89, 176, 253, .55); box-shadow: 0 0 0 1px rgba(89, 176, 253, .15), 0 24px 60px -24px rgba(25, 81, 252, .55); transform: translateY(-2px); }
  .card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .card-name { display: flex; align-items: center; gap: 16px; min-width: 0; }
  .card-name img { width: 40px; height: 40px; display: block; flex: none; }
  .status { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--radius-pill); border: 1px solid var(--glass-line); color: var(--text-muted); white-space: nowrap; }
  .status.live { color: var(--signal-live); border-color: rgba(55, 214, 122, .35); }
  .card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
  .card p { margin: 0; color: var(--text-muted); hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }  /* на всю ширину карточки, длинные слова переносятся по слогам */
  .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0;  /* плашки прижаты к низу — на одном уровне в соседних карточках */ padding: 0; list-style: none; }
  .facts li { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-100); padding: 8px 12px; border-radius: var(--radius-pill); background: rgba(242, 245, 250, .05); }
  a.card { color: inherit; text-decoration: none; }
  .keep { text-transform: none; }  /* iPhone не пишем заглавными даже в плашках */

  .soon { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; max-width: 1180px; margin: 28px auto 0; }
  .soon-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-right: 6px; }
  .soon-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: var(--radius-pill); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-weight: 600; font-size: 15px; color: var(--text-muted); }
  .soon-item img { width: 22px; height: 22px; opacity: .7; }

  /* появление по диагонали потока: снизу-слева вверх-вправо */
  .reveal { opacity: 0; transform: translate3d(-24px, 28px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal:nth-child(2) { transition-delay: .08s; }

  @media (max-width: 900px) {
    .cards { grid-template-columns: minmax(0, 1fr); margin-top: calc(var(--giant) * -0.3); }
    .soon { justify-content: flex-start; }
    .soon-label { width: 100%; }
  }


  /* ---------- блок «Как течёт трафик»: ядро потока (Brand/README «Ядро потока») ---------- */
  .flow { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: clamp(80px, 10vh, 120px) clamp(16px, 3.4vw, 48px) clamp(96px, 12vh, 140px); }
  .flow-head { position: relative; z-index: 3; text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vh, 72px); }
  .flow-head h2 { margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.06; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
  .flow-head h2 em { font-style: normal; color: var(--accent-text); }
  .flow-head p { margin: 0; color: var(--text-muted); text-wrap: balance; }
  .scheme { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 420px) minmax(0, 1fr); grid-template-areas: "a core c" "b core d"; gap: clamp(28px, 3.4vw, 56px) clamp(48px, 7vw, 120px); align-items: center; max-width: 1240px; margin: 0 auto; }
  .stage { position: relative; z-index: 3; padding: 26px 28px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-l); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .stage { background: var(--surface); } }
  .stage:nth-of-type(1) { grid-area: a; } .stage:nth-of-type(2) { grid-area: b; } .stage:nth-of-type(3) { grid-area: c; } .stage:nth-of-type(4) { grid-area: d; }
  .stage-num { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--accent-text); margin-bottom: 12px; }
  .stage h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.1; text-transform: uppercase; letter-spacing: -0.005em; }
  .stage p { margin: 0; color: var(--text-muted); font-size: 15.5px; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }

  /* шар: тёмное стекло со светящимся краем и орбитами, орбиты вращаются в разные стороны, сам шар дышит */
  .core { grid-area: core; position: relative; z-index: 2; aspect-ratio: 1; width: 100%; }
  .core-halo { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(25, 81, 252, .42), rgba(11, 44, 177, .18) 55%, transparent 100%); animation: halo 6s ease-in-out infinite alternate; }
  .core svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .core .breathe { transform-origin: 0 0; animation: breathe 6s ease-in-out infinite alternate; }
  .core .orb { transform-origin: 0 0; animation: spin linear infinite; }
  .core .orb.o1 { animation-duration: 26s; } .core .orb.o2 { animation-duration: 34s; animation-direction: reverse; }
  .core .orb.o3 { animation-duration: 21s; } .core .orb.o4 { animation-duration: 40s; animation-direction: reverse; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes breathe { from { transform: scale(.98); } to { transform: scale(1.02); } }
  @keyframes halo { from { opacity: .75; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }

  /* соединительные линии от ядра к карточкам, по ним бегут точки */
  .wires { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .wires .w { fill: none; stroke: var(--line); stroke-width: 1.5; }
  .wires .w-lit { fill: none; stroke: url(#wireGrad); stroke-width: 1.5; opacity: .7; }
  .wires .node { fill: var(--blue-300); }
  .wires .node-ring { fill: none; stroke: rgba(89, 176, 253, .35); stroke-width: 6; }
  .wires .pulse { fill: var(--blue-100); filter: drop-shadow(0 0 6px #59b0fd); }

  @media (max-width: 900px) {
    .scheme { grid-template-columns: minmax(0, 1fr); grid-template-areas: "core" "a" "b" "c" "d"; gap: 14px; }
    .core { width: min(70vw, 280px); justify-self: center; margin: 10px 0 34px; }
    .wires { display: none; }
  }

  /* ---------- блок «Цены»: стеклянные карточки (Brand/README «Стеклянные карточки», референс 3.jpg) ---------- */
  .pricing { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: clamp(80px, 10vh, 120px) clamp(16px, 3.4vw, 48px) clamp(96px, 12vh, 140px); }
  .pricing .giant { opacity: .9; }
  .period { position: relative; z-index: 3; display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 5px; border-radius: var(--radius-pill); background: rgba(7, 9, 13, .72); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .period button { appearance: none; border: 0; background: none; font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: 10px 16px; border-radius: var(--radius-pill); transition: color .2s, background .2s; }
  .period button:hover { color: var(--text); }
  .period button[aria-pressed="true"] { color: var(--accent-text); background: rgba(242, 245, 250, .07); }
  .plans { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; align-items: stretch; }
  .plan { position: relative; min-width: 0; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-l); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .plan { background: var(--surface); } }
  .plan.best { border-color: rgba(89, 176, 253, .7); box-shadow: 0 0 0 1px rgba(89, 176, 253, .25), 0 0 60px -10px rgba(25, 81, 252, .55), inset 0 0 40px -20px rgba(89, 176, 253, .5); }
  .plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .plan h3 { margin: 0; font-size: 21px; font-weight: 600; }
  .plan-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); padding: 6px 10px; border-radius: var(--radius-pill); border: 1px solid rgba(89, 176, 253, .35); white-space: nowrap; }
  .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .price b { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
  .price span { color: var(--text-muted); font-size: 16px; }
  .price-note { min-height: 1.5em; margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-muted); }
  .price-note em { font-style: normal; color: var(--accent-text); }
  .plan-desc { margin: 16px 0 20px; color: var(--text-muted); font-size: 15.5px; text-wrap: pretty; }
  .plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; font-size: 15.5px; }
  .plan li { position: relative; padding-left: 22px; }
  .plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); box-shadow: 0 0 8px rgba(89, 176, 253, .8); }
  .plan .btn { margin-top: auto; width: 100%; }
  .btn-raised { background: rgba(242, 245, 250, .09); border: 1px solid var(--glass-line); }
  .btn-raised:hover { background: rgba(242, 245, 250, .14); }

  @media (max-width: 900px) {
    .plans { grid-template-columns: minmax(0, 1fr); }
    .period button { padding: 10px 12px; }
  }

  .ptabs { position: relative; z-index: 3; display: flex; gap: 6px; width: max-content; max-width: 100%; margin: calc(var(--giant) * -0.2) auto 18px; padding: 6px; border-radius: var(--radius-pill); background: rgba(7, 9, 13, .72); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .ptabs button { appearance: none; border: 0; background: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 18px; border-radius: var(--radius-pill); font: 600 16px/1 var(--font-sans); color: var(--text-muted); transition: color .2s, background .2s; }
  .ptabs button img { opacity: .55; transition: opacity .2s; }
  .ptabs button:hover { color: var(--text); }
  .ptabs button[aria-selected="true"] { color: var(--text); background: rgba(242, 245, 250, .1); }
  .ptabs button[aria-selected="true"] img { opacity: 1; }
  .ppanels { position: relative; z-index: 3; display: grid; }
  .ppanel { grid-area: 1 / 1; min-width: 0; }
  .ppanel[hidden] { display: block; visibility: hidden; pointer-events: none; }
  .ppanel.show { animation: panelIn .5s var(--ease) both; }
  @keyframes panelIn { from { opacity: 0; transform: translate3d(-12px, 14px, 0); } to { opacity: 1; transform: none; } }
  .plan.wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; max-width: 900px; margin: 0 auto; }
  .wide-main { display: flex; flex-direction: column; }
  .plan.wide ul { margin: 6px 0 0; align-content: start; }
  .plan.wide .btn { margin-top: auto; }
  @media (max-width: 900px) { .plan.wide { grid-template-columns: minmax(0, 1fr); } .plan.wide .wide-main .btn { order: 9; } .ptabs button { padding: 11px 16px 11px 14px; font-size: 15px; } }

  /* ---------- блок «Вопросы»: стеклянный аккордеон ---------- */
  .faq { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: clamp(120px, 14vh, 170px) clamp(16px, 3.4vw, 48px) clamp(96px, 12vh, 140px); }
  .faq .giant { font-size: clamp(36px, 12.6vw, 240px); }
  .qa { position: relative; z-index: 3; display: grid; gap: 12px; max-width: 900px; margin: clamp(-60px, -3.2vw, -20px) auto 0; }
  .qa-item { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); transition: border-color .3s var(--ease); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .qa-item { background: var(--surface); } }
  .qa-item:hover, .qa-item.open { border-color: rgba(89, 176, 253, .4); }
  .qa-item h3 { margin: 0; }
  .qa-q { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; background: none; border: 0; color: var(--text); text-align: left; font: 600 18px/1.35 var(--font-sans); }
  .qa-sign { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-line); transition: transform .4s var(--ease), border-color .3s, background .3s; }
  .qa-sign::before, .qa-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 1px; background: var(--accent-text); }
  .qa-sign::after { transform: rotate(90deg); }
  .qa-item.open .qa-sign { transform: rotate(45deg); background: rgba(25, 81, 252, .25); border-color: rgba(89, 176, 253, .5); }
  .qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  .qa-item.open .qa-a { grid-template-rows: 1fr; }
  .qa-a > div { overflow: hidden; }
  .qa-a > div > div { padding: 0 26px 24px; }
  .qa-a p { margin: 0; color: var(--text-muted); max-width: 46em; text-wrap: pretty; }
  .qa-a p + p { margin-top: 12px; }
  .qa-a a { color: var(--accent-text); }
  @media (max-width: 900px) { .qa-q { padding: 18px 18px 18px 20px; font-size: 16.5px; } .qa-a > div > div { padding: 0 20px 20px; } .qa-a p { font-size: 15.5px; } }

  /* ---------- финальный призыв: выделенная стеклянная панель ---------- */
  .final { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vh, 80px) clamp(16px, 3.4vw, 48px) clamp(80px, 11vh, 130px); }
  .final-card { position: relative; z-index: 3; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px); text-align: center; border-radius: 36px; background: var(--glass); border: 1px solid rgba(89, 176, 253, .55); box-shadow: 0 0 0 1px rgba(89, 176, 253, .18), 0 0 90px -20px rgba(25, 81, 252, .6), inset 0 0 60px -30px rgba(89, 176, 253, .55); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .final-card { background: var(--surface); } }
  .final-card h2 { margin: 0 0 16px; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
  .final-card h2 em { font-style: normal; color: var(--accent-text); }
  .final-card p { margin: 0 auto 32px; max-width: 34em; color: var(--text-muted); text-wrap: balance; }
  .final-card .cta { justify-content: center; }

  /* ---------- подвал ---------- */
  .foot { position: relative; z-index: 1; border-top: 1px solid var(--glass-line); padding: 34px clamp(16px, 3.4vw, 48px) 18px; background: rgba(7, 9, 13, .6); }
  .foot-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
  .foot-brand p { margin: 10px 0 0; max-width: 22em; color: var(--text-muted); font-size: 15px; }
  .foot h3 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
  .foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
  .foot ul a:hover, .foot-bottom a:hover { color: var(--accent-text); }
  .foot-bottom { max-width: 1180px; margin: 24px auto 0; padding-top: 14px; align-items: center; border-top: 1px solid var(--glass-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--text-muted); }
  .lang { display: inline-flex; gap: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; }
  .lang a, .lang span { padding: 4px 9px; border-radius: var(--radius-pill); }
  .lang span { color: var(--text); background: rgba(242, 245, 250, .08); }
  @media (max-width: 900px) {
    .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-brand { grid-column: 1 / -1; }
  }

  /* ---------- страницы продуктов (эталон — /telegram/) ---------- */
  /* ---------- страница продукта: первый экран с огромным названием площадки ---------- */
  .phero { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: clamp(120px, 15vh, 170px) clamp(16px, 3.4vw, 48px) clamp(64px, 9vh, 110px); }
  .phero .giant { font-size: clamp(44px, 12.6vw, 250px); }
  .phero-card { position: relative; z-index: 3; max-width: 1180px; margin: calc(clamp(44px, 12.6vw, 250px) * -0.17) auto 0; padding: clamp(28px, 4vw, 56px); border-radius: 36px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; animation: up .9s var(--ease) .2s both; }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .phero-card { background: var(--surface); } }
  .phero-card h1 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
  .phero-card h1 em { font-style: normal; color: var(--accent-text); }
  .phero-card p { margin: 0 0 26px; color: var(--text-muted); text-wrap: pretty; }
  .phero-card p.post-meta { margin: -12px 0 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
  .phero-card .facts { margin: 0; justify-content: flex-start; }
  .phero-side { display: grid; gap: 18px; justify-items: start; }
  .phero-side .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

  /* общие заголовки секций — как «Как течёт трафик» */
  .sec { position: relative; z-index: 1; overflow: hidden; isolation: isolate; padding: clamp(72px, 9vh, 110px) clamp(16px, 3.4vw, 48px); }
  .sec .flow-head { max-width: 900px; margin-bottom: clamp(32px, 5vh, 56px); }

  /* инструменты: стеклянные карточки, у кого есть гайд — карточка целиком ссылка */
  .tools { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
  .tool { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); color: inherit; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tool { background: var(--surface); } }
  a.tool:hover { border-color: rgba(89, 176, 253, .55); box-shadow: 0 24px 60px -24px rgba(25, 81, 252, .55); transform: translateY(-2px); }
  .tool-num { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--accent-text); }
  .tool h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.15; text-transform: uppercase; }
  .tool p { margin: 0; color: var(--text-muted); font-size: 15.5px; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
  .tool-guide { margin-top: auto; padding-top: 8px; align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-100); padding: 6px 10px; border-radius: var(--radius-pill); background: rgba(242, 245, 250, .06); }

  /* как это работает: три шага, между ними линия с бегущей точкой */
  .steps { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
  .steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(89, 176, 253, .7), transparent); }
  .steps::after { content: ""; position: absolute; top: calc(50% - 3px); left: 8%; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-100); box-shadow: 0 0 10px #59b0fd; animation: run 3.6s linear infinite; }
  @keyframes run { from { left: 8%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: 92%; opacity: 0; } }
  .step { position: relative; padding: 26px 28px; border-radius: var(--radius-l); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
  .step h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.15; text-transform: uppercase; }
  .step p { margin: 0; color: var(--text-muted); font-size: 15.5px; text-wrap: pretty; }

  /* безопасность: шесть пунктов со светящейся точкой */
  .safe { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
  .safe-item { position: relative; padding: 24px 26px 24px 50px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: grid; gap: 8px; }
  .safe-item::before { content: ""; position: absolute; left: 26px; top: 33px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-300); box-shadow: 0 0 10px rgba(89, 176, 253, .9); }
  .safe-item strong { font-weight: 600; font-size: 17px; line-height: 1.3; }
  .safe-item span { color: var(--text-muted); font-size: 15px; }

  .pricing > .period { margin-top: calc(var(--giant) * -0.18); }

  @media (max-width: 1000px) {
    .tools, .safe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 900px) {
    .phero-card { grid-template-columns: minmax(0, 1fr); margin-top: calc(clamp(44px, 12.6vw, 250px) * -0.08); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .steps::before, .steps::after { display: none; }
    .pricing > .period { margin-top: calc(var(--giant) * -0.12); }
  }
  @media (max-width: 620px) {
    .tools, .safe { grid-template-columns: minmax(0, 1fr); }
  }

  /* ---------- страница Instagram: экран интерфейса, видео, 8 возможностей ---------- */
  .tools.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shot { position: relative; z-index: 3; max-width: 1180px; margin: 0 auto; padding: 10px; border-radius: 30px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 40px 120px -40px rgba(25, 81, 252, .55); }
  .shot img, .shot video { display: block; width: 100%; height: auto; border-radius: 22px; background: var(--ink); }
  .shot video { aspect-ratio: 16 / 9; object-fit: cover; }
  .local.safe { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
  .local .safe-item { padding: 30px 34px 30px 60px; }
  .local .safe-item::before { left: 32px; top: 40px; }
  .local .safe-item strong { font-size: 20px; }
  .local .safe-item span { font-size: 16px; }
  .pricing > .ig-plan { position: relative; z-index: 3; margin-top: calc(var(--giant) * -0.12); }
  /* галерея скриншотов: пилюли разделов над рамкой, смена — плавное растворение, на телефоне — свайп */
  .gallery { position: relative; z-index: 3; }
  .gal-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 18px; padding: 5px; border-radius: var(--radius-pill); background: rgba(7, 9, 13, .72); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .gal-tabs button { appearance: none; border: 0; background: none; padding: 10px 16px; border-radius: var(--radius-pill); font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); transition: color .2s, background .2s; }
  .gal-tabs button:hover { color: var(--text); }
  .gal-tabs button[aria-selected="true"] { color: var(--accent-text); background: rgba(242, 245, 250, .07); }
  .gal-tabs.single { display: none; }
  .gal-track { display: grid; touch-action: pan-y; }
  .gal-track .gal-slide { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); }
  .gal-track .gal-slide.is-on { opacity: 1; }
  @media (max-width: 900px) { .gal-tabs { width: auto; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .gal-tabs button { flex: none; } }
  @media (max-width: 1000px) { .tools.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 620px) { .tools.four { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- гайды и каталог инструментов ---------- */
  .crumbs { position: relative; z-index: 3; max-width: 1180px; margin: 0 auto 18px; }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
  .crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
  .crumbs a:hover { color: var(--accent-text); }
  .crumbs [aria-current] { color: var(--accent-text); }
  .phero.guide { padding-top: clamp(104px, 13vh, 150px); }
  .phero.guide .giant { font-size: var(--gw, 12vw); }
  .phero.guide .phero-card { margin-top: calc(var(--gw, 12vw) * -0.17); grid-template-columns: minmax(0, 1fr); }
  .phero.guide .phero-card h1 { font-size: clamp(26px, 2.6vw, 38px); text-transform: none; letter-spacing: 0; }
  .phero.guide .phero-card p { max-width: 62em; }

  /* блок на всю ширину, чтобы «Рентген» работал и по бокам от текста; колонку 1180px держат боковые отступы */
  .article { --pad: clamp(16px, 3.4vw, 48px); position: relative; z-index: 3; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: clamp(40px, 6vh, 72px) max(var(--pad), calc((100% - 1180px) / 2 + var(--pad))) 40px; }
  /* рентген работает и над текстом: линза лежит под текстом, края обрезает clip (не ломает липкое «Содержание») */
  .article { overflow: clip; }
  .article > .prose { position: relative; z-index: 2; }
  .toc { z-index: 2; position: sticky; top: 96px; align-self: start; padding: 22px 22px 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
  .toc-title { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
  .toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 8px; font-size: 14.5px; }
  .toc li { counter-increment: toc; display: grid; grid-template-columns: 26px 1fr; }
  .toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); padding-top: 3px; }
  .toc a { color: var(--text-muted); } .toc a:hover { color: var(--text); }
  .prose { min-width: 0; max-width: 780px; color: rgba(242, 245, 250, .84); }
  .prose > :first-child { margin-top: 0; }
  .prose h2 { margin: 56px 0 16px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; color: var(--text); scroll-margin-top: 96px; }
  .prose h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--text); }
  .prose p { margin: 0 0 14px; text-wrap: pretty; }
  .prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(89, 176, 253, .35); text-underline-offset: 3px; }
  .prose a:hover { text-decoration-color: var(--accent-text); }
  .prose strong { color: var(--text); }
  .prose ul, .prose ol { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
  .prose ul > li { position: relative; padding-left: 22px; }
  .prose ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); box-shadow: 0 0 8px rgba(89, 176, 253, .8); }
  .prose ol { counter-reset: ol; } .prose ol > li { counter-increment: ol; position: relative; padding-left: 30px; }
  .prose ol > li::before { content: counter(ol, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }
  .prose code { font-family: var(--font-mono); font-size: .88em; padding: 2px 7px; border-radius: 7px; background: rgba(242, 245, 250, .07); border: 1px solid var(--glass-line); color: var(--blue-100); white-space: nowrap; }
  .prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 16px; background: rgba(7, 9, 13, .7); border: 1px solid var(--glass-line); }
  .prose pre code { padding: 0; border: 0; background: none; white-space: pre; }
  .howto { display: grid; gap: 12px; margin: 20px 0 8px; counter-reset: howto; }
  .howto-step { position: relative; counter-increment: howto; padding: 20px 24px 18px 70px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .howto-step::before { content: counter(howto, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--accent-text); }
  .howto-step h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; }
  .howto-step p { margin: 0; color: var(--text-muted); }
  .callout { margin: 20px 0; padding: 20px 24px; border-radius: 20px; background: rgba(25, 81, 252, .1); border: 1px solid rgba(89, 176, 253, .35); }
  .callout strong { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
  .callout p { margin: 0; }
  .callout.warn { background: rgba(242, 245, 250, .04); border-color: var(--glass-line); }
  .callout.warn strong { color: var(--blue-100); }
  .prose .qa { margin: 8px 0 0; max-width: none; }
  .prose .qa-item h3 { margin: 0; }  /* .prose h3 добавлял 28/8 px — вопрос был высоким и не по центру */
  .tool-guide.lock { color: var(--accent-text); background: rgba(25, 81, 252, .14); border: 1px solid rgba(89, 176, 253, .4); }
  .manuals-ig { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .manuals-ig .tool { border-color: rgba(89, 176, 253, .45); }
  .tool-guide.soon { color: var(--text-muted); background: none; border: 1px solid var(--glass-line); }
  .catalog-note { position: relative; z-index: 3; max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--text-muted); font-size: 15px; text-wrap: balance; }
  @media (max-width: 900px) {
    .article { grid-template-columns: minmax(0, 1fr); }
    .toc { position: static; }
    .howto-step { padding-left: 58px; } .howto-step::before { left: 20px; }
  }

  /* уведомление о cookie — стеклянная пилюля внизу, один раз */
  .cookie { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 22px; border-radius: 22px; background: rgba(7, 9, 13, .82); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8); animation: cookieIn .5s var(--ease) both; }
  .cookie p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
  .cookie .btn { height: 40px; padding: 0 18px; font-size: 14px; flex: none; }
  .cookie.out { opacity: 0; transform: translate(-50%, 12px); transition: opacity .35s, transform .35s; }
  @keyframes cookieIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translateX(-50%); } }
  @media (max-width: 620px) { .cookie { flex-direction: column; align-items: stretch; text-align: left; padding: 14px; } }
  @media (max-width: 400px) { .nav .brand span { display: none; } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .lens { display: none; }
  }
