/* =========================================================================
   RankPurr — дизайн-система «Editorial Noir» (тёмный премиум, редизайн v13)
   Чистый статичный CSS, mobile-first. Глубокий тёмный холст, янтарь-неон,
   моно-лейблы, grain + gradient-mesh, живые анимации.
   Шрифты: Unbounded (дисплей) + Onest (текст) + JetBrains Mono (моно-лейблы).
   Светлая версия сохранена в git-ветке design-light-backup и _backup-light/.
   ========================================================================= */

/* ------------------------ 0. Шрифты (самохостинг) ------------------------ */
/* woff2 скачаны с Google Fonts (subsets cyrillic+latin), лежат в /assets/fonts/.
   Внешних запросов к fonts.googleapis.com больше нет — быстрее и надёжнее для РФ/РБ. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/JetBrainsMono-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/JetBrainsMono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Onest-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Onest-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/Onest-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/Onest-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Onest-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Onest-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Unbounded-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Unbounded-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/Unbounded-800-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/Unbounded-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Fallback с подгонкой метрик под Unbounded — гасит CLS при swap */
@font-face {
  font-family: 'Unbounded Fallback';
  src: local('Arial');
  size-adjust: 112%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* ----------------------------- 1. Токены -------------------------------- */
:root {
  /* Холст и поверхности */
  --bg:          #0c0d12;
  --bg-2:        #101220;   /* чередующиеся секции */
  --surface:     #15172150; /* стекло поверх mesh (с прозрачностью) */
  --surface-solid:#161824;
  --surface-2:   #1c1f2e;
  --line:        rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.17);

  /* Текст */
  --ink:        #f5f2ea;    /* заголовки — тёплый белый */
  --ink-body:   #c6c8d6;    /* основной текст */
  --ink-soft:   #989aab;
  --muted:      #8a8da3;

  /* Бренд / акценты */
  --brand:        #7c83ff;  /* холодный индиго-периванкл (вторичный акцент) */
  --brand-2:      #9aa0ff;
  --brand-deep:   #14162b;
  --brand-ink:    #e9eaff;
  --brand-ink-soft:#bcc0e6;
  --brand-muted:  #8a8fc4;

  --accent:       #ffb13d;  /* янтарь-неон — главный акцент */
  --accent-2:     #ffc870;
  --accent-press: #ff9d12;
  --accent-glow:  rgba(255,177,61,.55);

  --eyebrow-ink:  #ffbe57;  /* моно-рубрики на тёмном */

  --positive:     #46d98a;
  --positive-soft:#123524;

  --ring:         rgba(255,177,61,.55);

  /* Свечения mesh */
  --bloom-amber:  rgba(255,150,30,.20);
  --bloom-indigo: rgba(96,90,255,.18);

  --font-display: "Unbounded", "Unbounded Fallback", "Onest", system-ui, sans-serif;
  --font-sans:    "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-eyebrow: .8rem;
  --fs-small:   .9rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.1rem, .95rem + .5vw, 1.2rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + .6vw, 1.4rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  --fs-h1:      clamp(2.1rem, 1.4rem + 2.8vw, 3rem);
  --fs-display: clamp(2.4rem, 1.4rem + 3.5vw, 3.6rem);

  --lh-body: 1.62;
  --lh-lead: 1.55;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --container: 1180px;
  --container-narrow: 720px;
  --measure: 36rem;
  --measure-lead: 36rem;
  --card-pad: clamp(1.5rem, 1rem + 1.2vw, 2.1rem);
  --gap: clamp(1rem, .7rem + 1vw, 1.5rem);
  --gap-cards: clamp(1.25rem, .8rem + 1.5vw, 2rem);
  --section-y: clamp(3.5rem, 1.5rem + 5vw, 5.5rem); /* плотнее: было до 112px пустоты между секциями */

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.55), 0 8px 22px rgba(0,0,0,.4);
  --shadow-glow: 0 0 0 1px rgba(255,177,61,.35), 0 18px 50px rgba(255,140,20,.18);

  --t-fast: .15s ease;
  --t:      .3s cubic-bezier(.2,.7,.3,1);
}

