/* inter-selfhost:start (generated by build_local_fonts.py — do not edit) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-cyrillic-400.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;
  font-display: swap;
  src: url('fonts/inter-latin-400.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-cyrillic-500.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: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-cyrillic-600.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: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600.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;
}
/* inter-selfhost:end */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cyan: #a100d6;
  --cyan-dark: #0047d9;
  --accent-cta: var(--gradient-brand);
  --purple-soft: rgba(48, 50, 216, 0.075);
  --cyan-soft: var(--purple-soft);
  --link-underline: var(--purple-soft);
  --promo-border: var(--purple-soft);
  --accent-hover: #13002c;
  --focus-ring: rgba(1, 90, 254, 0.10);
  --bg: #f6f6fc;
  --surface: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.92);
  --surface-soft-text: rgba(255, 255, 255, 0.80);
  --table-head-bg: #f6f8ff;
  --text: #100520;
  --text-secondary: #5a5368;
  --text-muted: #8e879b;
  --border: #e8e8f3;
  --stripe: #eef0fb;              /* единая лавандовая полоса секций + фон формы заявки */
  --gradient-nav: linear-gradient(221deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  --gradient-brand: linear-gradient(221deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  --gradient-hover: linear-gradient(221deg, var(--accent-hover) 0%, var(--accent-hover) 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 720px;
}

  html {
    scroll-padding-top: 78px;
  }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

.logo {
  transform: scale(0.8);
  transform-origin: left center;
}

  /* ── NAV ── */
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface-translucent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
  }
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
  }
  .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
  }
  .nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .15s;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
  .nav-cta {
    font-size: 14px;
    font-weight: 500;
    background: var(--gradient-nav);
    color: var(--surface);
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
  }
  .nav-cta:hover { background: var(--gradient-hover); }
  .nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    transition: border-color .15s, background .15s;
  }
  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    border-color: var(--cyan);
    outline: none;
  }
  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 10px;
    background: currentColor;
    transition: transform .18s, opacity .18s;
  }
  .nav.is-open .nav-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── BREADCRUMB ── */
  .breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
  }
  .breadcrumb a { color: var(--text-muted); text-decoration: none; }
  .breadcrumb a:hover { color: var(--cyan); }
  .breadcrumb-sep { color: var(--border); }

  /* ── MAIN LAYOUT ── */
  .page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
  }
  .page > main { min-width: 0; }

  /* ── ARTICLE ── */
  article {}

  /* HERO */
  .article-hero {
    margin-bottom: 40px;
  }
  .article-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .tag {
    font-size: 12px;
    font-weight: 500;
    background: var(--cyan-soft);
    color: var(--cyan-dark);
    padding: 4px 10px;
    border-radius: 100px;
    text-decoration: none;
    transition: background .15s;
  }
  .tag:hover { background: var(--cyan-soft); }
  .read-time {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .read-time svg { opacity: .5; }
  .article-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--text);
    margin-bottom: 16px;
  }
  .article-lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
  }
  .article-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cyan-soft);
    border: 1.5px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan-dark);
    flex-shrink: 0;
  }
  .author-info { flex: 1; }
  .author-name { font-size: 14px; font-weight: 500; }
  .author-date { font-size: 13px; color: var(--text-muted); }
  .article-share {
    display: flex;
    gap: 8px;
    margin-left: auto;
  }
  .share-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: border-color .15s, color .15s;
  }
  .share-btn:hover { border-color: var(--cyan); color: var(--cyan); }

  /* COVER */
  .article-cover {
    width: calc(100% / 1.5);
    margin: 28px auto 36px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cyan-soft);
    aspect-ratio: 1/1;
    position: relative;
  }
  .article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 500;
  }

  /* CONTENT */
  .article-body { color: var(--text); }
  .article-body h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 44px 0 16px;
    color: var(--text);
  }
  .article-body h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 32px 0 12px;
    color: var(--text);
  }
  .article-body h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 24px 0 10px;
    color: var(--text);
  }
  .article-body figure {
    margin: 28px 0;
  }
  .article-body figure img {
    width: calc(100% / 1.5);
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    margin-inline: auto;
    border-radius: var(--radius);
  }
  /* Скриншоты интерфейса в «Эксплуатации» (figure.operation-doc__figure).
     Правило выше режет любую картинку в КВАДРАТ с object-fit:cover — для кадров
     1920x890 это съедало 54% ширины, оставляя нечитаемый кусок середины.
     Здесь возвращаем натуральное соотношение и карточку, как в исходной теме
     WordPress (orbitai/css/main.css: белый фон, тень, радиус 24/12). */
  .article-body .operation-doc__figure {
    margin: 24px 0 0;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 19px 0 rgb(17 43 133 / 0.08);
  }
  .article-body .operation-doc__figure img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;   /* перебиваем 1/1 */
    object-fit: contain;  /* перебиваем cover */
    border-radius: 12px;
  }
  /* Скриншот открывается в полном размере: 1920px в колонке 724px читается плохо. */
  .article-body .operation-doc__figure a { display: block; cursor: zoom-in; }
  .article-body .operation-doc__figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
  }
  .article-body p {
    margin-bottom: 20px;
    color: var(--text);
  }
  .article-body p:last-child { margin-bottom: 0; }
  .article-body a { color: var(--cyan-dark); text-decoration: underline; text-decoration-color: var(--link-underline); }
  .article-body a:hover { text-decoration-color: var(--cyan); }
  .article-body ul, .article-body ol {
    margin: 0 0 20px 20px;
  }
  .article-body li { margin-bottom: 8px; }

  /* ЧЕК-ЛИСТ: список-карточка с галочками (как на скриншоте) */
  .article-body ul.checklist {
    list-style: none;
    margin: 28px 0;
    padding: 24px 28px;
    background: var(--cyan-soft);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .article-body ul.checklist li {
    position: relative;
    margin: 0;
    padding-left: 38px;
    line-height: 1.5;
    color: var(--text);
  }
  .article-body ul.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--cyan-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

  /* BLOCKQUOTE */
  .article-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: var(--cyan-soft);
    border-left: 3px solid var(--cyan);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 17px;
    color: var(--text);
    font-style: normal;
    line-height: 1.65;
  }

  /* HIGHLIGHT BOX */
  .info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 28px 0;
  }
  .info-box-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyan-dark);
    margin-bottom: 8px;
  }
  .info-box p { margin: 0; font-size: 15px; }

  /* ARTICLE TABLE */
  .article-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 30px 0;
    overflow: hidden;
  }
  .article-table-head {
    /* По горизонтали — 18px, ровно как padding ячеек ниже: иначе заголовок
       таблицы визуально не совпадает с левым краем текста колонок. */
    padding: 20px 18px;
    border-bottom: 1px solid var(--border);
  }
  .article-table-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyan-dark);
    margin-bottom: 6px;
  }
  .article-table-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 6px;
  }
  .article-table-note {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
  }
  .article-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .article-table table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
  }
  .article-table th,
  .article-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.55;
  }
  .article-table th {
    background: var(--table-head-bg);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
  }
  .article-table tr:last-child td { border-bottom: none; }
  .article-table td:first-child {
    font-weight: 600;
    color: var(--text);
  }
  .table-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--cyan-soft);
    color: var(--cyan-dark);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  /* MATERIALS FORM */
  .materials-form {
    margin: 34px 0;
    padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .materials-form-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyan-dark);
    margin-bottom: 8px;
  }
  .materials-form h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
  }
  .materials-form p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .materials-form-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
  }
  .form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
  }
  .form-field input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    padding: 0 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .form-field input:focus {
    border-color: var(--cyan-dark);
    box-shadow: 0 0 0 3px var(--focus-ring);
  }
  .materials-form button {
    height: 46px;
    border: none;
    border-radius: 8px;
    background: var(--accent-cta);
    color: var(--surface);
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .15s;
  }
  .materials-form button:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
  }
  .form-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
  }
  .form-consent input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--cyan-dark);
    flex-shrink: 0;
  }
  .form-consent a {
    color: inherit;
    text-decoration: underline;
  }
  .materials-form-success {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--cyan-soft);
    color: var(--cyan-dark);
    font-size: 13px;
    font-weight: 500;
  }
  .materials-form.is-sent .materials-form-success { display: block; }

  /* STAT CALLOUT */
  .stat-row {
    display: grid;
    /* Колонки по числу карточек, а не всегда три: одна карточка занимает всю
       ширину статьи, две — по половине, три — по трети. auto-fit схлопывает
       пустые дорожки, поэтому одиночная карточка не висит в трети ширины.
       min(100%, 220px) — чтобы на узком экране карточка не распирала сетку. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin: 28px 0;
  }
  .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
  }
  .stat-num {
    font-size: 28px;
    font-weight: 600;
    color: var(--cyan-dark);
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 6px;
  }
  .stat-label { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

  /* TOC (TABLE OF CONTENTS) */
  .toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 0 0 36px;
  }
  .toc-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .toc ol { margin: 0; padding-left: 20px; }
  .toc li { margin-bottom: 6px; }
  .toc a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.5;
    transition: color .15s;
  }
  .toc a:hover { color: var(--cyan-dark); }

  /* ARTICLE FOOTER */
  .article-footer {
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
  }
  .tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .cta-block {
    background: var(--gradient-brand);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  /* отступ CTA-формы от соседнего текста внутри статьи */
  .article-body .cta-block { margin: 36px 0; }
  /* CTA-форма, перенесённая в шапку на место блока автора */
  .article-hero .cta-block { margin: 8px 0 24px; }
  .cta-block-text {}
  .cta-block h3 { font-size: 18px; font-weight: 600; color: var(--surface); margin-bottom: 6px; }
  .cta-block p { font-size: 14px; color: var(--surface-soft-text); margin: 0; }
  .cta-block-btn {
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
  }
  .cta-block-btn:hover { opacity: .9; }

  /* LEAD FORM (внутри CTA-блоков и футера): имя + телефон */
  .cta-block .lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: none;
  }
  .cta-block .lead-form input[type="text"],
  .cta-block .lead-form input[type="tel"] {
    padding: 12px 14px;
    border: none;
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--surface);
    color: var(--text);
  }
  .cta-block .lead-form input::placeholder { color: var(--text-muted); }
  .cta-block .lead-form button {
    padding: 12px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(221deg, rgba(161, 0, 214, 0.16) 0%, rgba(0, 71, 217, 0.16) 100%), var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
  }
  .cta-block .lead-form button:hover { opacity: .9; transform: translateY(-1px); }
  .cta-block .lead-form .form-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.4;
    color: var(--surface);
    opacity: .92;
    cursor: pointer;
  }
  .cta-block .lead-form .form-consent input { margin-top: 2px; flex-shrink: 0; }
  /* состояние «отправлено»: прячем форму, показываем благодарность */
  .cta-block.is-sent .lead-form { display: none; }
  .form-thank { display: none; }
  .cta-block.is-sent .form-thank {
    display: block;
    color: var(--surface);
    font-size: 15px;
    line-height: 1.5;
    max-width: 340px;
  }
  /* Универсальный успех для форм-макетов (is-sent ставится на родителя формы) */
  .is-sent > .lead-form { display: none; }
  .is-sent > .form-thank {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 0; padding: 18px 20px; border-radius: 14px; max-width: 460px;
    background: #edfbf4; border: 1px solid #bfe9d4; color: #0e7a54;
    font-size: 15px; line-height: 1.5;
  }
  .is-sent > .form-thank::before {
    content: "✓"; flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: #20b27c; color: #fff; font-weight: 800;
    display: grid; place-items: center; font-size: 16px; line-height: 1;
  }
  .is-sent > .form-thank strong { display: block; margin-bottom: 2px; font-size: 16px; }

  /* RELATED */
  .related { margin-top: 52px; }
  .related h2 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
  .related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .related-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, transform .15s;
    display: block;
  }
  .related-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
  .related-card-tag { font-size: 12px; color: var(--cyan-dark); font-weight: 500; margin-bottom: 8px; }
  .related-card-title { font-size: 15px; font-weight: 500; line-height: 1.45; margin-bottom: 0; }

  /* ── SIDEBAR ── */
  .sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }

  .sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
  }
  .sidebar-card h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
  }
  /* Блок «Эксперты»: цитата + автор */
  .expert-quote { margin: 0; }
  .expert-quote blockquote {
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 2px solid var(--cyan);
    font-size: 14px;
    line-height: 1.55;
    font-style: italic;
    color: var(--text);
  }
  .expert-quote figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .expert-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .expert-role { font-size: 12px; color: var(--text-muted); }
  /* блок цитаты эксперта в теле статьи: мягкая заливка, без рамки */
  .article-body .article-experts {
    margin: 32px 0;
    padding: 22px 26px;
    background: var(--cyan-soft);
    border-radius: var(--radius);
    border-left: 4px solid var(--cyan);
  }
  .article-body .expert-quote blockquote {
    margin: 0 0 12px;
    padding: 0;
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1.55;
    font-style: italic;
    color: var(--text);
  }

  /* Sidebar TOC */
  .sidebar-toc { list-style: none; }
  .sidebar-toc li { margin-bottom: 2px; }
  .sidebar-toc a {
    display: block;
    font-size: 13.5px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    line-height: 1.5;
    transition: background .12s, color .12s;
  }
  .sidebar-toc a:hover, .sidebar-toc a.active {
    background: var(--cyan-soft);
    color: var(--cyan-dark);
  }
  .sidebar-toc a.active { font-weight: 500; }

  /* Sidebar checklist promo */
  .sidebar-promo {
    background: var(--cyan-soft);
    border: 1px solid var(--promo-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
  }
  .sidebar-promo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
  }
  .sidebar-promo h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
  .sidebar-promo p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }
  .sidebar-promo-btn {
    display: block;
    width: 100%;
    background: var(--gradient-brand);
    color: var(--surface);
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
  }
  .sidebar-promo-btn:hover { background: var(--accent-hover); }

  /* Progress bar */
  .progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    background: var(--gradient-brand);
    z-index: 200;
    transition: width .1s linear;
    width: 0%;
  }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 36px 24px 30px;
  }
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 44px;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 230px;
    max-width: 280px;
  }
  .footer-logo {
    display: inline-flex;
    width: 150px;
  }
  .footer-logo img {
    display: block;
    width: 100%;
    height: auto;
  }
  .footer-registry,
  .footer-links,
  .footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-content {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(130px, 0.7fr) minmax(240px, 1.5fr) minmax(190px, 0.9fr);
    gap: 30px;
  }
  .footer-registry a,
  .footer-links a,
  .footer-contacts a {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .15s;
  }
  .footer-registry a:hover,
  .footer-links a:hover,
  .footer-contacts a:hover {
    color: var(--text);
  }
  .footer-contact-action {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--gradient-nav);
    color: var(--surface) !important;
    font-weight: 600;
  }
  .footer-contact-action:hover {
    background: var(--gradient-hover);
    color: var(--surface) !important;
  }
  .footer-copy {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
  }

  /* ── RESPONSIVE ── */
  @media (min-width: 901px) {
    .nav-inner { gap: 16px; }
    .nav-menu { gap: 18px; }
    .nav-links { gap: 13px; }
    .nav-links a { font-size: 12px; white-space: nowrap; }
    .nav-cta { padding-left: 13px; padding-right: 13px; font-size: 12px; }
  }
  @media (max-width: 900px) {
    .nav-inner {
      height: 58px;
      padding: 0 18px;
      gap: 16px;
    }
    .nav-toggle {
      display: flex;
    }
    .nav-menu {
      position: absolute;
      top: calc(100% + 10px);
      left: 18px;
      right: 18px;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
      margin: 0;
      padding: 18px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 0 18px 45px rgba(16, 5, 32, 0.12);
    }
    .nav.is-open .nav-menu {
      display: flex;
    }
    .nav-links {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .nav-links li + li {
      border-top: 1px solid var(--border);
    }
    .nav-links a {
      display: block;
      padding: 12px 0;
      font-size: 15px;
      line-height: 1.35;
    }
    .nav-cta {
      display: flex;
      justify-content: center;
      width: 100%;
      padding: 12px 18px;
      text-align: center;
    }
    .breadcrumb {
      padding: 16px 18px 0;
      overflow-x: auto;
      white-space: nowrap;
      scrollbar-width: none;
    }
    .breadcrumb::-webkit-scrollbar {
      display: none;
    }
    .page {
      grid-template-columns: 1fr;
      padding: 28px 18px 64px;
      gap: 36px;
    }
    .article-title {
      font-size: 32px;
    }
    .sidebar {
      position: static;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: stretch;
    }
    .sidebar .sidebar-card:first-child {
      display: none;
    }
    /* Как в базовом правиле: колонки по числу карточек, но не уже 300px —
       на планшете это даёт максимум две в ряд, а одиночную карточку
       растягивает на всю ширину (жёсткие `1fr 1fr` держали её в половине). */
    .stat-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
    .related-grid { grid-template-columns: 1fr; }
    .footer-top {
      flex-direction: column;
      gap: 28px;
    }
    .footer-brand {
      max-width: none;
    }
    .footer-content {
      width: 100%;
      grid-template-columns: 1fr 1.5fr;
    }
  }
  @media (max-width: 600px) {
    body {
      font-size: 15px;
      line-height: 1.7;
    }
    .nav-inner {
      padding: 0 16px;
    }
    .nav-menu {
      left: 16px;
      right: 16px;
      padding: 16px;
    }
    .breadcrumb {
      padding-left: 16px;
      padding-right: 16px;
      font-size: 12px;
    }
    .page {
      padding: 24px 16px 56px;
      gap: 30px;
    }
    .article-hero {
      margin-bottom: 30px;
    }
    .article-title {
      font-size: 28px;
      line-height: 1.22;
      margin-bottom: 14px;
    }
    .article-lead {
      font-size: 16px;
      line-height: 1.6;
    }
    .article-author {
      align-items: flex-start;
    }
    .author-info {
      min-width: 0;
    }
    .author-date {
      line-height: 1.45;
    }
    .article-cover {
      width: 100%;
      margin: 24px 0 30px;
      aspect-ratio: 1/1;
      border-radius: 10px;
    }
    .article-body figure img { width: 100%; }
    .article-body .operation-doc__figure { padding: 8px; border-radius: 16px; margin-top: 16px; }
    .article-body .operation-doc__figure figcaption { font-size: 12px; margin-top: 8px; }
    .cover-placeholder {
      padding: 18px;
      text-align: center;
      line-height: 1.45;
    }
    .toc,
    .info-box,
    .article-table,
    .materials-form,
    .sidebar-card,
    .sidebar-promo,
    .related-card {
      border-radius: 10px;
    }
    .toc,
    .info-box,
    .article-table-head,
    .related-card {
      padding: 18px;
    }
    .article-body h2 {
      font-size: 21px;
      margin-top: 36px;
    }
    .article-body h3 {
      font-size: 16px;
      margin-top: 28px;
    }
    .article-body blockquote {
      margin: 26px 0;
      padding: 18px;
      font-size: 16px;
    }
    .article-body ul,
    .article-body ol {
      margin-left: 18px;
    }
    .article-table th,
    .article-table td {
      padding: 14px 16px;
      font-size: 13px;
    }
    .stat-row { grid-template-columns: 1fr; }
    .stat-card {
      padding: 18px;
    }
    .cta-block {
      flex-direction: column;
      align-items: flex-start;
      padding: 24px 22px;
    }
    .cta-block-btn {
      width: 100%;
      text-align: center;
    }
    .cta-block .lead-form { max-width: none; }
    .article-share { display: none; }
    .materials-form { padding: 22px 18px; }
    .materials-form-fields { grid-template-columns: 1fr; }
    .materials-form button { width: 100%; }
    .sidebar {
      display: flex;
    }
    footer {
      padding-left: 16px;
      padding-right: 16px;
    }
    .footer-content {
      grid-template-columns: 1fr;
      gap: 22px;
    }
    .footer-brand,
    .footer-registry,
    .footer-links,
    .footer-contacts {
      width: 100%;
    }
    .footer-contact-action {
      width: 100%;
      justify-content: center;
      text-align: center;
    }
  }
  @media (max-width: 420px) {
    .article-title {
      font-size: 26px;
    }
    .article-meta-top {
      gap: 8px;
    }
    .materials-form h3,
    .related h2 {
      font-size: 19px;
    }
  }

  /* ── Модалка «Заказать звонок» (js/callback.js). Порт модалки исходной темы. ── */
  .callback-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 5, 32, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    overflow-y: auto;
  }
  .callback-overlay[hidden] { display: none; }
  .callback-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--surface);
    border-radius: 20px;
    padding: 40px 44px 28px;
    box-shadow: 0 24px 60px rgba(17, 43, 133, 0.22);
  }
  .callback-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    color: var(--cyan-dark);
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s;
  }
  .callback-close:hover { background: var(--purple-soft); }
  .callback-dialog h3 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin: 0 40px 24px 0;
  }
  .callback-field { margin-bottom: 22px; }
  .callback-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
  }
  .callback-field input {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .callback-field input:focus {
    border-color: var(--cyan-dark);
    box-shadow: 0 0 0 3px var(--focus-ring);
  }
  .callback-field input:user-invalid {
    border-color: #d64545;
  }
  .callback-when { margin-bottom: 24px; }
  .callback-when > p {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
  }
  .callback-when-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
  }
  .callback-radios { display: flex; gap: 20px; }
  .callback-radios label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
  }
  .callback-radios input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cyan-dark);
    cursor: pointer;
  }
  .callback-time {
    padding: 9px 34px 9px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M1.33 5.35 2.51 4.17 8 9.65l5.48-5.48 1.18 1.18L8 12.02 1.33 5.35Z' fill='%2313002C'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
  }
  .callback-time:disabled {
    color: var(--text-muted);
    background-color: var(--bg);
    cursor: not-allowed;
    opacity: .7;
  }
  .callback-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .callback-submit {
    padding: 15px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--surface);
    background: var(--gradient-brand);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s;
  }
  .callback-submit:hover { background: var(--gradient-hover); }
  .callback-submit:disabled { opacity: .7; cursor: default; }
  .callback-tel {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
  }
  .callback-tel a { color: var(--cyan-dark); text-decoration: none; font-weight: 600; }
  .callback-tel a:hover { text-decoration: underline; }
  .callback-thank {
    padding: 16px 0 4px;
    font-size: 16px;
    color: var(--text);
  }
  .callback-consent {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
  }
  .callback-consent a { color: var(--cyan-dark); text-decoration: none; }
  .callback-consent a:hover { text-decoration: underline; }

  @media (max-width: 560px) {
    .callback-dialog { padding: 30px 22px 22px; border-radius: 16px; }
    .callback-dialog h3 { font-size: 21px; margin-right: 30px; }
    .callback-when-row { gap: 14px; }
    .callback-actions { gap: 16px; }
    .callback-submit { width: 100%; }
  }

