/* ============================================================
   HEADER 3 — шапка сайта
   Рейка слева, топбар, основная строка, выдвижная панель.
   Геометрия из первой версии, оформление по брендбуку 2026-08:
   docs/design/header/ (макет), красный CE001A, нулевые скругления.
   ============================================================ */

:root {
    --h3-red:    #CE001A;
    --h3-red-dk: #A80015;
    --h3-ink:    #15120F;
    --h3-soft:   #46413A;
    --h3-mut:    #6F6961;
    --h3-faint:  #A8A199;
    --h3-line:   #E6E2DC;
    --h3-line-2: #D2CCC3;
    --h3-line-3: #C7C0B6;
    --h3-hair:   #F0EDE8;
    --h3-ground: #FAF8F5;
    --h3-disp:   'bebasneuecyrillic', 'Oswald', system-ui, sans-serif;
    --h3-ui:     'Manrope', 'Raleway', 'Inter', system-ui, sans-serif;
}

/* === Reset & Base === */
.header-v3 *,
.header-v3 *::before,
.header-v3 *::after,
.h3-sidebar *,
.h3-sidebar-panel *,
.h3-sidebar-panel *::before,
.h3-sidebar-panel *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.header-v3 {
    width: 100%;
    font-family: var(--h3-ui);
    line-height: 1.4;
    position: relative;
    z-index: 100;
}

.header-v3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.header-v3 a:hover {
    color: var(--h3-red);
}

/* Все SVG в хедере — контурные, не залитые */
/* Перебиваем .md-white-header svg path { fill: #111 !important } */
.header-v3 svg,
.header-v3 svg path,
.header-v3 svg circle,
.header-v3 svg line,
.header-v3 svg polyline,
.header-v3 svg rect,
.h3-sidebar svg,
.h3-sidebar svg path,
.h3-sidebar svg circle,
.h3-sidebar svg line,
.h3-sidebar svg polyline,
.h3-sidebar svg rect,
.h3-sidebar-panel svg,
.h3-sidebar-panel svg path,
.h3-sidebar-panel svg circle,
.h3-sidebar-panel svg line,
.h3-sidebar-panel svg polyline,
.h3-sidebar-panel svg rect,
.h3-mob-menu svg,
.h3-mob-menu svg path,
.h3-mob-menu svg circle,
.h3-mob-menu svg line,
.h3-mob-menu svg polyline,
.h3-mob-menu svg rect,
.h3-mobile-header svg,
.h3-mobile-header svg path,
.h3-mobile-header svg circle,
.h3-mobile-header svg line {
    fill: none !important;
}

.header-v3 ul {
    list-style: none;
}

/* Отступ контента страницы от фиксированного сайдбара */
body.has-h3-sidebar {
    margin-left: 60px;
}

@media (max-width: 768px) {
    body.has-h3-sidebar {
        margin-left: 0;
    }
}

/* Topbar и main header уже имеют свой margin-left, убираем дублирование */
body.has-h3-sidebar .h3-topbar,
body.has-h3-sidebar .h3-main {
    margin-left: 0;
}

/* === Container === */
.h3-container {
    max-width: 95%;
    padding: 0 20px;
    width: 100%;
}

/* ============================================================
   ФИКСИРОВАННОЕ ЛЕВОЕ БОКОВОЕ МЕНЮ (sidebar)
   ============================================================ */

/* --- Свёрнутая полоска с иконками (всегда видна) --- */
.h3-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    gap: 0;
    background: #fff;
    border-right: 1px solid var(--h3-line);
}

/* Кнопка-бургер (зелёная) */
.h3-sidebar-toggle {
    width: 60px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--h3-red);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.h3-sidebar-toggle:hover {
    background: var(--h3-red-dk);
}

.h3-sidebar-toggle svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* Иконки пунктов меню (столбик под бургером) */
.h3-sidebar-icon {
    position: relative;
    width: 60px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h3-soft);
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    border-bottom: 1px solid var(--h3-hair);
}

.h3-sidebar-icon:last-child {
    border-bottom: none;
}

.h3-sidebar-icon:hover {
    color: var(--h3-red);
    background: var(--h3-ground);
}

.h3-sidebar-icon svg {
    width: 24px;
    height: 24px;
}

/* --- Выдвижная панель --- */
.h3-sidebar-panel {
    position: fixed;
    top: 0;
    left: -460px;
    width: 460px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 1150;
    overflow: visible;
    transition: left 0.3s ease;
    box-shadow: 8px 0 34px rgba(21, 18, 15, 0.16);
    display: flex;
    flex-direction: column;
}

.h3-sidebar-panel.active {
    left: 0;
}

/* Шапка панели (зелёная кнопка «Меню») */
.h3-sidebar-panel-header {
    flex-shrink: 0;
}

.h3-sidebar-panel-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    padding: 0 18px 0 19px;
    background: var(--h3-red);
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    transition: background 0.2s;
}

.h3-sidebar-panel-close:hover {
    background: var(--h3-red-dk);
}