/* --- Широкие экраны: ступени контейнера + масштаб --- */
@media (min-width: 1440px){
  :root { --container: 1320px; --container-narrow: 800px; } /* narrow чуть шире — без «тонкой кишки» на больших экранах */
}
@media (min-width: 1920px){
  :root {
    --container: 1400px;
    --section-y: clamp(4.5rem, 3rem + 2vw, 6rem);
    --gap-cards: 2.25rem;
  }
  html { font-size: 112.5%; } /* 18px: все rem-токены растут на 12.5% */
}

/* ----------------------------- 2. Сброс/база ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-body);
  background-color: var(--bg);
  /* Живой gradient-mesh: янтарный и индиго-блумы поверх тёмного холста */
  background-image:
    radial-gradient(60vw 60vw at 82% -8%, var(--bloom-amber), transparent 60%),
    radial-gradient(55vw 55vw at -10% 12%, var(--bloom-indigo), transparent 58%),
    radial-gradient(50vw 50vw at 50% 120%, rgba(124,131,255,.10), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grain — тонкая зернистость поверх всего (живая «плёнка») */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

img, svg, video { display: block; max-width: 100%; height: auto; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #1a1200; }

h1, h2, h3, h4 { font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -.015em; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
h4 { line-height: 1.25; }
p  { color: var(--ink-body); }
p, li { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
address { font-style: normal; }

.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-body); }
.nowrap { white-space: nowrap; }
.accent { color: var(--accent); }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
:target, a:focus, button:focus, input:focus, textarea:focus, summary:focus { scroll-margin-top: 90px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 1000;
  background: var(--accent); color: #1a1200; font-weight: 600;
  padding: var(--space-2) var(--space-4); border-radius: var(--r-sm); transition: top var(--t);
}
.skip-link:focus { top: 1rem; }

/* ----------------------------- 3. Раскладка ----------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, .3rem + 3vw, 2rem); }
.container--narrow { max-width: var(--container-narrow); }
.container--form { max-width: 1040px; }
@media (min-width: 1100px){
  .container--form .form-card {
    display: grid; grid-template-columns: .95fr 1.05fr;
    column-gap: clamp(2.5rem, 4vw, 4.5rem); align-items: center;
  }
  .container--form .form-card .section-head { margin-bottom: 0; }
}
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
/* Бренд-полоса — глубокий индиго-чёрный панель с янтарным свечением */
.section--brand {
  background:
    radial-gradient(60% 90% at 78% 0%, rgba(255,150,30,.14), transparent 60%),
    linear-gradient(180deg, #15172e, #0d0e1a);
  border-block: 1px solid var(--line-strong);
  color: var(--brand-ink);
}
.section--brand p { color: var(--brand-ink-soft); }
.section--brand :is(h1,h2,h3,h4) { color: #fff; }
.section--brand .section-head p, .section--brand > .container > .lead { color: var(--brand-ink-soft); }
.section--brand a:not(.btn) { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section--brand a:not(.btn):hover { color: #fff; }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 640px){ .grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 880px){
  .grid--3 { grid-template-columns: repeat(3,1fr); }
  .grid--4 { grid-template-columns: repeat(4,1fr); }
}
.grid--3, .grid--4 { gap: var(--gap-cards); }

/* Моно-рубрика — технический лейбл (SEO-данные вайб) */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--eyebrow-ink);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.eyebrow--on-brand { color: var(--accent-2); }

.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3rem); }
.section-head:not(:has(p)) { margin-bottom: var(--space-6); }
.section-head h2 { margin-top: var(--space-4); }
.section-head p  { margin-top: var(--space-5); max-width: var(--measure-lead); font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-body); }

.section-note { margin-top: var(--space-5); font-size: var(--fs-small); color: var(--ink-soft); }
/* Ссылки в лидах и вводных абзацах секций — видимые (глобальный a наследует цвет) */
.section-head p a:not(.btn), .lead a:not(.btn), p.lead a:not(.btn) { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section-head p a:not(.btn):hover, .lead a:not(.btn):hover, p.lead a:not(.btn):hover { color: #fff; }
.mt-6 { margin-top: var(--space-6); }

/* ----------------------------- 4. Кнопки -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 600; line-height: 1; text-align: center; cursor: pointer;
  padding: 1rem 1.5rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform var(--t-fast), background var(--t), box-shadow var(--t), border-color var(--t), color var(--t);
  white-space: normal; /* длинные CTA переносятся, не ломая мобильную вёрстку */
  max-width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #1a1200; box-shadow: 0 0 0 1px rgba(255,177,61,.5), 0 10px 30px rgba(255,140,20,.35); }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 0 0 1px rgba(255,200,112,.6), 0 14px 40px rgba(255,140,20,.5); transform: translateY(-2px); }
.btn--primary:active { background: var(--accent-press); transform: translateY(0); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--ink); border-color: var(--line-strong); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow); transform: translateY(-2px); }
.btn--lg { padding: 1.15rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ----------------------------- 5. Шапка --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 74px; }

.logo { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: #fff; }
.logo .accent { color: var(--accent); }
.logo svg { width: 32px; height: 32px; filter: drop-shadow(0 0 10px var(--accent-glow)); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.5rem); }
.nav__link { font-weight: 500; color: var(--ink-soft); padding: var(--space-2) .2rem; position: relative; transition: color var(--t-fast); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 8px var(--accent-glow); }
.header-cta { margin-left: var(--space-1); }

.burger {
  margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); cursor: pointer;
}
.burger span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform var(--t), opacity var(--t-fast); }
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 879px){
  .site-header__inner { gap: .5rem; }
  .site-header__inner > .header-cta { display: inline-flex; margin-left: auto; padding: .5rem .8rem; font-size: .82rem; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; margin: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform var(--t), opacity var(--t), visibility var(--t);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--space-5) var(--space-5); }
  .nav__link { padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__list .header-cta { margin: var(--space-4) 0 0; }
  .nav__list .header-cta .btn { width: 100%; }
}
@media (min-width: 880px){ .burger { display: none; } .nav__list .header-cta { display: none; } }

