/* Газпортал v2 — стили публичного каталога.
   Палитра: сталь, графит, сигнальный жёлтый газопровода (ГОСТ 14202), чернила штампа.
   Шрифт: Golos Text. Сборка не нужна — файл подключается напрямую. */

:root {
    color-scheme: light;
    --steel: #eceff1;        /* фон страницы */
    --sheet: #ffffff;        /* лист */
    --ink: #1b2830;          /* основной текст, рамки шильдика */
    --graphite: #55656f;     /* второстепенный текст */
    --rule: #cdd5da;         /* линии таблиц */
    --rule-soft: #e1e6e9;
    --gas: #f2b705;          /* сигнальный жёлтый: только метка газа и фокус */
    --stamp: #2c4a9a;        /* чернила штампа проверки */
    --confirmed: #1f6b55;    /* подтверждено компанией */
    --link: #1d4f7a;

    --radius: 4px;
    --wrap: 1240px;
    --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--steel);
    color: var(--ink);
    font: 400 16px/1.55 var(--font);
    font-variant-numeric: tabular-nums;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--gas); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */

.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 64px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
/* Метка: отрезок газопровода — жёлтая труба с красным кольцом. */
.brand-mark { width: 30px; height: 12px; border-radius: 6px; background: var(--gas); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 4px; background: #c8372d; }

.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: #d6dee3; text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gas); }

.staging-note { margin-left: auto; font-size: 13px; color: #9fb0ba; }

/* ---------- Основное ---------- */

main { padding: 32px 0 56px; }

h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 650; margin: 0 0 14px; }
h3 { font-size: 16px; font-weight: 650; margin: 0 0 8px; }

.lead { color: var(--graphite); margin: 0 0 28px; max-width: 70ch; }
.muted { color: var(--graphite); }
.back { display: inline-block; margin-bottom: 18px; font-size: 15px; }

.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.sheet + .sheet { margin-top: 20px; }

.errors { border-left: 4px solid #b3412a; background: #fff4f0; padding: 16px 20px; margin-bottom: 24px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.notice { border-left: 4px solid var(--confirmed); background: #eef7f3; padding: 16px 20px; margin-bottom: 24px; }

/* ---------- Каталог ---------- */

.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }

.filters { position: sticky; top: 16px; }
.filters h2 { font-size: 17px; }
.filters fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.filters legend, .field label, .filters .label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.filters .unit { font-weight: 400; color: var(--graphite); }
.filters .reset { display: inline-block; margin-top: 12px; font-size: 14px; }
.filters-divider { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }

input, select, textarea {
    font: inherit; color: var(--ink); background: #fff;
    border: 1px solid #aebcc5; border-radius: var(--radius);
    padding: 9px 11px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; }

.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.btn {
    display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
    background: var(--ink); color: #fff; border: 1px solid var(--ink);
    border-radius: var(--radius); padding: 10px 18px; text-decoration: none; text-align: center;
}
.btn:hover { background: #2c3d48; color: #fff; }
.btn-block { width: 100%; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.results-head p { margin: 0; color: var(--graphite); }

/* Таблица результатов: инженер сравнивает строки, а не листает плитки. */
.models { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.models th, .models td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.models thead th { font-size: 13px; font-weight: 600; color: var(--graphite); background: #f6f8f9; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.models thead th small { display: block; font-weight: 400; }
.models td.num, .models th.num { text-align: right; }
.models td.num { white-space: nowrap; }
.models th.status-col { min-width: 170px; }
.models tbody tr:hover { background: #f8fafb; }
.models-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.models-scroll .models { border: 0; }
.models .status { white-space: normal; }
.models thead th.num { width: 120px; }
.models .model-name { font-weight: 650; font-size: 16px; white-space: nowrap; }
.models .model-type { display: block; font-size: 13px; color: var(--graphite); }
.models .maker { font-size: 15px; }
.models .maker small { display: block; color: var(--graphite); }
.models .empty-value { color: #a3b0b8; }

.pagination { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0 0; }

/* ---------- Статусы проверки ---------- */

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.3; color: var(--graphite); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.status--verified, .status--site_checked { color: var(--stamp); }
.status--verified::before { background: currentColor; }
.status--confirmed { color: var(--confirmed); }
.status--confirmed::before { background: currentColor; }
.status--discontinued, .status--closed { text-decoration: line-through; }

/* ---------- Карточка изделия: шильдик ---------- */

.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }

.plate {
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: 6px;
    box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px var(--rule);
    padding: 26px 28px 24px;
}
.plate-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: 18px; }
.plate-type { margin: 0 0 4px; color: var(--graphite); font-size: 15px; }
.plate h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.03em; }
.plate-maker { margin: 6px 0 0; font-size: 16px; }

.plate-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 0; }
.plate-keys div { padding: 4px 18px 6px 0; margin-right: 18px; border-right: 1px solid var(--rule); }
.plate-keys div:last-child { border-right: 0; margin-right: 0; }
.plate-keys dt { font-size: 13px; color: var(--graphite); }
.plate-keys dd { margin: 2px 0 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.plate-keys dd small { font-size: 15px; font-weight: 500; color: var(--graphite); letter-spacing: 0; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.specs th { font-weight: 400; color: var(--graphite); width: 55%; padding-right: 16px; }
.specs td { font-weight: 550; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs-missing { margin: 16px 0 0; font-size: 14px; color: var(--graphite); }

/* Штамп проверки: как оттиск ОТК на паспорте. */
.stamp {
    border: 2px solid currentColor; border-radius: 6px;
    box-shadow: inset 0 0 0 3px var(--sheet), inset 0 0 0 4px currentColor;
    padding: 14px 16px; color: var(--stamp); background: var(--sheet);
}
.stamp--name_only, .stamp--unverified { color: var(--graphite); }
.stamp--confirmed { color: var(--confirmed); }
.stamp-title { font-weight: 700; font-size: 16px; margin: 0; }
.stamp-date { margin: 2px 0 0; font-size: 15px; }
.stamp-source { margin: 10px 0 0; font-size: 13px; color: var(--graphite); overflow-wrap: anywhere; }
.stamp-explain { margin: 8px 0 0; font-size: 13px; color: var(--graphite); }

.aside-block, .stamp + .claim { margin-top: 20px; }
.aside-block h2 { font-size: 16px; margin-bottom: 8px; }
.aside-block p { margin: 0 0 6px; }

.docs { list-style: none; padding: 0; margin: 0; }
.docs li { padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.docs li:last-child { border-bottom: 0; }

.description { white-space: pre-line; overflow-wrap: anywhere; max-width: 72ch; }

/* ---------- Карточка компании ---------- */

.company-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-bottom: 28px; }
.company-legal { margin: 4px 0 0; color: var(--graphite); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 20px 0 0; }
.facts dt { color: var(--graphite); }
.facts dd { margin: 0; }
.claim { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; }

/* ---------- Форма заявки ---------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 40px; align-items: start; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 13px; color: var(--graphite); margin: 4px 0 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 18px 0; }
.consent input { width: auto; margin-top: 3px; flex: none; }
.how { font-size: 15px; color: var(--graphite); }
.how ol { padding-left: 20px; margin: 8px 0 0; }
.how li { margin-bottom: 8px; }


/* ---------- Справочник, страницы, выставки ---------- */

.tabs { display: flex; gap: 6px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.tabs a { padding: 8px 0; text-decoration: none; color: var(--graphite); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.article-row { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); max-width: 72ch; }
.article-row h2 { font-size: 19px; margin: 2px 0 6px; }
.article-row h2 a { text-decoration: none; }
.article-row h2 a:hover { text-decoration: underline; }
.article-row p { margin: 0; }
.article-meta { font-size: 13px; color: var(--graphite); margin: 0; }
.article-source { margin-top: 28px; font-size: 14px; color: var(--graphite); }

.prose-page { max-width: 72ch; }
.prose { font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px 8px 0; text-align: left; }

.event-mini { padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.event-mini p { margin: 0; }
.event-mini .event-title { font-weight: 600; }
.event-date { font-weight: 650; margin: 0; }
.events { display: grid; gap: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.event { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--rule-soft); }
.event:last-child { border-bottom: 0; }
.event h2 { font-size: 18px; margin: 0 0 4px; }
.event p { margin: 0 0 6px; }
.events--past { opacity: .75; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.footer-nav a { color: var(--graphite); }

@media (max-width: 900px) {
    .info-layout { grid-template-columns: 1fr; }
    .event { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Подвал ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 24px 0 40px; font-size: 14px; color: var(--graphite); }
.site-footer p { margin: 0; max-width: 80ch; }

/* ---------- Телефон ---------- */

@media (max-width: 900px) {
    .catalog, .product-layout, .company-head, .form-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
}

@media (max-width: 680px) {
    .wrap { padding: 0 16px; }
    main { padding: 22px 0 40px; }
    .site-header .wrap { gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
    .staging-note { margin-left: 0; width: 100%; }
    .sheet { padding: 18px; }
    .plate { padding: 20px 18px; }
    .plate-keys { grid-template-columns: 1fr 1fr; }
    .plate-keys div { border-right: 0; margin-right: 0; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
    .field-pair { grid-template-columns: 1fr; }

    /* Таблица превращается в список строк */
    .models-scroll { overflow: visible; }
    .models, .models tbody, .models tr, .models td { display: block; width: 100%; }
    .models thead { display: none; }
    .models tr { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
    .models td { border: 0; padding: 2px 0; }
    .models td.num { text-align: left; display: inline-block; width: auto; margin-right: 16px; font-size: 14px; }
    .models td.num::before { content: attr(data-label) " "; color: var(--graphite); }
    .models td.num.is-empty { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.more-news { max-width: 72ch; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.more-news > h2 { font-size: 18px; }

/* ---------- Рассылка ---------- */

.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.subscribe-band { background: var(--sheet); border-top: 1px solid var(--rule); padding: 28px 0; }
.subscribe-band .subscribe { max-width: 760px; }
.subscribe-title { font-size: 19px; margin: 0 0 4px; }
.subscribe-lead { margin: 0 0 12px; color: var(--graphite); }
.subscribe-topics { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.subscribe-topics label { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.subscribe-topics input { width: auto; }
.subscribe-row { display: flex; gap: 10px; }
.subscribe-row input { flex: 1; }
.subscribe-row .btn { flex: none; }
.subscribe-consent { margin: 10px 0 0; font-size: 13px; color: var(--graphite); }
.subscribe-done { margin: 0; padding: 12px 16px; border-left: 4px solid var(--confirmed); background: #eef7f3; }
.subscribe-error { margin: 8px 0 0; color: #b3412a; font-size: 14px; }
.subscribe-inline { max-width: 72ch; margin-top: 32px; }
.sheet .subscribe-row { flex-direction: column; }
@media (max-width: 680px) { .subscribe-row { flex-direction: column; } }

/* ---------- Сравнение ---------- */

.models td.pick, .models th.pick { width: 36px; padding-right: 0; }
.models td.pick input { width: 18px; height: 18px; margin: 3px 0 0; }
.compare-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.compare-bar .btn { background: var(--gas); border-color: var(--gas); color: var(--ink); }
.compare-bar .btn[disabled] { opacity: .5; cursor: default; }
.compare-bar .btn-line { background: transparent; border-color: #8a98a2; color: #fff; }
.compare-hint { margin-bottom: 16px; }
.compare { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; min-width: 160px; }
.compare thead th { vertical-align: bottom; background: #f6f8f9; border-bottom: 1px solid var(--rule); }
.compare thead th .model-name { font-size: 17px; }
.compare tbody th { font-weight: 400; color: var(--graphite); width: 240px; min-width: 200px; background: #fbfcfc; }
.compare tr.differs td { font-weight: 600; background: #fffbe6; }
.compare tr.differs th { border-left: 3px solid var(--gas); }
.compare-remove { display: block; font-size: 13px; margin-top: 4px; }
@media (max-width: 680px) {
    .models td.pick { display: inline-block; width: auto; padding: 0 10px 0 0; vertical-align: top; }
    .models td.pick + td { display: inline-block; width: calc(100% - 40px); }
    .compare-bar { border-radius: 0; margin: 12px -16px 0; }
}

/* ---------- Подбор ---------- */

.selector-promo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--gas); border-radius: var(--radius); }
.selector-promo .btn { flex: none; }

/* ---------- Кабинет ---------- */

.cabinet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.cabinet-head h1 { margin: 0; }
.specs input, .specs select { padding: 7px 10px; }

/* ---------- Внешний сайт во фрейме (/go) ---------- */

body.framed { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
body.framed .staging-note { display: none; }
body.framed .site-header .wrap { min-height: 52px; }
.frame-bar { background: var(--sheet); border-bottom: 1px solid var(--rule); font-size: 14px; }
.frame-bar .wrap { display: flex; align-items: center; gap: 8px 20px; min-height: 44px; }
.frame-host { margin: 0; color: var(--graphite); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-host strong { color: var(--ink); font-weight: 600; }
.frame-back, .frame-open { white-space: nowrap; font-weight: 500; }
.frame-view { flex: 1; width: 100%; border: 0; background: #fff; display: block; }
.frame-fallback { position: absolute; left: -9999px; }

@media (max-width: 680px) {
    /* Шапка в одну строку с прокруткой разделов, чтобы сайту осталось больше места */
    body.framed .site-header .wrap { flex-wrap: nowrap; gap: 16px; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
    body.framed .site-nav { flex-wrap: nowrap; overflow-x: auto; gap: 18px; scrollbar-width: none; }
    body.framed .site-nav a { white-space: nowrap; font-size: 14px; }
    .frame-note { display: none; }
    .frame-bar .wrap { min-height: 40px; }
}

/* ---------- Выпуск модели: «Временно не производится» ---------- */
.production-badge { display: block; width: fit-content; margin-top: 4px; padding: 1px 8px; font-size: 12px; line-height: 1.6; color: var(--ink); background: var(--rule-soft); border: 1px solid var(--rule); border-radius: var(--radius); }
.production-notice { margin: 16px 0 0; padding: 10px 14px; background: var(--steel); border-left: 3px solid var(--graphite); font-size: 15px; }

/* ---------- Ориентировочная цена и запрос КП ---------- */
.price-block { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; }
.price-block .btn + .btn { margin-top: 8px; }
.price-label { margin: 0; font-size: 13px; color: var(--graphite); }
.price-value { margin: 2px 0 4px !important; font-size: 24px; font-weight: 650; line-height: 1.2; }
.price-value small { font-size: 14px; font-weight: 400; color: var(--graphite); }
.price-value--none { font-size: 18px; font-weight: 600; }
.price-meta { font-size: 13px; color: var(--graphite); }
.price-stale { font-size: 13px; color: var(--ink); background: var(--steel); padding: 4px 8px; border-radius: var(--radius); }
.price-note { font-size: 12px; color: var(--graphite); margin: 8px 0 12px !important; }
.plate-price { margin: 6px 0 0; font-size: 20px; font-weight: 650; white-space: nowrap; }
.plate-price small { font-size: 13px; font-weight: 400; color: var(--graphite); }
.models .model-price { display: block; font-size: 13px; color: var(--graphite); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 14px; }
.checkline input { width: auto; margin-top: 3px; flex: none; }

/* ---------- Хроника отрасли ---------- */
.year-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.year-tabs a { padding: 4px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); color: var(--ink); text-decoration: none; font-size: 14px; }
.year-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chronicle-note { font-size: 13px; color: var(--graphite); margin-top: 24px; }

/* ---------- Стартовая страница каталога: о портале ---------- */
.portal-intro { margin: 0 0 40px; }
.intro-head { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--ink); }
.intro-head h1 { max-width: 26ch; }
.intro-lead { color: var(--graphite); font-size: 18px; max-width: 68ch; margin: 0 0 20px; }
.intro-stats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--graphite); }
.intro-stats strong { color: var(--ink); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 4px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.intro-subtitle { font-size: 20px; margin: 28px 0 12px; }
.intro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.intro-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.intro-card h3 { font-size: 16px; margin: 0 0 6px; }
.intro-card p { margin: 0 0 8px; color: var(--graphite); font-size: 15px; }
.intro-card p:last-child { margin-bottom: 0; }
.intro-statuses dl { margin: 0; display: grid; gap: 8px; }
.intro-statuses dl div { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.intro-statuses dt { font-weight: 600; }
.intro-statuses dt::after { content: " —"; font-weight: 400; color: var(--graphite); }
.intro-statuses dd { margin: 0; color: var(--graphite); }
.intro-more { margin: 14px 0 0; }
.catalog-heading { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 6px; scroll-margin-top: 16px; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
    .intro-head { padding: 20px 18px; }
    .intro-lead { font-size: 16px; }
    .intro-grid { grid-template-columns: 1fr; }
    .intro-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Кнопка заявки в шапке (телефон) и ссылка на ВКонтакте ---------- */
.header-cta { display: none; }
.footer-social { margin: 0 0 10px; }
@media (max-width: 680px) {
    .site-header { position: sticky; top: 0; z-index: 50; }
    .site-header .wrap { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
    .brand { font-size: 18px; }
    .staging-note { display: none; }
    .header-cta { display: inline-flex; align-items: center; margin-left: auto; padding: 7px 14px; background: #fff; color: var(--ink); border-radius: var(--radius); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
    .header-cta:hover, .header-cta:focus-visible { background: var(--gas); color: var(--ink); }
    /* Разделы — одной строкой с прокруткой, чтобы закреплённая шапка оставалась низкой */
    .site-nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav a { white-space: nowrap; font-size: 14px; }
    .catalog-heading, [id] { scroll-margin-top: 104px; }
    body.framed .header-cta { display: none; }
}

/* Нормативные документы */
.norm-filter { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin-bottom: 12px; }
.norm-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--graphite); }
.norm-filter label.check { flex-direction: row; align-items: center; gap: 6px; }
.norm-filter input[type="search"] { min-width: 260px; max-width: 100%; }
.norm-group { margin-top: 28px; }
.norm-group > h2 { font-size: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.norm-row { padding: 14px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.norm-row h3 { font-size: 16px; font-weight: 500; margin: 4px 0 6px; }
.norm-row p { margin: 0 0 6px; }
.norm-row:target { background: #fff8e1; }
.norm-old h3, .norm-old .norm-code strong { color: var(--graphite); }
.norm-code { font-size: 15px; }
.norm-status { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; margin-left: 6px; border: 1px solid var(--rule); color: var(--graphite); }
.norm-status-active { border-color: #2e7d32; color: #2e7d32; }
.norm-status-cancelled, .norm-status-replaced { border-color: #b26a00; color: #b26a00; }
.norm-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.norm-disclaimer { margin-top: 28px; }
section .norm-docs { margin-top: 24px; }
@media (max-width: 640px) { .norm-filter input[type="search"] { min-width: 0; width: 100%; } .norm-filter label { width: 100%; } }

/* Фото модели */
.gallery { margin: 0 0 24px; }
.gallery-main { display: block; background: #fff; border: 1px solid var(--rule); }
.gallery-main img { display: block; width: 100%; max-height: 460px; object-fit: contain; }
.gallery-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; }
.gallery-thumbs a { display: block; border: 2px solid transparent; background: #fff; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--ink); }
.gallery-thumbs img { display: block; width: 72px; height: 72px; object-fit: contain; }
.gallery figcaption { font-size: 13px; margin-top: 6px; }
.model-thumb { float: left; width: 56px; height: 56px; object-fit: contain; margin: 0 10px 4px 0; background: #fff; border: 1px solid var(--rule); }
.doc-group { font-size: 14px; font-weight: 600; margin: 14px 0 4px; color: var(--graphite); }
@media (max-width: 640px) { .gallery-thumbs img { width: 56px; height: 56px; } }

/* Плашка «Скачать опросный лист» */
.questionnaire-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 18px; margin: 0 0 16px; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--gas); border-radius: var(--radius); }
.questionnaire-banner .btn { flex: none; }
.questionnaire-banner div { display: flex; flex-direction: column; gap: 2px; max-width: 560px; }
.questionnaire-banner span { color: var(--graphite); font-size: 14px; }
aside .questionnaire-banner { margin-top: 16px; }
aside .questionnaire-banner .btn { width: 100%; text-align: center; }

/* Рекламные места (пока — блоки о Газпортале). Подпись сверху: «Газпортал» или маркировка рекламы. */
.promo { background: var(--sheet); border: 1px dashed var(--rule); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.promo-ad { border-style: solid; }
.promo p { margin: 0; }
.promo-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.promo-ad .promo-label { text-transform: none; letter-spacing: 0; font-size: 12px; }
.promo-title { font-weight: 600; line-height: 1.3; }
.promo-text { font-size: 14px; color: var(--graphite); }
.promo-image img { display: block; width: 100%; height: auto; border-radius: 2px; }
.promo-link { align-self: flex-start; }
aside .promo, .filters + .promo { margin-top: 20px; }
.promo-card .promo-link { align-self: stretch; text-align: center; }
/* В ленте и в таблице — горизонтально */
.promo-feed, .promo-row, .promo-wide .promo { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.promo-feed { margin: 8px 0 16px; }
.promo-feed .promo-label, .promo-row .promo-label, .promo-wide .promo-label { flex: 0 0 100%; }
.promo-feed .promo-body, .promo-row .promo-body, .promo-wide .promo-body { flex: 1 1 320px; }
.promo-feed .promo-image, .promo-row .promo-image, .promo-wide .promo-image { flex: 0 0 120px; }
.promo-feed .promo-link, .promo-row .promo-link, .promo-wide .promo-link { align-self: center; flex: none; }
tr.promo-row > td { padding: 10px 8px; background: var(--steel); }
tr.promo-row .promo { border-style: dashed; }
.promo-wide { padding: 0 0 24px; }
@media (max-width: 640px) { .promo-feed .promo-link, .promo-row .promo-link, .promo-wide .promo-link { flex: 1 1 100%; text-align: center; } }

/* Архив старого каталога */
.archive-crumbs { font-size: 15px; color: var(--graphite); margin-bottom: 18px; }
.archive-notice { font-size: 15px; }
.archive-photos { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.archive-photos img { display: block; max-width: 260px; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.archive-page .prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.archive-page .prose td, .archive-page .prose th { border: 1px solid var(--rule); padding: 6px 10px; vertical-align: top; }
.archive-page .prose img { max-width: 100%; height: auto; }
.archive-list, .archive-items { columns: 2 280px; column-gap: 32px; padding-left: 18px; margin: 24px 0; }
.archive-list li, .archive-items li { margin-bottom: 8px; break-inside: avoid; }
.archive-foot { margin-top: 28px; }

/* Главная */
.home-block { margin: 0 0 36px; }
.home-types { columns: 3 240px; column-gap: 32px; padding-left: 18px; margin: 0 0 14px; }
.home-types li { margin-bottom: 8px; break-inside: avoid; }
.home-block .article-row h3 { font-size: 17px; margin: 0; }
.archive-hint { margin: 16px 0 0; font-size: 14px; color: var(--graphite); }
.archive-years { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; }
.sheet h3 { font-size: 15px; margin: 12px 0 6px; }
.news-years { columns: 3 200px; column-gap: 32px; padding-left: 18px; margin: 0 0 24px; }
.news-years li { margin-bottom: 8px; }