/* landing-shared:start — общий слой продуктовых страниц (спека 2026-07-24) */

:root {
  --brand: var(--cyan-dark);
  --brand-grad: var(--gradient-brand);
  --ink-2: var(--text-secondary);
  --line: #e8e8f3;
  --tint: rgba(48, 50, 216, .075);
  /* Было #f6f6fc — совпадало с общесайтовым --bg, полосы секций были
     неразличимы (дефект 4, второй раз от владельца). Новое значение заметно
     темнее (холодный серо-сиреневый), но остаётся фоном, а не плашкой.
     --surface-alt используется ТОЛЬКО для чередования фона секций
     (.section--alt) — .form-input раньше тоже брал этот токен под светлый
     фон поля ввода, теперь явно взял общесайтовый var(--bg) (тот самый
     прежний светлый тон #f6f6fc), чтобы потемнение полос не затемнило поля
     формы. */
  --surface-alt: #e3e4f2;
}

/* --- база документа (перенесено из инлайновых <style> макетов, Task 4) --- */
/* Второе намеренное исключение из правила скоупинга (после :root): цель здесь —
   корневой элемент <html>, а не потомок .landing, поэтому префикс .landing
   применить нельзя технически (scroll-behavior с body на html не наследуется/
   не пропагируется). Селектор не утекает — совпадает только при body.landing.
   scroll-padding-top: 0 обнуляет общесайтовое правило html — scroll-padding-top:
   78px, рассчитанное на одну липкую панель сайта. На лендинге две липкие
   панели суммарной высотой 106px, а верный отступ уже задан через
   scroll-margin-top: 118px на .section — без обнуления оба значения
   складывались (196px), и под каждой ссылкой навигации якорь останавливался
   с пустотой ~90px. */