/* ----------------------------- 6. Хлебные крошки ------------------------ */
.breadcrumbs { padding-block: var(--space-4) var(--space-1); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--fs-small); color: var(--ink-soft); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li + li::before { content: "🐾" / ""; font-size: .7em; opacity: .5; }
.breadcrumbs a { padding-block: var(--space-1); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--muted); }

/* ----------------------------- 7. Hero ---------------------------------- */
.hero { position: relative; padding-block: clamp(2.5rem, 1rem + 7vw, 6rem) var(--space-8); overflow: hidden; }
/* Full-bleed фон героя: тех-сетка (blueprint) + блумы на всю ширину окна */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(46rem 32rem at 74% 30%, rgba(255,150,30,.10), transparent 65%),
    radial-gradient(34rem 30rem at 8% 85%, rgba(96,90,255,.08), transparent 65%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 20%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 60% 20%, #000 35%, transparent 80%);
}
.hero > .container { position: relative; }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 880px){ .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-top: var(--space-5); max-inline-size: 16ch; }
.hero h1 .accent { color: var(--accent); position: relative; white-space: nowrap; }
/* Янтарное «свечение-подчёркивание» под акцентным словом */
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em;
  background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px;
  box-shadow: 0 0 16px var(--accent-glow);
}
.hero__lead { margin-top: var(--space-5); font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-body); max-width: var(--measure-lead); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__trust { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); color: var(--muted); font-size: var(--fs-small); }
.hero__trust > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 .3em; } /* gap возвращает пробелы, которые flex съедает между <strong> и текстом */
.hero__trust > span + span::before { content: "·"; margin-right: var(--space-5); color: var(--line-strong); }
.hero__trust strong { color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
/* Мелкая строка под CTA героя */
.hero__note { margin-top: var(--space-3); font-size: .9rem; color: var(--ink-soft); }

/* Десктоп: H1 в 3 строки вместо башни из 5, hero заполняет первый экран */
@media (min-width: 1200px){
  .hero h1 { max-inline-size: 21ch; }
  .hero__grid { min-height: min(70svh, 700px); align-content: center; }
}

/* ----------------------- 7b. Hero-арт «RankLab» ------------------------- */
.ranklab { position: relative; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.ranklab__panel {
  position: relative; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(28,31,46,.95), rgba(16,18,28,.95));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-lg);
  padding: clamp(1rem, .6rem + 1.5vw, 1.4rem);
  overflow: hidden;
}
.ranklab__panel::before { /* янтарный блик внутри панели */
  content: ""; position: absolute; inset: -40% 40% 60% -10%;
  background: radial-gradient(circle at 30% 30%, rgba(255,150,30,.22), transparent 60%); pointer-events: none;
}
.ranklab__bar-row { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); }
.ranklab__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ranklab__dot--amber { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.ranklab__url { margin-left: auto; padding: .25rem .6rem; border-radius: var(--r-pill); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.ranklab__chart { width: 100%; height: auto; display: block; }

/* Анимация роста столбиков */
.rl-bar { transform-box: fill-box; transform-origin: bottom; animation: rl-grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.rl-bar.d1 { animation-delay: .15s; } .rl-bar.d2 { animation-delay: .3s; }
.rl-bar.d3 { animation-delay: .45s; } .rl-bar.d4 { animation-delay: .6s; } .rl-bar.d5 { animation-delay: .75s; }
@keyframes rl-grow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
/* Рисование линии тренда */
.rl-trend { stroke-dasharray: 480; stroke-dashoffset: 480; animation: rl-draw 1.6s ease .6s forwards; filter: drop-shadow(0 0 6px var(--accent-glow)); }
@keyframes rl-draw { to { stroke-dashoffset: 0; } }
.rl-arrow { opacity: 0; animation: rl-fade .4s ease 2s forwards; }
@keyframes rl-fade { to { opacity: 1; } }

/* Плавающие чипы позиций */
.rank-chip {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--ink);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: .5rem .8rem; box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
.rank-chip b { color: var(--accent); }
.rank-chip--1 { top: 6%; left: -6%; }
.rank-chip--2 { bottom: 12%; right: -5%; animation-delay: -2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Кото-маскот + «мурлык»-волна */
.purr-wave { position: absolute; top: -3%; right: 6%; display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.purr-wave span { width: 4px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 8px var(--accent-glow); animation: purr 1s ease-in-out infinite; }
.purr-wave span:nth-child(1){ height: 40%; animation-delay: -.0s; }
.purr-wave span:nth-child(2){ height: 90%; animation-delay: -.2s; }
.purr-wave span:nth-child(3){ height: 60%; animation-delay: -.4s; }
.purr-wave span:nth-child(4){ height: 100%; animation-delay: -.1s; }
.purr-wave span:nth-child(5){ height: 50%; animation-delay: -.3s; }
@keyframes purr { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

/* Инлайн-«мурлык» в заголовке (spasibo и т.п.) */
.purr-inline { display: inline-flex; align-items: flex-end; gap: 3px; height: .55em; margin-left: .25em; }
.purr-inline span { width: .07em; min-width: 3px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 8px var(--accent-glow); animation: purr 1s ease-in-out infinite; }
.purr-inline span:nth-child(2){ animation-delay: -.2s; } .purr-inline span:nth-child(3){ animation-delay: -.4s; }
.purr-inline span:nth-child(4){ animation-delay: -.1s; } .purr-inline span:nth-child(5){ animation-delay: -.3s; }

/* Первый экран должен влезать в типовые десктопы (1080/864/768 по высоте):
   на невысоких окнах ужимаем вертикаль героя, чтобы CTA (и по возможности
   строка фактов) были видны без прокрутки. Блок стоит ПОСЛЕ базовых правил
   героя — иначе их одинаковая специфичность перебивает эти отступы. */
@media (min-width: 880px) and (max-height: 1160px){
  .hero { padding-block: clamp(1.25rem, 3vh, 2.5rem) var(--space-6); }
  .hero h1 { font-size: clamp(2.1rem, 1rem + 3.3vw, 3.4rem); margin-top: var(--space-3); }
  .hero__lead { margin-top: var(--space-3); }
  .hero__cta { margin-top: var(--space-4); }
  .hero__trust { margin-top: var(--space-3); }
}
@media (min-width: 880px) and (max-height: 830px){
  .hero { padding-block: var(--space-3) var(--space-5); }
  .hero h1 { font-size: clamp(2rem, 1rem + 2.9vw, 3rem); margin-top: var(--space-3); }
  .hero__lead { font-size: 1.1rem; margin-top: var(--space-3); }
  .hero__cta { margin-top: var(--space-4); }
  .hero__trust { margin-top: var(--space-2); }
  .ranklab { max-width: 480px; margin-inline: auto; }
}

/* ----------------------------- 8. Marquee доверия ----------------------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-5); font-family: var(--font-mono); font-size: .92rem; color: var(--ink-soft); white-space: nowrap; }
.marquee__item::after { content: "🐾" / ""; opacity: .45; }
.marquee__item b { color: var(--accent); font-weight: 500; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Старая полоса доверия (внутренние страницы) — тёмная версия */
.trust-strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-strip__row { display: flex; flex-wrap: wrap; gap: var(--space-4) clamp(1.5rem, 3vw, 3rem); align-items: center; justify-content: center; padding-block: var(--space-5); }
.trust-strip__item { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.trust-strip__item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ----------------------------- 9. Карточки ------------------------------ */
.card {
  position: relative; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--card-pad);
  box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); height: 100%;
  overflow: hidden;
}
/* Тонкий верхний блик у карточки */
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
/* Янтарная светящаяся кромка при ховере */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(155deg, rgba(255,177,61,.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t); pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card--featured { border-color: var(--accent); box-shadow: var(--shadow-glow); }
@media (min-width: 880px){ .card--featured { transform: translateY(-10px); } .card--featured:hover { transform: translateY(-16px); } }

/* Карточка-ссылка: <article class="card"> с <h3><a class="card-link"> —
   заголовок-ссылка растягивается на всю карточку (вместо фраз «Подробнее →»).
   Ссылка растягивается на всю карточку, разметка остаётся семантичной. */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card:has(.card-link:hover) h3, .card:has(.card-link:focus-visible) h3 { color: var(--accent); }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Прочие ссылки внутри карточки остаются кликабельными поверх растянутого card-link */
.card a:not(.card-link) { position: relative; z-index: 2; }

/* Услуга */
.service-card { display: flex; flex-direction: column; }
.service-card h3 { margin-top: var(--space-4); }
.service-card p { margin-top: var(--space-3); font-size: var(--fs-body); color: var(--ink-body); }
.service-card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,177,61,.22), rgba(255,140,20,.08));
  color: var(--accent); border: 1px solid rgba(255,177,61,.3);
  box-shadow: inset 0 0 16px rgba(255,150,30,.12);
}
.service-card__icon svg { width: 26px; height: 26px; }
.card:hover .service-card__icon { box-shadow: inset 0 0 20px rgba(255,150,30,.22), 0 0 18px rgba(255,150,30,.18); }
.service-card__more { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); font-weight: 600; color: var(--accent); font-size: var(--fs-small); }
.card:hover .service-card__more { gap: var(--space-3); }
/* Строка цены в карточке услуги */
.service-card__price { font-family: var(--font-mono); color: var(--accent-2); font-size: .95rem; margin-top: var(--space-3); }

/* Кейс */
.case-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.case-card__media { aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1d3a, #0e1020); position: relative; color: var(--brand-ink); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.case-card__media svg { width: 72%; max-width: 230px; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.card:hover .case-card__media img { transform: scale(1.04); }
.case-card__tag { position: absolute; top: var(--space-3); left: var(--space-3); background: color-mix(in srgb, var(--surface-2) 86%, transparent); backdrop-filter: blur(6px); color: var(--accent); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; padding: .3rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); }
.case-card__body { padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.case-card__metric { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--accent); letter-spacing: -.02em; }
.case-card__metric::before { content: "↑ "; color: var(--positive); }
.case-card h3 { font-size: 1.15rem; }
.case-card__more { margin-top: auto; padding-top: var(--space-2); font-weight: 600; color: var(--accent); font-size: var(--fs-small); }

/* Отзыв */
.review-card { display: flex; flex-direction: column; gap: var(--space-3); }
.review-card__stars { color: var(--accent); letter-spacing: 2px; font-size: .95rem; text-shadow: 0 0 10px var(--accent-glow); }
.review-card__quote { font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
.review-card__quote::before { content: "\201C"; font-family: var(--font-display); color: var(--accent); font-size: 2.4rem; line-height: 0; vertical-align: -.4em; margin-right: .15rem; }
.review-card__author { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,177,61,.35), rgba(255,140,20,.12)); display: grid; place-items: center; font-weight: 700; color: var(--accent); flex: none; border: 1px solid rgba(255,177,61,.3); }
.review-card__name { font-weight: 600; color: var(--ink); font-size: var(--fs-small); }
.review-card__role { color: var(--ink-soft); font-size: var(--fs-small); }

/* ----------------------------- 10. Полоса метрик ------------------------ */
.metrics { display: grid; gap: var(--space-6) var(--gap); grid-template-columns: repeat(2,1fr); }
@media (min-width: 880px){ .metrics { grid-template-columns: repeat(4,1fr); gap: var(--gap); } }
.metric { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6) var(--space-4); text-align: center; min-height: 8rem; }
@media (min-width: 880px){ .metric + .metric { border-left: 1px solid var(--line); } }
.metric__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem); color: var(--accent); letter-spacing: -.02em; line-height: 1.05; text-shadow: 0 0 30px rgba(255,150,30,.3); font-variant-numeric: tabular-nums; }
@media (min-width: 1440px){
  .metric__num { font-size: 3rem; }
}
.metric__label { color: var(--brand-ink-soft); font-size: 1rem; line-height: 1.5; max-width: 15rem; margin-inline: auto; }
/* Метрики как <dl>: dt = подпись, dd = число (визуально число сверху) */
dl.metrics .metric { flex-direction: column-reverse; justify-content: center; }
.metric dd { margin: 0; }