.h3-sidebar-panel-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

/* Пункты меню внутри панели */
.h3-sidebar-panel-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

/* Обёртка пункта (нужна для позиционирования flyout) */
.h3-sidebar-panel-item-wrap {
    position: relative;
}

/* Сам пункт меню */
.h3-sidebar-panel-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--h3-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid var(--h3-hair);
}

.h3-sidebar-panel-item-wrap:last-child .h3-sidebar-panel-item {
    border-bottom: none;
}

.h3-sidebar-panel-item .h3-sp-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h3-sidebar-panel-item .h3-sp-icon svg {
    width: 24px;
    height: 24px;
}

.h3-sidebar-panel-item .h3-sp-text {
    flex: 1;
}

.h3-sidebar-panel-item .h3-sp-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--h3-line-3);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.h3-sidebar-panel-item .h3-sp-arrow svg {
    width: 18px;
    height: 18px;
}

/* Hover на пункте */
.h3-sidebar-panel-item-wrap:hover > .h3-sidebar-panel-item,
.h3-sidebar-panel-item-wrap.active > .h3-sidebar-panel-item {
    background: var(--h3-ground);
    color: var(--h3-red);
}

/* ── Flyout подменю (мега-меню справа) ── */
.h3-flyout {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 550px;
    background: #fff;
    border-left: 1px solid var(--h3-line);
    box-shadow: 8px 0 30px rgba(21, 18, 15, 0.10);
    padding: 25px;
    z-index: 510;
    overflow: hidden;
}

/* Показать flyout при наведении на пункт с children */
.h3-sidebar-panel-item-wrap.has-children:hover > .h3-flyout {
    display: block;
}

/* Шапка flyout */
.h3-flyout-header {
    position: relative;
    padding-bottom: 13px;
    border-bottom: 3px solid var(--h3-ink);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.h3-flyout-title {
    font-family: var(--h3-disp);
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--h3-ink);
}

/* Сетка подкатегорий */
.h3-flyout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

/* Карточка подкатегории */
.h3-flyout-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    border: 1px solid var(--h3-line);
    border-radius: 0;
    text-decoration: none;
    color: var(--h3-ink);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.h3-flyout-card:hover {
    background: var(--h3-ground);
    border-color: var(--h3-line-2);
    color: var(--h3-red);
}

/* Иконка-миниатюра */
.h3-flyout-card-thumb {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: var(--h3-ground);
    border: 1px solid var(--h3-line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--h3-red);
    transition: background 0.15s, border-color 0.15s;
}

.h3-flyout-card:hover .h3-flyout-card-thumb {
    background: #fff;
    border-color: var(--h3-line-2);
}

.h3-flyout-card-thumb svg,
.h3-flyout-card-thumb img {
    width: 20px;
    height: 20px;
}

.h3-flyout-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

/* Промо-баннер внизу flyout */
.h3-flyout-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    height: 69px;
    padding: 0 20px;
    background: var(--h3-ink);
    border-radius: 0;
    text-decoration: none;
    color: #fff;
    margin-top: 0;
    flex-shrink: 0;
    transition: background 0.2s;
}

.h3-flyout-banner:hover {
    background: #241f1a;
    color: #fff;
}

.h3-flyout-banner-text {
    font-family: var(--h3-disp);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    max-width: 300px;
}

.h3-flyout-banner-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 16px;
    background: var(--h3-red);
    color: #fff;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s;
}

.h3-flyout-banner:hover .h3-flyout-banner-btn {
    background: var(--h3-red-dk);
}

/* ─── Слайдер товаров в flyout ─── */
.h3-flyout-products {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 0 0;
    border-top: 1px solid var(--h3-line);
    overflow: hidden;
}

.h3-flyout-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.h3-flyout-products-title {
    font-family: var(--h3-disp);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--h3-ink);
}

.h3-flyout-products-nav {
    display: flex;
    gap: 6px;
}