html:has(body.landing) { scroll-behavior: smooth; scroll-padding-top: 0; }
/* SVG-спрайт иконок <svg hidden="hidden"> в начале <body>: атрибут hidden
   в этом браузере НЕ переводится в display:none для элементов svg — это
   подтверждено эмпирически (эффект сохраняется даже при полном отключении
   этого файла), в css/style.css НЕТ авторского правила с селектором svg,
   которое могло бы это перебивать (см. отчёт, дефект 1: гипотеза "мешает
   авторское правило" не подтвердилась). Правило ниже — не отмена чужого
   правила, а обязательное явное скрытие спрайта силами автора. */
body.landing svg[hidden] { display: none; }
/* Родовые (безклассовые тег-селекторы) правила ниже намеренно скоуплены на
   main, а не на весь body.landing: nav.nav (общесайтовая шапка) и footer
   лежат вне <main> ровно затем, чтобы теговые правила слоя их не задевали
   (Task: дефект 2, находка "body.landing a перебивает .nav-cta"). Классовые
   правила слоя (.card, .btn и т.п.) уже безопасны — ни nav.nav, ни footer
   не используют эти классы (см. аудит в отчёте), поэтому их менять не нужно. */
body.landing main a { color: var(--brand); text-decoration: none; }
body.landing main a:hover { color: var(--accent-hover); }
body.landing main input::placeholder { color: var(--text-muted); }
body.landing main details summary::-webkit-details-marker { display: none; }