/* ----------------------------- 11. FAQ (details) ------------------------ */
.faq { max-width: 46rem; }
/* Раскладка FAQ + боковая карточка «Не нашли ответ?» — закрывает пустую правую колонну на широких экранах */
.faq-wrap { display: grid; gap: var(--gap-cards); align-items: start; }
@media (min-width: 1100px){
  .faq-wrap { grid-template-columns: minmax(0, 46rem) 1fr; }
  .faq-wrap .faq-aside { position: sticky; top: 100px; }
}
.faq__item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-solid); margin-top: var(--space-4); overflow: hidden; transition: border-color var(--t); }
.faq__item:first-child { margin-top: 0; }
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq__item:hover { border-color: var(--line-strong); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 600; color: var(--ink); list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+" / ""; font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); transition: transform var(--t); flex: none; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: var(--space-4) var(--space-5) var(--space-5); max-width: var(--measure); color: var(--ink-body); font-size: var(--fs-body); line-height: var(--lh-body); }

/* ----------------------------- 12. Формы -------------------------------- */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 1rem; background: rgba(255,255,255,.03); color: var(--ink); border: 1.5px solid rgba(255,255,255,.30); /* ≥3:1 контраст границ (WCAG 1.4.11) */
  border-radius: var(--r-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.05); box-shadow: 0 0 0 3px var(--ring); }