.h3-fp-prev,
.h3-fp-next {
    width: 34px;
    height: 34px;
    border: 1px solid var(--h3-line-2);
    border-radius: 0;
    background: #fff;
    color: var(--h3-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    padding: 0;
    -webkit-appearance: none;
}

.h3-fp-prev:hover,
.h3-fp-next:hover {
    border-color: var(--h3-ink);
    background: var(--h3-ink);
}

.h3-fp-prev svg,
.h3-fp-next svg {
    width: 15px;
    height: 15px;
    stroke: var(--h3-faint) !important;
    transition: stroke 0.2s;
}

.h3-flyout-swiper {
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.h3-flyout-swiper::-webkit-scrollbar {
    display: none;
}

.h3-flyout-swiper .h3-slides {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.h3-flyout-swiper .h3-slide {
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.h3-fp-card {
    display: flex;
    flex-direction: column;
    width: 160px;
    height: auto;
    text-decoration: none;
    color: var(--h3-ink);
    transition: opacity 0.2s;
}

.h3-fp-card:hover {
    opacity: 0.85;
    color: var(--h3-ink);
}

.h3-fp-card-img {
    width: 100%;
    /* фиксированная высота: карточка всегда полная, подпись не обрезается.
       Если flyout не помещается по высоте, он скроллится (overflow-y: auto). */
    height: 190px;
    flex: none;
    border-radius: 0;
    overflow: hidden;
    background: var(--h3-ground);
    margin-bottom: 9px;
    flex-shrink: 0;
}

.h3-fp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.h3-fp-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h3-fp-card-price {
    font-size: 12px;
    color: var(--h3-mut);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ─── Статичный баннер (для "О производстве", "Услуги", "О компании") ─── */
.h3-flyout-static-banner {
    flex: 1;
    min-height: 120px;
    display: flex;
    padding: 18px 0 0;
    border-top: 1px solid var(--h3-line);
    overflow: hidden;
}

.h3-flyout-static-banner a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    transition: opacity 0.3s;
}

.h3-flyout-static-banner a:hover {
    opacity: 0.92;
}

.h3-flyout-static-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ─── Статичный баннер (мобильная версия) ─── */
.h3-mob-static-banner {
    padding: 15px;
    border-top: 1px solid var(--h3-line);
}

.h3-mob-static-banner a {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--h3-line);
}

.h3-mob-static-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ─── Слайдер товаров в мобильном drilldown ─── */
.h3-mob-products {
    padding: 18px 15px;
    border-top: 1px solid var(--h3-line);
}

.h3-mob-products .h3-flyout-products-header {
    margin-bottom: 10px;
}

.h3-mob-products-swiper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.h3-mob-products-swiper::-webkit-scrollbar {
    display: none;
}

.h3-mob-products-swiper .h3-slides {
    display: flex;
    gap: 10px;
}

.h3-mob-products-swiper .h3-slide {
    width: 150px;
    flex-shrink: 0;
}

/* Flyout — десктоп позиционирование на всю высоту nav */
@media (min-width: 769px) {
    .h3-sidebar-panel-nav {
        position: relative;
        overflow: visible;
    }

    /* item-wrap = static, чтобы flyout позиционировался относительно nav */
    .h3-sidebar-panel-item-wrap {
        position: static;
    }

    .h3-flyout {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 100%;
        width: 550px;
        max-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Невидимый мостик слева — чтобы hover не терялся при движении мыши к flyout */
    .h3-flyout::before {
        content: '';
        position: absolute;
        top: 0;
        left: -20px;
        width: 20px;
        height: 100%;
        z-index: 1;
    }

    .h3-sidebar-panel-item-wrap.has-children:hover > .h3-flyout {
        display: flex;
        flex-direction: column;
    }
}

/* Контакты внизу панели */
.h3-sidebar-panel-contacts {
    flex-shrink: 0;
    height: 68px;
    padding: 0 20px;
    border-top: 1px solid var(--h3-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.h3-sidebar-panel-contacts a {
    color: var(--h3-ink);
    /* не дисплейный шрифт: bebasneuecyrillic рисует «+» как «±» */
    font-family: var(--h3-ui);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s;
}

.h3-sidebar-panel-contacts a:hover {
    color: var(--h3-red);
}

.h3-sidebar-panel-contacts span {
    color: var(--h3-mut);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Затемнение фона */
.h3-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 499;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.h3-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* На ПК overlay менее заметный — не блокирует контент */
@media (min-width: 769px) {
    .h3-sidebar-overlay {
        background: rgba(0, 0, 0, 0.15);
    }
}

/* ============================================================
   TOP BAR — тонкая серая полоска
   ============================================================ */
.h3-topbar {
    background: #fff;
    border-bottom: 1px solid var(--h3-line);
    font-size: 12px;
    color: var(--h3-mut);
    height: 40px;
    margin-left: 60px;
}

.h3-topbar .h3-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Левая часть — навигация */
.h3-topbar-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.h3-topbar-left a {
    padding: 0 15px;
    color: var(--h3-mut);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 40px;
    border-right: 1px solid var(--h3-line);
    white-space: nowrap;
}

.h3-topbar-left a:first-child {
    padding-left: 0;
}

.h3-topbar-left a:last-child {
    border-right: none;
}

/* Правая часть — инфо */
.h3-topbar-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.h3-topbar-right .h3-topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 12px;
    color: var(--h3-mut);
    line-height: 40px;
    border-left: 1px solid var(--h3-line);
    white-space: nowrap;
    cursor: default;
}

.h3-topbar-right .h3-topbar-item:last-child {
    padding-right: 0;
}

.h3-topbar-right .h3-topbar-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: var(--h3-faint);
}

/* ============================================================
   MAIN HEADER — основная строка
   ============================================================ */
.h3-main {
    position: relative;
    background: #fff;
    border-bottom: none;
    height: 85px;
    margin-left: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Sticky header: при скролле прилипает к верху */
.h3-main.h3-sticky {
    position: fixed;
    top: 0;
    left: 60px;
    right: 0;
    margin: 0;
    padding: 0;
    height: 68px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(21, 18, 15, 0.10);
    animation: h3SlideDown 0.3s ease forwards;
}

@keyframes h3SlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.h3-main .h3-container {
    display: flex;
    align-items: center;
    gap: 15px;
    height: calc(100% - 3px);
}

/* === Логотип === */
.h3-logo {
    flex-shrink: 0;
}

.h3-logo a {
    font-family: var(--h3-disp);
    font-size: 26px;
    font-weight: 500;
    color: var(--h3-ink);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
}

.h3-logo-img {
    height: 36px;
    width: auto;
}

.h3-logo a:hover {
    color: var(--h3-red);
}

/* === Кнопка «Все Категории» === */
.h3-categories-btn {
    flex-shrink: 0;
    position: relative;
}

.h3-categories-btn > button {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 20px;
    background: var(--h3-red);
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: var(--h3-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.h3-categories-btn > button:hover {
    background: var(--h3-red-dk);
}

.h3-categories-btn > button svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* Dropdown категорий */
.h3-categories-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 340px;
    background: #fff;
    border: 1px solid var(--h3-line-2);
    border-radius: 0;
    box-shadow: 0 16px 40px rgba(21, 18, 15, 0.14);
    padding: 0;
    z-index: 200;
}

.h3-categories-btn.active .h3-categories-dropdown {
    display: block;
}

.h3-categories-dropdown a {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 18px;
    color: var(--h3-ink);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.h3-categories-dropdown a:hover {
    background: var(--h3-ground);
    color: var(--h3-red);
}

/* === Поиск === */
.h3-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.h3-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--h3-line-3);
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    height: 42px;
    transition: border-color 0.2s;
}

.h3-search-form:focus-within {
    border-color: var(--h3-red);
}

/* Скрыть всё инжектированное в форму поиска (honeypot антиспам и пр.) */
.h3-search-form > *:not(input[name="s"]):not(.h3-search-submit):not(.h3-search-clear) {
    display: none !important;
}

.h3-search-form input {
    flex: 1;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--h3-ink);
    background: transparent;
    font-family: inherit;
    height: 100%;
}

.h3-search-form input::placeholder {
    color: var(--h3-faint);
}

.h3-search-form button {
    width: 46px;
    flex: none;
    padding: 0;
    background: var(--h3-red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: background 0.2s;
}

.h3-search-form button svg {
    width: 19px;
    height: 19px;
    stroke: #fff;
    fill: none;
}

.h3-search-form button:hover svg {
    stroke: #fff;
}

/* Крестик — скрыт по умолчанию, показывается когда есть текст */
.h3-search-clear {
    display: none !important;
}

.h3-search-form.has-value .h3-search-submit {
    display: none !important;
}

.h3-search-form.has-value .h3-search-clear {
    display: flex !important;
}

.h3-search-clear svg {
    width: 16px;
    height: 16px;
}

/* === Поиск — Dropdown результатов === */
.h3-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--h3-line-2);
    border-top: none;
    box-shadow: 0 16px 40px rgba(21, 18, 15, 0.14);
    z-index: 1000;
    display: none;
    max-height: 420px;
    overflow-y: auto;
}

.h3-search-dropdown.active {
    display: block;
}

/* Элемент результата */
.h3-search-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 16px;
    text-decoration: none !important;
    color: var(--h3-ink) !important;
    transition: background 0.15s;
    border-bottom: 1px solid var(--h3-hair);
}

.h3-search-item:last-child {
    border-bottom: none;
}

.h3-search-item:hover {
    background: var(--h3-ground);
    color: var(--h3-ink) !important;
}

/* Миниатюра */
.h3-search-item-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--h3-ground);
    display: flex;
    align-items: center;
    justify-content: center;
}

.h3-search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h3-search-no-thumb svg {
    width: 24px;
    height: 24px;
}

/* Инфо блок */
.h3-search-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.h3-search-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--h3-ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h3-search-item:hover .h3-search-item-title {
    color: var(--main-color, #CE001A);
}

.h3-search-item-cat {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h3-mut);
    line-height: 1.2;
    margin-top: 3px;
}

.h3-search-item-price {
    font-family: var(--h3-disp);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--h3-red);
    line-height: 1.2;
}