/* --- секции --- */
/* Белый фон обычных секций обязателен: без него .section--alt совпадает
   с общесайтовым --bg (#f6f6fc) и чередование не видно. */
/* Отступ симметричный: раньше низ был 8px (наследие макета без фона секций),
   теперь секции чередуют фон и карточки внизу упирались в границу полосы
   (дефект: зазор под последней карточкой в #sovety уходил в минус). */
body.landing .section { padding: 72px 0; scroll-margin-top: 118px; background: #fff; }
body.landing .section:last-of-type { padding-bottom: 88px; }
body.landing .section--alt { background: var(--surface-alt); }
body.landing .section__head {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 640px; margin-bottom: 28px;
}
body.landing .eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand);
}
body.landing .section__title {
  margin: 0; font-size: 28px; font-weight: 600;
  line-height: 1.25; letter-spacing: -.01em;
}
body.landing .lead { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
body.landing .accent { font-weight: 600; color: var(--brand); }
body.landing .label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }

/* --- сетка карточек --- */
body.landing .card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
/* один ряд, карточки длиннее и уже — убирает пустоту в конце сетки. У неё
   свой сценарий раскладки (всегда одна строка), поэтому явные брейкпоинты
   колонок ниже её намеренно не трогают (:not(.card-grid--wide) везде). */
