/* =========================================================
   Inter (variable, 400–900) локально.

   Раньше шрифт был прописан в font-family, но нигде не подключён —
   у посетителей рендерился системный Segoe UI или Arial, и заголовки
   с весом 900+ выглядели совсем не так, как задумано. Держим файлы у
   себя, а не на fonts.gstatic.com: минус внешний домен на критическом
   пути и независимость от блокировок. Два подмножества вместо одного
   файла — браузер по unicode-range скачает кириллицу (18 КБ) и возьмёт
   латиницу только когда она реально встретится.
   ========================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/fonts/inter-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;
}

/* Стили публичной части сайта: главная (index.html) и контентные страницы,
   собранные на _public_base.html. Жили инлайном в index.html — вынесены сюда,
   чтобы дополнительные страницы были той же темы, а не копией на глазок.
   Палитра трёх тем задаётся здесь же переменными --public-*. */

    html[data-theme] {
      --public-ease: cubic-bezier(0.22, 1, 0.36, 1);
      --public-shadow-soft: var(--public-shadow);
    }

    html[data-theme="light"] {
      --public-bg: #f3eee5;
      --public-sidebar: #fffaf3;
      --public-panel: #fff9ed;
      --public-panel-2: #f4eadc;
      --public-panel-3: #eadccc;
      --public-text: #211915;
      --public-muted: #625245;
      --public-soft: #8b7a69;
      --public-border: #c9b8a5;
      --public-accent: #681827;
      --public-accent-2: #8b6a36;
      --public-good: #2f8f57;
      --public-warn: #b38923;
      --public-inverse: #ffffff;
      --public-shadow: 0 24px 80px rgba(57, 45, 34, 0.16);
    }

    html[data-theme="dark"] {
      --public-bg: #050916;
      --public-sidebar: #0b1220;
      --public-panel: #111a2a;
      --public-panel-2: #182235;
      --public-panel-3: #243149;
      --public-text: #f4f6fb;
      --public-muted: #c0c8d7;
      --public-soft: #8d98aa;
      --public-border: #37445c;
      --public-accent: #705cff;
      --public-accent-2: #ff4d4d;
      --public-good: #5dd39e;
      --public-warn: #e0b85f;
      --public-inverse: #ffffff;
      --public-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
      --public-shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.34);
    }

    html[data-theme="retro"] {
      --public-bg: #101c0d;
      --public-sidebar: #182711;
      --public-panel: #213418;
      --public-panel-2: #2b4021;
      --public-panel-3: #fff6d1;
      --public-text: #f1efc6;
      --public-muted: #d7d39a;
      --public-soft: #adab70;
      --public-border: #61713c;
      --public-accent: #989a43;
      --public-accent-2: #c6c36c;
      --public-good: #a8c66c;
      --public-warn: #d4c96a;
      --public-inverse: #13170b;
      --public-shadow: 0 24px 80px rgba(5, 10, 4, 0.36);
      --public-shadow-soft: 0 18px 54px rgba(5, 10, 4, 0.30);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body.public-page {
      min-height: 100vh;
      margin: 0;
      padding: 18px 22px 28px 202px;
      background: var(--public-bg);
      color: var(--public-text);
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      line-height: 1.5;
      overflow-x: clip;
    }

    a { color: inherit; text-decoration: none; }
    button, input, textarea { font: inherit; }

    .public-sidebar {
      position: fixed;
      inset: 18px auto 18px 22px;
      z-index: 20;
      display: flex;
      width: 160px;
      flex-direction: column;
      padding: 14px 12px;
      border: 1px solid var(--public-border);
      border-radius: 22px;
      /* Фон непрозрачный намеренно. Раньше здесь были полупрозрачность и
         backdrop-filter: blur(10px) — на фиксированном элементе браузер
         пересчитывает такое размытие каждый кадр прокрутки, и страница
         заметно теряет плавность. За панелью всё равно только фон страницы,
         так что визуально разницы почти нет, а прокрутка становится ровной. */
      background: var(--public-sidebar);
      box-shadow: var(--public-shadow);
      /* Своя композиционная плоскость: перерисовка панели не тянет за собой
         остальную страницу. */
      contain: layout paint;
    }

    .public-brand {
      display: flex;
      min-height: 40px;
      align-items: center;
      gap: 8px;
      padding: 0 8px;
      font-size: 18px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .public-brand i { color: var(--public-accent); }

    .public-nav {
      display: grid;
      gap: 4px;
      margin-top: 28px;
    }

    .public-nav a,
    .public-sidebar-action,
    .public-theme-button {
      display: flex;
      min-height: 36px;
      align-items: center;
      gap: 9px;
      padding: 0 10px;
      border: 1px solid transparent;
      border-radius: 11px;
      background: transparent;
      color: var(--public-muted);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .public-nav a:hover,
    .public-sidebar-action:hover,
    .public-theme-button:hover {
      border-color: var(--public-accent);
      background: var(--public-accent);
      color: var(--public-inverse);
    }

    .public-sidebar-bottom {
      display: grid;
      gap: 5px;
      margin-top: auto;
    }

    .public-theme-button { position: relative; width: 100%; }
    .public-theme-dots {
      display: none;
      align-items: center;
      gap: 6px;
    }

    .public-theme-button:hover .public-theme-label { display: none; }
    .public-theme-button:hover .public-theme-dots { display: inline-flex; }
    .public-theme-dot {
      width: 14px;
      height: 14px;
      border: 1px solid var(--public-border);
      border-radius: 50%;
      cursor: pointer;
    }
    .public-theme-dot[data-theme-value="light"] { background: #fffaf0; }
    .public-theme-dot[data-theme-value="dark"] { background: #101827; }
    .public-theme-dot[data-theme-value="retro"] { background: #273a1f; }

    .public-shell {
      width: min(1440px, 100%);
      margin: 0 auto;
    }

    .public-hero {
      position: relative;
      display: grid;
      min-height: min(620px, calc(100vh - 46px));
      align-items: center;
      padding: 34px 0 38px;
      overflow: hidden;
    }

    .public-hero-bg {
      position: absolute;
      inset: 0;
      opacity: 0.18;
      pointer-events: none;
      background-image:
        linear-gradient(var(--public-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--public-border) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: linear-gradient(90deg, transparent, #000 16%, #000 82%, transparent);
    }

    .public-hero-content {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 24px;
    }

    .public-kicker {
      display: inline-flex;
      width: fit-content;
      min-height: 32px;
      align-items: center;
      gap: 8px;
      padding: 0 12px;
      border: 1px solid color-mix(in srgb, var(--public-accent) 34%, var(--public-border));
      border-radius: 999px;
      background: color-mix(in srgb, var(--public-accent) 10%, var(--public-panel));
      color: var(--public-accent);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .public-hero h1 {
      max-width: 820px;
      margin: 0;
      color: var(--public-text);
      font-size: clamp(38px, 5vw, 76px);
      font-weight: 950;
      letter-spacing: 0;
      line-height: 0.98;
    }

    .public-lead {
      max-width: 760px;
      margin: 0;
      color: var(--public-muted);
      font-size: clamp(17px, 2vw, 22px);
    }

    .public-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .public-btn {
      display: inline-flex;
      min-height: 46px;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 16px;
      border: 1px solid var(--public-border);
      border-radius: 10px;
      background: var(--public-panel);
      color: var(--public-text);
      font-weight: 900;
    }

    .public-btn-primary {
      border-color: var(--public-accent);
      background: var(--public-accent);
      color: var(--public-inverse);
    }

    .public-card,
    .public-section,
    .price-card,
    .workflow-card {
      border: 1.5px solid var(--public-border);
      border-radius: 8px;
      background: color-mix(in srgb, var(--public-panel) 96%, transparent);
      box-shadow: 0 10px 28px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.16);
    }

    .rank-pill {
      display: inline-flex;
      min-width: 34px;
      min-height: 26px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: color-mix(in srgb, var(--public-good) 28%, var(--public-panel));
      color: var(--public-text);
      font-weight: 950;
    }

    .public-section {
      margin-top: 18px;
      padding: 26px;
      background: color-mix(in srgb, var(--public-panel) 92%, var(--public-bg));
    }

    .workflow-section {
      padding: clamp(26px, 4vw, 42px);
      background: color-mix(in srgb, var(--public-panel-2) 72%, var(--public-panel));
    }

    .analyzer-section {
      background: color-mix(in srgb, var(--public-panel) 82%, var(--public-panel-2));
    }

    .public-section-head {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      align-items: end;
      margin-bottom: 18px;
    }
    .public-section-head h2 {
      max-width: 760px;
      margin: 0;
      color: var(--public-text);
      font-size: clamp(28px, 4vw, 48px);
      font-weight: 950;
      line-height: 1.04;
    }
    .public-section-head p {
      max-width: 520px;
      margin: 0;
      color: var(--public-muted);
    }

    .feature-grid,
    .workflow-grid,
    .price-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .public-card,
    .workflow-card,
    .price-card {
      min-height: 220px;
      padding: 20px;
      background: var(--public-panel);
    }
    .public-card i,
    .workflow-card i {
      display: inline-grid;
      width: 38px;
      height: 38px;
      place-items: center;
      border-radius: 8px;
      background: color-mix(in srgb, var(--public-accent) 16%, var(--public-panel-2));
      color: var(--public-accent);
    }
    .public-card h3,
    .workflow-card h3,
    .price-card h3 {
      margin: 16px 0 8px;
      font-size: 20px;
      line-height: 1.15;
    }
    .public-card p,
    .workflow-card p,
    .price-card p,
    .price-card li {
      color: var(--public-muted);
    }
    .public-card p,
    .workflow-card p { margin: 0; }

    .workflow-card {
      position: relative;
      min-height: 240px;
      background: color-mix(in srgb, var(--public-panel) 72%, var(--public-panel-2));
    }
    .workflow-card em {
      position: absolute;
      top: 16px;
      right: 16px;
      color: color-mix(in srgb, var(--public-soft) 58%, transparent);
      font-style: normal;
      font-weight: 950;
      font-size: 24px;
    }
    .workflow-card h3 {
      font-size: 24px;
    }
    .workflow-card p {
      font-size: 14px;
    }

    .price-card {
      display: flex;
      min-height: 430px;
      flex-direction: column;
    }
    .price-card strong {
      display: block;
      margin: 14px 0 4px;
      font-size: 34px;
      font-weight: 950;
    }
    .price-card ul {
      display: grid;
      gap: 10px;
      margin: 18px 0 24px;
      padding: 0;
      list-style: none;
    }
    .price-card li {
      display: grid;
      grid-template-columns: 20px 1fr;
      gap: 8px;
      align-items: start;
    }
    .price-card li::before {
      content: "+";
      color: var(--public-accent);
      font-weight: 950;
    }
    .price-card .public-btn { margin-top: auto; }
    .price-card.is-featured {
      border-color: var(--public-accent);
      background: color-mix(in srgb, var(--public-accent) 10%, var(--public-panel));
      box-shadow: 0 18px 44px rgba(0,0,0,0.12);
    }

    .section-link {
      margin: -4px 0 20px;
      color: var(--public-muted);
      font-size: 16px;
      font-weight: 700;
    }

    .results-card {
      margin-bottom: 18px;
      padding: 18px;
      border: 1.5px solid var(--public-border);
      border-radius: 8px;
      background: var(--public-panel);
      box-shadow: 0 10px 28px rgba(0,0,0,0.08);
      overflow: hidden;
    }
    .results-card h3 {
      margin: 0 0 8px;
      font-size: 24px;
    }
    .results-card p {
      margin: 0 0 14px;
      color: var(--public-muted);
    }
    .results-table-wrap {
      overflow-x: auto;
    }
    .results-table {
      width: 100%;
      min-width: 920px;
      border-collapse: collapse;
      font-size: 14px;
    }
    .results-table th,
    .results-table td {
      padding: 11px 12px;
      border-bottom: 1px solid var(--public-border);
      text-align: left;
      vertical-align: top;
    }
    .results-table th {
      background: var(--public-panel-2);
      color: var(--public-muted);
      font-size: 11px;
      text-transform: uppercase;
    }
    .result-query {
      min-width: 260px;
      color: var(--public-text);
      font-weight: 900;
    }
    .results-table tbody tr {
      animation: resultRowIn .34s ease both;
      transition: background .16s ease;
    }
    .results-table tbody tr:nth-child(2) { animation-delay: .04s; }
    .results-table tbody tr:nth-child(3) { animation-delay: .08s; }
    .results-table tbody tr:nth-child(4) { animation-delay: .12s; }
    .results-table tbody tr:nth-child(5) { animation-delay: .16s; }
    .results-table tbody tr:nth-child(6) { animation-delay: .2s; }
    .results-table tbody tr:hover {
      background: color-mix(in srgb, var(--public-accent) 8%, transparent);
    }
    .results-table .rank-pill {
      cursor: help;
      animation: resultBadgeIn .28s ease both;
    }
    .result-progress {
      color: var(--public-good);
      font-weight: 950;
      cursor: help;
    }
    .results-note {
      display: block;
      margin-top: 12px;
      color: var(--public-soft);
      font-size: 12px;
      font-weight: 700;
    }

    .cta-strip {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: center;
      margin-top: 18px;
      padding: 24px 26px;
      border: 1px solid var(--public-border);
      border-radius: 8px;
      background: color-mix(in srgb, var(--public-accent) 8%, var(--public-panel));
      box-shadow: var(--public-shadow);
    }
    .cta-strip h2 {
      margin: 0;
      font-size: clamp(24px, 4vw, 42px);
      line-height: 1.06;
    }
    .cta-strip p { margin: 8px 0 0; color: var(--public-muted); }

    .public-footer {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: 18px;
      padding: 18px 4px 0;
      color: var(--public-muted);
      font-size: 13px;
    }

    .theme-hint {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 40;
      display: none;
      width: min(360px, calc(100vw - 32px));
      padding: 14px;
      border: 1.5px solid var(--public-border);
      border-radius: 8px;
      background: var(--public-panel);
      box-shadow: var(--public-shadow);
      color: var(--public-text);
    }
    .theme-hint.is-visible {
      display: block;
      animation: hintIn .18s ease both;
    }
    .theme-hint strong { display: block; margin-bottom: 4px; }
    .theme-hint p { margin: 0; color: var(--public-muted); font-size: 13px; }
    .theme-hint button {
      margin-top: 10px;
      border: 1px solid var(--public-border);
      border-radius: 8px;
      background: var(--public-panel-2);
      color: var(--public-text);
      font-weight: 900;
      cursor: pointer;
      padding: 7px 10px;
    }
    @keyframes hintIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes resultRowIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes resultBadgeIn {
      from { opacity: 0; transform: scale(.9); }
      to { opacity: 1; transform: scale(1); }
    }

    /* Premium V2 landing layer */
    html[data-theme="light"] {
      --public-bg: #f7f2e9;
      --public-sidebar: #fffdf8;
      --public-panel: #fffaf1;
      --public-panel-2: #f3eadd;
      --public-panel-3: #eadccc;
      --public-text: #161312;
      --public-muted: #5f5146;
      --public-soft: #928270;
      --public-border: #decebb;
      --public-accent: #7b1026;
      --public-accent-2: #9a6f3b;
      --public-good: #23875a;
      --public-shadow: 0 26px 80px rgba(72, 52, 32, 0.10);
      --public-shadow-soft: 0 14px 42px rgba(72, 52, 32, 0.08);
      --public-ease: cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.public-page {
      position: relative;
      padding-left: 218px;
      background:
        radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--public-accent) 8%, transparent), transparent 34%),
        radial-gradient(circle at 15% 92%, rgba(255, 255, 255, 0.88), transparent 30%),
        var(--public-bg);
    }

    body.public-page::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      opacity: .42;
      background-image:
        linear-gradient(color-mix(in srgb, var(--public-border) 48%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--public-border) 42%, transparent) 1px, transparent 1px);
      background-size: 54px 54px;
      mask-image: linear-gradient(90deg, transparent, #000 12%, #000 92%, transparent);
    }

    .public-sidebar {
      border-color: color-mix(in srgb, var(--public-border) 76%, transparent);
      box-shadow: 0 20px 70px rgba(58, 43, 31, .10);
      animation: sidebarIn .7s var(--public-ease) .05s both;
    }

    .public-nav a,
    .public-sidebar-action,
    .public-theme-button,
    .public-btn,
    .public-card,
    .workflow-card,
    .price-card,
    .results-card,
    .cta-strip {
      transition:
        transform .22s var(--public-ease),
        box-shadow .22s var(--public-ease),
        border-color .22s var(--public-ease),
        background .22s var(--public-ease),
        color .22s var(--public-ease);
    }

    .public-nav a:hover,
    .public-nav a.is-active,
    .public-sidebar-action:hover,
    .public-theme-button:hover {
      border-color: color-mix(in srgb, var(--public-accent) 28%, transparent);
      background: color-mix(in srgb, var(--public-accent) 11%, var(--public-panel));
      color: var(--public-accent);
    }

    .public-nav a.is-active {
      box-shadow: inset 3px 0 0 var(--public-accent);
    }

    .public-hero {
      min-height: min(590px, calc(100vh - 44px));
      padding: 48px 0 58px;
    }

    .public-hero-bg {
      opacity: .24;
      mask-image: linear-gradient(90deg, transparent, #000 10%, #000 78%, transparent);
    }

    .public-growth-lines {
      position: absolute;
      top: 72px;
      right: -24px;
      width: min(760px, 58vw);
      height: min(340px, 44vh);
      color: var(--public-accent);
      opacity: .62;
      pointer-events: none;
    }

    .growth-line,
    .growth-drops path {
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      vector-effect: non-scaling-stroke;
    }

    .growth-line {
      stroke-width: 2;
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
      animation: drawGrowth .95s var(--public-ease) .36s forwards;
    }

    .growth-line-soft {
      opacity: .24;
      animation-delay: .48s;
    }

    .growth-drops path {
      stroke-width: 1;
      stroke-dasharray: 3 7;
      opacity: .34;
      animation: softFade .6s ease .9s both;
    }

    .growth-points circle {
      fill: var(--public-accent);
      stroke: var(--public-panel);
      stroke-width: 3;
      opacity: 0;
      transform-origin: center;
      animation: pointIn .5s var(--public-ease) .82s forwards;
    }

    .public-kicker,
    .public-hero h1,
    .public-lead,
    .public-hero .public-actions {
      opacity: 0;
      transform: translateY(12px);
      animation: heroItemIn .72s var(--public-ease) forwards;
    }

    .public-kicker { animation-delay: .08s; }
    .public-hero h1 { animation-delay: .18s; }
    .public-lead { max-width: 720px; line-height: 1.68; animation-delay: .3s; }
    .public-hero .public-actions { animation-delay: .42s; }

    .public-hero h1 {
      max-width: 780px;
      font-size: clamp(48px, 6.4vw, 92px);
      letter-spacing: -0.015em;
    }

    .public-kicker {
      border-color: color-mix(in srgb, var(--public-accent) 44%, var(--public-border));
      background: color-mix(in srgb, var(--public-accent) 6%, var(--public-panel));
      box-shadow: 0 10px 24px rgba(123, 16, 38, .08);
    }

    .public-btn {
      min-height: 50px;
      padding: 0 22px;
      border-color: color-mix(in srgb, var(--public-border) 82%, transparent);
      box-shadow: 0 8px 22px rgba(55, 39, 26, .05);
    }

    .public-btn:hover {
      transform: translateY(-2px);
      border-color: color-mix(in srgb, var(--public-accent) 30%, var(--public-border));
      box-shadow: 0 16px 34px rgba(55, 39, 26, .11);
    }

    .public-btn:active {
      transform: translateY(0);
      box-shadow: 0 8px 18px rgba(55, 39, 26, .08);
    }

    .public-btn-primary {
      background: linear-gradient(135deg, #7b1026, #9a1732);
      box-shadow: 0 16px 36px rgba(123, 16, 38, .2);
    }

    .public-section,
    .cta-strip {
      margin-top: 30px;
      border-color: color-mix(in srgb, var(--public-border) 78%, transparent);
      border-radius: 18px;
      box-shadow: var(--public-shadow-soft);
    }

    .workflow-section {
      padding: clamp(30px, 4vw, 48px);
      background: color-mix(in srgb, var(--public-panel) 86%, var(--public-bg));
    }

    .public-section-head {
      align-items: start;
      margin-bottom: 24px;
    }

    .public-section-head h2 {
      font-size: clamp(30px, 3.4vw, 44px);
      letter-spacing: -0.01em;
    }

    .public-section-head p {
      line-height: 1.62;
      font-weight: 650;
    }

    .workflow-grid {
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 16px;
    }

    .workflow-card {
      min-height: 286px;
      padding: 22px 18px;
      border-color: color-mix(in srgb, var(--public-border) 74%, transparent);
      background: color-mix(in srgb, var(--public-panel) 88%, transparent);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
    }

    .workflow-card:hover,
    .public-card:hover,
    .price-card:hover {
      transform: translateY(-3px);
      border-color: color-mix(in srgb, var(--public-accent) 34%, var(--public-border));
      background: color-mix(in srgb, var(--public-panel) 96%, white);
      box-shadow: 0 18px 42px rgba(72, 52, 32, .11);
    }

    .workflow-card i {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      border: 1px solid color-mix(in srgb, var(--public-accent) 32%, transparent);
      background: color-mix(in srgb, var(--public-accent) 7%, var(--public-panel-2));
      font-size: 22px;
    }

    .workflow-card:hover i,
    .public-card:hover i {
      border-color: color-mix(in srgb, var(--public-accent) 50%, transparent);
      background: color-mix(in srgb, var(--public-accent) 12%, var(--public-panel-2));
      box-shadow: 0 12px 26px rgba(123, 16, 38, .10);
    }

    .workflow-card em {
      color: color-mix(in srgb, var(--public-accent) 60%, var(--public-soft));
      font-size: 18px;
      opacity: .82;
    }

    .workflow-card h3 {
      margin-top: 28px;
      font-size: 18px;
    }

    .workflow-card p {
      color: color-mix(in srgb, var(--public-muted) 88%, var(--public-text));
      font-size: 14px;
      line-height: 1.62;
    }

    .price-grid {
      gap: 18px;
      align-items: stretch;
    }

    .price-card {
      position: relative;
      min-height: 430px;
      padding: 26px;
      border-color: color-mix(in srgb, var(--public-border) 72%, transparent);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    }

    .price-card.is-featured {
      border-color: color-mix(in srgb, var(--public-accent) 54%, var(--public-border));
      background: linear-gradient(180deg, color-mix(in srgb, var(--public-accent) 5%, var(--public-panel)), var(--public-panel));
      box-shadow: 0 22px 52px rgba(123, 16, 38, .13), inset 0 1px 0 rgba(255,255,255,.74);
    }

    .price-card.is-featured:hover {
      border-color: var(--public-accent);
    }

    .price-badge {
      position: absolute;
      inset: 0 0 auto;
      min-height: 26px;
      display: grid;
      place-items: center;
      border-radius: 17px 17px 0 0;
      background: linear-gradient(135deg, #7b1026, #9a1732);
      color: var(--public-inverse);
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
    }

    .price-card.is-featured h3 {
      margin-top: 24px;
    }

    .price-card li::before {
      content: "✓";
      color: var(--public-accent);
    }

    .analyzer-section {
      background: color-mix(in srgb, var(--public-panel) 90%, var(--public-bg));
    }

    .results-card {
      margin-bottom: 0;
      padding: clamp(18px, 3vw, 28px);
      border-color: color-mix(in srgb, var(--public-border) 76%, transparent);
      border-radius: 16px;
      background: color-mix(in srgb, var(--public-panel) 96%, white);
      box-shadow: 0 28px 90px rgba(72, 52, 32, .12), inset 0 1px 0 rgba(255,255,255,.72);
    }

    .results-card:hover {
      transform: none;
      box-shadow: 0 32px 96px rgba(72, 52, 32, .14), inset 0 1px 0 rgba(255,255,255,.72);
    }

    .analysis-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin: 16px 0 18px;
    }

    .analysis-strip div {
      min-height: 82px;
      padding: 14px 16px;
      border: 1px solid color-mix(in srgb, var(--public-border) 74%, transparent);
      border-radius: 12px;
      background: color-mix(in srgb, var(--public-panel-2) 42%, var(--public-panel));
    }

    .analysis-strip b,
    .analysis-strip span {
      display: block;
    }

    .analysis-strip b {
      margin-bottom: 5px;
      color: var(--public-text);
      font-weight: 950;
    }

    .analysis-strip span {
      color: var(--public-muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .results-table-wrap {
      border: 1px solid color-mix(in srgb, var(--public-border) 76%, transparent);
      border-radius: 14px;
      background: color-mix(in srgb, var(--public-panel) 96%, white);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -18px 36px rgba(105, 74, 42, .035);
    }

    .results-table {
      min-width: 960px;
      border-collapse: separate;
      border-spacing: 0;
    }

    .results-table th {
      padding: 14px 14px;
      background: color-mix(in srgb, var(--public-panel-2) 78%, white);
      color: color-mix(in srgb, var(--public-muted) 86%, var(--public-text));
      border-bottom: 1px solid color-mix(in srgb, var(--public-border) 78%, transparent);
      font-size: 11px;
      letter-spacing: .02em;
    }

    .results-table td {
      padding: 14px;
      border-bottom: 1px solid color-mix(in srgb, var(--public-border) 54%, transparent);
      background: transparent;
    }

    .results-table tbody tr {
      animation: none !important;
      cursor: default;
    }

    .results-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .results-table tbody tr td:first-child {
      border-left: 2px solid transparent;
    }

    .results-table tbody tr:hover td {
      background: color-mix(in srgb, var(--public-accent) 5%, var(--public-panel));
    }

    .results-table tbody tr:hover td:first-child {
      border-left-color: var(--public-accent);
    }

    .rank-pill {
      min-width: 38px;
      min-height: 28px;
      background: color-mix(in srgb, var(--public-good) 22%, var(--public-panel));
      border: 1px solid color-mix(in srgb, var(--public-good) 22%, transparent);
      color: color-mix(in srgb, var(--public-good) 72%, var(--public-text));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
    }

    .rank-pill:hover {
      transform: scale(1.04);
    }

    .rank-pill[data-tooltip],
    .result-progress[data-tooltip] {
      position: relative;
      cursor: help;
    }

    .rank-pill[data-tooltip]::after,
    .result-progress[data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 9px);
      z-index: 10;
      width: max-content;
      max-width: 260px;
      padding: 8px 10px;
      border-radius: 9px;
      background: var(--public-text);
      color: var(--public-panel);
      font-size: 12px;
      line-height: 1.35;
      font-weight: 800;
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) translateY(4px);
      transition: opacity .18s ease, transform .18s ease;
      box-shadow: 0 12px 28px rgba(0,0,0,.18);
    }

    .rank-pill[data-tooltip]:hover::after,
    .result-progress[data-tooltip]:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .result-progress {
      color: var(--public-good);
    }

    .feature-section {
      background: color-mix(in srgb, var(--public-panel) 80%, var(--public-bg));
    }

    .feature-section .public-card {
      min-height: 166px;
      display: grid;
      grid-template-columns: 54px minmax(0, 1fr);
      gap: 12px 16px;
      align-content: start;
      padding: 18px;
    }

    .feature-section .public-card i {
      grid-row: span 2;
      width: 46px;
      height: 46px;
      border-radius: 12px;
    }

    .feature-section .public-card h3 {
      margin: 2px 0 0;
      font-size: 17px;
    }

    .feature-section .public-card p {
      font-size: 14px;
      line-height: 1.55;
    }

    .cta-strip {
      min-height: 150px;
      padding: clamp(24px, 4vw, 38px);
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--public-accent) 8%, var(--public-panel)), var(--public-panel)),
        var(--public-panel);
    }

    .cta-strip .public-btn-primary {
      position: relative;
      overflow: hidden;
    }

    .cta-strip .public-btn-primary::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 -60%;
      width: 42%;
      transform: skewX(-18deg);
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
      opacity: 0;
      transition: transform .55s var(--public-ease), opacity .2s ease;
    }

    .cta-strip .public-btn-primary:hover::before {
      opacity: 1;
      transform: translateX(360%) skewX(-18deg);
    }

    .motion-ready .reveal,
    .motion-ready .stagger-item {
      opacity: 0;
      transform: translateY(24px);
    }

    .motion-ready .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
      transition: opacity .72s var(--public-ease), transform .72s var(--public-ease);
    }

    .motion-ready .is-visible .stagger-item,
    .motion-ready .stagger-item.is-visible {
      opacity: 1;
      transform: translateY(0);
      transition: opacity .68s var(--public-ease), transform .68s var(--public-ease);
      transition-delay: var(--stagger-delay, 0ms);
    }

    .motion-ready .results-table tbody tr {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .52s var(--public-ease), transform .52s var(--public-ease), background .16s ease;
    }

    .motion-ready .results-card.is-visible .results-table tbody tr {
      opacity: 1;
      transform: translateY(0);
    }

    .motion-ready .results-card.is-visible .results-table tbody tr:nth-child(1) { transition-delay: 160ms; }
    .motion-ready .results-card.is-visible .results-table tbody tr:nth-child(2) { transition-delay: 220ms; }
    .motion-ready .results-card.is-visible .results-table tbody tr:nth-child(3) { transition-delay: 280ms; }
    .motion-ready .results-card.is-visible .results-table tbody tr:nth-child(4) { transition-delay: 340ms; }
    .motion-ready .results-card.is-visible .results-table tbody tr:nth-child(5) { transition-delay: 400ms; }
    .motion-ready .results-card.is-visible .results-table tbody tr:nth-child(6) { transition-delay: 460ms; }

    @keyframes sidebarIn {
      from { opacity: 0; transform: translateX(-10px); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes heroItemIn {
      from { opacity: 0; transform: translateY(14px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes drawGrowth {
      to { stroke-dashoffset: 0; }
    }

    @keyframes pointIn {
      from { opacity: 0; transform: scale(.76); }
      to { opacity: 1; transform: scale(1); }
    }

    @keyframes softFade {
      from { opacity: 0; }
      to { opacity: .34; }
    }

    @media (max-width: 1180px) {
      body.public-page { padding-left: 104px; }
      .public-sidebar { width: 74px; }
      .public-sidebar span:not(.public-theme-dots):not(.public-theme-dot) { display: none; }
      .public-brand,
      .public-nav a,
      .public-sidebar-action,
      .public-theme-button { justify-content: center; padding-inline: 0; }
      .public-theme-button:hover .public-theme-dots { display: grid; }
      .public-theme-button:hover .public-theme-dot { display: block; }
      .public-growth-lines { width: min(560px, 52vw); opacity: .42; }
      .workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .workflow-card { min-height: 238px; }
      .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 820px) {
      body.public-page { padding: 12px; }
      .public-sidebar {
        position: sticky;
        inset: 0;
        width: 100%;
        min-height: 58px;
        flex-direction: row;
        align-items: center;
        margin-bottom: 12px;
        padding: 8px;
      }
      .public-brand span,
      .public-nav a span,
      .public-sidebar-action span,
      .public-theme-label { display: none; }
      .public-nav { display: flex; margin: 0 0 0 auto; }
      .public-sidebar-bottom { display: flex; margin: 0; }
      .public-hero { min-height: auto; padding-top: 20px; }
      .public-growth-lines {
        top: 82px;
        right: -180px;
        width: 620px;
        height: 220px;
        opacity: .22;
      }
      .feature-grid,
      .price-grid,
      .analysis-strip { grid-template-columns: 1fr; }
      .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .public-section-head,
      .cta-strip { grid-template-columns: 1fr; display: grid; }
      .cta-strip .public-actions { width: 100%; }
      .public-btn { width: 100%; }
      .public-section { padding: 22px; }
      .feature-section .public-card { grid-template-columns: 48px minmax(0, 1fr); }
      .results-table { min-width: 820px; }
    }

    @media (max-width: 560px) {
      body.public-page { padding: 10px; }
      .public-sidebar { border-radius: 16px; }
      .public-nav { gap: 2px; }
      .public-nav a,
      .public-sidebar-action,
      .public-theme-button {
        min-width: 38px;
        min-height: 38px;
      }
      .public-hero h1 { font-size: clamp(42px, 15vw, 64px); }
      .public-lead { font-size: 16px; line-height: 1.62; }
      .public-growth-lines { display: none; }
      .workflow-grid,
      .feature-grid,
      .price-grid { grid-template-columns: 1fr; }
      .workflow-card,
      .price-card,
      .feature-section .public-card { min-height: auto; }
      .public-section-head h2,
      .cta-strip h2 { font-size: 28px; }
      .results-card { padding: 14px; }
      .results-table { min-width: 760px; font-size: 13px; }
      .results-table th,
      .results-table td { padding: 12px 10px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
      }
      .reveal,
      .stagger-item,
      .results-table tbody tr,
      .public-kicker,
      .public-hero h1,
      .public-lead,
      .public-hero .public-actions {
        opacity: 1 !important;
        transform: none !important;
      }
      .growth-line {
        stroke-dashoffset: 0 !important;
      }
    }

    /* Keep the approved CTA contrast and hero composition in every palette. */
    html[data-design-theme] body.public-page a.public-btn-primary,
    html[data-design-theme] body.public-page a.public-btn-primary:hover,
    html[data-design-theme] body.public-page button.public-btn-primary,
    html[data-design-theme] body.public-page button.public-btn-primary:hover {
      color: var(--public-inverse) !important;
    }

    html[data-design-theme] body.public-page .public-btn-primary i,
    html[data-design-theme] body.public-page .public-btn-primary span {
      color: inherit !important;
    }

    .public-hero-content {
      position: relative;
      z-index: 2;
      width: min(56%, 720px);
    }

    .public-growth-lines {
      z-index: 1;
      top: 92px;
      right: 0;
      width: min(580px, 40vw);
      max-width: 40%;
    }

    @media (max-width: 980px) {
      .public-hero-content { width: min(68%, 680px); }
      .public-growth-lines { width: 34%; opacity: .32; }
    }

    @media (max-width: 760px) {
      .public-hero-content { width: 100%; }
      .public-growth-lines {
        top: 150px;
        right: -18%;
        width: 74%;
        max-width: none;
        opacity: .12;
      }
    }

    /* =========================================================
       Внутренние страницы: та же дизайн-система, что у главной.
       Hero компактнее — на внутряке он вступление, а не первый экран.
       ========================================================= */
    .public-hero.is-compact {
      min-height: 0;
      padding: 18px 0 26px;
    }
    .public-hero.is-compact h1 {
      max-width: 900px;
      font-size: clamp(32px, 4.4vw, 60px);
      line-height: 1.04;
    }
    .public-hero.is-compact .public-lead { max-width: 720px; }

    /* В style.css тег header — липкая панель кабинета с рамкой и фоном.
       Внутри публичной статьи это просто шапка текста. */
    body.public-page .public-article header,
    body.public-page .public-hero header {
      position: static;
      z-index: auto;
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
    }

    /* =========================================================
       Типографика контентных страниц (_public_base.html).
       Ширину держим уже, чем полотно главной: длинная строка в
       тексте читается хуже, чем в лендинговых секциях-сетках.
       ========================================================= */
    .public-article {
      width: min(760px, 100%);
      margin: 0 auto;
      padding: 32px 0 8px;
      color: var(--public-text);
      font-size: 17px;
      line-height: 1.72;
    }

    .public-article > header { margin-bottom: 30px; }

    .public-article h1 {
      margin: 0 0 14px;
      color: var(--public-text);
      font-size: clamp(30px, 4.2vw, 46px);
      font-weight: 900;
      line-height: 1.16;
      letter-spacing: -0.01em;
    }

    .public-article h2 {
      margin: 44px 0 14px;
      color: var(--public-text);
      font-size: clamp(21px, 2.4vw, 27px);
      font-weight: 800;
      line-height: 1.3;
    }

    .public-article h3 {
      margin: 30px 0 10px;
      color: var(--public-text);
      font-size: 18px;
      font-weight: 800;
    }

    .public-article .public-lead {
      margin: 0;
      color: var(--public-muted);
      font-size: 19px;
      line-height: 1.62;
    }

    .public-article p { margin: 0 0 16px; }
    .public-article ul,
    .public-article ol { margin: 0 0 18px; padding-left: 22px; }
    .public-article li { margin: 0 0 9px; }
    .public-article li::marker { color: var(--public-accent-2); }
    .public-article strong, .public-article b { font-weight: 800; }

    .public-article a {
      color: var(--public-accent-2);
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-thickness: 1px;
    }
    .public-article a:hover { color: var(--public-accent); }

    /* Врезка: то же оформление, что у карточек главной. */
    .public-note {
      margin: 24px 0;
      padding: 20px 22px;
      border: 1.5px solid var(--public-border);
      border-radius: 8px;
      background: color-mix(in srgb, var(--public-panel) 96%, transparent);
      box-shadow: 0 10px 28px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.16);
    }
    .public-note > :first-child { margin-top: 0; }
    .public-note > :last-child { margin-bottom: 0; }
    .public-note h2, .public-note h3 { margin-top: 0; }

    .public-article table {
      width: 100%;
      margin: 20px 0;
      border-collapse: collapse;
      font-size: 15px;
    }
    .public-article th,
    .public-article td {
      padding: 10px 12px;
      border: 1px solid var(--public-border);
      text-align: left;
      vertical-align: top;
    }
    .public-article th {
      background: color-mix(in srgb, var(--public-panel-2) 80%, transparent);
      font-weight: 800;
    }

    /* Хлебные крошки над заголовком статьи. */
    .public-crumbs {
      margin: 0 0 14px;
      color: var(--public-soft);
      font-size: 13.5px;
    }
    .public-crumbs a { color: var(--public-soft); text-decoration: none; }
    .public-crumbs a:hover { color: var(--public-accent-2); }

    @media (max-width: 720px) {
      .public-article { font-size: 16px; padding-top: 20px; }
      .public-article .public-lead { font-size: 17px; }
    }

    /* =========================================================
       Инлайновые SVG-иконки (public_icons.py) вместо Font Awesome.
       Обёртка <i class="p-icon"> наследует всю существующую стилизацию
       иконок в карточках и меню, здесь задаём только сам рисунок.
       ========================================================= */
    .p-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: none;
      line-height: 0;
    }
    .p-icon > svg {
      width: 1.15em;
      height: 1.15em;
      display: block;
    }
    /* В круглых плашках карточек рисунок крупнее самой типографики. */
    .public-card > .p-icon > svg,
    .workflow-card > .p-icon > svg { width: 24px; height: 24px; }
    .public-brand > .p-icon > svg { width: 20px; height: 20px; }

    /* =========================================================
       Премиальные детали внутренних страниц.
       ========================================================= */

    /* Мягкое свечение за hero — глубина без тяжёлых картинок. */
    .public-hero.is-compact::after {
      content: "";
      position: absolute;
      top: -30%;
      right: -10%;
      width: 620px;
      height: 620px;
      border-radius: 50%;
      background: radial-gradient(circle,
        color-mix(in srgb, var(--public-accent) 16%, transparent) 0%,
        transparent 62%);
      pointer-events: none;
      z-index: 0;
    }
    .public-hero.is-compact .public-hero-content { position: relative; z-index: 1; }

    /* Тонкая линия-акцент, проявляющаяся на карточке при наведении. */
    .public-card,
    .workflow-card { position: relative; overflow: hidden; }
    .public-card::before,
    .workflow-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 2px;
      background: linear-gradient(90deg,
        transparent,
        color-mix(in srgb, var(--public-accent) 70%, transparent),
        color-mix(in srgb, var(--public-accent-2) 70%, transparent),
        transparent);
      opacity: 0;
      transform: translateY(-2px);
      transition: opacity .28s var(--public-ease), transform .28s var(--public-ease);
    }
    .public-card:hover::before,
    .workflow-card:hover::before { opacity: 1; transform: translateY(0); }

    /* FAQ на нативном <details>: раскрытие без единой строки JS. */
    .public-faq { display: grid; gap: 10px; margin: 22px 0 0; }
    .public-faq details {
      border: 1.5px solid var(--public-border);
      border-radius: 8px;
      background: color-mix(in srgb, var(--public-panel) 96%, transparent);
      transition: border-color .2s var(--public-ease), box-shadow .2s var(--public-ease);
    }
    .public-faq details[open] {
      border-color: color-mix(in srgb, var(--public-accent) 42%, var(--public-border));
      box-shadow: 0 12px 30px rgba(0,0,0,.07);
    }
    .public-faq summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 20px;
      cursor: pointer;
      font-size: 16.5px;
      font-weight: 800;
      color: var(--public-text);
      list-style: none;
    }
    .public-faq summary::-webkit-details-marker { display: none; }
    .public-faq summary::after {
      content: "";
      flex: none;
      width: 11px;
      height: 11px;
      border-right: 2px solid var(--public-accent);
      border-bottom: 2px solid var(--public-accent);
      transform: rotate(45deg) translate(-2px, -2px);
      transition: transform .25s var(--public-ease);
    }
    .public-faq details[open] summary::after {
      transform: rotate(225deg) translate(-3px, -3px);
    }
    .public-faq .public-faq-body {
      padding: 0 20px 18px;
      color: var(--public-muted);
      line-height: 1.7;
    }
    .public-faq .public-faq-body > :first-child { margin-top: 0; }
    .public-faq .public-faq-body > :last-child { margin-bottom: 0; }

    /* Строка цифр — быстрый аргумент до чтения текста. */
    .public-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 14px;
      margin: 26px 0 0;
    }
    .public-stat {
      padding: 20px 22px;
      border: 1.5px solid var(--public-border);
      border-radius: 8px;
      background: color-mix(in srgb, var(--public-panel) 96%, transparent);
    }
    .public-stat b {
      display: block;
      font-size: clamp(26px, 3vw, 34px);
      font-weight: 900;
      line-height: 1.1;
      color: var(--public-accent);
      letter-spacing: -0.01em;
    }
    .public-stat span {
      display: block;
      margin-top: 6px;
      color: var(--public-muted);
      font-size: 14px;
    }

    @media (prefers-reduced-motion: reduce) {
      .public-card::before,
      .workflow-card::before,
      .public-faq summary::after { transition: none; }
    }

    /* =========================================================
       Плавность прокрутки.

       Симптом был такой: страница «дёргается» при скролле, хотя на ней нет
       ни одной картинки. Причина — не в самих анимациях (они одноразовые,
       на загрузке), а в постоянно пересчитываемых эффектах: размытие под
       фиксированной панелью, тени с очень большим радиусом и градиентные
       маски. Ниже — то, что оставляет вид прежним, но снимает нагрузку
       с каждого кадра.
       ========================================================= */

    /* Тени с радиусом 80–96px браузер перерисовывает заметно дольше, чем
       умеренные: визуально глубина та же, стоимость кадра ниже. */
    html[data-theme="light"] { --public-shadow: 0 16px 40px rgba(57, 45, 34, 0.14); }
    html[data-theme="dark"]  { --public-shadow: 0 16px 40px rgba(0, 0, 0, 0.40); }
    html[data-theme="retro"] { --public-shadow: 0 16px 40px rgba(5, 10, 4, 0.34); }

    /* Декоративные слои с масками и градиентами не меняются при прокрутке,
       поэтому выносим их на отдельный слой — растеризуются один раз.
       Особенно важно для body::before: это полноэкранная фиксированная сетка
       из повторяющихся градиентов под маской, то есть самый дорогой слой на
       странице. */
    body.public-page::before,
    .public-hero-bg,
    .public-growth-lines,
    .public-hero.is-compact::after {
      will-change: transform;
      transform: translateZ(0);
    }

    /* Карточки перерисовываются независимо друг от друга: наведение на одну
       не заставляет пересчитывать соседние. */
    .public-card,
    .workflow-card,
    .price-card,
    .public-faq details { contain: layout paint; }

    /* Тяжёлые тени наведения меняем на более дешёвые. */
    .workflow-card:hover,
    .public-card:hover { box-shadow: 0 14px 32px rgba(72, 52, 32, .12); }

    /* =========================================================
       Секция услуг: вход на отдельные страницы услуг с главной.
       Намеренно инвертирована по цвету — шесть одинаковых светлых
       панелей подряд читаются как одна сплошная лента, и глазу не за
       что зацепиться. Тёмный блок задаёт ритм и делит страницу
       на «до» и «после».
       ========================================================= */
    .services-section {
      background: var(--public-accent);
      border-color: color-mix(in srgb, var(--public-accent) 70%, #000);
      color: var(--public-inverse);
    }
    .services-section .public-section-head h2,
    .services-section .public-section-head p { color: var(--public-inverse); }
    .services-section .public-section-head p { opacity: .82; }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 16px;
      margin-top: 22px;
    }

    .service-card {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 26px 28px;
      border: 1px solid color-mix(in srgb, #fff 26%, transparent);
      border-radius: 10px;
      background: color-mix(in srgb, #fff 10%, transparent);
      color: var(--public-inverse);
      transition: background .24s var(--public-ease), transform .24s var(--public-ease);
      contain: layout paint;
    }
    .service-card:hover {
      background: color-mix(in srgb, #fff 16%, transparent);
      transform: translateY(-3px);
    }
    .service-card > .p-icon {
      display: inline-grid;
      place-items: center;
      width: 46px;
      height: 46px;
      border-radius: 12px;
      background: color-mix(in srgb, #fff 18%, transparent);
      color: var(--public-inverse);
    }
    .service-card > .p-icon > svg { width: 24px; height: 24px; }
    .service-card h3 {
      margin: 0;
      font-size: 22px;
      font-weight: 900;
      letter-spacing: -0.01em;
    }
    .service-card p { margin: 0; opacity: .86; line-height: 1.6; }
    .service-card ul {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 7px;
      font-size: 14.5px;
      opacity: .9;
    }
    .service-card li { padding-left: 20px; position: relative; }
    .service-card li::before {
      content: "";
      position: absolute;
      left: 2px;
      top: .5em;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: color-mix(in srgb, #fff 70%, transparent);
    }
    .service-card .service-link {
      margin-top: auto;
      padding-top: 6px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 900;
      font-size: 15px;
      color: var(--public-inverse);
    }
    .service-card .service-link::after {
      content: "→";
      transition: transform .24s var(--public-ease);
    }
    .service-card:hover .service-link::after { transform: translateX(4px); }

    /* В ретро-теме инверсия по акценту даёт слишком светлый блок —
       берём тёмную панель темы, иначе текст теряет контраст. */
    html[data-theme="retro"] .services-section {
      background: var(--public-panel);
      border-color: var(--public-border);
    }

    @media (prefers-reduced-motion: reduce) {
      .service-card, .service-card .service-link::after { transition: none; }
    }

    /* =========================================================
       Отделка: то, что отличает «нормально» от «дорого».
       Ничего из этого не добавляет веса странице — только точность.
       ========================================================= */

    /* Кернинг, лигатуры и пропорциональные цифры. Браузер по умолчанию
       часть этого не включает, а разница на крупном тексте заметная. */
    body.public-page {
      font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Крупный текст оптически кажется разреженным — поджимаем трекинг.
       Чем крупнее кегль, тем сильнее поджатие. */
    .public-hero h1 { letter-spacing: -0.025em; }
    .public-section-head h2,
    .public-article h1 { letter-spacing: -0.02em; }
    .public-article h2,
    .service-card h3,
    .cta-strip h2 { letter-spacing: -0.015em; }

    /* Заголовок не должен оставлять одно слово на последней строке. */
    .public-hero h1,
    .public-section-head h2,
    .public-article h1,
    .public-article h2,
    .cta-strip h2 { text-wrap: balance; }
    .public-lead,
    .public-section-head p { text-wrap: pretty; }

    /* Табличные цифры: в тарифах и таблице позиций разряды выстраиваются
       по вертикали, а не пляшут по ширине глифов. */
    .price-card strong,
    .results-table td,
    .public-stat b,
    .rank-pill { font-variant-numeric: tabular-nums; }

    /* Тактильность: кнопка должна отзываться на нажатие, а не только
       на наведение — именно это читается как «качественно сделано». */
    .public-btn,
    .service-card,
    .public-nav a,
    .public-sidebar-action {
      transition: transform .18s var(--public-ease),
                  background-color .18s var(--public-ease),
                  border-color .18s var(--public-ease),
                  box-shadow .18s var(--public-ease);
    }
    .public-btn:active,
    .public-sidebar-action:active { transform: translateY(1px) scale(.995); }
    .public-btn-primary:hover {
      box-shadow: 0 8px 20px color-mix(in srgb, var(--public-accent) 34%, transparent);
    }

    /* Видимый фокус только для клавиатуры: мышью кольца не мелькают,
       а с клавиатуры навигация остаётся понятной. */
    a:focus-visible,
    button:focus-visible,
    summary:focus-visible {
      outline: 2px solid var(--public-accent);
      outline-offset: 3px;
      border-radius: 6px;
    }
    summary:focus { outline: none; }

    /* Волосяная линия: на экранах с высокой плотностью 1px выглядит
       грубовато, полпикселя дают ту самую аккуратность. */
    @media (min-resolution: 1.5dppx) {
      .public-card,
      .workflow-card,
      .price-card,
      .public-note,
      .public-faq details { border-width: 0.5px; }
    }

    /* Выделение текста в цвете бренда — мелочь, которую замечают. */
    ::selection {
      background: color-mix(in srgb, var(--public-accent) 88%, transparent);
      color: var(--public-inverse);
    }

    /* Скроллбар в тон странице, а не системный серый. */
    @supports (scrollbar-color: auto) {
      html { scrollbar-color: color-mix(in srgb, var(--public-accent) 42%, transparent) transparent; }
    }

    /* =========================================================
       Анимации появления отключены.

       Раньше блоки выезжали при загрузке и при попадании в экран.
       Отключать их нужно осторожно: часть элементов задана с
       opacity: 0 и становится видимой только в конце анимации —
       если просто убрать animation, они исчезнут со страницы.
       Поэтому здесь не только глушим анимации, но и возвращаем
       конечные состояния. Правила повторяют блок
       prefers-reduced-motion ниже, но применяются всегда.

       Наведение и нажатие (transition) оставлены намеренно:
       это отклик на действие пользователя, а не самоиграющее
       движение, и без него интерфейс ощущается дёрганым.
       ========================================================= */
    *,
    *::before,
    *::after {
      animation: none !important;
    }

    .reveal,
    .stagger-item,
    .results-table tbody tr,
    .public-kicker,
    .public-hero h1,
    .public-lead,
    .public-hero .public-actions,
    .public-sidebar,
    .growth-points circle,
    .growth-drops path,
    .theme-hint.is-visible {
      opacity: 1 !important;
      transform: none !important;
    }

    /* Линия графика в hero рисовалась обводкой — показываем её целиком. */
    .growth-line {
      stroke-dasharray: none !important;
      stroke-dashoffset: 0 !important;
    }

    /* Задержки лестницей больше не нужны. */
    .results-table tbody tr,
    .stagger-item { transition-delay: 0s !important; }
