/* Общий слой статических страниц: ниши, кейсы, блог.
   Шапка, футер, типографика, сетка, блоки — всё, что у страниц одинаково.
   Своё у страницы остаётся в её <style>: акцент ниши и редкие правила.
   Файл один на весь сайт, поэтому со второй страницы берётся из кэша. */

  :root {

    --cmp-arrow: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h15M13 6l6 6-6 6"/></svg>');
    --page: #F4F4F5;
    --soft-bg: #FAFAFA;
    --card: #FFF;
    --ink: #151617;
    --heading: #323538;
    --secondary: #494F5C;
    --tertiary: #6F6F6F;
    --line: #E7E7E9;
    --soft: #F0F0F0;
    --radius-sheet: 40px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "SF Pro", "Inter Variable", "Inter", "Segoe UI", sans-serif;
  }

  * { box-sizing: border-box; }

  html { -webkit-text-size-adjust: 100%; background: var(--card); }

  body {
    margin: 0;
    /* лента блога выходит на всю ширину экрана — гасим случайные
       горизонтальные пиксели, которые даёт 100vw со скроллбаром */
    overflow-x: clip;
    color: var(--secondary);
    background: var(--card);
    font: 400 16px/1.6 var(--font);
    /* На лендинге это стоит в base.css. Без него тот же вес 500 в шапке
       рендерится subpixel-ом и выглядит заметно жирнее. */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  a { color: var(--ink); }

  .wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 50px); }

  /* ── шапка ─────────────────────────────────────────────── */

  .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 76px;
  }

  .nav__links { display: flex; gap: 28px; justify-self: start; }
  .nav__actions { display: flex; align-items: center; gap: 28px; justify-self: end; }

  .nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-self: center;
    color: var(--ink);
    text-decoration: none;
  }

  .nav__brand span { font-weight: 600; font-size: 19.4px; line-height: 1; letter-spacing: -.09em; }
  .nav__brand img { width: 20px; height: 20px; }

  .nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--heading);
    font: 500 14px/1 var(--font);
    letter-spacing: -.03em;
    text-decoration: none;
    transition: opacity .18s ease;
  }

  .nav__link:hover { opacity: .6; }

  .nav__button {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 40px;
    color: var(--tertiary);
    background: var(--soft);
    font: 600 12px/1 var(--font);
    letter-spacing: -.03em;
    white-space: nowrap;
    text-decoration: none;
    transition: background .18s ease;
  }

  .nav__button:hover { background: var(--line); }
  .nav__button img { width: 16px; height: 16px; }

  @media (max-width: 1080px) {
    .nav { grid-template-columns: auto 1fr; }
    .nav__links, .nav__actions .nav__link { display: none; }
    .nav__brand { justify-self: start; }
  }

  /* ── текст оферты ──────────────────────────────────────── */

  .doc {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(32px, 6vh, 64px) 0 clamp(64px, 12vh, 120px);
  }

  h1 {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -.03em;
  }

  .updated { margin-top: 14px; color: var(--tertiary); font-size: 15px; }

  .lead { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }

  h2 {
    margin: 52px 0 18px;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.2;
    letter-spacing: -.02em;
    scroll-margin-top: 24px;
  }

  h3 { margin: 32px 0 12px; color: var(--heading); font-weight: 500; font-size: 17px; }

  p { margin: 0 0 14px; }
  ul { margin: 0 0 14px; padding-left: 22px; }
  li { margin-bottom: 8px; }
  b, strong { color: var(--heading); font-weight: 500; }

  .toc {
    margin-top: 36px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .toc h2 { margin: 0 0 14px; font-size: 15px; color: var(--tertiary); font-weight: 400; }
  .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
  .toc li { margin-bottom: 7px; }
  .toc a { color: var(--secondary); text-decoration: none; }
  .toc a:hover { color: var(--ink); text-decoration: underline; }

  @media (max-width: 620px) { .toc ol { columns: 1; } }

  .todo {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    background: var(--accent-wash);
    color: var(--heading);
    font-size: 15px;
  }

  .todo b { color: var(--accent-dark); }

  mark {
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 500;
  }

  .req { margin-top: 8px; color: var(--heading); }
  .req span { display: block; }


  /* ── страница кейса ────────────────────────────────────── */

  /* Отступы держит сама статья. Без них верхний отступ блока с призывом
     «схлопывается» наружу, контейнер оказывается короче содержимого,
     и футер наезжает на карточку. */
  .case {
    padding: clamp(24px, 4vh, 40px) 0 clamp(64px, 12vh, 120px);
  }

  .crumbs {
    margin: clamp(28px, 5vh, 48px) 0 0;
    color: var(--tertiary);
    font-size: 15px;
    text-align: center;
  }

  .crumbs a { color: inherit; text-decoration: none; }
  .crumbs a:hover { color: var(--ink); }

  .case-h1 {
    /* перенос задан вручную — заголовок должен читаться в две строки */
    max-width: 24ch;
    margin: 22px auto 0;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(34px, 5.4vw, 64px);
    line-height: 1.06;
    letter-spacing: -.035em;
    text-align: center;
  }

  /* на узком экране ручной перенос только мешает */
  @media (max-width: 620px) {
    .case-h1 br { display: none; }
    .case-h1 { max-width: 18ch; text-wrap: balance; }
  }

  .case-sub {
    max-width: 60ch;
    margin: 22px auto 0;
    color: var(--secondary);
    font-size: 17px;
    text-align: center;
  }

  /* цифры */

  .figures-label {
    margin: clamp(40px, 6vh, 64px) auto -14px;
    color: var(--tertiary);
    font-size: 15px;
    text-align: center;
  }

  .figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 26px auto 0;
    max-width: 1000px;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
  }

  .figures div {
    padding: 32px 24px;
    text-align: center;
  }

  .figures div + div { border-left: 1px solid var(--line); }

  .figures b {
    display: block;
    color: var(--ink);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
  }

  .figures span {
    display: block;
    margin-top: 12px;
    color: var(--tertiary);
    font-size: 15px;
  }

  @media (max-width: 700px) {
    .figures div + div { border-left: 0; border-top: 1px solid var(--line); }
  }

  /* две колонки: текст и карточка компании */

  .case-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
    max-width: 1100px;
    margin: clamp(48px, 8vh, 88px) auto 0;
  }

  @media (max-width: 900px) {
    .case-body { grid-template-columns: 1fr; }
  }

  .case-text h2 {
    margin: 48px 0 16px;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -.025em;
  }

  .case-text h2:first-child { margin-top: 0; }

  .case-text h3 {
    margin: 32px 0 10px;
    color: var(--ink);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -.01em;
  }

  /* пункты решения — со стрелкой: список шагов, а не просто подзаголовки */
  .case-text h3.step {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .case-text h3.step::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-top: 3px;
    background: var(--accent);
    -webkit-mask: var(--arrow) center / contain no-repeat;
    mask: var(--arrow) center / contain no-repeat;
  }

  :root {
    --arrow: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 8h11M9 3.5 13.5 8 9 12.5"/></svg>');
  }

  .case-text p { margin: 0 0 14px; }
  .case-text ul { margin: 0 0 16px; padding-left: 20px; }
  .case-text li { margin-bottom: 8px; }

  blockquote {
    margin: 26px 0;
    padding: 2px 0 2px 22px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -.01em;
  }

  /* карточка компании справа */

  .side {
    position: sticky;
    top: 24px;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  @media (max-width: 900px) { .side { position: static; } }

  .side img { width: 132px; height: auto; opacity: .9; }

  .side dt {
    margin: 22px 0 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
  }

  .side dd { margin: 0; color: var(--tertiary); font-size: 15px; }

  /* ссылка на сайт клиента — часть карточки-справки, а не акцент:
     спокойная серая, темнеет при наведении */
  .side dd a {
    color: var(--tertiary);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color .18s ease, border-color .18s ease;
  }

  .side dd a:hover {
    color: var(--ink);
    border-bottom-color: var(--rule-strong, #C9CFD8);
  }
  .side dl { margin: 0; }

  /* этапы плана */

  .steps { margin: 20px 0 0; padding: 0; list-style: none; }

  .steps li {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 4px 18px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
  }

  .steps li:last-child { border-bottom: 1px solid var(--line); }

  .steps time {
    color: var(--tertiary);
    font-size: 14px;
    letter-spacing: .02em;
  }

  .steps b { color: var(--ink); font-weight: 500; }
  .steps p { grid-column: 2; margin: 4px 0 0; font-size: 15px; }

  @media (max-width: 560px) {
    .steps li { grid-template-columns: 1fr; }
    .steps p { grid-column: 1; }
  }

  .cta {
    max-width: 1100px;
    margin: clamp(56px, 9vh, 96px) auto 0;
    padding: clamp(32px, 4vw, 48px);
    border-radius: 30px;
    background: var(--accent-wash);
    text-align: center;
  }

  .cta h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -.025em;
  }

  .cta p { margin: 12px auto 24px; max-width: 52ch; }

  .cta a {
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 40px;
    background: var(--ink);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
  }


  /* ── график ────────────────────────────────────────────── */

  .chart {
    margin: 30px 0 26px;
    padding: 8px 4px 0;
    border-radius: 20px;
    background: var(--soft-bg);
  }

  .chart figcaption {
    padding: 18px 22px 4px;
    color: var(--tertiary);
    font-size: 15px;
  }

  .chart svg { display: block; width: 100%; height: auto; }

  .chart line { stroke: #E2E5EA; stroke-width: 1; }

  .chart .line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .chart circle { fill: #fff; stroke: var(--accent); stroke-width: 3; }

  .chart text { font-family: var(--font); }

  .chart .ax { fill: #A0A6B0; font-size: 15px; text-anchor: end; }
  .chart .wk { fill: #8A9099; font-size: 15px; text-anchor: middle; }

  .chart .val {
    fill: var(--ink);
    font-size: 19px;
    font-weight: 500;
    text-anchor: middle;
  }

  @media (max-width: 700px) {
    .chart .ax, .chart .wk { font-size: 20px; }
    .chart .val { font-size: 24px; }
  }


  /* ── страница ниши ─────────────────────────────────────── */

  .niche { padding: clamp(24px, 4vh, 44px) 0 clamp(64px, 12vh, 120px); }

  .niche h1 {
    max-width: 20ch;
    margin: 18px 0 0;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -.035em;
  }

  .niche .lead {
    max-width: 58ch;
    margin: 22px 0 0;
    font-size: 18px;
  }

  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

  .btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 24px;
    border-radius: 40px;
    background: var(--ink);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
  }

  .btn.is-soft { background: var(--soft-bg); color: var(--ink); }

  .niche h2 {
    margin: clamp(48px, 7vw, 80px) 0 18px;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.15;
    letter-spacing: -.028em;
  }

  .niche h3 { margin: 28px 0 8px; color: var(--ink); font-weight: 500; font-size: 18px; }
  .niche p { margin: 0 0 14px; max-width: 68ch; }
  .niche ul { margin: 0 0 16px; padding-left: 22px; max-width: 68ch; }
  .niche li { margin-bottom: 9px; }
  .niche b { color: var(--ink); font-weight: 500; }

  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 22px 0 0;
  }

  .card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .card b { display: block; margin-bottom: 8px; font-size: 17px; }
  .card p { margin: 0; font-size: 15px; }

  .figs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin: 24px 0 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
  }

  .figs div { padding: 26px 22px; }
  .figs div + div { border-left: 1px solid var(--line); }

  @media (max-width: 700px) {
    .figs div + div { border-left: 0; border-top: 1px solid var(--line); }
  }

  .figs b {
    display: block;
    font-weight: 400;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
  }

  .figs span { display: block; margin-top: 10px; color: var(--tertiary); font-size: 14px; line-height: 1.4; }

  .quote {
    margin: 26px 0;
    padding: 2px 0 2px 22px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
    font-size: 19px;
    line-height: 1.5;
  }

  .stack { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

  .stack span {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 40px;
    font-size: 15px;
  }



  /* ── лендинг ниши ──────────────────────────────────────── */

  .n-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    padding: clamp(28px, 4vh, 48px) 0 clamp(40px, 7vh, 80px);
  }

  @media (max-width: 940px) { .n-hero { grid-template-columns: 1fr; } }

  .n-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 40px;
    color: var(--tertiary);
    font: 500 13px/1 var(--font);
  }

  .n-eyebrow i { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

  /* Метка блока ниши — как эйбрау «Инфраструктура» на главной.
     Выше на странице есть одноимённое правило-пилюля, поэтому здесь
     явно снимаем её рамку, фон и поля. */
  .niche .n-split__text .n-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--tertiary);
    font: 500 14px/1 var(--font);
  }

  .niche .n-split__text .n-eyebrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }


  .n-hero h1 {
    max-width: 15ch;
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.05;
    letter-spacing: -.035em;
  }

  .n-hero .lead { max-width: 46ch; margin: 22px 0 0; font-size: 18px; }

  .n-visual {
    position: relative;
    border-radius: 34px;
    background: var(--accent-wash);
    overflow: hidden;
    isolation: isolate;
    min-height: clamp(280px, 34vw, 420px);
    display: grid;
    place-items: center;
    padding: clamp(20px, 2.4vw, 32px);
  }

  .n-visual img.deco {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .n-panel {
    width: 100%;
    padding: clamp(20px, 2.2vw, 28px);
    border-radius: 24px;
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .n-panel small { display: block; margin-bottom: 16px; color: var(--tertiary); font-size: 14px; }

  .n-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, .06);
    font-size: 15px;
  }

  .n-row:first-of-type { border-top: 0; }
  .n-row b { color: var(--ink); font-weight: 500; }
  .n-row span { color: #1F9E52; font-weight: 500; font-size: 14px; }
  .n-row.is-wait span { color: var(--tertiary); }

  /* карточки с картинками */

  .n-shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 2vw, 26px);
    margin-top: 30px;
  }

  .n-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 441 / 296;
    object-fit: cover;
    border-radius: 26px;
  }

  .n-shot b { display: block; margin: 18px 0 6px; color: var(--ink); font-weight: 500; font-size: 18px; }
  .n-shot p { margin: 0; font-size: 15px; }

  /* полоса цифр на голубом */

  .n-figs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    margin-top: 28px;
    border-radius: 30px;
    background: var(--accent-line);
    overflow: hidden;
  }

  .n-figs div { padding: clamp(24px, 3vw, 36px); background: var(--accent-wash); }

  .n-figs b {
    display: block;
    color: var(--ink);
    font-weight: 400;
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
  }

  .n-figs span { display: block; margin-top: 10px; color: var(--secondary); font-size: 15px; line-height: 1.4; }

  /* сценарии */

  .n-steps { margin: 28px 0 0; padding: 0; list-style: none; }

  .n-steps li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
  }

  .n-steps li:last-child { border-bottom: 1px solid var(--line); }

  .n-steps img { width: 26px; height: 26px; margin-top: 2px; }
  .n-steps b { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 500; font-size: 18px; }
  .n-steps p { margin: 0; font-size: 15px; }

  /* интеграции */

  .n-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

  .n-app {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 40px;
    font-size: 15px;
  }

  .n-app img { width: 30px; height: 30px; border-radius: 999px; object-fit: contain; }

  /* сроки */

  .n-time { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }

  .n-week { padding: 22px; border: 1px solid var(--line); border-radius: 20px; }
  .n-week time { display: block; margin-bottom: 8px; color: var(--tertiary); font-size: 14px; }
  .n-week b { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 500; }
  .n-week p { margin: 0; font-size: 15px; }


  /* ── ритм страницы ниши ────────────────────────────────── */

  .n-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px 9px 14px;
    border-radius: 40px;
    background: var(--soft-bg);
    color: var(--secondary);
    font: 500 14px/1 var(--font);
  }

  /* 3D-объект вместо линейной иконки: тот же синий глянец, что у плашек
     в кейсе. Отрицательные поля — чтобы объём не раздувал высоту плашки. */
  .n-badge img {
    width: 24px;
    height: 24px;
    margin: -4px 0 -4px -2px;
    /* лёгкий наклон — объект перестаёт выглядеть вклеенным по линейке */
    transform: rotate(-14deg);
    object-fit: contain;
  }

  /* Блок = экран. Содержимое центрируется по вертикали, поэтому человек
     листает страницу «шагами», а не сплошным полотном. min-height, а не
     height: длинный блок на узком экране просто вырастет. */
  .n-top,
  .n-steps,
  .niche .n-split,
  .niche .b-cmp,
  :is(.niche, .cases-hero) .b-case,
  .niche .b-faq,
  :is(.niche, .modal) .b-req {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
  }

  .niche .n-split { display: grid; align-content: center; }

  /* Внутри отцентрованного экрана верхний отступ заголовка сдвигал бы
     содержимое вниз — гасим у первых заголовков блока. */
  .niche section > h2:first-child,
  .niche .n-split__text h2 { margin-top: 0; }

  @media (max-width: 760px) {
    .n-top,
    .n-steps,
    .niche .n-split,
    .niche .b-cmp,
    :is(.niche, .cases-hero) .b-case,
    .niche .b-faq,
    :is(.niche, .modal) .b-req { min-height: 0; }
  }

  /* Первый экран — колонка по центру. Без align-items плашка и кнопка,
     которые inline-flex, растягивались бы во всю ширину блока. */
  /* Сфера живёт подложкой первого экрана: рисуется кодом, поэтому
     ничего не весит и тянется на любую ширину без пережатия. */
  /* z-index: -1 уводил холст за фон .page — она не создаёт свой слой,
     поэтому подложку кладём в общий поток, а содержимое поднимаем. */
  .n-globe {
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    height: min(74%, 660px);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .n-top > *:not(.n-globe) { position: relative; z-index: 1; }

  .n-top {
    position: relative;
    align-items: center;
    /* Шапка живёт над .niche и в блок не входит: без вычета её высоты
       содержимое центрируется по экрану и уезжает вниз. */
    min-height: calc(100svh - 76px);
    /* Нижнее поле больше верхнего: содержимое встаёт чуть выше
       геометрического центра — там, куда смотрит глаз. */
    padding: clamp(20px, 3vh, 40px) 0 clamp(130px, 22vh, 260px);
    text-align: center;
  }

  .n-top h1 {
    max-width: 21ch;
    margin: 26px auto 0;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.04;
    letter-spacing: -.035em;
  }

  /* .lead со страниц-документов приносит линию сверху — на первом экране
     она разрезала заголовок и подзаголовок пополам. */
  .n-top .lead {
    max-width: 46ch;
    margin: 24px auto 0;
    padding-top: 0;
    border-top: 0;
    font-size: 18px;
    line-height: 1.5;
  }

  .n-cta { display: inline-flex; margin-top: 34px; border: 0; cursor: pointer; font-family: inherit; }



  /* чередующиеся блоки: текст и картинка */

  .n-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
    padding: clamp(44px, 7vh, 90px) 0;
  }

  .n-split.is-flip .n-split__text { order: 2; }

  @media (max-width: 900px) {
    .n-split { grid-template-columns: 1fr; }
    .n-split.is-flip .n-split__text { order: 0; }
  }

  .n-split h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.1;
    letter-spacing: -.03em;
  }

  .n-split p { margin: 18px 0 0; max-width: 46ch; font-size: 17px; }

  /* Текстовая колонка держит ритм блока «Инфраструктура» с главной:
     крупный заголовок → лид в 44 знака → ссылка → линия → пункты. */
  .niche .n-split__text h2 {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.1;
    letter-spacing: -.03em;
  }

  .niche .n-split__text > p {
    max-width: 44ch;
    margin: 20px 0 0;
    line-height: 1.5;
  }

  .niche .n-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    /* ссылка-действие везде синяя, независимо от акцента ниши */
    color: #0064FF;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: gap .18s ease;
  }

  .niche .n-link:hover { gap: 12px; }

  .niche .n-feats {
    /* .niche ul обрезает списки до 68ch — линия над пунктами
       не доходила до края колонки и выглядела оборванной. */
    max-width: none;
    margin: clamp(26px, 3.4vh, 36px) 0 0;
    padding: clamp(22px, 2.6vh, 30px) 0 0;
    border-top: 1px solid var(--soft);
    list-style: none;
  }

  .niche .n-feats li b { color: var(--ink); font-weight: 500; }

  .niche .n-feats li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.45;
  }

  .niche .n-feats li:last-child { margin-bottom: 0; }

  .niche .n-feats svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: #A0A6B0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }



  /* шаги запуска */

  .n-steps-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 30px; }

  .n-step-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
  }

  /* Визуал шага. Сцены маленькие и в той же материальности, что большие
     сцены блоков: белая карточка, синий акцент, движение по кругу. */
  .stp {
    position: relative;
    display: flex;
    height: 132px;
    margin: 8px 0 26px;
    padding: 16px;
    border-radius: 16px;
    background: var(--soft-bg);
    overflow: hidden;
  }


  /* шаг 1 — что разбор находит в CRM */
  .stp--audit { flex-direction: column; justify-content: center; gap: 8px; }

  .n-step-card .stp--audit b {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 0;
    padding: 9px 13px;
    border-radius: 12px;
    background: #fff;
    font-weight: 400;
  }

  .stp--audit i {
    flex: 0 0 auto;
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
  }

  .stp--audit u { font-size: 12px; text-decoration: none; }

  .stp--audit em {
    color: var(--tertiary);
    font-style: normal;
    font-size: 12px;
  }

  .n-step-card.is-in .stp--audit b { animation: stp-found 4.4s ease infinite both; }
  .n-step-card.is-in .stp--audit b:nth-child(2) { animation-delay: .5s; }

  @keyframes stp-found {
    0%        { opacity: 0; transform: translateY(8px); }
    16%, 88%  { opacity: 1; transform: none; }
    100%      { opacity: 0; transform: translateY(8px); }
  }

  /* шаг 2 — каналы съезжаются в одну очередь */
  .stp--merge { align-items: center; justify-content: space-between; }

  .stp--merge i {
    position: absolute;
    left: 16px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 40px;
    /* Белый кружок на почти белом фоне пропадал — берём подложку чипа. */
    background: var(--accent-soft);
    color: var(--accent);
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
  }

  .stp--merge i:nth-child(1) { top: 14px; }
  .stp--merge i:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .stp--merge i:nth-child(3) { bottom: 14px; }

  .n-step-card .stp--merge b {
    margin-left: auto;
    padding: 9px 14px;
    border-radius: 40px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
    font-size: 13px;
  }

  .n-step-card.is-in .stp--merge i { animation: stp-merge 4.4s cubic-bezier(.32, .72, .3, 1) infinite both; }
  .n-step-card.is-in .stp--merge i:nth-child(2) { animation-delay: .2s; }
  .n-step-card.is-in .stp--merge i:nth-child(3) { animation-delay: .4s; }

  @keyframes stp-merge {
    0%        { opacity: 0; transform: translateX(-10px); }
    16%, 58%  { opacity: 1; transform: none; }
    80%, 100% { opacity: 0; transform: translateX(112px); }
  }

  /* второй кружок сдвинут по вертикали — свой набор кадров */
  .n-step-card.is-in .stp--merge i:nth-child(2) { animation-name: stp-merge-mid; }

  @keyframes stp-merge-mid {
    0%        { opacity: 0; transform: translate(-10px, -50%); }
    16%, 58%  { opacity: 1; transform: translateY(-50%); }
    80%, 100% { opacity: 0; transform: translate(112px, -50%); }
  }

  /* шаг 3 — Mary набирает ответ */
  .stp--reply {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 8px;
  }

  /* Ответ и «печатает» занимают одно место: сначала точки, потом текст. */
  .n-step-card .stp__reply {
    grid-row: 2;
    grid-column: 1;
    justify-self: end;
    padding: 9px 13px;
    border-radius: 14px 14px 4px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
    font-size: 13px;
    opacity: 0;
  }

  .n-step-card.is-in .stp__answer { animation: stp-typing 4.4s steps(1) infinite both; }
  .n-step-card.is-in .stp__reply { animation: stp-said 4.4s ease infinite both; }

  /* steps(1) держит значение кадра до его конца, поэтому точки гаснут
     ровно там, где текст ещё не начал появляться — иначе они наезжают. */
  @keyframes stp-typing {
    0%, 40%   { opacity: 1; }
    44%, 100% { opacity: 0; }
  }

  @keyframes stp-said {
    0%, 46%   { opacity: 0; transform: translateY(6px); }
    58%, 92%  { opacity: 1; transform: none; }
    100%      { opacity: 0; transform: translateY(6px); }
  }

  .n-step-card .stp__ask {
    grid-row: 1;
    justify-self: start;
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    color: var(--secondary);
    font-weight: 400;
    font-size: 13px;
  }

  .n-step-card .stp__answer {
    grid-row: 2;
    grid-column: 1;
    justify-self: end;
    display: flex;
    gap: 5px;
    padding: 13px;
    border-radius: 14px 14px 4px 14px;
    background: var(--accent-soft);
  }

  .stp__answer i {
    width: 6px;
    height: 6px;
    border-radius: 40px;
    background: var(--accent);
  }

  .n-step-card.is-in .stp__answer i { animation: stp-dot 1.4s ease-in-out infinite both; }
  .n-step-card.is-in .stp__answer i:nth-child(2) { animation-delay: .18s; }
  .n-step-card.is-in .stp__answer i:nth-child(3) { animation-delay: .36s; }

  @keyframes stp-dot {
    0%, 60%, 100% { opacity: .25; transform: none; }
    30% { opacity: 1; transform: translateY(-3px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .n-step-card.is-in .stp i,
    .n-step-card.is-in .stp__answer i { animation: none; }
  }
  .n-step-card b { display: block; margin-bottom: 10px; color: var(--ink); font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
  .n-step-card p { margin: 0; font-size: 15px; }

  .n-step-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 40px;
    background: var(--soft-bg);
    color: var(--secondary);
    font-size: 13px;
  }



  /* ── живые сцены вместо статичных скриншотов ────────────── */

  .n-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: clamp(260px, 30vw, 380px);
    padding: clamp(20px, 2.4vw, 32px);
    border-radius: 26px;
    /* Панель серая, карточки внутри белые — как в блоке «Инфраструктура». */
    background: var(--soft-bg);
    overflow: hidden;
  }

  .sc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
  }

  .sc-card small { display: block; color: var(--tertiary); font-size: 12px; }
  .sc-card b { font-weight: 500; }

  .sc-dot {
    flex: 0 0 auto;
    /* Под «IG» хватает круга, под номер заказа — нет: даём плашке расти
       вширь, оставаясь круглой на коротком тексте. */
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
  }

  .sc-chip {
    margin-left: auto;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }

  /* 1 — заявки съезжаются в очередь */
  /* Анимации назначаются только видимому блоку: иначе цикл крутится
     в фоне, и доскроллив, человек попадает в его середину. Наблюдатель
     снимает .is-in при уходе блока — на обратном пути всё стартует с нуля. */
  .n-scene.is-in .sc-in { animation: sc-in 7s cubic-bezier(.32,.72,.3,1) infinite both; }
  .n-scene.is-in .sc-in:nth-child(2) { animation-delay: .5s; }
  .n-scene.is-in .sc-in:nth-child(3) { animation-delay: 1s; }

  @keyframes sc-in {
    0%   { opacity: 0; transform: translateX(-28px); }
    12%, 88% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateX(-28px); }
  }

  /* 2 — расчёт заполняется строка за строкой */
  /* Карточка расчёта — единственная колоночная: строки идут друг под
     другом, поэтому направление и растяжку задаём ей отдельно. */
  .sc-calc {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px;
  }

  .sc-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 13px 0;
    border-top: 1px solid #ECEEF2;
    color: var(--tertiary);
    font-size: 15px;
  }

  .sc-row:first-child { border-top: 0; }
  .sc-row > span:last-child { color: var(--ink); font-weight: 500; text-align: right; }

  .sc-row.is-total > span:last-child { color: var(--accent); font-size: 20px; }

  .n-scene.is-in .sc-fill { animation: sc-fill 7s ease infinite both; }
  .n-scene.is-in .sc-fill:nth-of-type(2) { animation-delay: .6s; }
  .n-scene.is-in .sc-fill:nth-of-type(3) { animation-delay: 1.2s; }
  .n-scene.is-in .sc-fill:nth-of-type(4) { animation-delay: 2s; }

  @keyframes sc-fill {
    0%   { opacity: 0; transform: translateY(6px); }
    14%, 88% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(6px); }
  }

  /* 3 — статусы загораются по очереди */
  /* Четыре равные доли: под карточкой заказа это читается как шкала,
     а не как случайная россыпь плашек разной ширины. */
  .sc-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .sc-step {
    padding: 9px 10px;
    text-align: center;
    border-radius: 999px;
    background: #fff;
    color: var(--tertiary);
    font-size: 14px;
  }

  /* Задержкой цепочку не собрать: у каждого чипа свой цикл, и на стыке
     циклов они горят вразнобой. Поэтому один цикл на всех, а очередь
     задана процентами — статусы загораются друг за другом и гаснут разом,
     как и происходит с заказом. */
  .n-scene.is-in .sc-step { animation: 8s ease infinite both; }
  .n-scene.is-in .sc-step:nth-child(1) { animation-name: sc-step-1; }
  .n-scene.is-in .sc-step:nth-child(2) { animation-name: sc-step-2; }
  .n-scene.is-in .sc-step:nth-child(3) { animation-name: sc-step-3; }
  .n-scene.is-in .sc-step:nth-child(4) { animation-name: sc-step-4; }

  @keyframes sc-step-1 {
    0%, 6%    { background: #fff; color: var(--tertiary); }
    12%, 92%  { background: var(--accent-soft); color: var(--accent); }
    98%, 100% { background: #fff; color: var(--tertiary); }
  }

  @keyframes sc-step-2 {
    0%, 24%   { background: #fff; color: var(--tertiary); }
    30%, 92%  { background: var(--accent-soft); color: var(--accent); }
    98%, 100% { background: #fff; color: var(--tertiary); }
  }

  @keyframes sc-step-3 {
    0%, 42%   { background: #fff; color: var(--tertiary); }
    48%, 92%  { background: var(--accent-soft); color: var(--accent); }
    98%, 100% { background: #fff; color: var(--tertiary); }
  }

  @keyframes sc-step-4 {
    0%, 60%   { background: #fff; color: var(--tertiary); }
    66%, 92%  { background: var(--accent-soft); color: var(--accent); }
    98%, 100% { background: #fff; color: var(--tertiary); }
  }

  /* 4 — сервисы подключаются */
  .sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .sc-app {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: 16px;
    background: #fff;
    color: var(--secondary);
    font-size: 13px;
    text-align: center;
  }

  .sc-app img { width: 28px; height: 28px; object-fit: contain; }
  .n-scene.is-in .sc-app { animation: sc-app 8s ease infinite both; }
  .n-scene.is-in .sc-app:nth-child(2) { animation-delay: .4s; }
  .n-scene.is-in .sc-app:nth-child(3) { animation-delay: .8s; }
  .n-scene.is-in .sc-app:nth-child(4) { animation-delay: 1.2s; }
  .n-scene.is-in .sc-app:nth-child(5) { animation-delay: 1.6s; }
  .n-scene.is-in .sc-app:nth-child(6) { animation-delay: 2s; }

  @keyframes sc-app {
    0%   { opacity: 0; transform: scale(.92); }
    10%, 88% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: scale(.92); }
  }

  @media (prefers-reduced-motion: reduce) {
    .n-scene.is-in .sc-in,
    .n-scene.is-in .sc-fill,
    .n-scene.is-in .sc-step,
    .n-scene.is-in .sc-app { animation: none; }
  }


  /* ── кейс, вопросы и заявка — блоки с главной ──────────────
     Разметка и числа те же, что в src/blocks/{Cases,Faq,Request};
     здесь они повторены статикой, чтобы нишевая страница
     не тянула React-бандл. */

  :is(.niche, .cases-hero) .b-case { padding: clamp(44px, 7vh, 90px) 0; }

  :is(.niche, .cases-hero) .b-case__title,
  .niche .b-faq__title,
  :is(.niche, .modal) .b-req__title { margin: 0; }

  :is(.niche, .cases-hero) .b-case__title {
    max-width: 900px;
    margin-inline: auto;
    color: var(--heading);
    font-weight: 500;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.15;
    letter-spacing: -.02em;
    text-align: center;
  }


  :is(.niche, .cases-hero) .b-case__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 504px);
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    max-width: 1181px;
    margin: clamp(28px, 4vh, 40px) auto 0;
    padding: clamp(32px, 4vw, 58px) clamp(24px, 3.4vw, 46px);
    border-radius: 50px;
    background: var(--accent-wash);
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s cubic-bezier(.32, .72, .3, 1);
  }

  :is(.niche, .cases-hero) .b-case__card:hover { transform: translateY(-3px); }

  :is(.niche, .cases-hero) .b-case__deco {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    pointer-events: none;
  }

  :is(.niche, .cases-hero) .b-case__story { display: flex; flex-direction: column; min-width: 0; }

  :is(.niche, .cases-hero) .b-case__lead {
    max-width: 420px;
    margin: 0;
    color: var(--heading);
    font-weight: 500;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.05;
    letter-spacing: -.02em;
  }

  /* Кликабельна вся карточка: невидимая область самой ссылки растянута
     по карточке — оборачивать её в <a> нельзя, внутри цитата и подпись. */
  :is(.niche, .cases-hero) .b-case__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -.01em;
    text-decoration: none;
    transition: gap .18s ease;
  }

  :is(.niche, .cases-hero) .b-case__more::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: inherit; }
  :is(.niche, .cases-hero) .b-case__card:hover .b-case__more { gap: 12px; }

  :is(.niche, .cases-hero) .b-case__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

  :is(.niche, .cases-hero) .b-case__quote {
    max-width: 451px;
    margin: clamp(28px, 5vh, 51px) 0 0;
    color: var(--heading);
    font: 500 16px/1.2 var(--font);
    letter-spacing: -.01em;
  }

  :is(.niche, .cases-hero) .b-case__author { display: flex; align-items: center; gap: 18px; margin: clamp(24px, 4vh, 40px) 0 0; }
  :is(.niche, .cases-hero) .b-case__author img { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 40px; object-fit: cover; }
  :is(.niche, .cases-hero) .b-case__author figcaption { display: flex; flex-direction: column; gap: 8px; }
  :is(.niche, .cases-hero) .b-case__name { color: #494F5C; font: 500 16px/1 var(--font); }
  :is(.niche, .cases-hero) .b-case__role { color: color-mix(in srgb, #494F5C 30%, transparent); font: 500 14px/1 var(--font); }

  :is(.niche, .cases-hero) .b-case__stats {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: clamp(24px, 2.6vw, 40px);
    border-radius: 28px;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  :is(.niche, .cases-hero) .b-case__stats-label { margin: 0 0 22px; color: var(--accent-ink); font: 500 14px/1 var(--font); letter-spacing: -.01em; }

  :is(.niche, .cases-hero) .b-case__stat + .b-case__stat {
    margin-top: clamp(20px, 2.6vh, 28px);
    padding-top: clamp(20px, 2.6vh, 28px);
    border-top: 1px solid var(--accent-line);
  }

  :is(.niche, .cases-hero) .b-case__stat dt { display: flex; align-items: baseline; gap: 8px; }

  :is(.niche, .cases-hero) .b-case__value {
    color: var(--ink);
    font: 400 clamp(36px, 3.8vw, 54px)/1 var(--font);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
  }

  :is(.niche, .cases-hero) .b-case__unit { color: var(--ink); font: 400 clamp(16px, 1.6vw, 22px)/1 var(--font); letter-spacing: -.01em; }
  :is(.niche, .cases-hero) .b-case__stats dd { margin: 10px 0 0; color: var(--accent-ink); font: 400 15px/1.4 var(--font); }

  @media (max-width: 900px) {
  :is(.niche, .cases-hero) .b-case__card { grid-template-columns: 1fr; border-radius: 32px; }
  :is(.niche, .cases-hero) .b-case__deco { width: 100%; opacity: .35; }
  :is(.niche, .cases-hero) .b-case__quote { max-width: none; }
  }

  @media (prefers-reduced-motion: reduce) {
  :is(.niche, .cases-hero) .b-case__card,
  :is(.niche, .cases-hero) .b-case__card:hover { transition: none; transform: none; }
  }

  /* ── вопросы ────────────────────────────────────────────── */

  .niche .b-faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(44px, 7vh, 90px) 0;
  }

  .niche .b-faq__title {
    margin-bottom: 56px;
    color: var(--heading);
    font-weight: 500;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.1;
    letter-spacing: -.02em;
    text-align: center;
  }

  .niche .b-faq__list {
    width: min(100%, 860px);
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--soft);
  }

  .niche .b-faq__item { margin: 0; border-bottom: 1px solid var(--soft); }

  .niche .b-faq__question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
  }

  .niche .b-faq__question::-webkit-details-marker { display: none; }

  .niche .b-faq__question span:last-child {
    color: var(--heading);
    font: 500 18px/1.35 var(--font);
    letter-spacing: -.01em;
    transition: color .18s ease;
  }

  .niche .b-faq__question:hover span:last-child { color: var(--ink); }

  .niche .b-faq__toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 40px;
    background: var(--page);
    transition: background .18s ease;
  }

  .niche .b-faq__toggle svg { width: 16px; height: 16px; fill: none; stroke: var(--heading); stroke-width: 1.6; stroke-linecap: round; }

  /* Плюс складывается в минус: смысл — «свернуть», а не «закрыть». */
  .niche .b-faq__bar { transform-origin: center; transition: transform .2s ease, opacity .2s ease; }
  .niche .b-faq details[open] .b-faq__bar--v { transform: scaleY(0); opacity: 0; }
  .niche .b-faq details[open] .b-faq__toggle { background: var(--line); }

  .niche .b-faq__answer { padding: 0 0 22px 44px; animation: faq-open .22s ease both; }
  .niche .b-faq__answer p { max-width: 62ch; margin: 0; color: var(--secondary); font: 400 16px/1.5 var(--font); }

  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }

  .niche .b-faq__ask { margin: 36px 0 0; color: var(--tertiary); font-size: 16px; }
  .niche .b-faq__ask a { color: var(--ink); }

  @media (max-width: 760px) {
  .niche .b-faq__title { margin-bottom: 32px; }
  .niche .b-faq__answer { padding-left: 0; }
  }

  /* ── заявка ─────────────────────────────────────────────── */

  :is(.niche, .modal) .b-req { padding: clamp(44px, 7vh, 90px) 0 0; }

  :is(.niche, .modal) .b-req__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(28px, 3.4vw, 44px);
    border-radius: 40px;
    /* Плашки на фоне — синий рендер, он спорит с фиолетовым акцентом ниши.
       Здесь панель нейтральная серая, без подложки. */
    background: var(--soft-bg);
    overflow: hidden;
    isolation: isolate;
  }

  :is(.niche, .modal) .b-req__deco {
    display: none;
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    pointer-events: none;
  }

  :is(.niche, .modal) .b-req__title {
    color: var(--heading);
    font-weight: 500;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -.03em;
  }

  :is(.niche, .modal) .b-req__list { margin: clamp(26px, 3.4vh, 38px) 0 0; padding: 0; list-style: none; }

  :is(.niche, .modal) .b-req__list li {
    display: grid;
    margin: 0;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--soft);
  }

  :is(.niche, .modal) .b-req__list li:last-child { border-bottom: 1px solid var(--soft); }
  :is(.niche, .modal) .b-req__spark { width: 24px; height: 24px; margin-top: 1px; object-fit: contain; }
  :is(.niche, .modal) .b-req__list b { display: block; margin-bottom: 3px; color: var(--heading); font: 500 16px/1.35 var(--font); letter-spacing: -.01em; }
  :is(.niche, .modal) .b-req__list span { color: var(--secondary); font: 400 14px/1.4 var(--font); }
  :is(.niche, .modal) .b-req__note { margin: clamp(20px, 2.6vh, 28px) 0 0; color: var(--tertiary); font: 400 14px/1.4 var(--font); }

  :is(.niche, .modal) .b-req__card {
    padding: clamp(22px, 2.4vw, 30px);
    border-radius: 30px;
    /* стекло: сквозь форму видно плашки на фоне */
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  :is(.niche, .modal) .b-req__modes { display: flex; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 40px; background: var(--page); }

  :is(.niche, .modal) .b-req__mode {
    flex: 1 1 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 40px;
    color: var(--tertiary);
    background: transparent;
    font: 500 14px/1 var(--font);
    letter-spacing: -.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
  }

  :is(.niche, .modal) .b-req__mode:hover { color: var(--heading); }
  :is(.niche, .modal) .b-req__mode.is-active { color: #fff; background: var(--ink); }

  :is(.niche, .modal) .b-req__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
  :is(.niche, .modal) .b-req__row > * { min-width: 0; }
  :is(.niche, .modal) .b-req__label { display: block; color: var(--heading); font: 500 14px/1 var(--font); letter-spacing: -.02em; }

  :is(.niche, .modal) .b-req__field {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: var(--card);
    font: 400 16px/1.2 var(--font);
    transition: border-color .18s ease;
    appearance: none;
  }

  :is(.niche, .modal) .b-req__field::placeholder { color: var(--tertiary); }
  :is(.niche, .modal) .b-req__field:focus-visible { outline: none; border-color: var(--ink); }

  :is(.niche, .modal) .b-req__select { position: relative; display: block; }

  :is(.niche, .modal) .b-req__select svg {
    position: absolute;
    top: calc(50% + 4px);
    right: 16px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--tertiary);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }

  :is(.niche, .modal) .b-req__select select { padding-right: 44px; cursor: pointer; }

  :is(.niche, .modal) .b-req__submit {
    width: 100%;
    margin-top: 6px;
    padding: 16px 24px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--ink);
    font: 500 16px/1 var(--font);
    letter-spacing: -.02em;
    cursor: pointer;
    transition: opacity .18s ease;
  }

  :is(.niche, .modal) .b-req__submit:hover { opacity: .88; }

  :is(.niche, .modal) .b-req__terms { margin: 12px 0 0; color: var(--tertiary); font: 400 13px/1.45 var(--font); text-align: center; }
  :is(.niche, .modal) .b-req__terms a { color: var(--secondary); text-decoration: underline; text-underline-offset: 2px; }

  :is(.niche, .modal) .b-req__done { padding: clamp(30px, 5vw, 56px) 0; text-align: center; }
  :is(.niche, .modal) .b-req__done h3 { margin: 0; color: var(--heading); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.025em; }
  :is(.niche, .modal) .b-req__done p { max-width: 40ch; margin: 12px auto 0; color: var(--secondary); font: 400 16px/1.45 var(--font); }

  @media (max-width: 940px) {
  :is(.niche, .modal) .b-req__panel { grid-template-columns: 1fr; }
  :is(.niche, .modal) .b-req__deco { width: 100%; opacity: .35; }
  }




  /* ── выпадающее меню ниш (шапка главной) ────────────────── */

  .nav__drop { position: relative; display: inline-flex; }

  /* мостик до меню: без него список закрывается, пока ведёшь мышь */
  .nav__drop::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }

  .nav__drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
  }

  .nav__drop-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
  }

  .nav__drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

  .nav__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 12px);
    left: -20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: max-content;
    max-width: min(94vw, 1040px);
    padding: 26px;
    border: 1px solid var(--soft);
    border-radius: 24px;
    /* стекло, как у панели с цифрами в кейсе: сквозь меню видно страницу */
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }

  .nav__cols {
    display: grid;
    grid-template-columns: minmax(390px, 1fr) minmax(300px, 340px);
    gap: 32px;
  }

  /* Ниш двенадцать — в один столбец меню было бы во весь экран. */
  .nav__col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 2px 10px;
  }

  .nav__menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--heading);
    font: 400 16px/1.2 var(--font);
    letter-spacing: -.01em;
    white-space: nowrap;
    text-decoration: none;
    transition: background .16s ease;
  }

  .nav__menu-item:hover { background: var(--page); }

  .nav__ico {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--page);
  }

  .nav__ico img {
    width: 19px;
    height: 19px;
    object-fit: contain;
  }

  .nav__promo { display: flex; flex-direction: column; gap: 10px; }

  .nav__promo-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(244, 244, 245, .85);
    text-decoration: none;
    transition: background .16s ease;
  }

  .nav__promo-card:hover { background: var(--line); }

  .nav__promo-card img {
    width: 92px;
    height: 72px;
    /* у обложек прозрачный фон — иначе иллюстрация сливается с карточкой */
    background: var(--card);
    border-radius: 10px;
    object-fit: cover;
  }

  .nav__promo-card em {
    display: block;
    margin-bottom: 5px;
    color: var(--tertiary);
    font: 500 11px/1 var(--font);
    font-style: normal;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .nav__promo-card b {
    display: block;
    color: var(--heading);
    font: 500 14px/1.3 var(--font);
    white-space: normal;
  }

  .nav__promo-card i {
    display: block;
    margin-top: 6px;
    color: var(--tertiary);
    font: 400 13px/1 var(--font);
    font-style: normal;
  }

  @media (max-width: 1180px) {
    .nav__cols { grid-template-columns: 1fr; }
    .nav__promo { display: none; }
  }

  @media (max-width: 720px) {
    .nav__col { grid-template-columns: 1fr; }
  }

  /* ── сравнение с обычным AI-чатом (блок с главной) ──────── */

  .b-cmp { padding: clamp(44px, 7vh, 90px) 0; }

  .b-cmp__inner { display: flex; flex-direction: column; }

  .niche .b-cmp__title {
    margin: 0 auto;
    color: var(--heading);
    font-weight: 500;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.1;
    letter-spacing: -.02em;
    text-align: center;
  }

  .b-cmp__columns {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 37px;
    width: min(100%, 865px);
    margin: clamp(36px, 6vh, 64px) auto 0;
  }

  .b-cmp__col { display: flex; flex-direction: column; gap: 26px; }

  /* Высота метки задана общей: иначе колонка с головой выше соседней
     и списки под ними разъезжаются на пиксель. */
  .niche .b-cmp__col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    margin: 0;
    color: color-mix(in srgb, var(--secondary) 60%, transparent);
    font: 500 20px/1 var(--font);
    letter-spacing: -.01em;
  }

  .niche .b-cmp__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .b-cmp__logos { display: inline-flex; align-items: center; gap: 5px; }

  .b-cmp__logos img {
    width: 18px;
    height: 18px;
    /* у Клода знак квадратный — скругляем, чтобы не выбивался из ряда */
    border-radius: 5px;
    object-fit: contain;
    opacity: .8;
  }

  .b-cmp__head {
    display: block;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 40px;
    overflow: hidden;
  }

  .b-cmp__head video { width: 100%; height: 100%; object-fit: cover; }

  .niche .b-cmp__card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    margin: 0;
    padding: 10px;
    /* светлее разделителей: обводка только очерчивает строку */
    border: 1px solid #F4F4F5;
    border-radius: 16px;
  }

  .b-cmp__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; }

  .b-cmp__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

  .niche .b-cmp__text h4 {
    margin: 0;
    font: 500 16px/1.15 var(--font);
    letter-spacing: -.01em;
  }

  .niche .b-cmp__text p { margin: 0; max-width: none; font: 500 14px/1.2 var(--font); }

  /* Левая колонка приглушена — это «до». Но не в ноль: текст должен
     оставаться читаемым, иначе сравнение превращается в рекламу. */
  .b-cmp__col.is-plain .b-cmp__text h4 { color: color-mix(in srgb, var(--secondary) 70%, transparent); }
  .b-cmp__col.is-plain .b-cmp__text p  { color: color-mix(in srgb, var(--secondary) 45%, transparent); }
  .b-cmp__col.is-mary .b-cmp__text h4 { color: var(--secondary); }
  .b-cmp__col.is-mary .b-cmp__text p  { color: color-mix(in srgb, var(--secondary) 55%, transparent); }

  /* Стрелка у каждой пары стоит в промежутке между колонками и всегда
     попадает по центру строки, какой бы высоты карточка ни была. */
  .b-cmp__col.is-plain .b-cmp__card { position: relative; }

  .b-cmp__col.is-plain .b-cmp__card::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -30px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: var(--accent);
    -webkit-mask: var(--cmp-arrow) center / contain no-repeat;
    mask: var(--cmp-arrow) center / contain no-repeat;
    transition: transform .22s cubic-bezier(.32, .72, .3, 1);
  }

  /* Колонки — два отдельных списка, в CSS они не связаны. Класс на левой
     карточке ставит скрипт, когда мышь заходит на любую из пары. */
  .b-cmp__col.is-plain .b-cmp__card.is-hover::after {
    transform: translate(7px, -50%);
  }

  /* строки проявляются сверху вниз, парами: сначала слева, следом справа */
  /* Прячем только при живом наблюдателе: без JS блок должен остаться
     видимым, а не исчезнуть насовсем. */
  .has-reveal .b-cmp__items > li { opacity: 0; transform: translateY(14px); }

  .b-cmp__columns.is-in .b-cmp__items > li {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s cubic-bezier(.32, .72, .3, 1);
  }

  .b-cmp__columns.is-in .b-cmp__items > li:nth-child(1) { transition-delay: 0s; }
  .b-cmp__columns.is-in .b-cmp__items > li:nth-child(2) { transition-delay: .09s; }
  .b-cmp__columns.is-in .b-cmp__items > li:nth-child(3) { transition-delay: .18s; }
  .b-cmp__columns.is-in .b-cmp__items > li:nth-child(4) { transition-delay: .27s; }
  .b-cmp__columns.is-in .b-cmp__items > li:nth-child(5) { transition-delay: .36s; }

  @media (max-width: 760px) {
    .b-cmp__columns { grid-template-columns: 1fr; gap: 40px; }
    .b-cmp__col { gap: 24px; }
    .niche .b-cmp__card { min-height: 0; }
    .b-cmp__icon { width: 40px; height: 40px; }
    .b-cmp__col.is-plain .b-cmp__card::after { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .has-reveal .b-cmp__items > li { opacity: 1; transform: none; }
  }


  /* ── лента блога (блок с главной, без фильтров) ─────────── */

  .b-blog { padding: clamp(44px, 7vh, 90px) 0; }

  /* Заголовок по центру, стрелки прижаты вправо — но на одной линии,
     как в блоке блога на главной. */
  /* Заголовок по центру, стрелки — у правого края полосы контента:
     лента шире экрана, но управление живёт в общей сетке страницы. */
  .b-blog__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: clamp(20px, 3.5vw, 50px);
  }

  .niche .b-blog__title {
    max-width: 30ch;
    margin: 0;
    color: var(--heading);
    font-weight: 500;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.1;
    letter-spacing: -.02em;
    text-align: center;
  }

  /* Блок живёт внутри .wrap (полоса 1440 + поля), из-за чего лента
     начиналась с большим отступом от края экрана. Выводим её из контейнера
     на всю ширину — как блок блога на главной. */
  /* Лента выходит за полосу контента: справа должна выглядывать
     следующая карточка, а не упираться в край. */
  .b-blog__lane {
    position: relative;
    width: 100vw;
    margin-top: clamp(36px, 6vh, 56px);
    margin-inline: calc(50% - 50vw);
  }

  /* Кружки лежат поверх ленты у её краёв — так они всегда рядом
     с карточками, а не отъезжают от них на широком экране. */
  .b-blog__arrow {
    position: absolute;
    z-index: 3;
    top: 38%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 40px;
    background: rgba(120, 122, 128, .28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .18s ease, opacity .18s ease;
  }

  .b-blog__arrow.is-prev { left: clamp(20px, 3.5vw, 50px); }
  .b-blog__arrow.is-next { right: clamp(20px, 3.5vw, 50px); }

  @media (max-width: 760px) {
    .b-blog__arrow { display: none; }
  }
  .b-blog__arrow:hover:not(:disabled) { background: rgba(120, 122, 128, .42); }

  /* на краю ленты стрелка гаснет — видно, что дальше ничего нет */
  .b-blog__arrow:disabled { opacity: 0; pointer-events: none; }

  .b-blog__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .b-blog__scroller {
    /* Свой слой на нуле: иначе карточки внутри перекрывают стрелки,
       хотя те лежат выше по z-index. */
    position: relative;
    z-index: 0;
    overflow-x: auto;
    /* Если задать overflow только по X, браузер сам ставит overflow-y: auto,
       и лента перехватывает вертикальную прокрутку страницы. Гасим Y явно. */
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-padding-inline: max(clamp(20px, 3.5vw, 50px), calc((100vw - 1440px) / 2 + clamp(20px, 3.5vw, 50px)));
  }

  .b-blog__scroller::-webkit-scrollbar { display: none; }

  .niche .b-blog__track {
    display: flex;
    gap: 14px;
    width: max-content;
    max-width: none;
    margin: 0;
    padding-inline: max(clamp(20px, 3.5vw, 50px), calc((100vw - 1440px) / 2 + clamp(20px, 3.5vw, 50px)));
    list-style: none;
  }

  .niche .b-blog__card {
    flex: 0 0 auto;
    width: 441px;
    margin: 0;
    scroll-snap-align: start;
  }

  .b-blog__card a { display: block; text-decoration: none; }

  .b-blog__frame { position: relative; display: block; }

  .b-blog__visual {
    /* inline-картинка тянет за собой baseline-зазор снизу, и плашка автора
       оказывается дальше от нижнего края, чем от левого. */
    display: block;
    width: 100%;
    aspect-ratio: 441 / 305;
    /* У иллюстраций фон прозрачный: цвет задаём здесь, чтобы он был
       одинаковым у всех и не плыл от сжатия WebP. */
    background: var(--page);
    border-radius: 20px;
    object-fit: cover;
  }

  /* Метка источника живым элементом поверх картинки, а не частью файла:
     её можно править, и она не мылится при сжатии. */
  .b-blog__source {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 40px;
    color: #fff;
    /* полупрозрачная, но без размытия: на фотографиях блюр давал грязь */
    background: rgba(21, 22, 23, .62);
    font: 500 13px/1 var(--font);
  }

  .b-blog__source img {
    width: 22px;
    height: 22px;
    border-radius: 40px;
    background: #fff;
    object-fit: cover;
  }

  .niche .b-blog__card-title {
    margin: 18px 0 0;
    color: var(--heading);
    font: 500 16px/1.3 var(--font);
  }

  .b-blog__date {
    display: block;
    margin-top: 10px;
    color: #A3A3AB;
    font: 500 14px/1 var(--font);
  }

  @media (max-width: 760px) {
    .niche .b-blog__card { width: 300px; }
  }

  /* ── плавающая плашка ───────────────────────────────────── */

  .fbar {
    position: fixed;
    z-index: 60;
    bottom: 24px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translate(-50%, 20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
  }

  .fbar.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

  /* Стеклянный фильтр главной живёт в React-разметке; здесь то же
     ощущение собрано матовой подложкой — на статике это дешевле. */
  .fbar__row {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 60px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 10px 30px rgba(38, 38, 51, .10), inset 0 0 0 1px rgba(255, 255, 255, .6);
  }

  .fbar__mark { display: grid; place-items: center; width: 36px; height: 36px; }
  .fbar__mark img { width: 36px; height: 36px; }

  .fbar__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    border: 0;
    border-radius: 40px;
    color: #fff;
    background: var(--heading);
    font: 500 14px/1 var(--font);
    letter-spacing: -.03em;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease;
  }

  .fbar__cta:hover { background: var(--ink); }
  .fbar__cta img { width: 16px; height: 16px; }

  .fbar__menu-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 40px;
    background: var(--heading);
    cursor: pointer;
    transition: background .18s ease;
  }

  .fbar__menu-btn:hover { background: var(--ink); }
  .fbar__menu-btn img { width: 24px; height: 24px; }

  .fbar__menu {
    display: flex;
    flex-direction: column;
    min-width: 233px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 16px 40px rgba(38, 38, 51, .14);
    animation: fbar-rise .18s ease both;
  }

  .fbar__menu[hidden] { display: none; }

  @keyframes fbar-rise {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }

  .fbar__menu a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--heading);
    font: 500 14px/1 var(--font);
    letter-spacing: -.03em;
    text-decoration: none;
    transition: background .15s ease;
  }

  .fbar__menu a:hover { background: var(--page); }

  @media (max-width: 760px) { .fbar { bottom: 16px; } }

  /* ── попап с формой ─────────────────────────────────────
     Нативный <dialog>: фокус, Esc и подложку браузер берёт на себя. */

  .modal {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100svh - 48px);
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: transparent;
    overflow: visible;
  }

  .modal::backdrop {
    background: rgba(21, 22, 23, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .modal[open] { animation: modal-in .22s cubic-bezier(.32, .72, .3, 1) both; }

  @keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: none; }
  }

  .modal__box {
    position: relative;
    max-height: calc(100svh - 48px);
    padding: clamp(26px, 3.4vw, 38px);
    border-radius: 30px;
    /* Голубой в блоке заявки держится на плашках за формой; в попапе
       за ней ничего нет, поэтому подложка нейтральная серая. */
    background: var(--soft-bg);
    overflow-y: auto;
  }

  .modal__title {
    max-width: 18ch;
    margin: 0;
    color: var(--heading);
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.12;
    letter-spacing: -.03em;
  }

  .modal__lead {
    max-width: 44ch;
    margin: 12px 0 22px;
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.5;
  }

  /* Внутри попапа стеклу не сквозь что просвечивать — карточка без фона. */
  .modal .b-req__card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .modal .b-req__modes { background: var(--page); }

  .modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 40px;
    background: var(--card);
    cursor: pointer;
    transition: background .18s ease;
  }

  .modal__close:hover { background: var(--page); }

  .modal__close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--heading);
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  /* Триггеры попапа: по виду прежние ссылки, по сути — кнопки. */
  .niche .n-link {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
  }

  @media (prefers-reduced-motion: reduce) {
    .modal[open] { animation: none; }
  }

  /* ── проявление блоков ─────────────────────────────────── */

  /* Прячем только когда скрипт жив: иначе сбой JS оставил бы белый экран. */
  .has-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
  }

  .has-reveal [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity .6s cubic-bezier(.32, .72, .3, 1), transform .6s cubic-bezier(.32, .72, .3, 1);
  }

  @media (prefers-reduced-motion: reduce) {
    .has-reveal [data-reveal] { opacity: 1; transform: none; }
  }

  /* ── футер ─────────────────────────────────────────────── */

  /* Стык с футером рисует сам футер: белое снаружи, серое полотно со
     скруглением внутри. Подложка под .page осталась от старого сплошного
     футера и давала лишнюю серую полосу над скруглением. */
  .page { background: var(--card); }

  .foot { position: relative; background: var(--card); color: var(--heading); }

  .foot__sheet {
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    background: var(--soft-bg);
  }

  .foot__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(56px, 9vh, 96px) clamp(20px, 3.5vw, 50px) clamp(28px, 4vh, 40px);
  }

  .foot__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }

  /* Числа из футера главной: знак читается как логотип, а не как заголовок. */
  .foot__mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font: 600 19.4px/1 var(--font);
    letter-spacing: -.09em;
    text-decoration: none;
  }

  .foot__mark img { width: 32px; height: 32px; }

  .foot__tagline { margin: 14px 0 0; color: var(--secondary); font-size: 16px; }

  .foot__support { display: flex; flex-direction: column; gap: 12px; }

  .foot__label { margin: 0; color: var(--tertiary); font: 400 14px/1.3 var(--font); }

  .foot__mail {
    color: var(--heading);
    font: 500 clamp(26px, 3.4vw, 46px)/1.05 var(--font);
    letter-spacing: -.035em;
    text-decoration: none;
  }

  .foot__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
    margin-top: clamp(48px, 7vh, 84px);
  }

  .foot__col ul { margin: 18px 0 0; padding: 0; list-style: none; }
  .foot__col li + li { margin-top: 12px; }

  .foot__col a {
    color: var(--ink);
    font: 400 16px/1.35 var(--font);
    text-decoration: none;
  }

  .foot__col a:hover { color: var(--secondary); }

  /* Адрес и телефон — сигнал доверия для СНГ и подсказка поисковику,
     где находится компания. Числа и состав те же, что в блоке на главной. */
  .foot__contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: start;
    gap: 14px clamp(24px, 3vw, 48px);
    margin-top: clamp(40px, 6vh, 64px);
    padding-top: clamp(24px, 3vh, 32px);
    border-top: 1px solid var(--line);
  }

  .foot__phone {
    color: var(--heading);
    font: 500 clamp(18px, 1.8vw, 22px)/1 var(--font);
    letter-spacing: -.02em;
    text-decoration: none;
  }

  .foot__mailto {
    color: var(--heading);
    font: 500 clamp(16px, 1.6vw, 19px)/1 var(--font);
    letter-spacing: -.02em;
    text-decoration: none;
  }

  .foot__address,
  .foot__legal-info {
    margin: 0;
    color: var(--tertiary);
    font: 400 14px/1.45 var(--font);
  }

  .foot__up {
    position: absolute;
    right: clamp(20px, 3.5vw, 50px);
    bottom: clamp(24px, 4vh, 40px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: var(--card);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
  }

  .foot__up:hover { background: var(--page); transform: translateY(-2px); }

  .foot__up svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--heading);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  @media (max-width: 860px) { .foot__up { display: none; } }

  .foot__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(56px, 10vh, 120px);
    color: var(--tertiary);
    font-size: 14px;
  }

  .foot__legal { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 32px); }
  .foot__legal a { color: inherit; text-decoration: none; }
  .foot__legal a:hover { color: var(--ink); }

  @media (max-width: 860px) { .foot__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  @media (max-width: 520px) {
    .foot__columns { grid-template-columns: 1fr; }
    .foot__bottom { flex-direction: column; align-items: flex-start; }
  }

  /* ловушка для ботов: человеку не видна, бот заполняет — заявка отбрасывается */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