body.landing .card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Универсальное правило «последняя карточка не остаётся одна в строке».
   Раньше было закрыто только для сеток ровно из семи карточек — постановка
   прямо это ограничивала. Ограничение снято: правило должно работать для
   любой .card-grid и любого числа карточек, включая ещё не добавленные.
   Трудность: у auto-fit число колонок вычисляет браузер, CSS его не знает,
   и написать условие «последняя карточка — единственная в ряду» в общем виде
   нельзя. Решение — закрепить число колонок явно по брейкпоинтам (ниже), и
   тогда для каждого N карточка одна в ряду ровно когда остаток от деления её
   порядкового номера на N равен 1 — это выражается через :nth-child(An+1). */
/* 2 колонки — ТОЛЬКО в диапазоне 640…1023px. Верхняя граница обязательна:
   без неё правило растяжения нечётной последней карточки (2n+1) протекает в
   3-колоночную раскладку и, будучи специфичнее сброса, ломает сетки из 3 и 5
   карточек (3 → 2+растянутая вместо ровного ряда; 5 → 3+сирота+растянутая). */
@media (min-width: 640px) and (max-width: 1023.98px) {
  body.landing main .card-grid:not(.card-grid--wide) { grid-template-columns: repeat(2, 1fr); }
  /* при 2 колонках последняя карточка одна, если её номер нечётный (2n+1) — растягиваем на всю строку */
  body.landing main .card-grid:not(.card-grid--wide) > :last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
  }
  /* растянутая карточка не должна давать нечитаемо длинную строку текста */
  body.landing main .card-grid:not(.card-grid--wide) > :last-child:nth-child(2n+1) .card__text {
    max-width: 60ch;
  }
}
@media (min-width: 1024px) {
  /* 3 колонки от 1024px — общий случай. У сеток ровно из семи карточек —
     своё правило ниже (4 колонки, сохранено из прошлой правки). */
  body.landing main .card-grid:not(.card-grid--wide) { grid-template-columns: repeat(3, 1fr); }
  /* при 3 колонках последняя карточка одна, если остаток от деления её номера на 3 равен 1 (3n+1) */
  body.landing main .card-grid:not(.card-grid--wide) > :last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
  }
  body.landing main .card-grid:not(.card-grid--wide) > :last-child:nth-child(3n+1) .card__text {
    max-width: 60ch;
  }
}

/* Сетки ровно с семью прямыми карточками (7 = 4+3 при 4 колонках, вместо
   3+3+1 с растянутой третьей строкой по общему правилу выше) — особый
   случай, введённый в прошлой правке, сохранён как есть. Считаем по
   количеству потомков через :has(), без класса в разметке, чтобы правило
   само подхватило любую будущую сетку из семи карточек. Специфичность этого
   селектора (:has()+:not()) выше общего 3-колоночного правила, поэтому он
   переопределяет его безопасно — общее правило по-прежнему отвечает за
   сетки с любым другим числом карточек. Правило стоит ПОСЛЕ общего в файле:
   у сброса grid-column здесь и у растяжения в общем правиле для сеток ровно
   из 7 карточек специфичность совпадает (:has()/:not() считаются как один
   класс каждый) — при равной специфичности побеждает более позднее правило
   в каскаде, поэтому порядок в файле важен и должен остаться таким. */