.field textarea { min-height: 120px; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--ink-soft); }
/* Сообщение об ошибке отправки формы (?form=error, вставляется JS) */
.form-error { color: #ff9d9d; background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.35); border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; }

.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
/* Кастомный чекбокс: нативный на тёмной теме выглядел глухим белым квадратом */
.consent input {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; margin-top: 0; flex: none; cursor: pointer;
  background: rgba(255,255,255,.05);
  border: 1.5px solid var(--line-strong); border-radius: 5px;
  display: inline-grid; place-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.consent input::before {
  content: ""; width: 13px; height: 13px; transform: scale(0); transition: transform var(--t-fast);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background: #1a1200;
}
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::before { transform: scale(1); }
.consent input:hover { border-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form-card {
  position: relative; background: linear-gradient(165deg, rgba(28,31,46,.9), rgba(16,18,28,.95));
  border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.form-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255,177,61,.4), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ----------------------------- 13. Футер -------------------------------- */
.site-footer { background: #090a0f; border-top: 1px solid var(--line); color: var(--ink-body); padding-block: var(--space-8) var(--space-7); }
.site-footer a { color: var(--ink-soft); transition: color var(--t-fast); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 560px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px){ .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-col h4, .footer-col__title { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-4); font-weight: 500; }
.footer-col ul { display: grid; gap: var(--space-3); font-size: var(--fs-small); }
.footer-brand .logo { color: #fff; }
.footer-brand .logo .accent { color: var(--accent); }
.footer-brand p { color: var(--ink-soft); font-size: var(--fs-small); margin-top: var(--space-4); max-width: 26rem; }
.footer-contacts { display: grid; gap: var(--space-2); margin-top: var(--space-4); font-size: var(--fs-small); }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; font-size: .82rem; color: var(--muted); }
.footer-bottom .disclaimer { max-width: 44rem; }

/* ----------------------------- 14. Декор -------------------------------- */
.paw-divider { display: flex; align-items: center; justify-content: center; gap: var(--space-3); color: var(--accent); opacity: .6; margin-block: clamp(1rem,3vw,2rem); }
.paw-divider::before, .paw-divider::after { content: ""; height: 1px; flex: 1; max-width: 120px; background: var(--line-strong); }

/* ----------------------------- 15. Анимации ----------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .8s cubic-bezier(.2,.7,.3,1) both; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .15s; }
.reveal-3 { animation-delay: .28s; }
.reveal-4 { animation-delay: .4s; }

/* Scroll-reveal (через JS добавляется .in). Прячем ТОЛЬКО при активном JS
   (класс .js на <html>) — без JS контент виден сразу (прогрессивное улучшение). */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }

/* ----------------------------- 16. Мобайл-доводка ----------------------- */
@media (max-width: 879px){
  /* На мобильных прячем тяжёлый декор: hero-иллюстрацию и помеченные .hide-mobile медиа */
  .hide-mobile { display: none !important; }
  .hero__art { display: none; }
  .hero { padding-block: clamp(2.25rem, 1.5rem + 4vw, 3.5rem) var(--space-7); }
  .hero h1 { line-height: 1.06; max-inline-size: none; margin-top: var(--space-4); }
  .hero__lead { line-height: 1.55; margin-top: var(--space-4); }
  .hero__cta { margin-top: var(--space-5); }
  .hero__trust { margin-top: var(--space-5); }
  .hero__grid { gap: var(--space-6); }
  .ranklab { max-width: 460px; margin-inline: auto; }
  .metric { min-height: auto; padding: var(--space-5) var(--space-2); }
  .metrics { gap: var(--space-5) var(--gap); }
  .service-card__more, .case-card__more { padding-block: var(--space-2); }
}
@media (max-width: 639px){
  .trust-strip__row { flex-direction: column; align-items: flex-start; gap: var(--space-4); padding-block: var(--space-5); }
  .rank-chip--1 { left: 0; } .rank-chip--2 { right: 0; }
}
@media (max-width: 600px){
  .section { padding-block: var(--space-7); }
}
@media (max-width: 560px){
  .hero__cta { flex-direction: column; gap: var(--space-4); }
  .hero__cta .btn { width: 100%; }
}

/* Путеводитель по кластеру разборов (плотная перелинковка силоса) */
.guide-nav { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--space-5); background: rgba(255,255,255,.02); }
.guide-nav > p:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: var(--space-4); }
.guide-nav__cols { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 720px)  { .guide-nav__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .guide-nav__cols { grid-template-columns: repeat(4, 1fr); } }
.guide-nav__group > p { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .5rem; }
.guide-nav__group ul { display: grid; gap: .4rem; }
.guide-nav__group a { color: var(--ink-soft); font-size: .92rem; transition: color var(--t-fast); }
.guide-nav__group a:hover { color: var(--accent); }
.guide-nav__group a[aria-current="page"] { color: var(--accent); font-weight: 600; pointer-events: none; }

/* Мобильный рендер-бюджет: fixed-фон и тяжёлый blur дороги на телефонах (INP/скролл) */
@media (max-width: 879px){
  body { background-attachment: scroll; }
  body::before { position: absolute; }
  .site-header { backdrop-filter: saturate(1.2) blur(8px); }
  .btn--ghost, .case-card__tag { backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .rl-bar, .rl-trend { stroke-dashoffset: 0; transform: none; opacity: 1; }
}

/* ----------------------------- 17. Контент-утилиты ---------------------- */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose :is(h2,h3) + p { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: var(--space-2); }
.prose :is(ul,ol) li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose .card { margin-top: var(--space-5); max-width: none; }

.card h3 + p { margin-top: var(--space-3); }
.card p + p { margin-top: var(--space-2); }
.card ul:not([class]) { list-style: disc; padding-left: 1.2em; margin-top: var(--space-3); }
.card ul:not([class]) li { line-height: var(--lh-body); }
.card ul:not([class]) li + li { margin-top: var(--space-2); }
.card ul:not([class]) li::marker { color: var(--accent); }
.card__stat + h3, .card__stat + p { margin-top: var(--space-3); }

.card__stat { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2vw, 2.6rem); line-height: 1; letter-spacing: -.02em; color: var(--accent); }
.card__stat .up { color: var(--positive); }

.badge-soon { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--eyebrow-ink); background: rgba(255,177,61,.1); border: 1px solid rgba(255,177,61,.3); padding: .15rem .55rem; border-radius: var(--r-pill); }
.service-card--soon .service-card__more { color: var(--muted); pointer-events: none; }
.service-card .badge-soon { margin-top: auto; align-self: flex-start; }
.service-card--soon p { padding-bottom: var(--space-4); }

