/* Публичные страницы демо-стенда. Шрифт Inter Tight лежит рядом (лицензия OFL),
   чтобы страницы не зависели от внешних серверов шрифтов.
   Правила макета: бенто-стиль, много воздуха, скругления 32–40 px у кнопок,
   плашек и карточек и 40–56 px у акцентных блоков на контрастном фоне.
   Отступы кратны шагу 24 px: связанные тексты — шаг, текст и действие — два шага,
   смысловые части блока — четыре; между блоками страницы — `--gap`. */
@font-face {
    font-family: 'Inter Tight';
    src: url('fonts/inter-tight-cyrillic.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter Tight';
    src: url('fonts/inter-tight-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --accent: #5682ff;
    --accent-strong: #3066ff;
    --accent-deep: #1a56ff;
    --accent-soft: #dfdafa;
    --navy: #001140;
    --text: #1f2224;
    --text-2: #2f3133;
    --muted: #53575a;
    --bg: #ffffff;
    --bg-alt: #f4f6f7;
    --border: #e6e9eb;
    --ok: #2e7d32;
    --warn: #c56a00;
    --radius: 32px;
    --radius-panel: 48px;
    --gap: 180px;
    /* высота шапки: обложка главной занимает экран за её вычетом; точное значение ставит скрипт в base.html */
    --header-h: 80px;
    --shadow-hover: 0 0 1px rgba(47, 49, 51, .12), 0 8px 16px 8px rgba(47, 49, 51, .04);
    --gradient: radial-gradient(circle at 88% 12%, rgba(223, 218, 250, .9) 0%, rgba(223, 218, 250, 0) 46%), linear-gradient(120deg, var(--accent-strong) 0%, var(--accent) 50%, var(--accent-deep) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.3;
    color: var(--text);
    background: var(--bg);
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 32px; }
[id] { scroll-margin-top: 96px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: var(--gradient); color: #fff; font-size: 18px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-right: auto; }
.nav a { padding: 10px 18px; border-radius: 32px; color: var(--text); font-size: 17px; font-weight: 400; }
.nav a:hover { background: var(--bg-alt); text-decoration: none; }
.nav a.active { background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { margin-right: 12px; color: var(--text); font-weight: 600; white-space: nowrap; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 32px; border: 0; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 18px 36px; font-size: 19px; border-radius: 40px; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: none; color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); }
.btn-dim { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-dim:hover { background: rgba(255, 255, 255, .22); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #0a2470; }

/* Обложка: фон от края до края окна, высота — экран за вычетом шапки (svh — чтобы на телефоне
   не прыгала вместе с адресной строкой). Тексты прижаты к верху, карточки — к низу.
   Отступы 24 / 48 / 96: заголовок и описание — одно целое, кнопка дальше, карточки ещё дальше. */
.cover { display: flex; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: 64px 0; border-radius: 0 0 56px 56px; background: var(--gradient); color: #fff; }
.cover-inner { display: flex; flex-direction: column; }
.cover h1 { max-width: 15em; }
.cover-lead { margin-top: 24px; max-width: 34em; opacity: .95; }
.cover-lead, .cover-benefits li { font-size: 20px; font-weight: 400; line-height: 1.3; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.cover-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: auto; padding-top: 96px; }
.cover-benefits li { display: flex; flex-direction: column; gap: 24px; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .18); backdrop-filter: blur(12px); }
.cover-benefits i { font-size: 32px; }

/* Разделы */
.section { padding: var(--gap) 0; }
.section-tight { padding-top: 0; }
.section-title { text-align: center; max-width: 18em; margin: 0 auto; }
.section-title-left { text-align: left; margin: 0; }
.section-lead { max-width: 36em; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 20px; }
.panel { padding: 96px 64px; border-radius: var(--radius-panel); background: var(--bg-alt); }
.panel-dark { background: var(--navy); color: #fff; }
.panel-accent { background: var(--gradient); color: #fff; }
.panel-dark .section-lead { color: rgba(255, 255, 255, .72); }
.panel-action { margin-top: 48px; text-align: center; }
/* блок, который должен целиком помещаться в экран Full HD под шапкой (тарифы): поля меньше, описание в одну строку */
.panel-compact { padding-top: 64px; padding-bottom: 64px; }
.panel-compact .section-lead { max-width: none; }

/* Метрики: плитки разной высоты, выровненные по нижнему краю; первые две нейтральные, акцент — на третьей */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin-top: 48px; }
.metric { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 300px; padding: 36px 40px; border-radius: 40px; background: var(--bg-alt); color: var(--navy); }
.metric:nth-child(2) { min-height: 360px; }
.metric:nth-child(3) { min-height: 420px; background: var(--navy); color: #fff; }
.metric b { font-size: clamp(52px, 6.4vw, 92px); line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.metric span { max-width: 14em; font-size: 20px; }

/* Карточки */
.card-grid { display: grid; gap: 16px; margin-top: 48px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; }
.panel .card { background: #fff; }
.card-grid .card { transition: box-shadow .2s; }
.card-grid .card:hover { box-shadow: var(--shadow-hover); }
.card h3 { margin-top: 24px; }
.card p { margin-top: 12px; color: var(--muted); }
.icon { flex: none; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--bg-alt); color: var(--accent-strong); font-size: 30px; }
/* на сером фоне (карточка вне панели, строка услуги) серая плашка слилась бы с ним */
.card .icon, .service-list .icon { background: #fff; }
.panel .card .icon { background: var(--bg-alt); }
.bullet-list li { position: relative; padding-left: 20px; margin-top: 12px; }
.bullet-list li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Интеграции: плашки в одну строку бегут справа налево и уходят за края окна.
   Лента — четыре одинаковых списка, сдвиг на четверть ширины возвращает её в исходный вид. */
.marquee { margin-top: 48px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-25%); } }
.chips { flex: none; display: flex; gap: 12px; padding-right: 12px; }
.chips li { white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; padding: 20px 30px; border-radius: var(--radius); background: var(--bg-alt); font-size: 19px; font-weight: 600; color: var(--text-2); }
.chips i { font-size: 24px; color: var(--accent-strong); }

/* Тарифы. Строки карточек (название, цена, подпись, описание, кнопка, состав) — общие для всех трёх
   через subgrid: части стоят на одной высоте без запаса под самый длинный текст, блок не раздувается */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 40px; }
.plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; padding: 28px 32px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); }
.plan-featured { border-color: var(--accent); background: linear-gradient(160deg, rgba(86, 130, 255, .38), rgba(86, 130, 255, .1)); }
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 20px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.plan-price { margin-top: 12px; font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.plan-unit { margin-top: 8px; color: rgba(255, 255, 255, .72); font-size: 17px; }
.plan .btn { margin-top: 20px; align-self: start; }
.plan .bullet-list { margin-top: 8px; color: rgba(255, 255, 255, .88); }
.plan .bullet-list li { margin-top: 8px; }
.plan-disclaimer { margin-top: 24px; color: rgba(255, 255, 255, .56); font-size: 15px; text-align: center; }

/* Дополнительные услуги: вытянутые карточки списком. Цена лежит в одной сетке с названием
   и описанием и выровнена по базовой линии названия: сколько бы строк ни заняло описание,
   она остаётся в строке заголовка. Набрана так же, как заголовок */
.service-list { display: grid; gap: 12px; margin-top: 48px; }
.service-list li { display: flex; align-items: center; gap: 28px; padding: 28px 40px 28px 28px; border-radius: var(--radius); background: var(--bg-alt); }
.service-text { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 28px; align-items: baseline; }
.service-text p { grid-column: 1; margin-top: 8px; color: var(--muted); }
.service-price { font-size: 22px; line-height: 1.25; font-weight: 600; white-space: nowrap; }

/* Сравнение: колонка продукта — тёмная плашка поверх таблицы */
.compare-wrap { margin-top: 48px; padding: 24px 24px 24px 40px; border-radius: 40px; background: var(--bg-alt); overflow-x: auto; }
.compare { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { padding: 22px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 22px; font-weight: 600; }
.compare tbody th { width: 22%; padding-left: 0; font-weight: 600; }
.compare thead td { padding-left: 0; }
.compare td { color: var(--muted); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .compare-own { width: 30%; padding-left: 32px; padding-right: 32px; background: var(--navy); color: #fff; border-bottom-color: rgba(255, 255, 255, .14); }
.compare thead .compare-own { border-radius: var(--radius) var(--radius) 0 0; padding-top: 30px; }
.compare tbody tr:last-child .compare-own { border-radius: 0 0 var(--radius) var(--radius); padding-bottom: 30px; }

/* Контакты и форма заявки */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding: 64px; }
.contact-list li { display: flex; gap: 16px; align-items: baseline; margin-top: 24px; font-size: 20px; }
.contact-list i { flex: none; width: 24px; text-align: center; color: var(--accent-strong); }
.contact .contact-list { margin-top: 48px; }
.contact .contact-list i, .contact .contact-list a, .contact-about { color: #fff; }
.contact-about { display: inline-flex; align-items: center; gap: 10px; margin-top: 48px; font-weight: 600; }
.contact-form { display: grid; gap: 12px; padding: 32px; border-radius: 40px; background: #fff; color: var(--text); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-form label > span { display: block; margin: 0 0 6px 20px; color: var(--muted); font-size: 15px; }
.contact-form input[type=text], .contact-form input[type=tel], .contact-form textarea { display: block; width: 100%; padding: 16px 20px; border: 2px solid transparent; border-radius: 24px; background: var(--bg-alt); font: inherit; color: inherit; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.contact-form .form-consent { display: flex; gap: 12px; align-items: flex-start; margin: 8px 4px; color: var(--muted); font-size: 15px; }
.contact-form .form-consent span { margin: 0; }
.form-consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent-strong); }

/* Подвал */
.site-footer { margin: var(--gap) 0 16px; padding: 64px; border-radius: var(--radius-panel); background: var(--text); color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.brand-footer { color: #fff; }
.footer-about p { margin-top: 16px; max-width: 16em; color: rgba(255, 255, 255, .64); }
.footer-list li { margin-bottom: 14px; }
.footer-list a { color: #fff; }
.footer-details { color: rgba(255, 255, 255, .64); font-size: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 96px; color: rgba(255, 255, 255, .64); font-size: 16px; }
.to-top { display: inline-flex; align-items: center; gap: 16px; padding: 8px 8px 8px 28px; border-radius: 40px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 500; }
.to-top:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.to-top-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--text); font-size: 15px; }

/* Внутренние страницы */
.page-head { padding: 64px 0 0; }
.lead { margin-top: 24px; max-width: 36em; font-size: 22px; color: var(--muted); }
.page-head + .section { padding-top: 48px; padding-bottom: 0; }

/* О компании */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.about-grid h2 { font-size: 32px; }
.prose p { margin-top: 16px; font-size: 20px; color: var(--text-2); }
.prose p:first-child { margin-top: 0; }
.details { width: 100%; margin-top: 20px; border-collapse: collapse; }
.details th, .details td { padding: 14px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.details th { width: 40%; padding-right: 16px; color: var(--muted); font-weight: 500; }
.block-title { margin-top: 56px; }
.block-action { margin-top: 32px; }
.okved-kind { margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.okved-list { margin-top: 4px; }
.okved-list li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.okved-code { flex: none; min-width: 92px; padding: 5px 14px; border-radius: 32px; background: var(--accent-soft); color: var(--navy); font-weight: 600; text-align: center; }

/* Документация */
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
a.card { display: block; color: inherit; transition: background .15s; }
a.card:hover { text-decoration: none; background: var(--accent-soft); }
/* Над карточками — описание функциональных характеристик, под ними — файлы для скачивания.
   Заголовок и текст — 24 px, части блока — 96 px (шаг 24). */
.doc-features { max-width: 860px; margin-bottom: 96px; }
.doc-features h2 { font-size: clamp(26px, 3vw, 36px); }
.doc-features p { margin-top: 24px; font-size: 20px; color: var(--text-2); }
.doc-downloads-title { margin-top: 96px; font-size: clamp(26px, 3vw, 36px); }
.doc-downloads { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.doc-downloads a { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: 32px; background: var(--bg-alt); color: var(--text); font-weight: 600; }
.doc-downloads a:hover { text-decoration: none; background: var(--accent-soft); }
.doc-downloads i { color: var(--accent-strong); font-size: 22px; }
.doc-downloads .muted { font-weight: 400; white-space: nowrap; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 40px; }
.doc-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; font-size: 16px; }
.doc-toc-title { margin-bottom: 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc-toc ul ul { margin: 4px 0 6px 14px; }
.doc-toc li { margin-top: 8px; }
.doc-toc a { color: var(--text); }
.doc-toc ul ul a { color: var(--muted); }
.doc-toc a:hover { color: var(--accent-strong); text-decoration: none; }
.doc-body { min-width: 0; max-width: 860px; line-height: 1.5; }
.doc-body h1 { margin-bottom: 20px; font-size: clamp(30px, 3.6vw, 44px); }
.doc-body h2 { margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--border); font-size: 30px; }
.doc-body h3 { margin: 32px 0 10px; font-size: 22px; }
.doc-body p { margin: 12px 0; }
.doc-body ul, .doc-body ol { margin: 12px 0; padding-left: 24px; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li { margin-top: 6px; }
.doc-body img { display: block; max-width: 100%; height: auto; margin: 20px 0 8px; border: 1px solid var(--border); border-radius: 24px; }
.doc-body table { display: block; width: 100%; margin: 16px 0; border-collapse: collapse; overflow-x: auto; font-size: 16px; }
.doc-body th, .doc-body td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc-body th { background: var(--bg-alt); font-weight: 600; white-space: nowrap; }
.doc-body code { padding: 2px 6px; border-radius: 8px; background: var(--bg-alt); font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .88em; }
.doc-body pre { margin: 16px 0; padding: 20px 24px; border-radius: 24px; background: var(--text); color: #e6edf3; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.doc-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

@media (max-width: 1080px) {
    :root { --gap: 120px; }
    .panel, .site-footer { padding: 56px 40px; }
    .cover { padding: 48px 0; border-radius: 0 0 48px 48px; }
    .cover-benefits, .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-grid, .contact, .about-grid { grid-template-columns: 1fr; }
    /* карточки тарифов друг под другом: общие строки не нужны */
    .plan { display: flex; flex-direction: column; }
    .plan .btn { align-self: stretch; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc-layout { grid-template-columns: 1fr; gap: 24px; }
    .doc-toc { position: static; max-height: none; padding: 24px 28px; border-radius: var(--radius); background: var(--bg-alt); }
    .header-phone { display: none; }
}
@media (max-width: 720px) {
    body { font-size: 17px; }
    .container { padding: 0 12px; }
    :root { --gap: 80px; --header-h: 94px; }
    .section-tight { padding-top: 0; }
    .panel, .site-footer { padding: 40px 20px; border-radius: 40px; }
    .cover { padding: 32px 0 12px; border-radius: 0 0 40px 40px; }
    .section-lead, .lead { font-size: 19px; }
    .cover-lead, .cover-benefits li { font-size: 17px; }
    .cover-lead { margin-top: 16px; }
    .cover-actions { margin-top: 32px; }
    .cover-benefits { gap: 8px; padding-top: 64px; }
    .cover-benefits li { gap: 16px; padding: 20px; }
    .metrics, .card-grid-3, .doc-cards, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .metric, .metric:nth-child(2), .metric:nth-child(3) { min-height: 0; padding: 28px; }
    .card-grid, .metrics, .plan-grid, .compare-wrap, .service-list, .panel-action { margin-top: 32px; }
    .card, .plan { padding: 24px; }
    .service-list li { align-items: flex-start; gap: 20px; padding: 24px; }
    /* на узком экране цена не помещается рядом с названием и уходит под описание */
    .service-text { grid-template-columns: 1fr; }
    .service-price { order: 1; margin-top: 12px; }
    .compare-wrap { padding: 12px 12px 12px 20px; border-radius: var(--radius); }
    .contact-form { padding: 20px; border-radius: var(--radius); }
    .header-row { gap: 10px 16px; }
    .header-actions { margin-left: auto; }
    .header-actions .btn-ghost { display: none; }
    /* на самых узких экранах четыре пункта не помещаются: меню листается вбок, а не растягивает страницу */
    .nav { order: 3; width: 100%; margin-right: 0; flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { padding: 8px 7px; font-size: 15px; white-space: nowrap; }
    .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card-grid .card { transition: none; }
    /* без движения — обычный ряд плашек с переносом, повторы скрыты */
    .marquee { -webkit-mask-image: none; mask-image: none; padding: 0 16px; }
    .marquee-track { width: auto; animation: none; }
    .chips { flex: 1; flex-wrap: wrap; justify-content: center; padding-right: 0; }
    .chips[aria-hidden] { display: none; }
}