@media (min-width: 1024px) {
  body.landing main .card-grid:has(> :nth-child(7)):not(:has(> :nth-child(8))) {
    grid-template-columns: repeat(4, 1fr);
  }
  body.landing main .card-grid:has(> :nth-child(7)):not(:has(> :nth-child(8))) > :last-child {
    grid-column: auto;
  }
}

/* --- карточка --- */
body.landing .card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
body.landing .card--media { padding: 18px; gap: 14px; }
body.landing .card__icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
/* Оформление иконок задаётся здесь, а не внутри спрайта: свойства
   наследуемые, поэтому доходят до содержимого <use> через границу
   теневого дерева, тогда как селектор по тегу через неё не проходит. */
body.landing .card__icon svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
/* цвет явный: карточка кейса — это <a class="card">, и без переопределения
   body.landing a перебивает заголовок фирменным синим (Task 9, находка 6
   финального ревью); .card__text уже переопределяет свой цвет отдельно */
body.landing .card__title { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--text); }
body.landing .card__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
body.landing .card__media { overflow: hidden; border-radius: 8px; }
body.landing .card__media img { width: 100%; height: auto; display: block; }
/* узкая модификация под аватар отзыва — круглая обрезка вместо полноширинного кадра */
body.landing .card__media--round { width: 56px; height: 56px; border-radius: 50%; flex: none; }
body.landing .card__media--round img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* --- кнопки --- */
body.landing .btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; text-decoration: none;
}
body.landing .btn--primary { background: var(--brand-grad); color: #fff; }
body.landing .btn--primary:hover { opacity: .9; color: #fff; }
/* светлая кнопка — для тёмного первого экрана */
body.landing .btn--light { background: #fff; color: #100520; }
body.landing .btn--light:hover { opacity: .92; color: #100520; }
/* модификаторы размера/веса кнопки под конкретные места (Task 4) */
body.landing .btn--submit { height: 48px; }
/* .btn--sm (компактная кнопка макетной шапки, Task 7) удалён как мёртвый
   CSS вместе с .site-nav — страница вернула общесайтовую nav.nav */

/* --- состояния наведения (заменяют автогенерённые .dchN из макета) --- */
/* .chip — базовый вид задан здесь же (Task 2 описал только :hover) */
body.landing .chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border-radius: 999px; background: var(--tint);
  color: var(--brand); font-size: 13.5px; font-weight: 500;
}
body.landing .link-brand:hover { color: var(--brand); }
body.landing .chip:hover { background: rgba(48, 50, 216, .14); color: var(--brand); }

/* --- появление при скролле --- */
body.landing .reveal { opacity: 0; transform: translateY(14px); }
body.landing .reveal--on { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  body.landing .reveal { opacity: 1; transform: none; }
  body.landing .reveal--on { transition: none; }
}

/* --- точечные классы страницы «Речевая аналитика» (Task 4, порт вёрстки) --- */

/* шапка / навигация */
body.landing .scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--brand-grad); z-index: 120; }
/* .site-nav / .brand / .nav-phone (макетная шапка) удалены как мёртвый CSS:
   страница вернула общесайтовую nav.nav (правка "вернуть общесайтовую
   шапку") — её стили уже есть в общей, не-лендинговой части файла. */
body.landing .page-nav { position: sticky; top: 60px; z-index: 90; background: var(--surface-translucent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); overflow-x: auto; }
body.landing .page-nav__inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; gap: 22px; height: 46px; align-items: center; white-space: nowrap; }
body.landing .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
/* .crumbs — прямой потомок <main>, у которого больше нет class="container"
   (Task: секции во всю ширину). Крошки не участвуют в чередовании фонов
   секций, поэтому колонку получают не через обёртку .container, а через
   собственные max-width/margin/padding — без вложенного div и без
   конфликта паддинг-шортхендов между .container и .crumbs. */
body.landing .crumbs { display: flex; align-items: center; gap: 8px; max-width: 1100px; margin: 0 auto; padding: 22px 24px 14px; font-size: 13px; }
body.landing .crumbs__muted { color: var(--text-muted); }
body.landing .crumbs__current { color: var(--ink-2); font-weight: 500; }

/* герой */
body.landing .hero { margin-top: 32px; margin-bottom: 44px; }
/* Минимум колонки обёрнут в min() чтобы он не превышал доступную ширину контейнера
   и колонка сжимались на узких экранах вместо того, чтобы выпирать за границу.
   На широких экранах min(320px, 100%) = 320px (обычное поведение). */