/* Ссылка "Показать все" */
.h3-search-all {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--h3-red) !important;
    text-decoration: none !important;
    background: var(--h3-ground);
    border-top: 1px solid var(--h3-line);
    transition: background 0.15s;
}

.h3-search-all:hover {
    background: #f3efe9;
    color: var(--h3-red) !important;
}

/* Состояние загрузки */
.h3-search-loading {
    padding: 20px 14px;
    text-align: center;
    color: var(--h3-mut);
    font-size: 13px;
}

.h3-search-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--h3-line);
    border-top-color: var(--h3-red);
    border-radius: 50%;
    animation: h3-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes h3-spin {
    to { transform: rotate(360deg); }
}

/* Пусто */
.h3-search-empty {
    padding: 20px 14px;
    text-align: center;
    color: var(--h3-mut);
    font-size: 13px;
}

/* Мобильный dropdown */
.h3-mob-search-wrap {
    position: relative;
    flex: 1;
}

/* Мобильный dropdown висит под линией шапки, а не под самим полем:
   поле кончается на 47px, шапка на 59px, отсюда сдвиг 12px.
   Влево уходит на ширину бургера и логотипа с зазорами (40+12+60+12), чтобы
   встать вровень с полями страницы. */
.h3-search-dropdown-mob {
    top: calc(100% + 12px);
    left: -124px;
    right: 0;
    max-height: 60vh;
}