ul.prose-list, ol.prose-list { list-style: disc; padding-left: 1.4em; margin-top: var(--space-4); }
ul.prose-list li + li, ol.prose-list li + li { margin-top: var(--space-2); }
ul.prose-list li::marker, ol.prose-list li::marker { color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 560px){ .btn-row .btn { width: 100%; } }

/* Маркер незаполненных данных (черновик) */
.todo { background: rgba(255,177,61,.16); color: var(--accent-2); padding: 0 .3em; border-radius: 4px; font-style: normal; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,177,61,.3); }

/* ----------------------------- 18. Скриншоты кейсов --------------------- */
/* Рамка под реальный скриншот метрики (светлый кадр на тёмной теме) + подпись */
.shot { margin: 0; background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.shot img { width: 100%; height: auto; display: block; background: #fff; }
.shot figcaption { padding: var(--space-3) var(--space-4); font-size: var(--fs-small); color: var(--ink-soft); border-top: 1px solid var(--line); line-height: 1.5; }
.shot figcaption b { color: var(--accent); font-weight: 600; }

/* ----------------------------- 19. Таблица цен / факты / время --------- */
/* Сравнительная таблица тарифов (semantic <table>) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: var(--space-5); background: var(--surface-solid); max-width: 62rem; margin-inline: auto; }
/* 62rem: таблица на всю ширину 1240px нечитаема — строки слишком длинные для сканирования */
.ptable { width: 100%; border-collapse: collapse; min-width: 660px; font-size: var(--fs-small); }
.ptable caption { caption-side: top; text-align: left; padding: var(--space-4) var(--space-5) var(--space-2); color: var(--ink-soft); font-size: var(--fs-small); }
.ptable th, .ptable td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable thead th { color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: .85rem; letter-spacing: .02em; border-bottom-color: var(--line-strong); }
.ptable tbody th[scope="row"] { color: var(--ink-body); font-weight: 600; }
.ptable td { color: var(--ink-body); }
.ptable .price-row th, .ptable .price-row td { color: var(--ink); font-weight: 700; font-size: 1rem; }
.ptable .is-featured { background: rgba(255,177,61,.07); }
.ptable thead .is-featured { color: var(--accent); }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable td .yes { color: var(--positive); font-weight: 700; }
.ptable td .no { color: var(--muted); }

/* Быстрые факты (dl): ниша/регион/срок/результат */
.facts { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: var(--space-5) 0 0; }
.facts dt { color: var(--ink-soft); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; padding-top: .1rem; }
.facts dd { color: var(--ink); margin: 0; font-weight: 500; }
@media (max-width: 560px){ .facts { grid-template-columns: 1fr; gap: var(--space-1) var(--space-4); } .facts dd { margin-bottom: var(--space-3); } }

/* Видимая дата/период */
.meta-time { display: block; color: var(--ink-soft); font-size: var(--fs-small); font-family: var(--font-mono); line-height: 1.8; }
/* было inline-flex: на длинной строке «Автор · Обновлено» флекс рвал текст на кривые колонки */