body.landing .hero__panel { background: var(--brand-grad); border-radius: 12px; padding: clamp(24px, 5vw, 54px); min-height: 430px; color: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 44px; align-items: center; }
body.landing .hero__content { display: flex; flex-direction: column; gap: 20px; }
body.landing .hero__kicker { align-self: flex-start; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); font-size: 13px; font-weight: 500; }
body.landing .hero__title { margin: 0; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; }
body.landing .hero__lead { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 52ch; }
body.landing .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.landing .hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
body.landing .hero__badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 500; }
body.landing .hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 20px; }
body.landing .stat { display: flex; flex-direction: column; gap: 4px; max-width: 200px; }
body.landing .stat__value { font-size: 26px; font-weight: 600; }
body.landing .stat__label { font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* карточка-демо в герое */
body.landing .demo-card { background: #fff; border-radius: 12px; padding: 24px; color: var(--text); box-shadow: 0 24px 60px rgba(16, 5, 32, .28); display: flex; flex-direction: column; gap: 16px; max-width: 460px; justify-self: center; width: 100%; }
body.landing .demo-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.landing .demo-card__title-group { display: flex; flex-direction: column; gap: 2px; }
body.landing .demo-card__title { font-size: 15px; font-weight: 600; }
body.landing .demo-card__caption { font-size: 12px; color: var(--text-muted); }
body.landing .demo-card__status { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--tint); color: var(--brand); font-size: 12.5px; font-weight: 600; }
body.landing .demo-card__rows { display: flex; flex-direction: column; gap: 10px; }
body.landing .demo-row { display: flex; gap: 10px; align-items: center; }
body.landing .demo-row--reverse { display: flex; gap: 10px; align-items: center; flex-direction: row-reverse; }
body.landing .demo-avatar { width: 26px; height: 26px; border-radius: 50%; flex: none; }
body.landing .demo-avatar--tint { background: var(--tint); }
body.landing .demo-avatar--muted { background: var(--line); }
body.landing .demo-bar { height: 10px; border-radius: 999px; }
body.landing .demo-bar--muted { background: var(--line); }
body.landing .demo-bar--active { background: rgba(48, 50, 216, .14); }
body.landing .demo-score { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
body.landing .demo-score__value { font-size: 32px; font-weight: 600; color: var(--brand); line-height: 1; }
body.landing .demo-score__meter { display: flex; flex-direction: column; gap: 6px; flex: 1; }
body.landing .demo-score__label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
body.landing .meter { height: 6px; border-radius: 999px; background: var(--line); display: block; position: relative; overflow: hidden; }
body.landing .meter__fill { position: absolute; inset: 0; background: var(--brand-grad); border-radius: 999px; }
body.landing .tip { background: var(--tint); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
body.landing .tip__title { font-size: 13.5px; font-weight: 600; color: var(--brand); }
body.landing .tip__text { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
body.landing .accent--dark { color: var(--text); }
/* слот под иллюстрацию (айсберг) — пуст до появления файла у Антона (Task 9) */
body.landing .hero__art { min-height: 220px; display: flex; align-items: center; justify-content: center; }
body.landing .hero__art:empty { display: none; }
/* hero-визуал (иллюстрация / демо-карточка) не нужен, когда панель одноколоночная (моб.): панель стекается ≤~840px */
@media (max-width: 820px) {
  body.landing .hero__panel .hero__art,
  body.landing .hero__panel .demo-card { display: none; }
}

/* секции: двухколоночный медиа+текст блок, вступление, изображение-рамка */
body.landing .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
body.landing .split__text { display: flex; flex-direction: column; gap: 16px; }
body.landing .split__text--order { order: 1; }
body.landing .section__intro { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
body.landing .media-frame { overflow: hidden; margin: 0; border-radius: 12px; }
body.landing .media-frame img { width: 100%; height: auto; border-radius: 12px; display: block; }
body.landing .media-frame--phone { order: 0; }
body.landing .media-frame--phone img { max-width: 100%; max-height: 560px; width: auto; height: auto; margin: 0 auto; border-radius: 12px; display: block; }

/* карточки шагов «Как работает» */
body.landing .card__body { display: flex; flex-direction: column; gap: 8px; }
body.landing .card__step { font-size: 13px; font-weight: 600; color: var(--brand); }

/* сетки карточек — модификаторы под конкретные отступы макета */
body.landing .card-grid--md { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
body.landing .card-grid--gap18 { gap: 18px; }

/* общие подзаголовки h3 внутри секций */
body.landing .subhead { margin: 0; font-size: 19px; font-weight: 600; }
body.landing .subhead--top { margin: 8px 0 0; }

/* FAQ */
body.landing .faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
body.landing .faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
body.landing .faq-item__q { cursor: pointer; font-size: 15.5px; font-weight: 600; list-style: none; }
body.landing .faq-item__a { margin: 12px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
body.landing .faq-topics { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
body.landing .faq-topics__list { display: flex; flex-wrap: wrap; gap: 10px; }

/* блок «Стоимость» и форма заявки */
/* Минимум колонки обёрнут в min() для адаптивности на узких экранах. */
body.landing .price-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 4vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 44px; }
body.landing .price-panel__info { display: flex; flex-direction: column; gap: 18px; }
body.landing .price-panel__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
/* блоки SaaS и «Индивидуальная стоимость» — под формой, на всю ширину секции (Task 9).
   Раньше .price-panel__extra был grid-элементом внутри .price-panel (grid-column: 1/-1)
   и наследовал её padding/border — левый край съезжал на 41px правее section__head
   (дефект 3). Теперь это отдельный блок на уровне .container, поэтому grid-column
   больше не нужен, а gap с панелью сверху задаём явным отступом. */
body.landing .price-panel__extra { display: flex; flex-direction: column; gap: 18px; margin-top: 44px; }
body.landing .price-note { background: var(--tint); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
body.landing .price-note__title { font-size: 15px; font-weight: 600; color: var(--brand); }
body.landing .price-note__text { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
body.landing .contact-tel { font-size: 17px; font-weight: 600; color: var(--text); }
body.landing .contact-email { font-size: 15px; font-weight: 500; color: var(--brand); }
body.landing .lead-form { display: flex; flex-direction: column; gap: 16px; }
body.landing .lead-form__field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
body.landing .form-input { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 14.5px; font-family: inherit; color: var(--text); background: var(--bg); outline-color: var(--brand); }
body.landing .lead-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-muted); cursor: pointer; }
body.landing .lead-form__consent input { margin-top: 2px; accent-color: var(--brand); }
body.landing .form-success { background: var(--tint); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
/* живой регион присутствует в DOM с загрузки страницы (role="status" без hidden),
   пока пуст — визуально свёрнут без display:none/visibility:hidden, чтобы остаться
   в дереве доступности; текст подставляется скриптом при отправке формы */
body.landing .form-success:empty { padding: 0; margin: 0; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; background: none; }
body.landing .form-success__title { font-size: 16px; font-weight: 600; color: var(--brand); }

/* утилиты ширины для декоративных полосок-скелетонов в демо-карточке */
body.landing .w-44 { width: 44%; }
body.landing .w-58 { width: 58%; }
body.landing .w-64 { width: 64%; }
body.landing .w-72 { width: 72%; }
body.landing .w-92 { width: 92%; }

/* подвал: точечное правило переноса из инлайновых <style> сестринских страниц
   (ai-agents.html, ii-agenty.html, ii-agenty_2.html, ii.html) — на rechevaya-
   analitika.html оно уехало вместе с удалённым инлайновым <style> и не попало
   в общий слой (находка 7 финального ревью) */
body.landing .footer-nav-copy .nav-links { flex-wrap: wrap; }

/* фокус для интерактивных элементов: у .btn/.chip/ссылок-карточек поверх
   градиента и цветных плашек браузерный дефолт часто нечитаем (находка 9
   финального ревью). Двойное кольцо — белый outline с отступом плюс
   цветной box-shadow снаружи — контрастно и на светлом, и на тёмном фоне;
   box-shadow/outline сами повторяют border-radius элемента. */
body.landing main a:focus-visible,
body.landing main button:focus-visible,
body.landing .btn:focus-visible,
body.landing .chip:focus-visible,
body.landing main input:focus-visible,
body.landing main summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--brand);
}

/* site-lead:start — единый блок заявки продуктовых страниц.
   Перенесён из инлайновых <style> ai-agents / audio-badges / trainer / ii-sufler
   (2026-07-29). Правится ЗДЕСЬ для всех страниц сразу. Без скоупа: неймспейс
   .site-lead* уникален и используется как на body.landing, так и на голом body. */
.site-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.site-lead-copy h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; color: var(--text); }
.site-lead-sub { margin: 16px 0 0; color: var(--text-secondary); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; max-width: 46ch; }
.site-lead-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 15px; }
.site-lead-trust a { color: #2428EB; text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.site-lead-trust a:hover { color: #6a2de0; }
.site-lead-form { display: block; background: var(--stripe); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.site-lead-field { margin-bottom: 16px; }
.site-lead-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.site-lead-form input[type=text], .site-lead-form input[type=tel] { width: 100%; padding: 14px 16px; border-radius: 11px; border: 1px solid var(--border); background: #fff; color: var(--text); font: inherit; font-size: 16px; }
.site-lead-form input:focus { outline: 2px solid #2428EB; outline-offset: 1px; }
.site-lead-form input::placeholder { color: #9691a3; opacity: 1; }
.site-lead-consent { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.site-lead-consent input { margin-top: 3px; accent-color: #2428EB; flex: none; }
.site-lead-consent a { color: #2428EB; }
.site-lead-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#2428EB 0%,#9580ED 100%); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .15s, transform .15s; }
.site-lead-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.site-lead-note { margin-top: 14px; color: var(--text-secondary); font-size: 13px; text-align: center; min-height: 1px; }
@media (max-width: 760px) { .site-lead { grid-template-columns: 1fr; gap: 32px; } }
/* site-lead:end */

/* landing-shared:end */


/* Блок «Другие продукты» — унифицированный кросс-продуктовый блок (light) */
.other-products{padding:72px 0;background:#ffffff}
.other-products .op-wrap{width:min(1100px,calc(100% - 48px));margin:0 auto}
.other-products .op-head{margin-bottom:30px}
.other-products .op-eyebrow{display:block;color:#2428EB;font-size:12px;font-weight:600;letter-spacing:.9px;text-transform:uppercase;margin-bottom:10px}
.other-products .op-head h2{margin:0;color:#100520;font-size:clamp(28px,4vw,42px);font-weight:600;letter-spacing:-.03em}
.other-products .op-head h2 b{color:#2428EB;font-weight:600}
.other-products .op-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.other-products .op-card{display:flex;flex-direction:column;gap:9px;padding:22px;border:1px solid #e8e8f3;border-radius:16px;background:#fff;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.other-products .op-card:hover{border-color:#2428EB;box-shadow:0 12px 30px rgba(36,40,235,.12);transform:translateY(-3px)}
.other-products .op-label{color:#8e879b;font-size:12.5px;line-height:1.4}
.other-products .op-card h3{margin:2px 0 0;color:#100520;font-size:18px;font-weight:600}
.other-products .op-card p{margin:0;color:#5a5570;font-size:13.5px;line-height:1.6;flex:1}
.other-products .op-more{color:#2428EB;font-weight:600;font-size:14px;margin-top:2px}
@media(max-width:960px){.other-products .op-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.other-products .op-grid{grid-template-columns:1fr}}


/* Задача 1: эталон-форма заявки на продуктовых страницах (light, self-contained) */
.cta-zayavka{padding:72px 0;background:linear-gradient(135deg,#2428EB 0%,#9580ED 100%);color:#fff;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);overflow-x:clip}
.cta-zayavka .wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.cta-zayavka .cta-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center}
.cta-zayavka h2{margin:0 0 14px;color:#fff !important;font-size:clamp(26px,3vw,40px);font-weight:800;letter-spacing:-.02em;line-height:1.12}
.cta-zayavka .lead{margin:0 0 20px;color:rgba(255,255,255,.85) !important;font-size:17px;line-height:1.6;max-width:52ch}
.cta-zayavka .trust{display:flex;gap:24px;flex-wrap:wrap}
.cta-zayavka .trust a{color:#fff !important;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.cta-zayavka .lead-form{background:transparent;border:0;padding:0;box-shadow:none;display:flex;flex-direction:column;gap:14px}
.cta-zayavka .field-row{display:flex;flex-direction:column;gap:6px}
.cta-zayavka .field-row label{font-size:13px;color:rgba(255,255,255,.9) !important;font-weight:600}
.cta-zayavka .lead-form input[type="tel"]{height:52px;border:1px solid rgba(255,255,255,.4);border-radius:12px;padding:0 16px;font:inherit;font-size:16px;background:#fff}
.cta-zayavka .lead-form input[type="tel"]:focus{outline:none;border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.25)}
.cta-zayavka .consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:rgba(255,255,255,.9) !important;line-height:1.4}
.cta-zayavka .consent a{color:#fff !important;text-decoration:underline}
.cta-zayavka .btn-cta{height:52px;border:0;border-radius:12px;background:#fff !important;color:#2428EB !important;font:inherit;font-weight:700;font-size:16px;cursor:pointer;transition:transform .15s,background .15s}
.cta-zayavka .btn-cta:hover{transform:translateY(-1px);background:#eef0ff}
.cta-zayavka .form-note{margin:0;font-size:13px;color:#fff !important}
@media(max-width:820px){.cta-zayavka .cta-grid{grid-template-columns:1fr;gap:26px}}