@media (max-width: 359px) {
    .h3-search-dropdown-mob {
        left: -52px;
    }
}

/* === Навигация (справа от поиска) === */
.h3-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* --- Кнопки CTA в навигации --- */
.h3-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: var(--h3-ui);
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.h3-nav-btn--filled {
    background: var(--h3-red);
    color: #fff;
    border: 1px solid var(--h3-red);
}

.h3-nav-btn--filled:hover {
    background: var(--h3-red-dk);
    border-color: var(--h3-red-dk);
}

.h3-nav-btn--outline {
    background: #fff;
    color: var(--h3-ink);
    border: 1px solid var(--h3-ink);
}

.h3-nav-btn--outline:hover {
    background: var(--h3-ink);
    color: #fff;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

/* Планшет — < 1200px */
@media (max-width: 1200px) {
    .h3-nav {
        gap: 0;
    }

    .h3-logo a {
        font-size: 22px;
    }
}

/* Планшет — < 992px */
@media (max-width: 992px) {
    .h3-nav {
        display: none;
    }

    .h3-categories-btn {
        display: none;
    }

    .h3-search {
        max-width: none;
        flex: 1;
    }

    .h3-main .h3-container {
        gap: 15px;
    }

    /* Sidebar панель уже — для планшета */
    .h3-sidebar-panel {
        width: 380px;
    }
}

/* ============================================================
   МОБИЛЬНЫЙ ХЕДЕР — скрыт на десктопе
   ============================================================ */
.h3-mobile-header {
    display: none;
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ (с табами) — скрыто по умолчанию
   ============================================================ */
.h3-mob-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #fff;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    border-right: 1px solid var(--h3-line);
}

/* Шапка ящика: красный квадрат, логотип, крестик */
.h3-mob-menu-head {
    flex: none;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 15px;
    border-bottom: 1px solid var(--h3-line);
}

.h3-mob-menu-mark {
    width: 9px;
    height: 9px;
    flex: none;
    margin-right: 14px;
    background: var(--h3-red);
}

.h3-mob-menu-head-logo {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.h3-mob-menu-head-logo img {
    width: 52px;
    height: 28px;
    flex: none;
    object-fit: contain;
}

.h3-mob-menu-head-logo span {
    font-family: var(--h3-disp);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--h3-ink);
    white-space: nowrap;
}

.h3-mob-menu-close {
    width: 40px;
    height: 40px;
    margin-right: -10px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--h3-ink);
}

.h3-mob-menu-close svg {
    width: 18px;
    height: 18px;
}

.h3-mob-menu.active {
    left: 0;
}

/* Футер мобильного меню (логотип + контакты) */
.h3-mob-menu-footer {
    margin-top: auto;
    padding: 16px 15px 18px;
    border-top: 1px solid var(--h3-line);
    background: var(--h3-ground);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.h3-mob-menu-footer-phone {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--h3-ink);
    text-decoration: none;
}

.h3-mob-menu-footer-location {
    font-size: 12px;
    font-weight: 500;
    color: var(--h3-mut);
}

.h3-mob-menu-footer-hours {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h3-faint);
}

.h3-mob-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 18, 15, 0.55);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.h3-mob-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Блокировка скролла при открытом мобильном меню */
html.h3-mob-menu-open,
html.h3-mob-menu-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Прячем сайдбар под оверлей при открытом меню */
html.h3-mob-menu-open .h3-sidebar {
    z-index: 0 !important;
}

/* Табы */
.h3-mob-tabs {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid var(--h3-line);
}

.h3-mob-tab {
    flex: 1;
    height: 46px;
    padding: 0 10px;
    text-transform: uppercase;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font-family: var(--h3-disp);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--h3-faint);
    cursor: pointer;
    text-align: center;
    transition: color 0.2s, border-color 0.2s;
}

.h3-mob-tab.active {
    color: var(--h3-ink);
    border-bottom-color: var(--h3-red);
}

/* Контент табов */
.h3-mob-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.h3-mob-tab-content.active {
    display: block;
}

/* Пункты мобильного меню */
.h3-mob-menu a,
.h3-mob-menu a:visited,
.h3-mob-menu a:link {
    color: var(--h3-ink) !important;
    text-decoration: none !important;
}

