/*
 * Единый стиль сайта (этап 2 редизайна, 22.11.2026) — поверх стилей старой темы, на всех страницах.
 * Цвета и формы — те же, что у новой главной (home.css): фирменный малиновый, тёмный текст, светлые фоны,
 * скругления, карточки с обводкой и подсветкой при наведении.
 */
:root {
    --ui-brand: #ce0016;
    --ui-brand-dark: #a30012;
    --ui-brand-soft: rgba(206, 0, 22, .07);
    --ui-line: rgba(206, 0, 22, .14);
    --ui-line-hover: rgba(206, 0, 22, .45);
    --ui-ink: #1d1f24;
    --ui-text: #2b2e35;
    --ui-muted: #5d6470;
    --ui-soft: #f6f7f9;
    --ui-border: #e7e9ee;
    --ui-radius: 16px;
    --ui-shadow: 0 10px 30px rgba(29, 31, 36, .08);
    --ui-shadow-hover: 0 14px 34px rgba(206, 0, 22, .13);
}
body { color: var(--ui-text); -webkit-font-smoothing: antialiased; }

/* ================= Шапка ================= */
.header { background: #fff; box-shadow: none; }
.header .header-full { border-bottom: 1px solid var(--ui-border); }
@media (min-width: 992px) {
    .header .header-row { min-height: 88px; align-items: center; }
    .header .header-logo { display: flex; align-items: center; gap: 16px; }
    .header.header-visitka .header-logo .header-logo-image { width: auto !important; max-width: none; flex: 0 0 auto; }
    .header.header-visitka .header-logo .header-logo-content { margin-left: 0; flex: 0 0 auto; }
    .header .header-logo { gap: 14px; }
    .header .header-search { flex: 0 0 auto; }
    .header .header-logo-image img { height: 64px !important; width: auto !important; max-width: none; }   /* тема держит ширину 260 */
    .header .header-col--logo { flex: 0 0 auto; max-width: none; width: auto; }
    .header .header-full-right { margin-left: auto; flex: 0 1 auto; min-width: 0; }
    .header .header-logo-title { font-size: 15px; font-weight: 800; letter-spacing: .06em; color: var(--ui-ink); }
    .header .header-full-right { display: flex; align-items: center; gap: 24px; }
    .header .header-schedule { font-size: 13px; line-height: 1.35; color: var(--ui-muted); white-space: nowrap; }
    .header .header-schedule-heading { color: var(--ui-ink); font-weight: 600; }
    .header .header-full-phone .header-phone a { font-size: 19px; font-weight: 800; color: var(--ui-ink); white-space: nowrap; }
    .header .header-full-phone .header-phone a:hover { color: var(--ui-brand); }
    .header .header-callback {
        min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
        background: var(--ui-brand); color: #fff; box-shadow: 0 6px 16px rgba(206, 0, 22, .22); transition: background-color .2s, transform .2s;
    }
    .header .header-callback:hover { background: var(--ui-brand-dark); color: #fff; transform: translateY(-1px); }
    /* полоса меню — белая, при прокрутке с тенью */
    .header .header-nav { background: #fff; border-bottom: 1px solid var(--ui-border); }
    .header.header--fixed .header-nav { box-shadow: 0 8px 24px rgba(29, 31, 36, .10); }
    .header .site-menu > .menu-item > .nav-link { color: var(--ui-ink); font-weight: 600; }
}

.header .header-callback { white-space: nowrap; }
@media (max-width: 1299.98px) {
    .header .header-schedule { display: none; }   /* на узких экранах — без графика (он в подвале и контактах) */
}

/* ================= Хлебные крошки и заголовок ================= */
body:not(.home-v2) .page-content { background: linear-gradient(180deg, #fbf7f8 0, #fff 280px); padding-bottom: 72px; }
.region-breadcrumb .breadcrumb { margin: 0; padding: 22px 0 0; background: none; }
.region-breadcrumb .list { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ui-muted); }
.region-breadcrumb .list-item { display: inline-flex; align-items: center; margin: 0; padding: 0; border: 0; }
.region-breadcrumb .list-item::after { display: none !important; content: none !important; }   /* разделители темы «|» */
.region-breadcrumb .list-item + .list-item::before { content: "›"; margin: 0 10px; color: #b5bac3; }
.region-breadcrumb .list-link { color: var(--ui-muted); }
.region-breadcrumb .list-link:hover { color: var(--ui-brand); }
.region-title .page-title, .product-full .page-title {
    margin: 14px 0 28px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; color: var(--ui-ink);
}

/* ================= Текст страниц ================= */
.text-formatted { font-size: 17px; line-height: 1.65; color: var(--ui-text); overflow-wrap: break-word; }
/* страховка для телефона: длинные склейки/ссылки и широкие таблицы не раздвигают страницу */
@media (max-width: 767px) {
    .text-formatted { overflow-wrap: break-word; }
    .text-formatted table:not(.tbl-stack) { display: block; overflow-x: auto; }
    .text-formatted iframe, .text-formatted video { max-width: 100%; }
    /* таблица с заголовками → строки-карточки, у каждого значения подпись столбца */
    .text-formatted table.tbl-stack, .text-formatted .tbl-stack :is(tbody, thead, tr, td, th) { display: block; width: auto !important; }
    .text-formatted table.tbl-stack { border: 0; font-size: 16px; }
    .text-formatted .tbl-stack .tbl-head { display: none; }
    .text-formatted .tbl-stack tr { margin: 0 0 14px; border: 1px solid var(--ui-border); border-radius: 14px; overflow: hidden; background: #fff; }
    .text-formatted .tbl-stack td, .text-formatted .tbl-stack th { border: 0; border-top: 1px solid var(--ui-border); padding: 12px 14px; background: none !important; }
    .text-formatted .tbl-stack tr > :first-child { border-top: 0; background: var(--ui-soft) !important; }
    .text-formatted .tbl-stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ui-muted, #8a8f98); }
    .text-formatted .tbl-stack td p { margin: 0 0 .5em; }
    .text-formatted .tbl-stack td p:last-child { margin-bottom: 0; }
    .text-formatted .tbl-stack td p.is-empty { display: none; }
}
.pd-tabs, .pd-pane { min-width: 0; max-width: 100%; }
.text-formatted p { margin: 0 0 1em; }
.text-formatted :is(h2, h3, h4) { color: var(--ui-ink); font-weight: 800; line-height: 1.25; margin: 1.4em 0 .6em; }
.text-formatted h2 { font-size: 26px; }
.text-formatted h3 { font-size: 21px; }
.text-formatted a { color: var(--ui-brand); text-decoration: underline; text-decoration-color: rgba(206, 0, 22, .3); text-underline-offset: 3px; }
.text-formatted a:hover { text-decoration-color: var(--ui-brand); }
.text-formatted img { max-width: 100%; height: auto; border-radius: 12px; }
.text-formatted table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.text-formatted td, .text-formatted th { padding: 10px 12px; border: 1px solid var(--ui-border); }
.text-formatted tr:nth-child(even) td { background: var(--ui-soft); }
/* обычные страницы — читаемая ширина строки */
.node--type-page.node--view-mode-full > .node__content { max-width: 900px; }

/* заголовки в новостной ленте */
.views-row > .node--view-mode-teaser :is(h2, h3) { font-size: clamp(19px, 2vw, 24px); line-height: 1.3; font-weight: 800; }
.views-row > .node--view-mode-teaser :is(h2, h3) a { color: var(--ui-ink); }
.views-row > .node--view-mode-teaser:hover :is(h2, h3) a { color: var(--ui-brand); }
.views-row > .node--view-mode-teaser .node__submitted { font-size: 13px; font-weight: 600; color: var(--ui-brand); letter-spacing: .03em; }

/* ================= Кнопки старой темы ================= */
/* (.btn--recall — круглая кнопка-значок телефона в мобильной шапке, её не трогаем) */
.btn--main:not(.btn--recall), .page-content .form-submit, .modal .form-submit {
    min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ui-brand); color: #fff;
    font-weight: 600; box-shadow: 0 6px 16px rgba(206, 0, 22, .2); transition: background-color .2s, transform .2s;
}
.btn--main:not(.btn--recall):hover, .page-content .form-submit:hover, .modal .form-submit:hover { background: var(--ui-brand-dark); color: #fff; transform: translateY(-1px); }

/* ================= Каталог: боковое меню ================= */
.sidebar-nav { border: 1px solid var(--ui-line); border-radius: var(--ui-radius); overflow: hidden; background: #fff; box-shadow: var(--ui-shadow); }
.sidebar-nav .sidebar-nav-header { padding: 16px 20px; font-size: 16px; font-weight: 800; color: var(--ui-ink); background: #fff; border-bottom: 1px solid var(--ui-border); }
.sidebar-nav .sidebar-nav-header .fa { display: none; }
.sidebar-nav .parent-menu { margin: 0; padding: 6px 0; list-style: none; }
.sidebar-nav .parent-menu-item { margin: 0; border: 0; background: none; }
.sidebar-nav .parent-menu-link {
    display: block; padding: 11px 20px; font-size: 15px; line-height: 1.35; color: var(--ui-text); background: none;
    border-left: 3px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.sidebar-nav .parent-menu-link:hover { color: var(--ui-brand); background: var(--ui-brand-soft); }
.sidebar-nav .parent-menu-item--is-active .parent-menu-link { color: var(--ui-brand); font-weight: 700; background: var(--ui-brand-soft); border-left-color: var(--ui-brand); }

/* плитки категорий и карточки товаров — карточки с подсветкой */
.catalog-teaser, .product-teaser {
    border: 1px solid var(--ui-line); border-radius: var(--ui-radius); overflow: hidden; background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.catalog-teaser:hover, .product-teaser:hover { border-color: var(--ui-line-hover); box-shadow: var(--ui-shadow-hover); transform: translateY(-3px); }
.catalog-teaser .catalog-teaser-image, .product-teaser .product-picture { background: #fff; border-bottom: 1px solid #f0f0f2; }
.catalog-teaser .catalog-teaser-name { padding: 14px 16px; font-weight: 700; color: var(--ui-ink); }

/* заглушка вместо отсутствующей картинки — тот же размер, что у фото, иконка по центру */
.no-image {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(180deg, #f8f9fb, #f1f3f6); color: var(--ui-brand);
}
.no-image svg {
    width: 34%; max-width: 96px; height: auto; padding: 18px; box-sizing: content-box; border-radius: 50%;
    background: var(--ui-brand-soft); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .4s;
}
.catalog-teaser:hover .no-image svg, .h-cat:hover .no-image svg, .pd-card:hover .no-image svg { transform: scale(1.06); }
.catalog-teaser-noimage { aspect-ratio: 286 / 300; }   /* как у картинок плиток каталога */
.product-teaser .product-content { padding: 14px 16px 16px; }
.product-teaser .product-title a { font-weight: 700; color: var(--ui-ink); }
.product-teaser:hover .product-title a { color: var(--ui-brand); }
.product-teaser .product-content-description { font-size: 14px; color: var(--ui-muted); }

/* ================= Страница товара (этап 3) ================= */
.pd { padding: 8px 0 24px; }
.pd-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.pd-main {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 20px; overflow: hidden;
    background: #fff; border: 1px solid var(--ui-border); border-radius: 20px; box-shadow: var(--ui-shadow);
}
.pd-slide { width: 100%; height: 100%; display: grid; place-items: center; }
.pd-slide a { display: grid; place-items: center; width: 100%; height: 100%; cursor: zoom-in; }
.pd-slide img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s; }
.pd-main:hover .pd-slide img { transform: scale(1.03); }
.pd-slide--empty { color: var(--ui-muted); font-size: 15px; }
.pd-arrow {
    position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--ui-border);
    border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ui-ink); font-size: 26px; line-height: 1; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08); transition: background-color .2s, color .2s, border-color .2s;
}
.pd-arrow:hover { background: var(--ui-brand); border-color: var(--ui-brand); color: #fff; }
.pd-arrow--prev { left: 14px; }
.pd-arrow--next { right: 14px; }
.pd-zoom-hint {
    position: absolute; right: 14px; bottom: 12px; padding: 5px 12px; border-radius: 999px; font-size: 12px;
    background: rgba(255, 255, 255, .9); color: var(--ui-muted); pointer-events: none; opacity: 0; transition: opacity .2s;
}
.pd-main:hover .pd-zoom-hint { opacity: 1; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pd-thumb {
    width: 82px; height: 82px; padding: 6px; border: 2px solid var(--ui-border); border-radius: 12px; background: #fff; cursor: pointer;
    transition: border-color .2s, transform .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover { border-color: var(--ui-line-hover); transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--ui-brand); }

.pd-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pd-cat {
    padding: 6px 14px; border-radius: 999px; background: var(--ui-brand-soft); color: var(--ui-brand); font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background-color .2s, color .2s;
}
.pd-cat:hover { background: var(--ui-brand); color: #fff; }
.pd-title { margin: 0 0 14px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; line-height: 1.15; color: var(--ui-ink); }
.pd-sku { margin-bottom: 14px; font-size: 14px; color: var(--ui-muted); }
.pd-short { margin-bottom: 20px; font-size: 18px; line-height: 1.55; color: var(--ui-text); }
.pd-jump { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.pd-jump-link { color: var(--ui-brand); font-weight: 600; text-decoration: none; }
.pd-jump-link:hover { text-decoration: underline; }
.pd-consult { padding: 22px 24px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: linear-gradient(180deg, #fff, #fbf7f8); }
.pd-consult-title { font-size: 17px; font-weight: 800; color: var(--ui-ink); }
.pd-consult-text { margin: 6px 0 12px; font-size: 15px; color: var(--ui-muted); }
.pd-consult-phone { display: inline-block; font-size: 24px; font-weight: 800; color: var(--ui-ink); text-decoration: none; }
.pd-consult-phone:hover { color: var(--ui-brand); }
.pd-consult-hours { font-size: 13px; color: var(--ui-muted); margin-bottom: 8px; }
.pd-consult-mail { color: var(--ui-brand); font-weight: 600; text-decoration: none; }

.pd-tabs { margin-top: 48px; }
.pd-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pd-tab {
    min-height: 44px; padding: 0 22px; border: 1px solid var(--ui-border); border-radius: 999px; background: #fff;
    color: var(--ui-text); font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.pd-tab:hover { border-color: var(--ui-line-hover); color: var(--ui-brand); }
.pd-tab.is-active { border-color: var(--ui-brand); background: var(--ui-brand); color: #fff; }
.pd-tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: 12px; }
.pd-tab.is-active .pd-tab-count { background: rgba(255, 255, 255, .25); }
.pd-pane { display: none; padding: 28px 32px; border: 1px solid var(--ui-border); border-radius: 20px; background: #fff; }
.pd-pane.is-active { display: block; }
.pd-pane.text-formatted > :first-child { margin-top: 0; }
.pd-docs { display: grid; gap: 12px; }
.pd-doc {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--ui-line); border-radius: 14px;
    color: var(--ui-text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pd-doc:hover { border-color: var(--ui-line-hover); box-shadow: var(--ui-shadow-hover); transform: translateY(-2px); color: var(--ui-text); }
.pd-doc-ext { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: var(--ui-brand-soft); color: var(--ui-brand); font-size: 12px; font-weight: 800; }
.pd-doc-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pd-doc-name { font-weight: 700; color: var(--ui-ink); }
.pd-doc-size { font-size: 13px; color: var(--ui-muted); }
.pd-doc-get { color: var(--ui-brand); font-weight: 600; font-size: 14px; }

.pd-related { margin-top: 64px; }
.pd-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.pd-related-title { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; color: var(--ui-ink); }
.pd-related-all { color: var(--ui-brand); font-weight: 600; text-decoration: none; }
.pd-related-grid, .sr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pd-card {
    display: flex; flex-direction: column; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); overflow: hidden;
    background: #fff; color: var(--ui-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pd-card:hover { border-color: var(--ui-line-hover); box-shadow: var(--ui-shadow-hover); transform: translateY(-3px); color: var(--ui-ink); }
.pd-card-image { box-sizing: border-box; display: block; aspect-ratio: 1 / 1; padding: 14px; overflow: hidden; border-bottom: 1px solid #f0f0f2; }
.pd-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.pd-card:hover .pd-card-image img { transform: scale(1.05); }
.pd-card-title { padding: 14px 16px 18px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.pd-card-sub { padding: 0 16px 16px; margin-top: -8px; font-size: 13px; color: var(--ui-muted); }
@media (max-width: 991.98px) {
    .pd-top { grid-template-columns: 1fr; gap: 28px; }
    .pd-related-grid, .sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-pane { padding: 20px; }
}
@media (max-width: 575.98px) {
    .pd-thumb { width: 64px; height: 64px; }
    .pd-related-grid, .sr-grid { gap: 12px; }
}

/* ================= Карточки-разделы страниц (SectionCards, «АСК») ================= */
.node--type-page.node--view-mode-full > .node__content:has(.section-cards) { max-width: none; }
.section-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 8px 0 24px; }
.sc-card {
    display: flex; flex-direction: column; gap: 18px; padding: 28px; background: #fff;
    border: 1px solid var(--ui-line); border-radius: 20px; box-shadow: var(--ui-shadow);
    transition: border-color .25s, box-shadow .25s;
}
.sc-card:hover { border-color: var(--ui-line-hover); box-shadow: var(--ui-shadow-hover); }
.sc-wide { grid-column: 1 / -1; }
.text-formatted .sc-title { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.25; color: var(--ui-ink); text-align: left; }
.sc-lead { background: linear-gradient(180deg, #fff, #fbf7f8); }
.text-formatted .sc-lead .sc-title { font-size: clamp(22px, 2.4vw, 30px); }
.sc-text > :last-child { margin-bottom: 0; }
.sc-media-wrap { display: grid; gap: 16px; }
.sc-media {
    display: flex; align-items: center; justify-content: center; padding: 12px; overflow: hidden;
    background: var(--ui-soft); border: 1px solid var(--ui-border); border-radius: 14px; cursor: zoom-in;
}
.text-formatted .sc-media img { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; border-radius: 8px; transition: transform .4s; }
.sc-media:hover img { transform: scale(1.03); }
.text-formatted .sc-wide .sc-media img { max-height: 460px; }
.text-formatted ul.sc-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.text-formatted ul.sc-checklist li { position: relative; margin: 0; padding: 12px 16px 12px 48px; background: var(--ui-soft); border-radius: 12px; line-height: 1.45; }
.text-formatted ul.sc-checklist li::before {
    content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 8px; margin-top: -6px;
    border-left: 2.5px solid var(--ui-brand); border-bottom: 2.5px solid var(--ui-brand); transform: rotate(-45deg);
}
@media (max-width: 767.98px) {
    .section-cards { grid-template-columns: 1fr; gap: 16px; }
    .sc-card { padding: 20px; }
    .text-formatted ul.sc-checklist { grid-template-columns: 1fr; }
}

/* ================= Поиск ================= */
/* компьютер: постоянное поле в верхней строке шапки — не зависит от закрепления полосы меню при прокрутке */
.header-search { display: none; }
@media (min-width: 992px) {
    .header .header-search {
        position: relative; display: flex; align-items: center; width: 260px; transition: width .25s;
    }
    .header .header-search:focus-within { width: 320px; }
    .header .header-search svg {
        position: absolute; left: 16px; width: 18px; height: 18px; fill: none; stroke: var(--ui-muted); stroke-width: 2;
        stroke-linecap: round; pointer-events: none; transition: stroke .2s;
    }
    .header .header-search input {
        width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1px solid var(--ui-border); border-radius: 999px;
        background: var(--ui-soft); font-size: 15px; color: var(--ui-ink); transition: border-color .2s, background-color .2s, box-shadow .2s;
    }
    .header .header-search input::placeholder { color: #8b919c; }
    .header .header-search input:hover { border-color: var(--ui-line-hover); }
    .header .header-search input:focus { outline: none; border-color: var(--ui-brand); background: #fff; box-shadow: 0 0 0 4px var(--ui-brand-soft); }
    .header .header-search:focus-within svg { stroke: var(--ui-brand); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .header .header-search { width: 180px; }
    .header .header-search:focus-within { width: 220px; }
    .header .header-full-right { gap: 16px; }
    .header .header-full-phone .header-phone a { font-size: 17px; }
    .header .header-callback { padding: 0 16px; font-size: 14px; }
    .header .header-logo-title { font-size: 14px; }
}
.search-form svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* строка поиска в меню — только для телефона */
.search-panel { display: none; }
.search-form { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.search-form input {
    flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border: 1px solid #dfe2e7; border-radius: 999px; background: #fbfbfc; font-size: 16px; color: var(--ui-ink);
}
.search-form input:focus { outline: none; border-color: var(--ui-brand); background: #fff; box-shadow: 0 0 0 4px var(--ui-brand-soft); }
.search-form button {
    display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
    background: var(--ui-brand); color: #fff; font-weight: 600; cursor: pointer;
}
.search-form button:hover { background: var(--ui-brand-dark); }
@media (min-width: 992px) {
    /* меню занимает остаток строки, место под кнопку звонка (видна при прокрутке) зарезервировано справа — ничего не прыгает */
    .header .header-nav-content { display: flex; align-items: center; gap: 16px; }
    .header .header-nav-content .region-menu-main { flex: 1 1 auto; min-width: 0; margin: 0; }
    .header .header-nav-content .header-nav-right { flex: 0 0 auto; }
    .header .header-nav-content .site-menu { width: auto; }
}
@media (max-width: 991.98px) {
    .search-panel { display: block; padding: 4px 0 14px; border: 0; background: transparent; }
    .search-panel .search-form input { min-height: 46px; }
    .search-panel .search-form button { min-height: 46px; padding: 0 18px; }
    .search-form button span { display: none; }
}
.sr-summary { margin: -12px 0 28px; color: var(--ui-muted); }
.sr-section { margin-bottom: 40px; }
.sr-section-title { margin: 0 0 16px; font-size: 22px; font-weight: 800; color: var(--ui-ink); }
.sr-list { display: grid; gap: 12px; }
.sr-item {
    display: block; padding: 16px 20px; border: 1px solid var(--ui-line); border-radius: 14px; background: #fff; color: var(--ui-text);
    text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sr-item:hover { border-color: var(--ui-line-hover); box-shadow: var(--ui-shadow-hover); transform: translateY(-2px); color: var(--ui-text); }
.sr-item-type { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-brand); }
.sr-item-title { display: block; margin: 4px 0; font-size: 17px; font-weight: 700; color: var(--ui-ink); }
.sr-item-text { font-size: 14px; color: var(--ui-muted); }
.sr-empty { padding: 40px; text-align: center; border: 1px dashed var(--ui-border); border-radius: 20px; color: var(--ui-muted); }
mark { padding: 0 2px; border-radius: 3px; background: rgba(206, 0, 22, .14); color: inherit; }

/* ================= Заказчики и партнёры — карточки ================= */
.views-view-grid .node--view-mode-teaser {
    padding: 16px 16px 20px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.views-view-grid .node--view-mode-teaser:hover { border-color: var(--ui-line-hover); box-shadow: var(--ui-shadow-hover); transform: translateY(-3px); }
.views-view-grid .node--view-mode-teaser .title { font-size: 15px; line-height: 1.35; font-weight: 700; color: var(--ui-ink); }
.views-view-grid .row { row-gap: 24px; }

/* ================= Нумерация страниц (своя разметка .pgr, site/partials/pager) ================= */
.pgr { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 40px 0 8px; flex-wrap: wrap; }
.pgr-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 1px solid var(--ui-border);
    border-radius: 999px; background: #fff; color: var(--ui-ink); font-size: 15px; font-weight: 600; text-decoration: none;
    transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.pgr-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
a.pgr-btn:hover { border-color: var(--ui-brand); color: var(--ui-brand); box-shadow: var(--ui-shadow-hover); transform: translateY(-1px); text-decoration: none; }
a.pgr-prev:hover svg { transform: translateX(-2px); }
a.pgr-next:hover svg { transform: translateX(2px); }
.pgr-btn svg { transition: transform .2s; }
.pgr-btn.is-disabled { opacity: .4; cursor: default; }
.pgr-pages { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pgr-page {
    display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 6px; border: 1px solid var(--ui-border);
    border-radius: 12px; background: #fff; color: var(--ui-ink); font-size: 16px; font-weight: 700; text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s, transform .2s;
}
a.pgr-page:hover { border-color: var(--ui-brand); color: var(--ui-brand); box-shadow: var(--ui-shadow-hover); transform: translateY(-1px); text-decoration: none; }
.pgr-page.is-current { border-color: var(--ui-brand); background: var(--ui-brand); color: #fff; box-shadow: 0 6px 16px rgba(206, 0, 22, .25); }
.pgr-gap { display: grid; place-items: center; width: 28px; height: 48px; color: var(--ui-muted); font-weight: 700; }
.pgr-info { text-align: center; font-size: 14px; color: var(--ui-muted); margin-bottom: 8px; }
@media (max-width: 575.98px) {
    .pgr { gap: 8px; }
    .pgr-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
    .pgr-btn span { display: none; }
    .pgr-page { min-width: 40px; height: 44px; border-radius: 10px; font-size: 15px; }
    .pgr-pages { gap: 6px; }
}

/* ================= Окна форм (заказать звонок) ================= */
.modal .modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.modal .modal-title { font-weight: 800; color: var(--ui-ink); }
.modal .form-control, .page-content .contact-message-form .form-control {
    min-height: 50px; padding: 12px 16px; border: 1px solid #dfe2e7; border-radius: 12px; background: #fbfbfc; font-size: 16px;
}
.modal .form-control:focus, .page-content .contact-message-form .form-control:focus {
    outline: none; border-color: var(--ui-brand); background: #fff; box-shadow: 0 0 0 4px var(--ui-brand-soft);
}
.modal .form-checkbox { accent-color: var(--ui-brand); }

/* ================= Уведомление о cookie — плавающая карточка ================= */
.cookie-notice {
    left: 16px; right: auto; bottom: 16px; max-width: 460px; padding: 0; background: transparent;
}
.cookie-notice .container { padding: 0; max-width: none; }
.cookie-notice .cookie-wrapper {
    display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: #fff; color: var(--ui-text);
    border: 1px solid var(--ui-border); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); font-size: 14px; line-height: 1.5;
}
.cookie-notice .cookie-content { color: var(--ui-text); font-size: 14px; line-height: 1.5; margin: 0; max-width: none; }
.cookie-notice .cookie-content a { color: var(--ui-brand); }
.cookie-notice .cookie-actions { display: flex; flex-direction: row; gap: 10px; margin: 0; }
.cookie-notice .cookie-btn {
    display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 0; margin: 0;
    min-height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ui-brand); color: #fff; border: 0; font-weight: 600; font-size: 14px;
}
.cookie-notice .cookie-btn--decline { background: #fff; color: var(--ui-text); border: 1px solid var(--ui-border); }
@media (max-width: 575.98px) { .cookie-notice { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ================= Подвал ================= */
.site-footer { background: #17191d; color: #c9ccd3; font-size: 15px; }
.site-footer a { color: #e6e8ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 40px; padding: 64px 0 48px; }
.site-footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.site-footer-emblem { flex: 0 0 64px; padding: 6px; background: #fff; border-radius: 12px; }
.site-footer-emblem img { width: 100%; height: auto; display: block; }
.site-footer-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .04em; }
.site-footer-about { margin-top: 8px; color: #a9adb6; line-height: 1.55; }
.site-footer-title { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8d929c; }
.site-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer-phone { font-size: 22px; font-weight: 800; color: #fff !important; }
.site-footer-contact { display: grid; gap: 10px; line-height: 1.5; }
.site-footer-contact small { color: #8d929c; }
.site-footer-cta {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--ui-brand); color: #fff; font-weight: 600; cursor: pointer; transition: background-color .2s;
}
.site-footer-cta:hover { background: var(--ui-brand-dark); }
.site-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: #8d929c; }
.site-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer-bottom a { color: #a9adb6; }
.site-footer-requisites { margin-top: 14px; font-size: 13px; color: #8d929c; line-height: 1.5; }
@media (max-width: 991.98px) {
    .site-footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
}
@media (max-width: 575.98px) {
    .site-footer-main { grid-template-columns: 1fr; }
}

/* ================= Страница 404 ================= */
.error-page { padding: 72px 0 40px; text-align: center; }
.error-code { font-size: clamp(90px, 16vw, 160px); font-weight: 900; line-height: 1; color: var(--ui-brand); letter-spacing: -.04em; }
.error-title { margin: 12px 0 10px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--ui-ink); }
.error-text { max-width: 560px; margin: 0 auto 28px; font-size: 17px; color: var(--ui-muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.error-actions a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.error-actions .is-primary { background: var(--ui-brand); color: #fff; }
.error-actions .is-ghost { border: 2px solid var(--ui-brand); color: var(--ui-brand); }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.error-links a {
    padding: 10px 18px; border: 1px solid var(--ui-line); border-radius: 999px; background: #fff; color: var(--ui-text);
    text-decoration: none; transition: border-color .2s, color .2s, box-shadow .2s;
}
.error-links a:hover { border-color: var(--ui-line-hover); color: var(--ui-brand); box-shadow: var(--ui-shadow-hover); }