.h3-mob-menu-item {
    display: flex;
    align-items: center;
    min-height: 55px;
    padding: 0 15px;
    color: var(--h3-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--h3-hair);
    transition: background 0.15s;
}

.h3-mob-menu-item:hover {
    background: var(--h3-ground);
}

.h3-mob-menu-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h3-ink);
}

.h3-mob-menu-icon svg,
.h3-mob-menu-icon img {
    width: 22px;
    height: 22px;
}

.h3-mob-menu-text {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
}

/* Стрелка прижата к правому краю строки: коробка 44px съедает падинг 15px */
.h3-mob-menu-arrow {
    width: 44px;
    height: 55px;
    margin-right: -15px;
    flex-shrink: 0;
    color: var(--h3-line-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.h3-mob-menu-arrow svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   DRILLDOWN — мобильные подменю (slide)
   ============================================================ */

/* Контейнер табов — контекст для абсолютного позиционирования */
#h3MobTabCategories {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Все уровни drilldown */
.h3-mob-drilldown-level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

/* Корневой уровень — по умолчанию видим */
.h3-mob-drilldown-root {
    position: relative;
    height: auto;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

/* Текущий уровень — видимый */
.h3-mob-drilldown-level.h3-mob-drilldown-current {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

/* Корневой уровень сдвигается влево, когда открыт child */
.h3-mob-drilldown-root.h3-mob-drilldown-hidden {
    transform: translateX(-30%);
    pointer-events: none;
    visibility: hidden;
}

/* Элемент с children: курсор на стрелку */
.h3-mob-has-children {
    cursor: default;
}

.h3-mob-has-children .h3-mob-menu-text {
    flex: 1;
}

/* Стрелка drilldown — кликабельная область */
.h3-mob-drill-arrow {
    cursor: pointer;
    border-left: 1px solid var(--h3-hair);
    transition: background 0.15s, color 0.15s;
    color: var(--h3-ink);
}

.h3-mob-drill-arrow:hover {
    background: var(--h3-ground);
    color: var(--h3-red);
}

/* Кнопка «Назад» */
.h3-mob-drilldown-back {
    background: var(--h3-ground);
    border-bottom: 1px solid var(--h3-line);
    cursor: pointer;
}

.h3-mob-drilldown-back .h3-mob-menu-text {
    font-family: var(--h3-disp);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Стрелка «назад» идёт первой в строке, а не у правого края */
.h3-mob-back-arrow {
    width: 24px;
    height: 24px;
    margin: 0 12px 0 0;
    color: var(--h3-ink);
}

.h3-mob-back-arrow svg {
    width: 16px;
    height: 16px;
}

/* Ссылка «Все …» */
.h3-mob-view-all {
    min-height: 52px;
    background: var(--h3-ground);
    border-bottom: 1px solid var(--h3-line);
}

.h3-mob-view-all .h3-mob-menu-text {
    color: var(--h3-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* Стрелка в строке «Все …» — красная, того же начертания, что в дропдауне категорий */
.h3-mob-view-all-arrow {
    color: var(--h3-red);
}

.h3-mob-view-all-arrow svg {
    width: 20px;
    height: 11px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Мобилка — < 768px */
@media (max-width: 768px) {
    /* Скрываем десктоп хедер и sidebar */
    .h3-desktop-only {
        display: none !important;
    }

    .h3-sidebar {
        display: none;
    }

    .h3-sidebar-panel,
    .h3-sidebar-overlay {
        display: none;
    }

    /* Скрыть flyout на мобилке */
    .h3-flyout {
        display: none !important;
    }

    /* Показываем мобильный хедер.
       Волосяная линия вместо чёрного бруска 3px (убран 2026-08-29, как на десктопе).
       Высота строки: 9 + 40 + 9 + 1 = 59px. */
    .h3-mobile-header {
        display: block;
        background: #fff;
        border-bottom: 1px solid var(--h3-line);
        position: relative;
        z-index: 100;
    }

    .h3-mobile-header-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 15px;
    }

    /* Мобильный бургер */
    .h3-mob-burger {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid var(--h3-line);
        cursor: pointer;
        padding: 0;
        color: var(--h3-ink);
    }

    .h3-mob-burger svg {
        width: 20px;
        height: 20px;
    }

    /* Мобильный логотип: 585x311 в исходнике, при высоте 32 ширина 60 */
    .h3-mob-logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .h3-mob-logo img {
        height: 32px;
        width: auto;
    }

    /* Мобильный поиск: белое поле с рамкой и красным квадратом отправки */
    .h3-mob-search-wrap {
        flex: 1;
        min-width: 0;
        position: relative;
    }

    .h3-mob-search {
        display: flex;
        align-items: center;
        height: 38px;
        background: #fff;
        border: 1px solid var(--h3-line-3);
        border-radius: 0;
        padding: 0;
    }

    /* Скрыть honeypot и hidden inputs в мобильном поиске */
    .h3-mob-search > *:not(input[name="s"]):not(.h3-mob-search-clear):not(.h3-mob-search-go) {
        display: none !important;
    }

    /* Мобильный крестик — только когда в поле есть текст */
    .h3-mob-search-clear {
        display: none !important;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 36px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
        color: var(--h3-faint);
    }

    .h3-mob-search-clear svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
    }

    .h3-mob-search.has-value .h3-mob-search-clear {
        display: flex !important;
    }

    /* Красный квадрат отправки */
    .h3-mob-search-go {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 36px;
        flex-shrink: 0;
        padding: 0;
        border: none;
        background: var(--h3-red);
        cursor: pointer;
        color: #fff;
    }

    .h3-mob-search-go svg {
        width: 17px;
        height: 17px;
        stroke: #fff;
    }

    .h3-mob-search input {
        flex: 1;
        min-width: 0;
        border: none;
        background: none;
        outline: none;
        padding: 0 10px;
        font-size: 16px;
        color: var(--h3-ink);
        font-family: inherit;
    }

    .h3-mob-search input::placeholder {
        color: var(--h3-faint);
    }

    /* Экраны от 360px и уже: плашка поиска не помещается вместе с логотипом */
    @media (max-width: 359px) {
        .h3-mob-logo {
            display: none;
        }
    }

    /* CTA кнопки в мобильном меню */
    .h3-mob-menu-item.h3-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 8px 15px 0;
        padding: 0 16px;
        border-radius: 0;
        text-align: center;
        height: 50px;
        min-height: 50px;
        border-bottom: none;
    }

    .h3-mob-menu-item.h3-nav-btn:first-of-type {
        margin-top: 18px;
    }

    .h3-mob-menu-item.h3-nav-btn .h3-mob-menu-text {
        flex: none;
        font-family: var(--h3-disp);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: inherit;
    }

    .h3-mob-menu-item.h3-nav-btn--filled {
        background: var(--h3-red);
        color: #fff;
        border: 1px solid var(--h3-red);
    }

    .h3-mob-menu-item.h3-nav-btn--filled .h3-mob-menu-text {
        color: #fff;
    }

    .h3-mob-menu-item.h3-nav-btn--outline {
        background: #fff;
        color: var(--h3-ink);
        border: 1px solid var(--h3-ink);
    }

    .h3-mob-menu-item.h3-nav-btn--outline .h3-mob-menu-text {
        color: var(--h3-ink);
    }
}

/* ═══════ Нижняя мобильная панель ═══════ */
.h3-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .h3-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 350;
        display: flex;
        align-items: stretch;
        height: 56px;
        background: #fff;
        border-top: 1px solid var(--h3-line);
    }

    .h3-bottom-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        gap: 5px;
        height: 100%;
        border: none;
        border-right: 1px solid var(--h3-hair);
        background: none;
        padding: 0;
        cursor: pointer;
        text-decoration: none;
        color: var(--h3-soft);
        -webkit-tap-highlight-color: transparent;
    }

    .h3-bottom-bar__item:last-child {
        border-right: none;
    }

    .h3-bottom-bar__item:active {
        color: var(--h3-red);
    }

    /* Первый пункт — вход в меню, он же главный: красный */
    .h3-bottom-bar__item:first-child {
        color: var(--h3-red);
    }

    .h3-bottom-bar__item svg {
        width: 21px;
        height: 21px;
        flex-shrink: 0;
        stroke: currentColor;
    }

    .h3-bottom-bar__item span {
        font-family: var(--h3-disp);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        line-height: 1;
    }

    /* Отступ контента снизу, чтобы панель не перекрывала */
    body {
        padding-bottom: 56px;
    }
}

/* ============================================================
   БРЕНДБУК 2026-08 — новые элементы шапки
   Макет: docs/design/header/
   ============================================================ */

/* Красная полоска слева на активной иконке рейки и пункте панели */
.h3-sidebar-icon::before,
.h3-sidebar-panel-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--h3-red);
    opacity: 0;
    transition: opacity 0.15s;
}

.h3-sidebar-icon:hover::before,
.h3-sidebar-panel-item-wrap:hover > .h3-sidebar-panel-item::before,
.h3-sidebar-panel-item-wrap.active > .h3-sidebar-panel-item::before {
    opacity: 1;
}

.h3-sidebar-panel-item-wrap:hover > .h3-sidebar-panel-item .h3-sp-arrow {
    color: var(--h3-red);
}

/* Вертикальная подпись внизу рейки */
.h3-sidebar-mark {
    margin-top: auto;
    margin-bottom: 22px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--h3-disp);
    font-size: 14px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--h3-faint);
    white-space: nowrap;
    pointer-events: none;
}

/* Шапка выдвижной панели */
.h3-sp-close-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--h3-disp);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.h3-sp-close-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.h3-sidebar-panel-close:hover .h3-sp-close-x {
    opacity: 1;
}

.h3-sp-close-x svg {
    width: 16px;
    height: 16px;
}

/* Полоса прокрутки слайдера моделей */
.h3-fp-rail {
    position: relative;
    height: 2px;
    margin-top: 16px;
    background: var(--h3-line);
    flex-shrink: 0;
}

.h3-fp-rail-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 40%;
    background: var(--h3-red);
    transition: left 0.15s linear;
}

/* Блок «подберём модель» над баннером flyout */
.h3-flyout-consult {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 84px;
    padding: 0 20px;
    margin: 20px 0 10px;
    border: 1px solid var(--h3-line);
    background: var(--h3-ground);
    flex-shrink: 0;
}

.h3-fc-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--h3-ink);
    max-width: 250px;
}

.h3-fc-contact {
    text-align: right;
}

.h3-fc-contact a {
    display: block;
    white-space: nowrap;
    /* см. выше: «+» в дисплейном шрифте выглядит как «±» */
    font-family: var(--h3-ui);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--h3-ink);
    text-decoration: none;
}

.h3-fc-contact a:hover {
    color: var(--h3-red);
}

.h3-fc-contact span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h3-mut);
}

/* Топбар: красный квадрат и телефон */
.h3-topbar-mark {
    width: 9px;
    height: 9px;
    flex: none;
    margin-right: 16px;
    background: var(--h3-red);
}

.h3-topbar-right .h3-topbar-item--phone {
    color: var(--h3-ink);
    font-weight: 700;
    cursor: pointer;
}

.h3-topbar-right .h3-topbar-item--phone svg {
    stroke: var(--h3-red);
}

/* Линейка под основной строкой (внутри её 85px).
   Была двойной (3px + 1px), потом одним чёрным бруском 3px. Владелец убрал чёрную
   полосу 2026-08-29: осталась волосяная линия, она держит границу шапки на светлых
   страницах и не спорит с тёмным героем на главной. */
.h3-main::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--h3-line);
}

/* Прилипшая шапка: логотип и строка ниже */
.h3-main.h3-sticky .h3-container {
    height: 63px;
}

.h3-main.h3-sticky .h3-logo-img {
    height: 30px;
}

.h3-main.h3-sticky .h3-logo a {
    font-size: 21px;
}

/* Дропдаун категорий: шапка и подвал */
.h3-cat-folio {
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--h3-line);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h3-mut);
}

.h3-cat-list {
    padding: 6px 0;
}

.h3-categories-dropdown .h3-cat-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 18px;
    border-top: 1px solid var(--h3-line);
    background: var(--h3-ground);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--h3-red);
}

.h3-categories-dropdown .h3-cat-all:hover {
    background: #f3efe9;
    color: var(--h3-red);
}

.h3-cat-all svg {
    width: 20px;
    height: 11px;
    flex: none;
    stroke: var(--h3-red);
}

/* Третья кнопка CTA */
.h3-nav-btn--ghost {
    background: #fff;
    color: var(--h3-soft);
    border: 1px solid var(--h3-line-2);
}

.h3-nav-btn--ghost:hover {
    border-color: var(--h3-ink);
    color: var(--h3-ink);
}

@media (max-width: 1024px) {
    .h3-mob-menu-item.h3-nav-btn--ghost {
        background: transparent;
        color: var(--h3-ink);
        border: 2px solid var(--h3-line-2);
    }

    .h3-mob-menu-item.h3-nav-btn--ghost .h3-mob-menu-text {
        color: var(--h3-ink);
    }
}

/* Flyout обязан помещаться в высоту окна: прокрутки внутри меню быть не должно.
   Худший случай это три ряда подкатегорий (Дробилки, Ролики, Запчасти) плюс
   слайдер моделей: ему нужно 843px, то есть окно от 961px. Ниже ужимаем по ступеням.
   Порядок жертв: сначала блок с телефоном, потом фото моделей, потом карточки. */
@media (max-height: 1000px) {
    .h3-flyout-consult {
        display: none;
    }
}

@media (max-height: 880px) {
    .h3-fp-card-img {
        height: 160px;
    }

    .h3-flyout-card {
        padding: 8px 13px;
    }

    .h3-flyout-card-thumb {
        width: 38px;
        height: 38px;
    }
}

/* Сам список меню тоже должен помещаться: 11 пунктов по 57px не влезают
   в окно ниже 755px, поэтому там пункты ниже. */
@media (max-height: 760px) {
    .h3-sidebar-panel-item {
        padding: 11px 20px;
    }
}

@media (max-height: 800px) {
    .h3-flyout {
        padding: 18px;
    }

    .h3-flyout-grid {
        gap: 5px;
        margin-bottom: 14px;
    }

    .h3-flyout-card {
        padding: 6px 12px;
    }

    .h3-flyout-card-thumb {
        width: 34px;
        height: 34px;
    }

    .h3-flyout-card-name {
        font-size: 13px;
    }

    .h3-fp-card-img {
        height: 130px;
    }

    .h3-flyout-products {
        padding-top: 14px;
    }

    .h3-flyout-banner {
        height: 60px;
    }
}
