/* ═══════════════════════════════════════════════════════════════
   GazTech — main.css
   Design System: строгий промышленный + современный корпоративный
   Шрифты: Manrope (заголовки) + Geologica (текст)
════════════════════════════════════════════════════════════════ */

/* ── CSS-переменные ──────────────────────────────────────────── */
:root {
    /* Цвета */
    --color-steel:      #1c1c1e;
    --color-steel-700:  #2c2c2e;
    --color-steel-600:  #3a3a3c;
    --color-steel-400:  #636366;
    --color-steel-200:  #aeaeb2;
    --color-steel-100:  #e5e5ea;
    --color-steel-50:   #f2f2f7;
    --color-white:      #ffffff;
    --color-blue:       #0071e3;
    --color-blue-dark:  #0055b3;
    --color-blue-light: #e8f2ff;
    --color-accent:     #e85d04;
    --color-accent-dark:#c44d00;
    --color-green:      #16a34a;
    --color-orange:     #d97706;
    --color-red:        #dc2626;

    /* Типографика */
    --font-display: 'Manrope', sans-serif;
    --font-body:    'Geologica', sans-serif;
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;

    /* Отступы */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Контейнер */
    --container-max: 1280px;
    --container-px:  clamp(1rem, 4vw, 2rem);

    /* Радиусы */
    --radius-sm:  0.375rem;
    --radius-md:  0.625rem;
    --radius-lg:  1rem;
    --radius-xl:  1.5rem;
    --radius-full: 9999px;

    /* Тени */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:  0 16px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
    --shadow-xl:  0 32px 64px rgba(0,0,0,.18);

    /* Переходы */
    --transition:       150ms ease;
    --transition-slow:  300ms ease;

    /* Псевдонимы */
    --color-ink: var(--color-steel);

    /* Шапка */
    --header-height: 72px;
}

/* ── Сброс и база ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-steel);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

body.scroll-locked { overflow: hidden; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-blue); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }

/* ── Контейнер ───────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

/* ── Кнопки ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
    white-space: nowrap;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }

.btn--primary {
    background: var(--color-blue);
    color: #fff !important;
    border-color: var(--color-blue);
}
.btn--primary:hover { background: var(--color-blue-dark); border-color: var(--color-blue-dark); color: var(--color-white); }

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: var(--color-steel-200);
}
.btn--outline:hover { border-color: var(--color-blue); color: var(--color-blue); }

.btn--newoutline {
    background: #0071e3;
    color: #fff;
    border-color: #0071e3;
}
.btn--newoutline:hover { background-color: var(--color-orange);border-color: var(--color-orange); color: var(--color-white); }

.btn--accent { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }

.btn--whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn--whatsapp:hover { background: #20ba58; border-color: #20ba58; color: #fff; }

.btn--ghost { background: transparent; color: var(--color-blue); border-color: transparent; }
.btn--ghost:hover { background: var(--color-blue-light); }

.btn--sm  { color:#000; padding: 0.5rem 1rem;   font-size: var(--text-xs); }
.btn--lg  { padding: 0.875rem 2rem; font-size: var(--text-base); }
.btn--full { width: 100%; justify-content: center; }
.w-100 { width: 100%; }

/* ── Бейджи ──────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    width: max-content;
}
.badge--green  { background: #dcfce7; color: #166534; }
.badge--orange { background: #fef3c7; color: #92400e; }
.badge--red    { background: #fee2e2; color: #991b1b; }
.badge--blue   { background: var(--color-blue-light); color: var(--color-blue-dark); }

/* ── ШАПКА ───────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--color-steel-100);
    height: var(--header-height);
    transition: box-shadow var(--transition-slow);
}
.site-header--scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--space-6);
    height: 100%;
}

.site-header__logo { display: flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 36px; width: auto; }
.site-header__logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-steel);
    letter-spacing: -0.02em;
}

/* Навигация */
.site-header__nav { display: flex; align-items: center; justify-content: center; }
.nav-menu { display: flex; gap: var(--space-1); list-style: none; }
.nav-menu a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-steel-600);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--color-blue); background: var(--color-blue-light); }

/* Контакты */
.site-header__contacts { display: flex; align-items: center; gap: var(--space-4); }
.site-header__phone {
    display: flex; align-items: center; gap: var(--space-2);
    font-weight: 600; font-size: var(--text-sm);
    color: var(--color-steel);
    transition: color var(--transition);
}
.site-header__phone:hover { color: var(--color-blue); }

/* Бургер */
.site-header__burger {
    display: none; flex-direction: column; gap: 5px;
    padding: var(--space-2); border-radius: var(--radius-sm);
}
.site-header__burger span {
    display: block; width: 22px; height: 2px;
    background: var(--color-steel);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed; inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    z-index: 999;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    pointer-events: none;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu__inner { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.mobile-nav { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--color-steel-100); }
.mobile-nav a { display: block; padding: var(--space-4) 0; font-size: var(--text-lg); font-weight: 500; }
.mobile-menu__phone { font-size: var(--text-xl); font-weight: 700; text-align: center; color: var(--color-blue); }

/* ── ХЛЕБНЫЕ КРОШКИ ──────────────────────────────────────────── */
.breadcrumbs {
    padding: var(--space-3) 0;
    background: var(--color-steel-50);
    border-bottom: 1px solid var(--color-steel-100);
}
.breadcrumbs__list {
    display: flex; flex-wrap: wrap; gap: var(--space-2);
    align-items: center; list-style: none;
}
.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/'; color: var(--color-steel-400);
    margin-right: var(--space-2);
    font-size: var(--text-sm);
}
.breadcrumbs__link { font-size: var(--text-sm); color: var(--color-steel-400); transition: color var(--transition); }
.breadcrumbs__link:hover { color: var(--color-blue); }
.breadcrumbs__current { font-size: var(--text-sm); color: var(--color-steel); font-weight: 500; }

/* ── КАТАЛОГ — страница архива ───────────────────────────────── */
.catalog-page { padding: var(--space-12) 0; }
.catalog-page__header { margin-bottom: var(--space-10); }
.catalog-page__title { font-size: var(--text-3xl); }
.catalog-page__desc { margin-top: var(--space-3); color: var(--color-steel-400); max-width: 60ch; }

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-10);
    align-items: start;
}

/* Сайдбар */
.catalog-sidebar {
    position: sticky; top: calc(var(--header-height) + var(--space-6));
    background: var(--color-steel-50);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--color-steel-100);
}
.catalog-sidebar__title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-steel-400);
    margin-bottom: var(--space-4);
}
.catalog-sidebar__cats { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.catalog-sidebar__cat a {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm); font-weight: 500;
    color: var(--color-steel-600);
    transition: background var(--transition), color var(--transition);
}
.catalog-sidebar__cat a:hover { background: var(--color-white); color: var(--color-blue); }
.catalog-sidebar__cat--active > a { background: var(--color-blue); color: var(--color-white) !important; }
.catalog-sidebar__count { font-size: var(--text-xs); color: var(--color-steel-400); }
.catalog-sidebar__cat--active .catalog-sidebar__count { color: rgba(255,255,255,.7); }

.catalog-sidebar__sub { margin-top: var(--space-1); padding-left: var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.catalog-sidebar__sub-cat a { display: block; padding: 0.3rem var(--space-3); font-size: var(--text-sm); color: var(--color-steel-400); border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.catalog-sidebar__sub-cat a:hover { color: var(--color-blue); background: var(--color-white); }
.catalog-sidebar__sub-cat--active a { color: var(--color-blue); font-weight: 600; }

/* Контент */
.catalog-count { font-size: var(--text-sm); color: var(--color-steel-400); margin-bottom: var(--space-5); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

/* ── КАРТОЧКА ТОВАРА (в списке) ──────────────────────────────── */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.product-card__img-link { display: block; aspect-ratio: 1; overflow: hidden; background: var(--color-steel-50); }
.product-card__img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-4); transition: transform var(--transition-slow); }
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__img-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 200px; color: var(--color-steel-200); }

.product-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; gap: var(--space-3); }

.product-card__title {font-size: 1.15rem; color: #000000; margin-bottom: 8px; line-height: 28px; }
.product-card__title a:hover { color: var(--color-blue); }

.product-card__specs {
    display: flex; flex-wrap: wrap; gap: var(--space-2);
    font-size: var(--text-xs); color: var(--color-steel-400); list-style: none;
}
.product-card__specs li { padding: 2px 8px; background: var(--color-steel-50); border-radius: var(--radius-full); }

.product-card__prices { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto; }
.product-card__price-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.product-card__price-label { font-size: var(--text-xs); color: var(--color-steel-400); }
.product-card__price { font-size: var(--text-lg); font-weight: 700; color: var(--color-steel); }
.product-card__price--main { color: var(--color-blue); font-size: var(--text-xl); }
.product-card__price--inquiry { color: var(--color-steel-400); font-size: var(--text-base); font-style: italic; }

.product-card__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* Пустой каталог */
.catalog-empty { text-align: center; padding: var(--space-20) var(--space-8); color: var(--color-steel-400); }
.catalog-empty svg { margin: 0 auto var(--space-6); }
.catalog-empty h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); color: var(--color-steel); }

/* ── СТРАНИЦА ТОВАРА ─────────────────────────────────────────── */
.product-page { padding: var(--space-10) 0 var(--space-16); }

.product-top {
    display: inline-flex;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
    align-items: start;
}

/* Галерея */
.product-gallery { display: flex; flex-direction: column; gap: var(--space-3); position: static; top: calc(var(--header-height) + var(--space-4)); }
.product-gallery__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-steel-50);
    border: 1px solid var(--color-steel-100);
    aspect-ratio: 1;
}
.product-gallery__img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-6); transition: opacity 0.25s ease; }
.product-gallery__img.gallery-fade { opacity: 0.3; }
.product-gallery__placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--color-steel-50); color: var(--color-steel-200); border: 1px solid var(--color-steel-100); }

.product-gallery__thumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.product-gallery__thumb {
    width: 72px; height: 72px; padding: 0;
    border: 2px solid var(--color-steel-100);
    border-radius: var(--radius-md);
    overflow: hidden; background: var(--color-steel-50);
    cursor: pointer;
    transition: border-color var(--transition);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumb.is-active { border-color: var(--color-blue); }
.product-gallery__thumb:hover { border-color: var(--color-steel-400); }

.product-gallery__video-link { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-blue); font-weight: 500; }

/* Сводка товара */
.product-summary { display: flex; flex-direction: column; gap: var(--space-5); }
.product-summary__cats { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.product-summary__cat-link { font-size: var(--text-xs); color: var(--color-blue); background: var(--color-blue-light); padding: 2px 10px; border-radius: var(--radius-full); font-weight: 600; }
.product-summary__title { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
.product-summary__stock { display: flex; align-items: center; gap: var(--space-3); }
.product-summary__gost { font-size: var(--text-xs); color: var(--color-steel-400); }
.product-summary__excerpt { color: var(--color-steel-600); line-height: 1.7; }

/* Блок цен */
.product-prices {
    background: var(--color-steel-50);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex; flex-direction: column; gap: var(--space-3);
}
.product-prices__item { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.product-prices__label { font-size: var(--text-sm); color: var(--color-steel-400); }
.product-prices__value { font-size: var(--text-2xl); font-weight: 800; color: var(--color-steel); }
.product-prices__value--main { color: var(--color-blue); font-size: var(--text-3xl); }
.product-prices__value--inquiry { color: var(--color-steel-400); font-style: italic; font-size: var(--text-lg); font-weight: 500; }
.product-prices__note { font-size: var(--text-xs); color: var(--color-steel-400); margin-top: var(--space-1); }

.product-summary__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.product-summary__quick-specs { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-steel-600); list-style: none; }
.product-summary__quick-specs strong { color: var(--color-steel); }

/* Табы */
.product-tabs { margin-bottom: var(--space-12); border: 1px solid var(--color-steel-100); border-radius: var(--radius-lg); overflow: hidden; }
.product-tabs__nav {
    display: flex; flex-wrap: wrap;
    background: var(--color-steel-50);
    border-bottom: 1px solid var(--color-steel-100);
    list-style: none;
}
.product-tabs__btn {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm); font-weight: 600;
    color: var(--color-steel-400);
    border-bottom: 2px solid transparent;
    background: none; border-top: none; border-left: none; border-right: none;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    white-space: nowrap;
}
.product-tabs__btn:hover { color: var(--color-steel); }
.product-tabs__btn.is-active { color: var(--color-blue); border-bottom-color: var(--color-blue); background: var(--color-white); }
.product-tabs__panel { display: none; }
.product-tabs__panel.is-active { display: block; }
.product-tabs__content { padding: var(--space-6) var(--space-8); }

/* Таблица характеристик */
.specs-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.specs-table th, .specs-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--color-steel-100); }
.specs-table th { font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-steel-400); background: var(--color-steel-50); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover td { background: var(--color-steel-50); }

/* Prose (текстовый контент) */
.prose { line-height: 1.75; color: var(--color-steel-600); }
.prose h2, .prose h3 { font-family: var(--font-display); color: var(--color-steel); margin: var(--space-6) 0 var(--space-3); }
.prose p { margin-bottom: var(--space-4); }
.prose ul, .prose ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--color-blue); text-decoration: underline; }
.prose strong { font-weight: 700; color: var(--color-steel); }

/* FAQ */
.product-faq { margin-bottom: var(--space-12); }
.product-faq__title { font-size: var(--text-2xl); margin-bottom: var(--space-6); }

.faq-accordion { display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item { border: 1px solid var(--color-steel-100); border-radius: var(--radius-md); overflow: hidden; }
.faq-item__question {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: var(--space-5) var(--space-6);
    text-align: left; font-size: var(--text-base); font-weight: 600;
    background: var(--color-white); cursor: pointer;
    transition: background var(--transition);
    gap: var(--space-4);
}
.faq-item__question:hover { background: var(--color-steel-50); }
.faq-item__icon { flex-shrink: 0; transition: transform var(--transition-slow); }
.faq-item--open .faq-item__icon { transform: rotate(180deg); }
.faq-item--open .faq-item__question { background: var(--color-blue-light); color: var(--color-blue-dark); }
.faq-item__answer { border-top: 1px solid var(--color-steel-100); }
.faq-item__answer-inner { padding: var(--space-5) var(--space-6); color: var(--color-steel-600); line-height: 1.7; }

/* CTA нижний */
.product-cta-bottom {
    display: inline-grid; align-items: center; justify-content: space-between;
    gap: var(--space-6);
    background: linear-gradient(135deg, var(--color-steel) 0%, var(--color-steel-700) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-12);
    color: var(--color-white);
}
.product-cta-bottom__text h3 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.product-cta-bottom__text p { color: var(--color-steel-200); }

/* ── МОДАЛЬНОЕ ОКНО ──────────────────────────────────────────── */
.modal {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-4);
    visibility: hidden;
    pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: all; }

.modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    opacity: 0; transition: opacity var(--transition-slow);
    cursor: pointer;
}
.modal.is-open .modal__overlay { opacity: 1; }

.modal__box {
    position: relative; z-index: 1;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    width: 100%; max-width: 640px;
    max-height: calc(100vh - var(--space-8));
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}
.modal.is-open .modal__box { transform: none; opacity: 1; }

.modal__close {
    position: absolute; top: var(--space-5); right: var(--space-5);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    color: var(--color-steel-400);
    background: var(--color-steel-50);
    transition: background var(--transition), color var(--transition);
}
.modal__close:hover { background: var(--color-steel-100); color: var(--color-steel); }

.modal__title { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.modal__subtitle { color: var(--color-steel-400); font-size: var(--text-sm); margin-bottom: var(--space-6); }

/* ── ФОРМА ЗАЯВКИ ────────────────────────────────────────────── */
.request-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); }
.form-row--2 { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-steel); }
.form-label span { color: var(--color-red); margin-left: 2px; }

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--color-steel-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--color-steel);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.form-input::placeholder { color: var(--color-steel-200); }
.form-textarea { resize: vertical; max-height: 120px; }
.form-file { font-size: var(--text-sm); }
.form-hint { font-size: var(--text-xs); color: var(--color-steel-400); }
.file-preview { display:flex; align-items:center; gap:8px; margin-top:6px; padding:6px 10px; background:var(--color-steel-50,#f8fafc); border:1px solid var(--color-steel-200,#e2e8f0); border-radius:6px; font-size:var(--text-sm); }
.file-preview__name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--color-steel-700,#334155); }
.file-preview__remove { flex-shrink:0; display:flex; align-items:center; justify-content:center; width:22px; height:22px; border:none; border-radius:50%; background:var(--color-steel-200,#e2e8f0); color:var(--color-steel-600,#475569); cursor:pointer; transition:background .15s; }
.file-preview__remove:hover { background:#fecaca; color:#dc2626; }
.form-policy { font-size: var(--text-xs); color: var(--color-steel-400); text-align: center; margin-top: var(--space-2); }
.form-policy a { color: var(--color-blue); }

.form-actions { display: flex; flex-direction: column; gap: var(--space-2); }

.form-success {
    text-align: center; padding: var(--space-8);
    color: var(--color-green);
    flex-direction: column; align-items: center; gap: var(--space-4);
}
/* hidden атрибут должен всегда скрывать элемент */
.form-success[hidden],
.form-error[hidden] { display: none !important; }
/* Показываем только когда hidden убран */
.form-success:not([hidden]) { display: flex; }
.form-success svg { color: var(--color-green); }
.form-success h3 { font-size: var(--text-2xl); color: var(--color-steel); }
.form-success p { color: var(--color-steel-400); }

.form-error { background: #fee2e2; border-radius: var(--radius-md); padding: var(--space-4); }
.form-error:not([hidden]) { display: block; }
.form-error__text { color: var(--color-red); font-size: var(--text-sm); font-weight: 500; }

/* ── ВИДЖЕТ МЕССЕНДЖЕРОВ ─────────────────────────────────────── */
.messenger-widget {
    position: fixed; right: var(--space-6); bottom: var(--space-6);
    opacity: 0; transform: translateY(12px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    pointer-events: none;
    z-index: 999;
}
.messenger-widget--visible { opacity: 1; transform: none; pointer-events: all; }

.messenger-widget__trigger {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    box-shadow: 0 4px 20px rgba(0,113,227,.4);
    transition: transform var(--transition), box-shadow var(--transition);
    border: none; cursor: pointer;
}
.messenger-widget__trigger:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(0,113,227,.5); }
.messenger-widget__icon-close { display: none; }
.messenger-widget--open .messenger-widget__icon-chat { display: none; }
.messenger-widget--open .messenger-widget__icon-close { display: block; }
.messenger-widget__label { display: none; }
@media (min-width: 640px) { .messenger-widget__label { display: block; } }

/* ── ПОПАП МЕССЕНДЖЕРОВ ──────────────────────────────────────── */
.messenger-popup {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-4);
    z-index: 10000;
}
.messenger-popup[hidden] { display: none; }

.messenger-popup__backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: mp-fade-in .2s ease both;
}

.messenger-popup__panel {
    position: relative;
    background: rgba(28, 28, 30, .72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: var(--space-8) var(--space-6) var(--space-6);
    width: 100%; max-width: 340px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(255,255,255,.06) inset;
    animation: mp-slide-up .26s cubic-bezier(.22,1,.36,1) both;
}

.messenger-popup__close {
    position: absolute; top: var(--space-3); right: var(--space-3);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: none; border-radius: 50%;
    color: rgba(255, 255, 255, .8); cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.messenger-popup__close:hover { background: rgba(255, 255, 255, .22); color: var(--color-white); }

.messenger-popup__title {
    font-size: var(--text-lg); font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-white);
    text-align: center;
    margin: 0 0 var(--space-5);
}

.messenger-popup__list {
    display: flex; flex-direction: column; gap: var(--space-3);
    list-style: none; margin: 0; padding: 0;
}

@keyframes mp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes mp-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

/* ── КНОПКИ МЕССЕНДЖЕРОВ ─────────────────────────────────────── */
.messenger-widget__btn {
    display: flex; align-items: center; gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm); font-weight: 600;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    cursor: pointer; border: none;
}
.messenger-widget__btn:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); color: var(--color-white); }

.messenger-widget__btn--whatsapp  { background: #25d366; }
.messenger-widget__btn--telegram  { background: #229ed9; }
.messenger-widget__btn--max       { background: #6336e0; }
.messenger-widget__btn--call      { background: var(--color-steel); }
.messenger-widget__btn--request   { background: var(--color-accent); }

/* ── ПАГИНАЦИЯ ───────────────────────────────────────────────── */
.pagination { margin-top: var(--space-10); }
.pagination__list { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; list-style: none; }
.pagination__item a,
.pagination__item span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-steel-100);
    font-size: var(--text-sm); font-weight: 600;
    color: var(--color-steel);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pagination__item a:hover { background: var(--color-blue-light); border-color: var(--color-blue); color: var(--color-blue); }
.pagination__item--active span { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }

/* ── ПОДВАЛ ──────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════
   ГЛАВНАЯ СТРАНИЦА
════════════════════════════════════════════════════════════════ */

/* ── Секции ──────────────────────────────────────────────────── */
.section { padding: var(--space-16) 0; }
.section--catalog-cats  { background: var(--color-steel-50); }
.section--products      { background: var(--color-white); }
.section--why           { background: var(--color-steel); color: var(--color-white); }
.section--services      { background: var(--color-steel-50); }
.section--reviews       { background: var(--color-white); }
.section--cta           { background: var(--color-blue); color: var(--color-white); }
.section--blog          { background: var(--color-white); }

.section-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); flex-wrap: wrap; }
.section-title  { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); }
.section-title--light { color: var(--color-white); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--color-steel) 0%, #2d2d30 100%);
    color: var(--color-white);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(0,113,227,.18) 0%, transparent 65%);
    pointer-events: none;
}
.hero--has-bg {
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
}
.hero--has-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(28,28,30,.72);
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
    align-items: center;
    position: relative; z-index: 1;
}
.hero__content { max-width: 600px; display: flex; flex-direction: column; gap: var(--space-5); }
.hero__badge   { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.hero__title   { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); line-height: 1.1; letter-spacing: -0.03em; }
.hero__subtitle { font-size: var(--text-lg); color: var(--color-steel-200); line-height: 1.6; max-width: 50ch; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__actions .btn--outline { border-color: rgba(255,255,255,.3); color: var(--color-white); }
.hero__actions .btn--outline:hover { border-color: var(--color-white); background: rgba(255,255,255,.08); color: var(--color-white); }

.hero__stats { display: flex; gap: var(--space-8); flex-wrap: wrap; padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.12); }
.hero__stat  { display: flex; flex-direction: column; gap: 2px; }
.hero__stat-num   { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--color-white); }
.hero__stat-label { font-size: var(--text-xs); color: var(--color-steel-400); text-transform: uppercase; letter-spacing: 0.06em; }

.hero__image-wrap { width: clamp(280px, 30vw, 480px); }
.hero__image { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }

/* ── Категории ───────────────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}
.cat-card {
    display: flex; flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card__img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.cat-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.cat-card:hover .cat-card__img { transform: scale(1.05); }
.cat-card__placeholder {
    width: 100%; aspect-ratio: 16/9;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color) 12%, white), color-mix(in srgb, var(--cat-color) 6%, white));
    color: var(--cat-color, var(--color-blue));
}
.cat-card__body { padding: var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.cat-card__title { font-size: var(--text-sm); font-weight: 700; color: var(--color-steel); }
.cat-card__count { font-size: var(--text-xs); color: var(--color-steel-400); white-space: nowrap; }
.cat-card:hover .cat-card__title { color: var(--color-blue); }

/* ── Почему мы ───────────────────────────────────────────────── */
.why-us { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.why-us__lead { color: var(--color-steel-200); line-height: 1.7; margin-top: var(--space-4); margin-bottom: var(--space-8); max-width: 46ch; }

.why-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-5); }
.why-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.why-item__icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
}
.why-item__icon--blue   { background: rgba(0,113,227,.18); color: #60a5fa; }
.why-item__icon--green  { background: rgba(22,163,74,.18);  color: #4ade80; }
.why-item__icon--orange { background: rgba(217,119,6,.18);  color: #fbbf24; }
.why-item strong { display: block; color: var(--color-white); font-family: var(--font-display); font-weight: 700; margin-bottom: 2px; }
.why-item p { font-size: var(--text-sm); color: var(--color-steel-400); }

.why-us__image { border-radius: var(--radius-xl); width: 100%; height: auto; box-shadow: var(--shadow-xl); }
.why-us__image-placeholder {
    aspect-ratio: 4/3; border-radius: var(--radius-xl);
    background: var(--color-steel-700);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--space-4); color: var(--color-steel-400);
    border: 2px dashed var(--color-steel-600);
}

/* ── Услуги ──────────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); }
.service-card { background: var(--color-white); border-radius: var(--radius-lg); border: 1px solid var(--color-steel-100); overflow: hidden; transition: box-shadow var(--transition-slow); }
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card__img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.service-card__img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: var(--space-5); }
.service-card__title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.service-card__title a:hover { color: var(--color-blue); }
.service-card__excerpt { font-size: var(--text-sm); color: var(--color-steel-400); line-height: 1.6; margin-bottom: var(--space-3); }
.service-card__link { font-size: var(--text-sm); font-weight: 600; color: var(--color-blue); }

/* ── Отзывы ──────────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.review-card {
    background: var(--color-steel-50);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex; flex-direction: column; gap: var(--space-4);
}
.review-card__header { display: flex; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.review-card__avatar {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: var(--radius-full);
    overflow: hidden; background: var(--color-blue);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-white);
}
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__author { flex: 1; min-width: 0; }
.review-card__author strong { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--color-steel); }
.review-card__author span  { font-size: var(--text-xs); color: var(--color-steel-400); }
.review-card__stars { display: flex; gap: 2px; margin-left: auto; }
.review-card__text { font-size: var(--text-sm); color: var(--color-steel-600); line-height: 1.7; flex: 1; }
.review-card__date { font-size: var(--text-xs); color: var(--color-steel-400); }

/* ── CTA полоса ──────────────────────────────────────────────── */
.cta-band {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-8); flex-wrap: wrap;
    padding: var(--space-12) var(--space-10);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
}
.cta-band__text h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-2xl)); color: var(--color-white); margin-bottom: var(--space-2); }
.cta-band__text p  { color: rgba(255,255,255,.75); font-size: var(--text-sm); }
.cta-band__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cta-band__phone   { border-color: rgba(255,255,255,.4); color: var(--color-white); }
.cta-band__phone:hover { background: rgba(255,255,255,.1); color: var(--color-white); }

/* ── Блог ────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-6); }
.blog-card { background: var(--color-white); border-radius: var(--radius-lg); border: 1px solid var(--color-steel-100); overflow: hidden; transition: box-shadow var(--transition-slow); }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card__img-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-card__img { transform: scale(1.04); }
.blog-card__body  { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.blog-card__date  { font-size: var(--text-xs); color: var(--color-steel-400); text-transform: capitalize; }
.blog-card__title { font-size: var(--text-lg); font-weight: 700; }
.blog-card__title a:hover { color: var(--color-blue); }
.blog-card__excerpt { font-size: var(--text-sm); color: var(--color-steel-400); line-height: 1.6; }
.blog-card__more { font-size: var(--text-sm); font-weight: 600; color: var(--color-blue); margin-top: auto; }

/* ── Адаптив (главная) ───────────────────────────────────────── */
/* ════════════════════════════════════════════════════════════════
   ФУТЕР — полностью адаптивный
════════════════════════════════════════════════════════════════ */

.site-footer {
    background: #111827;
    color: #9ca3af;
    margin-top: var(--space-20, 80px);
}

/* ── Верхний блок ──────────────────────────────────────────── */
.site-footer__top { padding: 60px 0 48px; }

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

/* ── Бренд-колонка ─────────────────────────────────────────── */
.site-footer__logo-link { display: inline-block; margin-bottom: 16px; }
.site-footer__logo-img  { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.site-footer__logo-text { font-family: var(--font-display, inherit); font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.025em; }
.site-footer__desc    { font-size: 14px; color: #6b7280; line-height: 1.6; margin-bottom: 12px; }
.site-footer__address { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-style: normal; color: #6b7280; line-height: 1.5; margin-bottom: 20px; }
.site-footer__address svg { flex-shrink: 0; margin-top: 1px; }

.site-footer__socials { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer__social  {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: opacity .15s;
}
.site-footer__social:hover { opacity: .88; }
.site-footer__social--wa { background: #25d366; color: #fff; }
.site-footer__social--tg { background: #229ed9; color: #fff; }

/* ── Колонки меню ──────────────────────────────────────────── */
.site-footer__col { min-width: 0; }

/* Кнопка-заголовок (аккордеон на мобильном, статичный на ПК) */
.site-footer__col-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0 0 16px;
    cursor: default;
    pointer-events: none; /* на ПК — не кликабельна */
    text-align: left;
}
.site-footer__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin: 0;
}
.site-footer__chev { display: none; color: #6b7280; flex-shrink: 0; }
.site-footer__chev svg { transition: transform .2s; }

/* Тело колонки (на ПК — всегда видно) */
.site-footer__col-body { display: block !important; }

/* Меню ссылок */
.site-footer__menu { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.site-footer__menu a {
    font-size: 14px; color: #6b7280; text-decoration: none;
    transition: color .15s; line-height: 1.4;
    display: inline-flex; align-items: center; gap: 4px;
}
.site-footer__menu a:hover { color: #fff; }

/* Контакты */
.site-footer__contacts { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.site-footer__contact  {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: #6b7280; text-decoration: none;
    transition: color .15s; line-height: 1.4;
}
.site-footer__contact svg { flex-shrink: 0; color: #4b5563; }
.site-footer__contact:hover { color: #fff; }
.site-footer__contact:hover svg { color: #6b7280; }
.site-footer__contact--muted { pointer-events: none; }

/* Кнопка заявки в футере */
.site-footer__cta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; background: #1a56db; color: #fff;
    border: none; border-radius: 8px; font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: background .15s; width: 100%;
    justify-content: center;
}
.site-footer__cta-btn:hover { background: #1e429f; }

/* ── Нижняя строка ──────────────────────────────────────────── */
.site-footer__bottom { border-top: 1px solid #1f2937; }
.site-footer__bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; gap: 12px;
}
.site-footer__copy,
.site-footer__dev  { font-size: 12px; color: #4b5563; }

/* ── АДАПТИВ ──────────────────────────────────────────────── */

/* Планшет широкий: 4 колонки → 3 */
@media (max-width: 1200px) {
    .site-footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 36px; }
}

/* Планшет: 4 → 2×2 */
@media (max-width: 900px) {
    .site-footer__top  { padding: 48px 0 36px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .site-footer__brand { grid-column: 1 / -1; } /* бренд на всю ширину */
    .site-footer__socials { margin-top: 4px; }
}

/* Мобильный: аккордеон */
@media (max-width: 600px) {
    .site-footer__top  { padding: 36px 0 24px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 0; }
    .site-footer__brand { padding-bottom: 24px; border-bottom: 1px solid #1f2937; margin-bottom: 0; }

    /* Включаем кнопку-аккордеон */
    .site-footer__col-toggle {
        pointer-events: auto;
        cursor: pointer;
        padding: 16px 0;
        border-bottom: 1px solid #1f2937;
    }
    .site-footer__col-toggle[aria-expanded="true"] .site-footer__chev svg { transform: rotate(180deg); }
    .site-footer__chev { display: flex; }

    /* Тело колонки — скрыто по умолчанию, JS управляет */
    .site-footer__col-body[hidden] { display: none !important; }
    .site-footer__col-body:not([hidden]) { display: block !important; padding: 12px 0 16px; border-bottom: 1px solid #1f2937; }

    .site-footer__bottom-inner { flex-direction: column; text-align: center; gap: 6px; padding: 16px 0; }
    .site-footer__logo-img  { height: 34px; }
}

/* Очень маленькие */
@media (max-width: 380px) {
    .site-footer__socials { flex-direction: column; }
    .site-footer__social  { justify-content: center; }
}


@media (max-width: 1024px) {
    .why-us { grid-template-columns: 1fr; }
    .why-us__image-col { order: -1; }
    .why-us__image-placeholder { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__image-wrap { display: none; }
    .cta-band { text-align: center; justify-content: center; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .section { padding: var(--space-12) 0; }
    .cta-band { padding: var(--space-8); }
}


/* ── Страница статьи ─────────────────────────────────────────── */
.post-page { padding: var(--space-10) 0 var(--space-16); }
.post-page__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-10);
    align-items: start;
}
.post-article__cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-8); aspect-ratio: 16/9; }
.post-article__cover-img { width: 100%; height: 100%; object-fit: cover; }
.post-article__meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-steel-400); margin-bottom: var(--space-3); flex-wrap: wrap; }
.post-article__cat { color: var(--color-blue); font-weight: 600; }
.post-article__title { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); margin-bottom: var(--space-6); }
.post-article__body { line-height: 1.8; }

/* Сайдбар блога */
.post-sidebar { position: sticky; top: calc(var(--header-height) + var(--space-4)); display: flex; flex-direction: column; gap: var(--space-5); }
.post-sidebar__widget { background: var(--color-steel-50); border: 1px solid var(--color-steel-100); border-radius: var(--radius-lg); padding: var(--space-5); }
.post-sidebar__title { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-steel-400); margin-bottom: var(--space-4); }
.post-sidebar__cta { background: var(--color-steel); color: var(--color-white); }
.post-sidebar__cta h3 { color: var(--color-white); margin-bottom: var(--space-2); }
.post-sidebar__cta p  { font-size: var(--text-sm); color: var(--color-steel-200); }

.sidebar-product { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-steel-100); text-decoration: none; }
.sidebar-product:last-of-type { border-bottom: none; }
.sidebar-product__img { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-white); }
.sidebar-product__img img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-product__info { display: flex; flex-direction: column; gap: 2px; }
.sidebar-product__title { font-size: var(--text-sm); font-weight: 600; color: var(--color-steel); }
.sidebar-product:hover .sidebar-product__title { color: var(--color-blue); }
.sidebar-product__price { font-size: var(--text-xs); color: var(--color-blue); font-weight: 700; }

/* ── Страница 404 ─────────────────────────────────────────────── */
.error-page { padding: var(--space-24) 0; text-align: center; }
.error-page__inner { max-width: 500px; margin: 0 auto; }
.error-page__code { font-family: var(--font-display); font-size: 8rem; font-weight: 800; line-height: 1; color: var(--color-steel-100); letter-spacing: -0.05em; }
.error-page__title { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.error-page__desc { color: var(--color-steel-400); margin-bottom: var(--space-8); }
.error-page__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ── Страница (page.php) ─────────────────────────────────────── */
.page-content { padding: var(--space-10) 0 var(--space-16); }
.page-header { margin-bottom: var(--space-8); }
.page-header__title { font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl)); }
.page-body { max-width: 760px; }

/* ── Посты-сетка (index.php) ─────────────────────────────────── */
.archive-page { padding: var(--space-12) 0; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }
.post-card { background: var(--color-white); border: 1px solid var(--color-steel-100); border-radius: var(--radius-lg); overflow: hidden; }
.post-card__img-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card__body { padding: var(--space-5); }
.post-card__title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.post-card__title a:hover { color: var(--color-blue); }
.post-card__date { font-size: var(--text-xs); color: var(--color-steel-400); margin-bottom: var(--space-3); }
.post-card__excerpt { font-size: var(--text-sm); color: var(--color-steel-400); line-height: 1.6; margin-bottom: var(--space-4); }

/* ── Адаптив (статья, сайдбар) ───────────────────────────────── */
@media (max-width: 900px) {
    .post-page__layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
}


/* ═══════════════════════════════════════════════════════════════
   КОНСТРУКТОР СТРАНИЦ — блоки
════════════════════════════════════════════════════════════════ */

/* ── Фоны секций (универсальные классы) ──────────────────────── */
.bg-white  { background: var(--color-white); }
.bg-light  { background: var(--color-steel-50); }
.bg-dark   { background: var(--color-steel);  color: var(--color-white); }
.bg-blue   { background: var(--color-blue);   color: var(--color-white); }
.bg-accent { background: var(--color-accent); color: var(--color-white); }

.bg-dark  .section-title,
.bg-blue  .section-title,
.bg-accent .section-title { color: var(--color-white); }
.bg-dark  p, .bg-dark  li  { color: var(--color-steel-200); }
.bg-blue  p, .bg-blue  li  { color: rgba(255,255,255,.85); }
.bg-accent p, .bg-accent li { color: rgba(255,255,255,.85); }

/* ── Общий паддинг для блоков ────────────────────────────────── */
.block-section { padding: var(--space-16) 0; }

/* ── HERO блок ───────────────────────────────────────────────── */
.block-hero {
    padding: var(--space-20) 0;
    position: relative; overflow: hidden;
}
.block-hero--dark   { background: linear-gradient(135deg, var(--color-steel) 0%, #2d2d30 100%); color: var(--color-white); }
.block-hero--blue   { background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%); color: var(--color-white); }
.block-hero--light  { background: var(--color-steel-50); color: var(--color-steel); }
.block-hero--white  { background: var(--color-white); color: var(--color-steel); }
.block-hero--has-bg {
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
}
.block-hero--has-bg::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(28,28,30,.72);
}
.block-hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
    align-items: center;
    position: relative; z-index: 1;
}
.block-hero__content { max-width: 620px; display: flex; flex-direction: column; gap: var(--space-5); }
.block-hero__badges  { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.block-hero__title   { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); line-height: 1.1; letter-spacing: -0.03em; }
.block-hero__subtitle { font-size: var(--text-lg); opacity: .85; line-height: 1.6; max-width: 52ch; }
.block-hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.block-hero--dark .btn--outline,
.block-hero--has-bg .btn--outline { border-color: rgba(255,255,255,.35); color: var(--color-white); }
.block-hero--dark .btn--outline:hover,
.block-hero--has-bg .btn--outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: var(--color-white); }
.block-hero__stats  { display: flex; gap: var(--space-8); flex-wrap: wrap; padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.12); }
.block-hero--light .block-hero__stats,
.block-hero--white .block-hero__stats { border-top-color: var(--color-steel-100); }
.block-hero__stat   { display: flex; flex-direction: column; gap: 2px; }
.block-hero__stat-num   { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; }
.block-hero__stat-label { font-size: var(--text-xs); opacity: .6; text-transform: uppercase; letter-spacing: .06em; }
.block-hero__image-wrap { width: clamp(240px, 28vw, 480px); }
.block-hero__image { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }

/* ── Колонок в сетках ────────────────────────────────────────── */
.product-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.product-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.product-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.cat-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.cat-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cat-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ── Текст + Изображение ─────────────────────────────────────── */
.block-text-image { padding: var(--space-16) 0; }
.block-text-image__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-14);
    align-items: center;
}
.block-text-image--image-left .block-text-image__inner { direction: rtl; }
.block-text-image--image-left .block-text-image__content { direction: ltr; }
.block-text-image--image-left .block-text-image__image-wrap { direction: ltr; }
.block-text-image__title { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); margin-bottom: var(--space-4); }
.block-text-image__text  { color: var(--color-steel-600); }
.block-text-image__image { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.bg-dark .block-text-image__text { color: var(--color-steel-200); }

/* ── Преимущества / Features ─────────────────────────────────── */
.block-features__header { text-align: center; max-width: 640px; margin: 0 auto var(--space-10); }
.block-features__subtitle { margin-top: var(--space-3); opacity: .75; line-height: 1.6; }
.block-features__grid {
    display: grid;
    gap: var(--space-6);
}
.block-features__grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.block-features__grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.block-features__grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.block-features__cta { text-align: center; margin-top: var(--space-10); }

.feature-item {
    display: flex; gap: var(--space-4); align-items: flex-start;
    padding: var(--space-5);
    background: rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.08);
    transition: background var(--transition);
}
.bg-white  .feature-item,
.bg-light  .feature-item { background: var(--color-white); border-color: var(--color-steel-100); }
.feature-item:hover { background: rgba(255,255,255,.1); }
.bg-white  .feature-item:hover,
.bg-light  .feature-item:hover { box-shadow: var(--shadow-md); }

.feature-item__icon {
    font-size: 1.75rem; line-height: 1;
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0,113,227,.15);
}
.feature-item__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-2); }
.bg-dark  .feature-item__title,
.bg-blue  .feature-item__title { color: var(--color-white); }
.feature-item__text { font-size: var(--text-sm); opacity: .7; line-height: 1.6; }

/* ── FAQ блок ────────────────────────────────────────────────── */
.block-faq__inner { max-width: 800px; margin: 0 auto; }
.block-faq__title { font-size: var(--text-3xl); margin-bottom: var(--space-8); text-align: center; }

/* ── Форма заявки (встроенная) ───────────────────────────────── */
.block-request-form { padding: var(--space-16) 0; }
.block-request-form__split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    align-items: center;
}
.block-request-form__text h2    { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); margin-bottom: var(--space-4); }
.block-request-form__text p     { opacity: .8; line-height: 1.7; margin-bottom: var(--space-6); }
.block-request-form__phone      { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xl); font-weight: 700; color: var(--color-white); opacity: .9; }
.block-request-form__phone:hover { opacity: 1; color: var(--color-white); }
.bg-white  .block-request-form__phone,
.bg-light  .block-request-form__phone { color: var(--color-steel); }

.block-request-form__centered { max-width: 640px; margin: 0 auto; text-align: center; }
.block-request-form__title    { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); margin-bottom: var(--space-3); }
.block-request-form__subtitle { opacity: .8; margin-bottom: var(--space-6); }

/* Форма во встроенном виде (белый фон на цветном фоне) */
.block-request-form .request-form--inline,
.block-request-form .request-form {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}
.bg-white  .request-form--inline,
.bg-light  .request-form--inline { background: none; padding: 0; box-shadow: none; }

/* ── Таблица цен ─────────────────────────────────────────────── */
.prices-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-steel-100); }
.prices-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 550px; }
.prices-table th, .prices-table td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--color-steel-100); }
.prices-table th { background: var(--color-steel-50); font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--color-steel-400); }
.prices-table tr:last-child td { border-bottom: none; }
.prices-table tr:hover td { background: var(--color-steel-50); }
.prices-table td:not(:first-child) { font-weight: 600; color: var(--color-blue); }
.prices-table .prices-table__note { font-weight: 400; color: var(--color-steel-400); font-style: italic; }
.prices-table__cta { margin-top: var(--space-6); }

/* ── Статистика ──────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-6);
    text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); }
.stat-item__num   { font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); font-weight: 800; line-height: 1; }
.bg-blue  .stat-item__num,
.bg-dark  .stat-item__num  { color: var(--color-white); }
.bg-light .stat-item__num,
.bg-white .stat-item__num  { color: var(--color-blue); }
.stat-item__label { font-size: var(--text-sm); opacity: .7; text-transform: uppercase; letter-spacing: .06em; }

/* ── Галерея ─────────────────────────────────────────────────── */
.gallery-grid { display: grid; gap: var(--space-3); }
.gallery-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.gallery-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery-item { display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover .gallery-item__img { transform: scale(1.04); }

/* ── Карта ───────────────────────────────────────────────────── */
.block-map__inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-8);
    align-items: start;
}
.block-map__embed { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.block-map__embed iframe { width: 100%; height: 100%; border: none; }
.block-map__info { display: flex; flex-direction: column; gap: var(--space-4); }
.block-map__row  { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-base); }
.block-map__row svg { flex-shrink: 0; margin-top: 2px; color: var(--color-blue); }
.block-map__row a { color: var(--color-steel); transition: color var(--transition); }
.block-map__row a:hover { color: var(--color-blue); }

/* ── Текстовый блок ──────────────────────────────────────────── */
.block-text-block__inner { max-width: 760px; }
.block-text-block--full .block-text-block__inner { max-width: 100%; }
.block-text-block__title { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); margin-bottom: var(--space-6); }

/* ── Разделитель / Отступ ────────────────────────────────────── */
.block-divider {
    border: none;
    border-top: 1px solid var(--color-steel-100);
    margin: 0;
}

/* ── Сквозной баннер акции ───────────────────────────────────── */
.global-promo-banner {
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--space-3) 0;
}
.global-promo-banner__inner {
    display: flex; align-items: center; justify-content: center; gap: var(--space-4);
    flex-wrap: wrap;
}
.global-promo-banner__text { font-weight: 600; font-size: var(--text-sm); }
.global-promo-banner__btn  { border-color: rgba(255,255,255,.5); color: var(--color-white); font-size: var(--text-xs); }
.global-promo-banner__btn:hover { background: rgba(255,255,255,.15); border-color: var(--color-white); color: var(--color-white); }

/* ── section-subtitle ────────────────────────────────────────── */
.section-subtitle { color: var(--color-steel-400); font-size: var(--text-base); max-width: 60ch; margin-top: var(--space-2); }
.bg-dark .section-subtitle,
.bg-blue .section-subtitle { color: rgba(255,255,255,.65); }

/* ── Адаптив — блоки ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .block-text-image__inner { grid-template-columns: 1fr; gap: var(--space-8); }
    .block-text-image--image-left .block-text-image__inner { direction: ltr; }
    .block-request-form__split { grid-template-columns: 1fr; }
    .block-map__inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .product-gallery__main { aspect-ratio: 1; }
    .product-top { display: grid; }
    .block-hero__inner  { grid-template-columns: 1fr; }
    .block-hero__image-wrap { display: none; }
    .block-features__grid--cols-2,
    .block-features__grid--cols-3,
    .block-features__grid--cols-4 { grid-template-columns: 1fr; }
    .block-section { padding: var(--space-12) 0; }
    .block-hero { padding: var(--space-12) 0; }
    .gallery-grid--cols-2,
    .gallery-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}


/* ═══════════════════════════════════════════════════════════════
   БЛОК: Шаги / Как мы работаем
════════════════════════════════════════════════════════════════ */
.block-how-we-work { padding: var(--space-16) 0; }

.hw-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-12);
    display: flex; flex-direction: column; gap: var(--space-3);
}
.hw-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-blue);
}
.bg-dark .hw-label,
.bg-blue .hw-label  { color: rgba(255,255,255,.55); }

.hw-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 700;
    color: var(--color-steel);
    line-height: 1.2;
}
.hw-title--light { color: var(--color-white); }

.hw-subtitle {
    font-size: var(--text-base);
    color: var(--color-steel-400);
    line-height: 1.6;
}
.bg-dark .hw-subtitle,
.bg-blue .hw-subtitle { color: rgba(255,255,255,.6); }

/* Сетка шагов */
.hw-steps {
    display: grid;
    gap: var(--space-6);
    align-items: start;
}
.hw-steps--2 { grid-template-columns: repeat(2, 1fr); }
.hw-steps--3 { grid-template-columns: repeat(3, 1fr); }
.hw-steps--4 { grid-template-columns: repeat(4, 1fr); }
.hw-steps--5 { grid-template-columns: repeat(5, 1fr); }
.hw-steps--6 { grid-template-columns: repeat(6, 1fr); }

/* Один шаг */
.hw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

/* Верх: кружок + коннектор */
.hw-step__top {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.hw-step__circle {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--color-steel-100);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    transition: border-color var(--transition-slow), background var(--transition-slow);
}
.bg-dark  .hw-step__circle { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.07); }
.bg-blue  .hw-step__circle { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); }
.bg-light .hw-step__circle { background: var(--color-white); }

.hw-step__icon { display: flex; align-items: center; justify-content: center; }
.hw-step__icon svg { width: 22px; height: 22px; color: var(--color-blue); stroke-width: 1.75; }
.bg-dark .hw-step__icon svg,
.bg-blue .hw-step__icon svg { color: rgba(255,255,255,.75); }

.hw-step__num {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-steel-400);
    line-height: 1;
}
.bg-dark .hw-step__num,
.bg-blue .hw-step__num { color: rgba(255,255,255,.45); }

/* Коннектор между шагами */
.hw-step__connector {
    flex: 1;
    color: var(--color-steel-100);
    padding: 0 4px;
    align-self: center;
    margin-top: -2px;
}
.bg-dark .hw-step__connector { color: rgba(255,255,255,.12); }
.bg-blue .hw-step__connector { color: rgba(255,255,255,.2); }

/* Тело: текст */
.hw-step__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
    padding: 0 var(--space-3);
}

.hw-step__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-steel);
    line-height: 1.3;
}
.bg-dark .hw-step__title,
.bg-blue .hw-step__title { color: var(--color-white); }

.hw-step__desc {
    font-size: var(--text-sm);
    color: var(--color-steel-400);
    line-height: 1.55;
    max-width: 180px;
}
.bg-dark .hw-step__desc,
.bg-blue .hw-step__desc { color: rgba(255,255,255,.55); }

.hw-step__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    background: var(--color-blue-light);
    color: var(--color-blue-dark);
    margin-top: var(--space-1);
}
.bg-dark .hw-step__badge,
.bg-blue .hw-step__badge {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
}

/* CTA */
.hw-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-10);
}

/* ── Адаптив ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hw-steps--4,
    .hw-steps--5,
    .hw-steps--6 { grid-template-columns: repeat(2, 1fr); }
    .hw-step__connector { display: none; }
}

@media (max-width: 640px) {
    .hw-steps--2,
    .hw-steps--3,
    .hw-steps--4,
    .hw-steps--5,
    .hw-steps--6 { grid-template-columns: 1fr 1fr; }
    .hw-step__connector { display: none; }
    .hw-step__circle { width: 52px; height: 52px; }
    .hw-step__icon svg { width: 18px; height: 18px; }
    .hw-step__desc { max-width: none; }
}

@media (max-width: 400px) {
    .hw-steps--2,
    .hw-steps--3,
    .hw-steps--4,
    .hw-steps--5,
    .hw-steps--6 { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   НОВЫЕ БЛОКИ v3
════════════════════════════════════════════════════════════════ */

/* ── Слайдер ─────────────────────────────────────────────────── */
.block-slider__track-wrap { overflow: hidden; }
.block-slider__track {
    display: flex; gap: var(--space-5);
    transition: transform 0.4s ease;
    will-change: transform;
}
.block-slider__item { flex-shrink: 0; width: 300px; }
.block-slider__controls { display: flex; gap: var(--space-2); margin-left: auto; }
.block-slider__btn {
    width: 38px; height: 38px; border-radius: var(--radius-full);
    border: 1.5px solid var(--color-steel-100);
    background: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-steel); cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.block-slider__btn:hover { border-color: var(--color-blue); color: var(--color-blue); background: var(--color-blue-light); }
.block-slider__btn:disabled { opacity: .35; pointer-events: none; }

/* ── Партнёры ────────────────────────────────────────────────── */
.block-partners__header { text-align: center; margin-bottom: var(--space-8); }
.block-partners__title  { font-size: var(--text-2xl); }
.block-partners__subtitle { color: var(--color-steel-400); margin-top: var(--space-2); }

.block-partners__ribbon { overflow: hidden; padding: var(--space-4) 0; }
.block-partners__track {
    display: flex; align-items: center; gap: var(--space-10);
    animation: partners-scroll var(--scroll-dur, 25s) linear infinite;
    width: max-content;
}
.block-partners--scroll:hover .block-partners__track { animation-play-state: paused; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }

.block-partners__logo {
    display: flex; align-items: center; flex-shrink: 0;
    opacity: .65; transition: opacity var(--transition-slow);
    filter: grayscale(1);
}
.block-partners__logo:hover { opacity: 1; filter: grayscale(0); }
.block-partners__logo img { height: 48px; width: auto; max-width: 140px; object-fit: contain; }

.block-partners__grid {
    display: flex; flex-wrap: wrap; gap: var(--space-8);
    align-items: center; justify-content: center;
}

/* ── Видео-секция ────────────────────────────────────────────── */
.block-video__header { text-align: center; max-width: 600px; margin: 0 auto var(--space-8); }
.block-video--centered .block-video__player { max-width: 800px; margin: 0 auto; }

.block-video__player {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    aspect-ratio: 16/9; background: var(--color-steel); cursor: pointer;
}
.block-video__poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-slow); }
.block-video__player:hover .block-video__poster { transform: scale(1.03); }
.block-video__poster--empty { background: var(--color-steel-700); height: 100%; }

.block-video__play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); color: var(--color-white);
    border: none; cursor: pointer; transition: background var(--transition);
}
.block-video__play:hover { background: rgba(0,0,0,.5); }
.block-video__play svg { width: 72px; height: 72px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

.block-video__iframe-wrap { position: absolute; inset: 0; }
.block-video__iframe-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── Таймер ──────────────────────────────────────────────────── */
.block-timer__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-8); flex-wrap: wrap;
}
.block-timer__text { flex: 1; min-width: 0; }
.block-timer__title { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); color: var(--color-white); margin-bottom: var(--space-3); }
.block-timer__subtitle { color: rgba(255,255,255,.75); }
.block-timer__expired { color: rgba(255,255,255,.7); font-size: var(--text-lg); }

.block-timer__clock { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.block-timer__unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.block-timer__num {
    font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800; color: var(--color-white); line-height: 1; min-width: 2ch; text-align: center;
    background: rgba(255,255,255,.12); border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}
.block-timer__label { font-size: var(--text-xs); color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.block-timer__sep { font-size: var(--text-3xl); font-weight: 800; color: rgba(255,255,255,.4); line-height: 1; margin-bottom: 18px; }

/* ── Услуги с иконками ───────────────────────────────────────── */
.block-services__grid { display: grid; gap: var(--space-5); }
.block-services__grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.block-services__grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.block-services__grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.service-icon-card {
    background: var(--color-white); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg); padding: var(--space-6);
    display: flex; gap: var(--space-4); align-items: flex-start;
    transition: box-shadow var(--transition-slow);
}
.service-icon-card:hover { box-shadow: var(--shadow-md); }
.bg-white .service-icon-card { background: var(--color-steel-50); }

.service-icon-card__icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: var(--color-blue-light); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.service-icon-card__icon svg { width: 24px; height: 24px; color: var(--color-blue); }
.service-icon-card__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; min-width: 0; }
.service-icon-card__title { font-size: var(--text-lg); font-weight: 700; }
.service-icon-card__title a:hover { color: var(--color-blue); }
.service-icon-card__desc { font-size: var(--text-sm); color: var(--color-steel-400); line-height: 1.6; }
.service-icon-card__link { font-size: var(--text-sm); font-weight: 600; color: var(--color-blue); margin-top: auto; }

/* ── Блог колонки ────────────────────────────────────────────── */
.blog-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.blog-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.blog-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.blog-card__meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.blog-card__cat { font-size: var(--text-xs); font-weight: 600; color: var(--color-blue); background: var(--color-blue-light); padding: 2px 8px; border-radius: var(--radius-full); }

/* ── Вкладки ─────────────────────────────────────────────────── */
.block-tabs__wrap { border: 1px solid var(--color-steel-100); border-radius: var(--radius-lg); overflow: hidden; }
.block-tabs__nav {
    display: flex; flex-wrap: wrap; list-style: none;
    background: var(--color-steel-50); border-bottom: 1px solid var(--color-steel-100);
}
.block-tabs__btn {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm); font-weight: 600; color: var(--color-steel-400);
    border: none; border-bottom: 2px solid transparent;
    background: none; cursor: pointer; white-space: nowrap;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.block-tabs__btn:hover { color: var(--color-steel); }
.block-tabs__btn.is-active { color: var(--color-blue); border-bottom-color: var(--color-blue); background: var(--color-white); }
.block-tabs__btn-icon { font-size: 16px; }
.block-tabs__panel { display: none; }
.block-tabs__panel.is-active { display: block; }
.block-tabs__content { padding: var(--space-6) var(--space-8); }

/* ── Hero с видео ────────────────────────────────────────────── */
.block-hero-video {
    position: relative; overflow: hidden;
    min-height: 520px; display: flex; align-items: center;
    padding: var(--space-20) 0;
    color: var(--color-white);
}
.block-hero-video__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.block-hero-video__yt {
    position: absolute; inset: -10%; z-index: 0;
    pointer-events: none;
}
.block-hero-video__yt iframe { width: 100%; height: 100%; object-fit: cover; }
.block-hero-video__fallback {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.block-hero-video__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(0,0,0,var(--overlay-opacity, .65));
}
.block-hero-video__inner { position: relative; z-index: 2; }
.block-hero-video__content { max-width: 640px; display: flex; flex-direction: column; gap: var(--space-5); }

/* ── Счётчики ────────────────────────────────────────────────── */
.block-counters__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}
.block-counters__item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: var(--space-8) var(--space-6);
    border-right: 1px solid var(--color-steel-100);
}
.bg-dark .block-counters__item,
.bg-blue .block-counters__item { border-right-color: rgba(255,255,255,.1); }
.block-counters__item:last-child { border-right: none; }

.block-counters__num-wrap { display: flex; align-items: baseline; gap: 2px; }
.block-counters__prefix { font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); font-weight: 800; }
.block-counters__num {
    font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800; line-height: 1;
    transition: color var(--transition);
}
.bg-light .block-counters__num, .bg-white .block-counters__num { color: var(--color-blue); }
.bg-dark  .block-counters__num, .bg-blue  .block-counters__num { color: var(--color-white); }
.block-counters__label { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-top: var(--space-2); }
.block-counters__desc  { font-size: var(--text-sm); color: var(--color-steel-400); margin-top: var(--space-1); max-width: 160px; }
.bg-dark .block-counters__label, .bg-blue .block-counters__label { color: var(--color-white); }
.bg-dark .block-counters__desc,  .bg-blue .block-counters__desc  { color: rgba(255,255,255,.55); }

/* ── Двойной CTA ─────────────────────────────────────────────── */
.block-double-cta { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.block-double-cta__half {
    position: relative; display: flex; align-items: center;
    padding: var(--space-16) var(--space-12);
    overflow: hidden;
}
.block-double-cta__half--dark { background: var(--color-steel); }
.block-double-cta__half--blue { background: var(--color-blue); }
.block-double-cta__half[style*="--dcta-bg"] {
    background-image: var(--dcta-bg);
    background-size: cover; background-position: center;
}
.block-double-cta__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55); z-index: 0;
}
.block-double-cta__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.block-double-cta__title { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); color: var(--color-white); }
.block-double-cta__desc  { color: rgba(255,255,255,.75); font-size: var(--text-sm); }
.block-double-cta__half--blue .btn--outline { border-color: rgba(255,255,255,.5); color: var(--color-white); }
.block-double-cta__half--blue .btn--outline:hover { background: rgba(255,255,255,.1); color: var(--color-white); border-color: var(--color-white); }

/* ── Условия доставки ────────────────────────────────────────── */
.block-conditions__inner { max-width: 780px; margin: 0 auto; }
.block-conditions__header { margin-bottom: var(--space-8); }
.block-conditions__title { font-size: var(--text-2xl); }
.block-conditions__subtitle { color: var(--color-steel-400); margin-top: var(--space-2); }

.block-conditions__list { display: flex; flex-direction: column; gap: var(--space-2); }
.condition-item { border: 1px solid var(--color-steel-100); border-radius: var(--radius-md); overflow: hidden; }
.condition-item__head {
    display: flex; align-items: center; gap: var(--space-3);
    width: 100%; padding: var(--space-4) var(--space-5);
    background: var(--color-white); border: none; cursor: pointer; text-align: left;
    font-size: var(--text-base); font-weight: 600;
    transition: background var(--transition);
}
.condition-item__head:hover { background: var(--color-steel-50); }
.condition-item__icon { color: var(--color-blue); flex-shrink: 0; display: flex; }
.condition-item__title { flex: 1; }
.condition-item__body { border-top: 1px solid var(--color-steel-100); }
.condition-item__content { padding: var(--space-5); color: var(--color-steel-600); }

/* ── Hero категории ──────────────────────────────────────────── */
.block-category-hero {
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--color-steel-100);
}
.block-category-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.block-category-hero__content { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; min-width: 0; }
.block-category-hero__title { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
.block-category-hero__desc  { color: var(--color-steel-400); max-width: 56ch; line-height: 1.6; }
.block-category-hero__meta  { display: flex; gap: var(--space-2); }
.block-category-hero--with-img .block-category-hero__image-wrap { width: clamp(120px, 15vw, 200px); flex-shrink: 0; }
.block-category-hero__image { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: contain; }

/* ── SEO-текст ───────────────────────────────────────────────── */
.block-seo-text__wrap { max-width: 860px; }
.block-seo-text__content--clamped {
    max-height: 120px; overflow: hidden; position: relative;
}
.block-seo-text__content--clamped::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--color-steel-50));
}
.block-seo-text__content--expanded { max-height: none; }
.block-seo-text__content--expanded::after { display: none; }
.block-seo-text__toggle {
    display: inline-flex; align-items: center; gap: var(--space-2);
    margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 600;
    color: var(--color-blue); background: none; border: none; cursor: pointer;
    padding: 0;
}
.block-seo-text__toggle svg { transition: transform var(--transition); }
.block-seo-text__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── Форма подбора ───────────────────────────────────────────── */
.block-inquiry-form__inner {
    display: flex; align-items: center; gap: var(--space-10); flex-wrap: wrap;
}
.block-inquiry-form__text { flex: 1; min-width: 260px; }
.block-inquiry-form__title { font-size: var(--text-2xl); color: var(--color-white); margin-bottom: var(--space-3); }
.block-inquiry-form__desc  { color: rgba(255,255,255,.75); }
.block-inquiry-form__form  { flex: 1; min-width: 300px; }
.block-inquiry-form__row   { display: flex; flex-direction: column; gap: var(--space-3); }
.block-inquiry-form__row .form-input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: var(--color-white); }
.block-inquiry-form__row .form-input::placeholder { color: rgba(255,255,255,.5); }
.block-inquiry-form__row .form-input:focus { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); box-shadow: none; }

/* ── Калькулятор ─────────────────────────────────────────────── */
.block-product-calc__title { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
.block-product-calc__body { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-8); align-items: start; }

.calc-option {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border: 1.5px solid var(--color-steel-100); border-radius: var(--radius-md);
    cursor: pointer; transition: border-color var(--transition), background var(--transition);
    margin-bottom: var(--space-2);
}
.calc-option input { display: none; }
.calc-option:hover { border-color: var(--color-blue); background: var(--color-blue-light); }
.calc-option--active { border-color: var(--color-blue); background: var(--color-blue-light); }
.calc-option__label { font-weight: 600; }
.calc-option__price { font-size: var(--text-lg); font-weight: 700; color: var(--color-blue); }

.qty-wrap { display: flex; align-items: center; gap: 0; }
.qty-btn {
    width: 40px; height: 44px; border: 1.5px solid var(--color-steel-200);
    background: var(--color-white); font-size: var(--text-xl); font-weight: 500;
    cursor: pointer; transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.qty-btn:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.qty-btn:hover { background: var(--color-steel-50); }
.qty-input { width: 70px; height: 44px; text-align: center; border-top: 1.5px solid var(--color-steel-200); border-bottom: 1.5px solid var(--color-steel-200); border-left: none; border-right: none; border-radius: 0; font-weight: 600; }

.block-product-calc__result { display: flex; flex-direction: column; gap: var(--space-4); }
.block-product-calc__total-label { font-size: var(--text-sm); color: var(--color-steel-400); }
.block-product-calc__total { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 800; color: var(--color-blue); }

/* ── Документы ───────────────────────────────────────────────── */
.block-documents__title { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
.block-documents__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.block-documents__link {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--color-steel-50); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-md); text-decoration: none; color: var(--color-steel);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.block-documents__link:hover { box-shadow: var(--shadow-sm); border-color: var(--color-blue); color: var(--color-steel); }
.block-documents__ext {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius-sm);
    background: var(--color-blue); color: var(--color-white);
    font-size: var(--text-xs); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.block-documents__name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-documents__meta { font-size: var(--text-xs); color: var(--color-steel-400); white-space: nowrap; }
.block-documents__icon { color: var(--color-steel-400); margin-left: auto; flex-shrink: 0; }

/* ── Скачать прайс ───────────────────────────────────────────── */
.block-download-price__inner {
    display: flex; align-items: center; gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
    background: var(--color-white); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-xl); flex-wrap: wrap;
}
.bg-light .block-download-price__inner { background: var(--color-white); }
.block-download-price__icon { color: var(--color-blue); flex-shrink: 0; }
.block-download-price__text { flex: 1; min-width: 200px; }
.block-download-price__title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-1); }
.block-download-price__desc  { font-size: var(--text-sm); color: var(--color-steel-400); }
.block-download-price__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ── Наличие по складам ──────────────────────────────────────── */
.block-stock-info__title { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.block-stock-info__table { margin-bottom: var(--space-4); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-steel-100); }
.block-stock-info__note  { font-size: var(--text-sm); color: var(--color-steel-400); }

/* ── Слайдер адаптив ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .block-slider__item { width: auto; }
    .block-slider .section-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: var(--space-3) var(--space-2);
    }
    .block-slider .section-header .section-title     { grid-column: 1; grid-row: 1; }
    .block-slider .section-header .section-subtitle  { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    .block-slider .section-header .block-slider__controls { grid-column: 2; grid-row: 1; margin-left: 0; }
    .block-slider .section-header .btn              { grid-column: 1 / -1; grid-row: 3; width: max-content; }
}

/* ── Адаптив новых блоков ────────────────────────────────────── */
@media (max-width: 900px) {
    .block-product-calc__body { grid-template-columns: 1fr; }
    .block-double-cta { grid-template-columns: 1fr; }
    .block-double-cta__half { padding: var(--space-10) var(--space-8); min-height: 220px; }
    .block-timer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .block-category-hero__inner { flex-direction: column; }
    .block-category-hero--with-img .block-category-hero__image-wrap { display: none; }
    .block-inquiry-form__inner { flex-direction: column; }
    .block-services__grid--cols-2,
    .block-services__grid--cols-3,
    .block-services__grid--cols-4 { grid-template-columns: 1fr; }
    .block-counters__item { border-right: none; border-bottom: 1px solid var(--color-steel-100); }
    .block-counters__item:last-child { border-bottom: none; }
    .block-timer__clock { gap: var(--space-2); }
    .block-timer__num { font-size: var(--text-2xl); padding: var(--space-2) var(--space-3); }
    .block-download-price__inner { flex-direction: column; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════
   НОВЫЕ БЛОКИ v3
════════════════════════════════════════════════════════════════ */

/* ── Слайдер ─────────────────────────────────────────────────── */
.block-slider__track-wrap { overflow: hidden; }
.block-slider__track {
    display: flex; gap: var(--space-5);
    transition: transform 0.4s ease;
    will-change: transform;
}
.block-slider__item { flex-shrink: 0; width: 300px; }
.block-slider__controls { display: flex; gap: var(--space-2); margin-left: auto; }
.block-slider__btn {
    width: 38px; height: 38px; border-radius: var(--radius-full);
    border: 1.5px solid var(--color-steel-100);
    background: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-steel); cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.block-slider__btn:hover { border-color: var(--color-blue); color: var(--color-blue); background: var(--color-blue-light); }
.block-slider__btn:disabled { opacity: .35; pointer-events: none; }

/* ── Партнёры ────────────────────────────────────────────────── */
.block-partners__header { text-align: center; margin-bottom: var(--space-8); }
.block-partners__title  { font-size: var(--text-2xl); }
.block-partners__subtitle { color: var(--color-steel-400); margin-top: var(--space-2); }

.block-partners__ribbon { overflow: hidden; padding: var(--space-4) 0; }
.block-partners__track {
    display: flex; align-items: center; gap: var(--space-10);
    animation: partners-scroll var(--scroll-dur, 25s) linear infinite;
    width: max-content;
}
.block-partners--scroll:hover .block-partners__track { animation-play-state: paused; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }

.block-partners__logo {
    display: flex; align-items: center; flex-shrink: 0;
    opacity: .65; transition: opacity var(--transition-slow);
    filter: grayscale(1);
}
.block-partners__logo:hover { opacity: 1; filter: grayscale(0); }
.block-partners__logo img { height: 48px; width: auto; max-width: 140px; object-fit: contain; }

.block-partners__grid {
    display: flex; flex-wrap: wrap; gap: var(--space-8);
    align-items: center; justify-content: center;
}

/* ── Видео-секция ────────────────────────────────────────────── */
.block-video__header { text-align: center; max-width: 600px; margin: 0 auto var(--space-8); }
.block-video--centered .block-video__player { max-width: 800px; margin: 0 auto; }

.block-video__player {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    aspect-ratio: 16/9; background: var(--color-steel); cursor: pointer;
}
.block-video__poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-slow); }
.block-video__player:hover .block-video__poster { transform: scale(1.03); }
.block-video__poster--empty { background: var(--color-steel-700); height: 100%; }

.block-video__play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); color: var(--color-white);
    border: none; cursor: pointer; transition: background var(--transition);
}
.block-video__play:hover { background: rgba(0,0,0,.5); }
.block-video__play svg { width: 72px; height: 72px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

.block-video__iframe-wrap { position: absolute; inset: 0; }
.block-video__iframe-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── Таймер ──────────────────────────────────────────────────── */
.block-timer__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-8); flex-wrap: wrap;
}
.block-timer__text { flex: 1; min-width: 0; }
.block-timer__title { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); color: var(--color-white); margin-bottom: var(--space-3); }
.block-timer__subtitle { color: rgba(255,255,255,.75); }
.block-timer__expired { color: rgba(255,255,255,.7); font-size: var(--text-lg); }

.block-timer__clock { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.block-timer__unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.block-timer__num {
    font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800; color: var(--color-white); line-height: 1; min-width: 2ch; text-align: center;
    background: rgba(255,255,255,.12); border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}
.block-timer__label { font-size: var(--text-xs); color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.block-timer__sep { font-size: var(--text-3xl); font-weight: 800; color: rgba(255,255,255,.4); line-height: 1; margin-bottom: 18px; }

/* ── Услуги с иконками ───────────────────────────────────────── */
.block-services__grid { display: grid; gap: var(--space-5); }
.block-services__grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.block-services__grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.block-services__grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.service-icon-card {
    background: var(--color-white); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg); padding: var(--space-6);
    display: flex; gap: var(--space-4); align-items: flex-start;
    transition: box-shadow var(--transition-slow);
}
.service-icon-card:hover { box-shadow: var(--shadow-md); }
.bg-white .service-icon-card { background: var(--color-steel-50); }

.service-icon-card__icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: var(--color-blue-light); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.service-icon-card__icon svg { width: 24px; height: 24px; color: var(--color-blue); }
.service-icon-card__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; min-width: 0; }
.service-icon-card__title { font-size: var(--text-lg); font-weight: 700; }
.service-icon-card__title a:hover { color: var(--color-blue); }
.service-icon-card__desc { font-size: var(--text-sm); color: var(--color-steel-400); line-height: 1.6; }
.service-icon-card__link { font-size: var(--text-sm); font-weight: 600; color: var(--color-blue); margin-top: auto; }

/* ── Блог колонки ────────────────────────────────────────────── */
.blog-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.blog-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.blog-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.blog-card__meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.blog-card__cat { font-size: var(--text-xs); font-weight: 600; color: var(--color-blue); background: var(--color-blue-light); padding: 2px 8px; border-radius: var(--radius-full); }

/* ── Вкладки ─────────────────────────────────────────────────── */
.block-tabs__wrap { border: 1px solid var(--color-steel-100); border-radius: var(--radius-lg); overflow: hidden; }
.block-tabs__nav {
    display: flex; flex-wrap: wrap; list-style: none;
    background: var(--color-steel-50); border-bottom: 1px solid var(--color-steel-100);
}
.block-tabs__btn {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm); font-weight: 600; color: var(--color-steel-400);
    border: none; border-bottom: 2px solid transparent;
    background: none; cursor: pointer; white-space: nowrap;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.block-tabs__btn:hover { color: var(--color-steel); }
.block-tabs__btn.is-active { color: var(--color-blue); border-bottom-color: var(--color-blue); background: var(--color-white); }
.block-tabs__btn-icon { font-size: 16px; }
.block-tabs__panel { display: none; }
.block-tabs__panel.is-active { display: block; }
.block-tabs__content { padding: var(--space-6) var(--space-8); }

/* ── Hero с видео ────────────────────────────────────────────── */
.block-hero-video {
    position: relative; overflow: hidden;
    min-height: 520px; display: flex; align-items: center;
    padding: var(--space-20) 0;
    color: var(--color-white);
}
.block-hero-video__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.block-hero-video__yt {
    position: absolute; inset: -10%; z-index: 0;
    pointer-events: none;
}
.block-hero-video__yt iframe { width: 100%; height: 100%; object-fit: cover; }
.block-hero-video__fallback {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.block-hero-video__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(0,0,0,var(--overlay-opacity, .65));
}
.block-hero-video__inner { position: relative; z-index: 2; }
.block-hero-video__content { max-width: 640px; display: flex; flex-direction: column; gap: var(--space-5); }

/* ── Счётчики ────────────────────────────────────────────────── */
.block-counters__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}
.block-counters__item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: var(--space-8) var(--space-6);
    border-right: 1px solid var(--color-steel-100);
}
.bg-dark .block-counters__item,
.bg-blue .block-counters__item { border-right-color: rgba(255,255,255,.1); }
.block-counters__item:last-child { border-right: none; }

.block-counters__num-wrap { display: flex; align-items: baseline; gap: 2px; }
.block-counters__prefix { font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); font-weight: 800; }
.block-counters__num {
    font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800; line-height: 1;
    transition: color var(--transition);
}
.bg-light .block-counters__num, .bg-white .block-counters__num { color: var(--color-blue); }
.bg-dark  .block-counters__num, .bg-blue  .block-counters__num { color: var(--color-white); }
.block-counters__label { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-top: var(--space-2); }
.block-counters__desc  { font-size: var(--text-sm); color: var(--color-steel-400); margin-top: var(--space-1); max-width: 160px; }
.bg-dark .block-counters__label, .bg-blue .block-counters__label { color: var(--color-white); }
.bg-dark .block-counters__desc,  .bg-blue .block-counters__desc  { color: rgba(255,255,255,.55); }

/* ── Двойной CTA ─────────────────────────────────────────────── */
.block-double-cta { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.block-double-cta__half {
    position: relative; display: flex; align-items: center;
    padding: var(--space-16) var(--space-12);
    overflow: hidden;
}
.block-double-cta__half--dark { background: var(--color-steel); }
.block-double-cta__half--blue { background: var(--color-blue); }
.block-double-cta__half[style*="--dcta-bg"] {
    background-image: var(--dcta-bg);
    background-size: cover; background-position: center;
}
.block-double-cta__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55); z-index: 0;
}
.block-double-cta__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.block-double-cta__title { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); color: var(--color-white); }
.block-double-cta__desc  { color: rgba(255,255,255,.75); font-size: var(--text-sm); }
.block-double-cta__half--blue .btn--outline { border-color: rgba(255,255,255,.5); color: var(--color-white); }
.block-double-cta__half--blue .btn--outline:hover { background: rgba(255,255,255,.1); color: var(--color-white); border-color: var(--color-white); }

/* ── Условия доставки ────────────────────────────────────────── */
.block-conditions__inner { max-width: 780px; margin: 0 auto; }
.block-conditions__header { margin-bottom: var(--space-8); }
.block-conditions__title { font-size: var(--text-2xl); }
.block-conditions__subtitle { color: var(--color-steel-400); margin-top: var(--space-2); }

.block-conditions__list { display: flex; flex-direction: column; gap: var(--space-2); }
.condition-item { border: 1px solid var(--color-steel-100); border-radius: var(--radius-md); overflow: hidden; }
.condition-item__head {
    display: flex; align-items: center; gap: var(--space-3);
    width: 100%; padding: var(--space-4) var(--space-5);
    background: var(--color-white); border: none; cursor: pointer; text-align: left;
    font-size: var(--text-base); font-weight: 600;
    transition: background var(--transition);
}
.condition-item__head:hover { background: var(--color-steel-50); }
.condition-item__icon { color: var(--color-blue); flex-shrink: 0; display: flex; }
.condition-item__title { flex: 1; }
.condition-item__body { border-top: 1px solid var(--color-steel-100); }
.condition-item__content { padding: var(--space-5); color: var(--color-steel-600); }

/* ── Hero категории ──────────────────────────────────────────── */
.block-category-hero {
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--color-steel-100);
}
.block-category-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.block-category-hero__content { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; min-width: 0; }
.block-category-hero__title { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
.block-category-hero__desc  { color: var(--color-steel-400); max-width: 56ch; line-height: 1.6; }
.block-category-hero__meta  { display: flex; gap: var(--space-2); }
.block-category-hero--with-img .block-category-hero__image-wrap { width: clamp(120px, 15vw, 200px); flex-shrink: 0; }
.block-category-hero__image { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: contain; }

/* ── SEO-текст ───────────────────────────────────────────────── */
.block-seo-text__wrap { max-width: 860px; }
.block-seo-text__content--clamped {
    max-height: 120px; overflow: hidden; position: relative;
}
.block-seo-text__content--clamped::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--color-steel-50));
}
.block-seo-text__content--expanded { max-height: none; }
.block-seo-text__content--expanded::after { display: none; }
.block-seo-text__toggle {
    display: inline-flex; align-items: center; gap: var(--space-2);
    margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 600;
    color: var(--color-blue); background: none; border: none; cursor: pointer;
    padding: 0;
}
.block-seo-text__toggle svg { transition: transform var(--transition); }
.block-seo-text__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── Форма подбора ───────────────────────────────────────────── */
.block-inquiry-form__inner {
    display: flex; align-items: center; gap: var(--space-10); flex-wrap: wrap;
}
.block-inquiry-form__text { flex: 1; min-width: 260px; }
.block-inquiry-form__title { font-size: var(--text-2xl); color: var(--color-white); margin-bottom: var(--space-3); }
.block-inquiry-form__desc  { color: rgba(255,255,255,.75); }
.block-inquiry-form__form  { flex: 1; min-width: 300px; }
.block-inquiry-form__row   { display: flex; flex-direction: column; gap: var(--space-3); }
.block-inquiry-form__row .form-input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: var(--color-white); }
.block-inquiry-form__row .form-input::placeholder { color: rgba(255,255,255,.5); }
.block-inquiry-form__row .form-input:focus { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); box-shadow: none; }

/* ── Калькулятор ─────────────────────────────────────────────── */
.block-product-calc__title { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
.block-product-calc__body { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-8); align-items: start; }

.calc-option {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border: 1.5px solid var(--color-steel-100); border-radius: var(--radius-md);
    cursor: pointer; transition: border-color var(--transition), background var(--transition);
    margin-bottom: var(--space-2);
}
.calc-option input { display: none; }
.calc-option:hover { border-color: var(--color-blue); background: var(--color-blue-light); }
.calc-option--active { border-color: var(--color-blue); background: var(--color-blue-light); }
.calc-option__label { font-weight: 600; }
.calc-option__price { font-size: var(--text-lg); font-weight: 700; color: var(--color-blue); }

.qty-wrap { display: flex; align-items: center; gap: 0; }
.qty-btn {
    width: 40px; height: 44px; border: 1.5px solid var(--color-steel-200);
    background: var(--color-white); font-size: var(--text-xl); font-weight: 500;
    cursor: pointer; transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.qty-btn:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.qty-btn:hover { background: var(--color-steel-50); }
.qty-input { width: 70px; height: 44px; text-align: center; border-top: 1.5px solid var(--color-steel-200); border-bottom: 1.5px solid var(--color-steel-200); border-left: none; border-right: none; border-radius: 0; font-weight: 600; }

.block-product-calc__result { display: flex; flex-direction: column; gap: var(--space-4); }
.block-product-calc__total-label { font-size: var(--text-sm); color: var(--color-steel-400); }
.block-product-calc__total { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 800; color: var(--color-blue); }

/* ── Документы ───────────────────────────────────────────────── */
.block-documents__title { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
.block-documents__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.block-documents__link {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--color-steel-50); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-md); text-decoration: none; color: var(--color-steel);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.block-documents__link:hover { box-shadow: var(--shadow-sm); border-color: var(--color-blue); color: var(--color-steel); }
.block-documents__ext {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius-sm);
    background: var(--color-blue); color: var(--color-white);
    font-size: var(--text-xs); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.block-documents__name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-documents__meta { font-size: var(--text-xs); color: var(--color-steel-400); white-space: nowrap; }
.block-documents__icon { color: var(--color-steel-400); margin-left: auto; flex-shrink: 0; }

/* ── Скачать прайс ───────────────────────────────────────────── */
.block-download-price__inner {
    display: flex; align-items: center; gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
    background: var(--color-white); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-xl); flex-wrap: wrap;
}
.bg-light .block-download-price__inner { background: var(--color-white); }
.block-download-price__icon { color: var(--color-blue); flex-shrink: 0; }
.block-download-price__text { flex: 1; min-width: 200px; }
.block-download-price__title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-1); }
.block-download-price__desc  { font-size: var(--text-sm); color: var(--color-steel-400); }
.block-download-price__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ── Наличие по складам ──────────────────────────────────────── */
.block-stock-info__title { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.block-stock-info__table { margin-bottom: var(--space-4); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-steel-100); }
.block-stock-info__note  { font-size: var(--text-sm); color: var(--color-steel-400); }

/* ── Адаптив новых блоков ────────────────────────────────────── */
@media (max-width: 900px) {
    .block-product-calc__body { grid-template-columns: 1fr; }
    .block-double-cta { grid-template-columns: 1fr; }
    .block-double-cta__half { padding: var(--space-10) var(--space-8); min-height: 220px; }
    .block-timer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .block-category-hero__inner { flex-direction: column; }
    .block-category-hero--with-img .block-category-hero__image-wrap { display: none; }
    .block-inquiry-form__inner { flex-direction: column; }
    .block-services__grid--cols-2,
    .block-services__grid--cols-3,
    .block-services__grid--cols-4 { grid-template-columns: 1fr; }
    .block-counters__item { border-right: none; border-bottom: 1px solid var(--color-steel-100); }
    .block-counters__item:last-child { border-bottom: none; }
    .block-timer__clock { gap: var(--space-2); }
    .block-timer__num { font-size: var(--text-2xl); padding: var(--space-2) var(--space-3); }
    .block-download-price__inner { flex-direction: column; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════
   ШАПКА v2 — Topbar + Mega Menu + Mobile Drawer
════════════════════════════════════════════════════════════════ */

/* ── CSS vars шапки ──────────────────────────────────────────── */
:root {
    --header-h:    72px;
    --header-compact-h: 58px;
    --mega-radius: 16px;
    --drawer-w:    340px;
    --transition-header: 200ms ease;
}

/* ── Обёртка шапки (sticky) ──────────────────────────────────── */
#site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ═══════════════════════════════════════════════════════════════
   НОВЫЕ БЛОКИ v3
════════════════════════════════════════════════════════════════ */

/* ── Слайдер ─────────────────────────────────────────────────── */
.block-slider__track-wrap { overflow: hidden; }
.block-slider__track {
    display: flex; gap: var(--space-5);
    transition: transform 0.4s ease;
    will-change: transform;
}
.block-slider__item { flex-shrink: 0; width: 360px; }
.block-slider__controls { display: flex; gap: var(--space-2); margin-left: auto; }
.block-slider__btn {
    width: 38px; height: 38px; border-radius: var(--radius-full);
    border: 1.5px solid var(--color-steel-100);
    background: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-steel); cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.block-slider__btn:hover { border-color: var(--color-blue); color: var(--color-blue); background: var(--color-blue-light); }
.block-slider__btn:disabled { opacity: .35; pointer-events: none; }

/* ── Партнёры ────────────────────────────────────────────────── */
.block-partners__header { text-align: center; margin-bottom: var(--space-8); }
.block-partners__title  { font-size: var(--text-2xl); }
.block-partners__subtitle { color: var(--color-steel-400); margin-top: var(--space-2); }

.block-partners__ribbon { overflow: hidden; padding: var(--space-4) 0; }
.block-partners__track {
    display: flex; align-items: center; gap: var(--space-10);
    animation: partners-scroll var(--scroll-dur, 25s) linear infinite;
    width: max-content;
}
.block-partners--scroll:hover .block-partners__track { animation-play-state: paused; }
@keyframes partners-scroll { to { transform: translateX(-50%); } }

.block-partners__logo {
    display: flex; align-items: center; flex-shrink: 0;
    opacity: .65; transition: opacity var(--transition-slow);
    filter: grayscale(1);
}
.block-partners__logo:hover { opacity: 1; filter: grayscale(0); }
.block-partners__logo img {
    height: 210px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.block-partners__grid {
    display: flex; flex-wrap: wrap; gap: var(--space-8);
    align-items: center; justify-content: center;
}

/* ── Видео-секция ────────────────────────────────────────────── */
.block-video__header { text-align: center; max-width: 600px; margin: 0 auto var(--space-8); }
.block-video--centered .block-video__player { max-width: 800px; margin: 0 auto; }

.block-video__player {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    aspect-ratio: 16/9; background: var(--color-steel); cursor: pointer;
}
.block-video__poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-slow); }
.block-video__player:hover .block-video__poster { transform: scale(1.03); }
.block-video__poster--empty { background: var(--color-steel-700); height: 100%; }

.block-video__play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); color: var(--color-white);
    border: none; cursor: pointer; transition: background var(--transition);
}
.block-video__play:hover { background: rgba(0,0,0,.5); }
.block-video__play svg { width: 72px; height: 72px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

.block-video__iframe-wrap { position: absolute; inset: 0; }
.block-video__iframe-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── Таймер ──────────────────────────────────────────────────── */
.block-timer__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-8); flex-wrap: wrap;
}
.block-timer__text { flex: 1; min-width: 0; }
.block-timer__title { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); color: var(--color-white); margin-bottom: var(--space-3); }
.block-timer__subtitle { color: rgba(255,255,255,.75); }
.block-timer__expired { color: rgba(255,255,255,.7); font-size: var(--text-lg); }

.block-timer__clock { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.block-timer__unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.block-timer__num {
    font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800; color: var(--color-white); line-height: 1; min-width: 2ch; text-align: center;
    background: rgba(255,255,255,.12); border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}
.block-timer__label { font-size: var(--text-xs); color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.block-timer__sep { font-size: var(--text-3xl); font-weight: 800; color: rgba(255,255,255,.4); line-height: 1; margin-bottom: 18px; }

/* ── Услуги с иконками ───────────────────────────────────────── */
.block-services__grid { display: grid; gap: var(--space-5); }
.block-services__grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.block-services__grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.block-services__grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.service-icon-card {
    background: var(--color-white); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg); padding: var(--space-6);
    display: flex; gap: var(--space-4); align-items: flex-start;
    transition: box-shadow var(--transition-slow);
}
.service-icon-card:hover { box-shadow: var(--shadow-md); }
.bg-white .service-icon-card { background: var(--color-steel-50); }

.service-icon-card__icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: var(--color-blue-light); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.service-icon-card__icon svg { width: 24px; height: 24px; color: var(--color-blue); }
.service-icon-card__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; min-width: 0; }
.service-icon-card__title { font-size: var(--text-lg); font-weight: 700; }
.service-icon-card__title a:hover { color: var(--color-blue); }
.service-icon-card__desc { font-size: var(--text-sm); color: var(--color-steel-400); line-height: 1.6; }
.service-icon-card__link { font-size: var(--text-sm); font-weight: 600; color: var(--color-blue); margin-top: auto; }

/* ── Блог колонки ────────────────────────────────────────────── */
.blog-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.blog-grid--cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.blog-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.blog-card__meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.blog-card__cat { font-size: var(--text-xs); font-weight: 600; color: var(--color-blue); background: var(--color-blue-light); padding: 2px 8px; border-radius: var(--radius-full); }

/* ── Вкладки ─────────────────────────────────────────────────── */
.block-tabs__wrap { border: 1px solid var(--color-steel-100); border-radius: var(--radius-lg); overflow: hidden; }
.block-tabs__nav {
    display: flex; flex-wrap: wrap; list-style: none;
    background: var(--color-steel-50); border-bottom: 1px solid var(--color-steel-100);
}
.block-tabs__btn {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm); font-weight: 600; color: var(--color-steel-400);
    border: none; border-bottom: 2px solid transparent;
    background: none; cursor: pointer; white-space: nowrap;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.block-tabs__btn:hover { color: var(--color-steel); }
.block-tabs__btn.is-active { color: var(--color-blue); border-bottom-color: var(--color-blue); background: var(--color-white); }
.block-tabs__btn-icon { font-size: 16px; }
.block-tabs__panel { display: none; }
.block-tabs__panel.is-active { display: block; }
.block-tabs__content { padding: var(--space-6) var(--space-8); }

/* ── Hero с видео ────────────────────────────────────────────── */
.block-hero-video {
    position: relative; overflow: hidden;
    min-height: 520px; display: flex; align-items: center;
    padding: var(--space-20) 0;
    color: var(--color-white);
}
.block-hero-video__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.block-hero-video__yt {
    position: absolute; inset: -10%; z-index: 0;
    pointer-events: none;
}
.block-hero-video__yt iframe { width: 100%; height: 100%; object-fit: cover; }
.block-hero-video__fallback {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.block-hero-video__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(0,0,0,var(--overlay-opacity, .65));
}
.block-hero-video__inner { position: relative; z-index: 2; }
.block-hero-video__content { max-width: 640px; display: flex; flex-direction: column; gap: var(--space-5); }

/* ── Счётчики ────────────────────────────────────────────────── */
.block-counters__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}
.block-counters__item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: var(--space-8) var(--space-6);
    border-right: 1px solid var(--color-steel-100);
}
.bg-dark .block-counters__item,
.bg-blue .block-counters__item { border-right-color: rgba(255,255,255,.1); }
.block-counters__item:last-child { border-right: none; }

.block-counters__num-wrap { display: flex; align-items: baseline; gap: 2px; }
.block-counters__prefix { font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); font-weight: 800; }
.block-counters__num {
    font-family: var(--font-display); font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800; line-height: 1;
    transition: color var(--transition);
}
.bg-light .block-counters__num, .bg-white .block-counters__num { color: var(--color-blue); }
.bg-dark  .block-counters__num, .bg-blue  .block-counters__num { color: var(--color-white); }
.block-counters__label { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-top: var(--space-2); }
.block-counters__desc  { font-size: var(--text-sm); color: var(--color-steel-400); margin-top: var(--space-1); max-width: 160px; }
.bg-dark .block-counters__label, .bg-blue .block-counters__label { color: var(--color-white); }
.bg-dark .block-counters__desc,  .bg-blue .block-counters__desc  { color: rgba(255,255,255,.55); }

/* ── Двойной CTA ─────────────────────────────────────────────── */
.block-double-cta { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.block-double-cta__half {
    position: relative; display: flex; align-items: center;
    padding: var(--space-16) var(--space-12);
    overflow: hidden;
}
.block-double-cta__half--dark { background: var(--color-steel); }
.block-double-cta__half--blue { background: var(--color-blue); }
.block-double-cta__half[style*="--dcta-bg"] {
    background-image: var(--dcta-bg);
    background-size: cover; background-position: center;
}
.block-double-cta__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55); z-index: 0;
}
.block-double-cta__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.block-double-cta__title { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); color: var(--color-white); }
.block-double-cta__desc  { color: rgba(255,255,255,.75); font-size: var(--text-sm); }
.block-double-cta__half--blue .btn--outline { border-color: rgba(255,255,255,.5); color: var(--color-white); }
.block-double-cta__half--blue .btn--outline:hover { background: rgba(255,255,255,.1); color: var(--color-white); border-color: var(--color-white); }

/* ── Условия доставки ────────────────────────────────────────── */
.block-conditions__inner { max-width: 780px; margin: 0 auto; }
.block-conditions__header { margin-bottom: var(--space-8); }
.block-conditions__title { font-size: var(--text-2xl); }
.block-conditions__subtitle { color: var(--color-steel-400); margin-top: var(--space-2); }

.block-conditions__list { display: flex; flex-direction: column; gap: var(--space-2); }
.condition-item { border: 1px solid var(--color-steel-100); border-radius: var(--radius-md); overflow: hidden; }
.condition-item__head {
    display: flex; align-items: center; gap: var(--space-3);
    width: 100%; padding: var(--space-4) var(--space-5);
    background: var(--color-white); border: none; cursor: pointer; text-align: left;
    font-size: var(--text-base); font-weight: 600;
    transition: background var(--transition);
}
.condition-item__head:hover { background: var(--color-steel-50); }
.condition-item__icon { color: var(--color-blue); flex-shrink: 0; display: flex; }
.condition-item__title { flex: 1; }
.condition-item__body { border-top: 1px solid var(--color-steel-100); }
.condition-item__content { padding: var(--space-5); color: var(--color-steel-600); }

/* ── Hero категории ──────────────────────────────────────────── */
.block-category-hero {
    padding: var(--space-10) 0;
    border-bottom: 1px solid #222222;
}
.block-category-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.block-category-hero__content { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; min-width: 0; }
.block-category-hero__title { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
.block-category-hero__desc  { color: var(--color-steel-400); max-width: 56ch; line-height: 1.6; }
.block-category-hero__meta  { display: flex; gap: var(--space-2); }
.block-category-hero--with-img .block-category-hero__image-wrap { width: clamp(120px, 15vw, 200px); flex-shrink: 0; }
.block-category-hero__image { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: contain; }

/* ── SEO-текст ───────────────────────────────────────────────── */
.block-seo-text__wrap { max-width: 860px; }
.block-seo-text__content--clamped {
    max-height: 120px; overflow: hidden; position: relative;
}
.block-seo-text__content--clamped::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--color-steel-50));
}
.block-seo-text__content--expanded { max-height: none; }
.block-seo-text__content--expanded::after { display: none; }
.block-seo-text__toggle {
    display: inline-flex; align-items: center; gap: var(--space-2);
    margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 600;
    color: var(--color-blue); background: none; border: none; cursor: pointer;
    padding: 0;
}
.block-seo-text__toggle svg { transition: transform var(--transition); }
.block-seo-text__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── Форма подбора ───────────────────────────────────────────── */
.block-inquiry-form__inner {
    display: flex; align-items: center; gap: var(--space-10); flex-wrap: wrap;
}
.block-inquiry-form__text { flex: 1; min-width: 260px; }
.block-inquiry-form__title { font-size: var(--text-2xl); color: var(--color-white); margin-bottom: var(--space-3); }
.block-inquiry-form__desc  { color: rgba(255,255,255,.75); }
.block-inquiry-form__form  { flex: 1; min-width: 300px; }
.block-inquiry-form__row   { display: flex; flex-direction: column; gap: var(--space-3); }
.block-inquiry-form__row .form-input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: var(--color-white); }
.block-inquiry-form__row .form-input::placeholder { color: rgba(255,255,255,.5); }
.block-inquiry-form__row .form-input:focus { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); box-shadow: none; }

/* ── Калькулятор ─────────────────────────────────────────────── */
.block-product-calc__title { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
.block-product-calc__body { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-8); align-items: start; }

.calc-option {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border: 1.5px solid var(--color-steel-100); border-radius: var(--radius-md);
    cursor: pointer; transition: border-color var(--transition), background var(--transition);
    margin-bottom: var(--space-2);
}
.calc-option input { display: none; }
.calc-option:hover { border-color: var(--color-blue); background: var(--color-blue-light); }
.calc-option--active { border-color: var(--color-blue); background: var(--color-blue-light); }
.calc-option__label { font-weight: 600; }
.calc-option__price { font-size: var(--text-lg); font-weight: 700; color: var(--color-blue); }

.qty-wrap { display: flex; align-items: center; gap: 0; }
.qty-btn {
    width: 40px; height: 44px; border: 1.5px solid var(--color-steel-200);
    background: var(--color-white); font-size: var(--text-xl); font-weight: 500;
    cursor: pointer; transition: background var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.qty-btn:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.qty-btn:hover { background: var(--color-steel-50); }
.qty-input { width: 70px; height: 44px; text-align: center; border-top: 1.5px solid var(--color-steel-200); border-bottom: 1.5px solid var(--color-steel-200); border-left: none; border-right: none; border-radius: 0; font-weight: 600; }

.block-product-calc__result { display: flex; flex-direction: column; gap: var(--space-4); }
.block-product-calc__total-label { font-size: var(--text-sm); color: var(--color-steel-400); }
.block-product-calc__total { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 800; color: var(--color-blue); }

/* ── Документы ───────────────────────────────────────────────── */
.block-documents__title { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
.block-documents__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.block-documents__link {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--color-steel-50); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-md); text-decoration: none; color: var(--color-steel);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.block-documents__link:hover { box-shadow: var(--shadow-sm); border-color: var(--color-blue); color: var(--color-steel); }
.block-documents__ext {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius-sm);
    background: var(--color-blue); color: var(--color-white);
    font-size: var(--text-xs); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.block-documents__name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-documents__meta { font-size: var(--text-xs); color: var(--color-steel-400); white-space: nowrap; }
.block-documents__icon { color: var(--color-steel-400); margin-left: auto; flex-shrink: 0; }

/* ── Скачать прайс ───────────────────────────────────────────── */
.block-download-price__inner {
    display: flex; align-items: center; gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
    background: var(--color-white); border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-xl); flex-wrap: wrap;
}
.bg-light .block-download-price__inner { background: var(--color-white); }
.block-download-price__icon { color: var(--color-blue); flex-shrink: 0; }
.block-download-price__text { flex: 1; min-width: 200px; }
.block-download-price__title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-1); }
.block-download-price__desc  { font-size: var(--text-sm); color: var(--color-steel-400); }
.block-download-price__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ── Наличие по складам ──────────────────────────────────────── */
.block-stock-info__title { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.block-stock-info__table { margin-bottom: var(--space-4); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-steel-100); }
.block-stock-info__note  { font-size: var(--text-sm); color: var(--color-steel-400); }

/* ── Адаптив новых блоков ────────────────────────────────────── */
@media (max-width: 900px) {
    .block-product-calc__body { grid-template-columns: 1fr; }
    .block-double-cta { grid-template-columns: 1fr; }
    .block-double-cta__half { padding: var(--space-10) var(--space-8); min-height: 220px; }
    .block-timer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .block-category-hero__inner { flex-direction: column; }
    .block-category-hero--with-img .block-category-hero__image-wrap { display: none; }
    .block-inquiry-form__inner { flex-direction: column; }
    .block-services__grid--cols-2,
    .block-services__grid--cols-3,
    .block-services__grid--cols-4 { grid-template-columns: 1fr; }
    .block-counters__item { border-right: none; border-bottom: 1px solid var(--color-steel-100); }
    .block-counters__item:last-child { border-bottom: none; }
    .block-timer__clock { gap: var(--space-2); }
    .block-timer__num { font-size: var(--text-2xl); padding: var(--space-2) var(--space-3); }
    .block-download-price__inner { flex-direction: column; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════
   ШАПКА v2 — Topbar + Mega Menu + Mobile Drawer
════════════════════════════════════════════════════════════════ */

/* ── CSS vars шапки ──────────────────────────────────────────── */
:root {
    --header-h:    72px;
    --header-compact-h: 58px;
    --mega-radius: 16px;
    --drawer-w:    340px;
    --transition-header: 200ms ease;
}

/* ── Обёртка шапки (sticky) ──────────────────────────────────── */
#site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ══════════════════════════════════════
   ОСНОВНАЯ ШАПКА
══════════════════════════════════════ */
.site-header {
    height: var(--header-h);
    display: flex; flex-direction: column; justify-content: center;
    border-bottom: 1px solid var(--color-steel-100);
    transition: height var(--transition-header), box-shadow var(--transition-slow), background var(--transition-slow);
    position: relative;
}

/* Фон */
.site-header--white       { background: var(--color-white); }
.site-header--light       { background: var(--color-steel-50); }
.site-header--dark        { background: var(--color-steel); border-bottom-color: var(--color-steel-600); }
.site-header--transparent { background: transparent; border-bottom-color: transparent; position: absolute; left: 0; right: 0; }

/* После скролла — тень */
.site-header--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }

/* Компактный режим при скролле */
.site-header--compact.site-header--scrolled { height: var(--header-compact-h); }

/* Inner */
.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-6);
    height: 100%;
}

/* ── Логотип ──────────────────────────────────────────────────── */
.site-header__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-header__logo-img { height: 44px; width: auto; transition: height var(--transition-header); }
.site-header--compact.site-header--scrolled .site-header__logo-img { height: 34px; }
.site-header--dark .site-header__logo-text { color: var(--color-white); }
.site-header--transparent .site-header__logo-text { color: var(--color-white); }

/* ── Навигация ────────────────────────────────────────────────── */
.site-header__nav { display: flex; align-items: center; justify-content: center; }

.nav-menu {
    display: flex; align-items: center; gap: 2px;
    list-style: none; margin: 0; padding: 0;
    position: relative;
}

.nav-item { position: relative; }

.nav-link {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 14px;
    font-size: var(--text-sm); font-weight: 600;
    color: var(--color-steel);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none; background: none;
    font-family: var(--font-display);
}
.nav-link:hover, .nav-item--active > .nav-link { color: var(--color-blue); background: var(--color-blue-light); }
.site-header--dark .nav-link { color: var(--color-steel-200); }
.site-header--dark .nav-link:hover { color: var(--color-white); background: rgba(255,255,255,.1); }

.nav-link__chevron { flex-shrink: 0; transition: transform var(--transition); }
.nav-item--has-children:hover > .nav-link .nav-link__chevron,
.nav-item--has-children.is-open > .nav-link .nav-link__chevron { transform: rotate(180deg); }

/* ── Обычный дропдаун ─────────────────────────────────────────── */
.nav-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 220px;
    background: var(--color-white);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    list-style: none; padding: 6px 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--transition-slow), transform var(--transition-slow), visibility var(--transition-slow);
    z-index: 100;
}
.nav-item--has-children:hover > .nav-dropdown,
.nav-item--has-children.is-open > .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: all; transform: none;
}
.nav-dropdown__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px;
    font-size: var(--text-sm); font-weight: 500;
    color: var(--color-steel);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}
.nav-dropdown__link:hover { color: var(--color-blue); background: var(--color-blue-light); }

/* Вложенный дропдаун (3-й уровень) */
.nav-dropdown--sub {
    top: -6px; left: 100%; margin-left: 4px;
}

/* ── Мегаменю ─────────────────────────────────────────────────── */
.mega-menu {
    position: absolute; top: calc(100% + 1px); left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(96vw, 1100px);
    background: var(--color-white);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--mega-radius);
    box-shadow: var(--shadow-xl);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--transition-slow), transform var(--transition-slow), visibility var(--transition-slow);
    z-index: 200;
    overflow: hidden;
}
.nav-item--mega:hover .mega-menu,
.nav-item--mega.is-open .mega-menu {
    opacity: 1; visibility: visible; pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.mega-menu__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
}

.mega-menu__cols {
    display: grid;
    gap: 0;
    padding: var(--space-6);
    border-right: 1px solid var(--color-steel-100);
}
.mega-menu__cols--3 { grid-template-columns: repeat(3, 1fr); }
.mega-menu__cols--4 { grid-template-columns: repeat(4, 1fr); }
.mega-menu__cols--5 { grid-template-columns: repeat(5, 1fr); }

.mega-menu__col { padding: var(--space-3) var(--space-4); }

/* Заголовок колонки */
.mega-menu__cat-head {
    display: flex; align-items: center; gap: var(--space-3);
    margin-bottom: var(--space-3); text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: background var(--transition);
}
.mega-menu__cat-head:hover { background: var(--color-steel-50); }

.mega-menu__cat-img {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: var(--radius-md); overflow: hidden;
    background: var(--color-steel-50);
}
.mega-menu__cat-img img { width: 100%; height: 100%; object-fit: contain; }

.mega-menu__cat-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--cat-color) 12%, white);
    color: var(--cat-color);
    display: flex; align-items: center; justify-content: center;
}

.mega-menu__cat-name {
    font-family: var(--font-display); font-weight: 700;
    font-size: var(--text-sm); color: var(--color-steel);
    line-height: 1.3;
}
.mega-menu__cat-head:hover .mega-menu__cat-name { color: var(--color-blue); }

.mega-menu__col-title {
    font-size: var(--text-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--color-steel-400);
    padding: 0 var(--space-3); margin-bottom: var(--space-2);
}

.mega-menu__sub-links { list-style: none; padding: 0 var(--space-3); }
.mega-menu__sub-link {
    display: block; padding: 5px 0;
    font-size: var(--text-sm); color: var(--color-steel-400);
    text-decoration: none;
    transition: color var(--transition);
    border-bottom: 1px solid transparent;
}
.mega-menu__sub-link:hover { color: var(--color-blue); }

.mega-menu__links { list-style: none; padding: 0; }
.mega-menu__link {
    display: flex; align-items: center; gap: var(--space-2);
    padding: 7px var(--space-3);
    font-size: var(--text-sm); font-weight: 500;
    color: var(--color-steel); text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.mega-menu__link:hover { color: var(--color-blue); background: var(--color-blue-light); }
.mega-menu__link-icon { font-size: 16px; }

/* CTA блок в мегаменю */
.mega-menu__cta {
    width: 240px; flex-shrink: 0;
    background: var(--color-steel);
    padding: var(--space-8) var(--space-6);
    display: flex; align-items: flex-end;
    position: relative; overflow: hidden;
}
.mega-menu__cta--has-bg {
    background-image: var(--cta-bg);
    background-size: cover; background-position: center;
}
.mega-menu__cta-overlay {
    position: absolute; inset: 0;
    background: rgba(28,28,30,.75); z-index: 0;
}
.mega-menu__cta-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.mega-menu__cta-title { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-white); }
.mega-menu__cta-text  { font-size: var(--text-sm); color: rgba(255,255,255,.7); line-height: 1.5; }
.mega-menu__cta-btn   { align-self: flex-start; }
.mega-menu__cta-phone {
    display: flex; align-items: center; gap: var(--space-2);
    font-size: var(--text-sm); font-weight: 600; color: rgba(255,255,255,.8);
    text-decoration: none; transition: color var(--transition);
}
.mega-menu__cta-phone:hover { color: var(--color-white); }

/* Оверлей под мегаменю */
.mega-overlay {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}
.mega-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: all; }

/* ── Кнопки в шапке ───────────────────────────────────────────── */
.site-header__actions {
    display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0;
}
.site-header__btns { display: flex; align-items: center; gap: var(--space-2); }

.hdr-btn { height: 38px; padding: 0 16px; font-size: var(--text-sm) !important; white-space: nowrap; }
.btn--whatsapp { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; }
.btn--whatsapp:hover { background: #20ba58 !important; border-color: #20ba58 !important; }
.btn--telegram { background: #229ed9 !important; color: #fff !important; border-color: #229ed9 !important; }
.btn--telegram:hover { background: #1a8cbd !important; border-color: #1a8cbd !important; }
.btn--ghost { background: transparent; color: var(--color-steel); border-color: transparent; }
.btn--ghost:hover { background: var(--color-steel-50); color: var(--color-blue); }

.hdr-icon-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-steel-100);
    color: var(--color-steel); background: transparent;
    cursor: pointer; transition: all var(--transition);
}
.hdr-icon-btn:hover { border-color: var(--color-blue); color: var(--color-blue); background: var(--color-blue-light); }

/* Бургер */
.site-header__burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 8px;
    background: none; border: none; cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}
.site-header__burger:hover { background: var(--color-steel-50); }
.burger__line {
    display: block; width: 22px; height: 2px;
    background: var(--color-steel); border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
    transform-origin: center;
}
.site-header--dark .burger__line,
.site-header--transparent .burger__line { background: var(--color-white); }

/* Анимация бургера → X */
.js-burger.is-open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.js-burger.is-open .burger__line:nth-child(2) { opacity: 0; width: 0; }
.js-burger.is-open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Строка поиска ────────────────────────────────────────────── */
.hdr-search {
    border-top: 1px solid var(--color-steel-100);
    padding: var(--space-3) 0;
    background: var(--color-white);
    animation: searchSlideDown .2s ease;
}
@keyframes searchSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.hdr-search__inner { display: flex; }
.hdr-search__form  { display: flex; align-items: center; gap: var(--space-2); width: 100%; }
.hdr-search__input {
    flex: 1; height: 44px; font-size: var(--text-base);
    border-radius: var(--radius-md);
}
.hdr-search__submit,
.hdr-search__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: var(--radius-md); cursor: pointer; border: 1.5px solid var(--color-steel-100); background: transparent; color: var(--color-steel); transition: all var(--transition); }
.hdr-search__submit:hover { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }
.hdr-search__close:hover  { background: var(--color-steel-50); color: var(--color-blue); }

/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 9500;
    visibility: hidden; pointer-events: none;
}
.mobile-drawer.is-open { visibility: visible; pointer-events: all; }

.mobile-drawer__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .3s ease;
    cursor: pointer;
}
.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }

.mobile-drawer__panel {
    position: absolute; top: 0; right: 0;
    width: var(--drawer-w); max-width: 90vw; height: 100%;
    background: var(--color-white);
    display: flex; flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 40px rgba(0,0,0,.15);
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: none; }

.mobile-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-steel-100);
    flex-shrink: 0;
}
.mobile-drawer__logo img { height: 36px; width: auto; }
.mobile-drawer__close {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); border: none; background: var(--color-steel-50);
    color: var(--color-steel); cursor: pointer; transition: background var(--transition);
}
.mobile-drawer__close:hover { background: var(--color-steel-100); }

.mobile-drawer__search {
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid var(--color-steel-100);
    flex-shrink: 0;
}
.mobile-drawer__search .form-input { width: 100%; height: 40px; }

/* Мобильная навигация */
.mobile-drawer__nav { flex: 1; overflow-y: auto; padding: var(--space-3) 0; }

.mobile-nav { list-style: none; margin: 0; padding: 0; }
.mobile-nav__item { border-bottom: 1px solid var(--color-steel-100); }
.mobile-nav__item--sub { border-bottom: none; }

.mobile-nav__row { display: flex; align-items: center; }

.mobile-nav__link {
    display: flex; align-items: center; flex: 1;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base); font-weight: 600;
    color: var(--color-steel); text-decoration: none;
    transition: color var(--transition), background var(--transition);
    font-family: var(--font-display);
}
.mobile-nav__link--sub  { font-size: var(--text-sm); font-weight: 500; padding: var(--space-3) var(--space-8); color: var(--color-steel-600); }
.mobile-nav__link--active { color: var(--color-blue); }
.mobile-nav__link:hover   { color: var(--color-blue); }

.mobile-nav__toggle {
    width: 44px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: var(--color-steel-400);
    transition: color var(--transition);
}
.mobile-nav__toggle:hover { color: var(--color-blue); }
.mobile-nav__toggle svg { transition: transform .25s ease; }
.mobile-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__toggle[aria-expanded="true"] { color: var(--color-blue); }

.mobile-nav__sub {
    background: var(--color-steel-50);
    list-style: none; padding: var(--space-1) 0;
    border-top: 1px solid var(--color-steel-100);
    animation: subSlideDown .2s ease;
}
@keyframes subSlideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Контакты и доп. кнопки в drawer */
.mobile-drawer__info {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-steel-100);
    display: flex; flex-direction: column; gap: var(--space-2);
    flex-shrink: 0;
}
.mobile-drawer__info-row {
    display: flex; align-items: center; gap: var(--space-3);
    font-size: var(--text-sm); color: var(--color-steel);
    text-decoration: none; padding: 4px 0;
    transition: color var(--transition);
}
.mobile-drawer__info-row:hover { color: var(--color-blue); }
.mobile-drawer__info-row--text { color: var(--color-steel-400); pointer-events: none; }

.mobile-drawer__messengers {
    display: flex; gap: var(--space-2);
    padding: 0 var(--space-5) var(--space-4);
    flex-shrink: 0;
}
.mobile-drawer__msg-btn {
    display: flex; align-items: center; gap: var(--space-2); flex: 1;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm); font-weight: 600;
    color: var(--color-white); text-decoration: none;
    justify-content: center;
    transition: opacity var(--transition);
}
.mobile-drawer__msg-btn:hover { opacity: .88; color: var(--color-white); }
.mobile-drawer__msg-btn--wa { background: #25d366; }
.mobile-drawer__msg-btn--tg { background: #229ed9; }

.mobile-drawer__btns {
    padding: var(--space-3) var(--space-5) var(--space-5);
    border-top: 1px solid var(--color-steel-100);
    flex-shrink: 0;
}
.mobile-drawer__btns .btn { gap: var(--space-2); }

/* ══════════════════════════════════════
   АДАПТИВ ШАПКИ
══════════════════════════════════════ */
@media (max-width: 1180px) {
    .site-header__inner { grid-template-columns: auto 1fr auto; gap: var(--space-4); }
    .nav-link { padding: 8px 10px; font-size: 13px; }
    .hdr-btn  { padding: 0 12px; }
}

@media (max-width: 960px) {
    /* Скрываем десктопную навигацию */
    .site-header__nav  { display: none; }
    .site-header__btns { display: none; }
    .hdr-icon-btn      { display: none; }
    /* Показываем бургер */
    .site-header__burger { display: flex; }
    .site-header__inner { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 640px) {
    :root { --header-h: 60px; }
    .mega-menu { display: none; }
}

/* Убираем старые стили шапки чтобы не конфликтовали */
.site-header--compact { }
.site-header--sticky  { }
.site-header--none    { }


/* ═══════════════════════════════════════════════════════════════
   ШАПКА v2 — 3 ряда: топ-бар + основная строка + навигация
════════════════════════════════════════════════════════════════ */

/* ── Обёртка шапки (sticky) ──────────────────────────────────── */
#site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.site-header-wrap--sticky-always   { position: sticky; top: 0; }
.site-header-wrap--sticky-compact  { position: relative; }
.site-header-wrap--sticky-none     { position: relative; }

/* Тень при скролле */
#site-header-wrap.is-scrolled .hdr-nav-row { box-shadow: 0 2px 24px rgba(0,0,0,.10); }

/* ── РЯД 2: ОСНОВНАЯ СТРОКА ──────────────────────────────────── */
.hdr-main {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-steel-100);
    position: relative;
}
.site-header-wrap--dark   .hdr-main { background: var(--color-steel);       border-bottom-color: var(--color-steel-600); }
.site-header-wrap--light  .hdr-main { background: var(--color-steel-50);     border-bottom-color: var(--color-steel-100); }

.hdr-main__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-6);
    height: 80px;
}

/* Логотип */
.hdr-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}
.hdr-logo__img { display: block; width: auto; }
.hdr-logo__text-wrap { display: flex; flex-direction: column; gap: 1px; }
.hdr-logo__text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-steel);
    letter-spacing: -0.025em;
    line-height: 1.1;
}
.hdr-logo__tagline {
    font-size: 10px;
    color: var(--color-steel-400);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
}
.site-header-wrap--dark .hdr-logo__text    { color: var(--color-white); }
.site-header-wrap--dark .hdr-logo__tagline { color: var(--color-steel-400); }

/* Контакты (центральная часть) */
.hdr-contacts {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    justify-content: center;
}
.hdr-contact {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--color-steel);
    transition: color var(--transition);
}
.hdr-contact:hover { color: var(--color-blue); }
.hdr-contact--hlg { display: none; }
.hdr-contact__icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-blue-light);
    color: var(--color-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}
.hdr-contact:hover .hdr-contact__icon { background: var(--color-blue); color: var(--color-white); }
.hdr-contact__body { display: flex; flex-direction: column; gap: 1px; }
.hdr-contact__label { font-size: 10px; color: var(--color-steel-400); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.hdr-contact__value { font-size: var(--text-sm); font-weight: 600; color: var(--color-steel); white-space: nowrap; }
.hdr-contact:hover .hdr-contact__value { color: var(--color-blue); }
.site-header-wrap--dark .hdr-contact__value { color: var(--color-white); }
.site-header-wrap--dark .hdr-contact__icon  { background: rgba(255,255,255,.1); color: var(--color-white); }

/* Кнопки шапки */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}
.hdr-btn {
    height: 38px !important;
    padding: 0 16px !important;
    font-size: var(--text-sm) !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
/* Стили кнопок мессенджеров */
.btn--whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn--whatsapp:hover { background: #20ba58; border-color: #20ba58; color: #fff; }
.btn--telegram { background: #229ed9; color: #fff; border-color: #229ed9; }
.btn--telegram:hover { background: #1a87c0; border-color: #1a87c0; color: #fff; }

/* Кнопка-иконка (поиск) */
.hdr-icon-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-steel-100);
    background: var(--color-white);
    color: var(--color-steel-400);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    flex-shrink: 0;
}
.hdr-icon-btn:hover { border-color: var(--color-blue); color: var(--color-blue); background: var(--color-blue-light); }
.hdr-icon-btn.is-active { border-color: var(--color-blue); color: var(--color-white); background: var(--color-blue); }
.site-header-wrap--dark .hdr-icon-btn { border-color: var(--color-steel-600); background: transparent; color: var(--color-steel-200); }
.site-header-wrap--dark .hdr-icon-btn:hover { border-color: var(--color-white); color: var(--color-white); background: rgba(255,255,255,.1); }

/* Бургер */
.hdr-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-steel-100);
    background: var(--color-white);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    flex-shrink: 0;
}
.hdr-burger:hover { border-color: var(--color-blue); background: var(--color-blue-light); }
.hdr-burger__line {
    display: block;
    width: 18px; height: 2px;
    background: var(--color-steel);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
}
.site-header-wrap--dark .hdr-burger { border-color: var(--color-steel-600); background: transparent; }
.site-header-wrap--dark .hdr-burger__line { background: var(--color-white); }
.hdr-burger.is-open .hdr-burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-burger.is-open .hdr-burger__line:nth-child(2) { opacity: 0; width: 0; }
.hdr-burger.is-open .hdr-burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Поисковая строка */
.hdr-search {
    border-top: 1px solid var(--color-steel-100);
    background: var(--color-white);
    padding: var(--space-3) 0;
}
.hdr-search__inner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.hdr-search__inner svg { color: var(--color-steel-400); flex-shrink: 0; }
.hdr-search__input {
    flex: 1;
    height: 44px;
    border: 1.5px solid var(--color-steel-100);
    border-radius: var(--radius-md);
    padding: 0 var(--space-4);
    font-size: var(--text-base);
    color: var(--color-steel);
    background: var(--color-steel-50);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}
.hdr-search__input:focus { border-color: var(--color-blue); background: var(--color-white); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.hdr-search__close {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-steel-100);
    background: none; cursor: pointer;
    color: var(--color-steel-400);
    display: flex; align-items: center; justify-content: center;
    transition: color var(--transition), background var(--transition);
}
.hdr-search__close:hover { color: var(--color-steel); background: var(--color-steel-50); }

/* ── РЯД 3: НАВИГАЦИЯ ──────────────────────────────────────────── */
.hdr-nav-row {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-steel-100);
    transition: box-shadow var(--transition-slow);
}
.site-header-wrap--dark  .hdr-nav-row { background: var(--color-steel-700); border-bottom-color: var(--color-steel-600); }
.site-header-wrap--light .hdr-nav-row { background: var(--color-steel-50); }

.hdr-nav-row__inner {
    display: flex;
    align-items: center;
    position: relative;
    height: 48px;
}
.hdr-nav { flex: 1; }

/* Дополнительные ссылки справа */
.hdr-nav-row__extra { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; margin-left: var(--space-4); }
.hdr-nav-row__extra-link {
    font-size: var(--text-sm); font-weight: 500;
    color: var(--color-steel-400);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap; text-decoration: none;
}
.hdr-nav-row__extra-link:hover { color: var(--color-blue); background: var(--color-blue-light); }
.hdr-nav-row__extra-link--accent { color: var(--color-accent); font-weight: 600; }
.hdr-nav-row__extra-link--accent:hover { background: rgba(232,93,4,.08); color: var(--color-accent); }

/* ── МЕНЮ ─────────────────────────────────────────────────────── */
.nav-menu { display: flex; gap: 2px; list-style: none; height: 48px; align-items: center; }
.nav-item  { position: relative; height: 100%; display: flex; align-items: center; }

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    height: 100%;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-steel-600);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--color-blue);
    border-radius: 2px 2px 0 0;
    transition: left var(--transition), right var(--transition);
}
.nav-item--active > .nav-link::after,
.nav-item:hover > .nav-link::after { left: var(--space-2); right: var(--space-2); }

.nav-item--active > .nav-link,
.nav-item:hover > .nav-link { color: var(--color-blue); }
.site-header-wrap--dark .nav-link  { color: var(--color-steel-200); }
.site-header-wrap--dark .nav-link:hover,
.site-header-wrap--dark .nav-item--active > .nav-link { color: var(--color-white); }
.site-header-wrap--dark .nav-link::after { background: var(--color-white); }

.nav-link__chevron { flex-shrink: 0; transition: transform var(--transition-slow); }
.nav-item--has-children:hover > .nav-link .nav-link__chevron,
.nav-item--has-children.is-open > .nav-link .nav-link__chevron { transform: rotate(180deg); }

/* Обычный dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: 500;
}
.nav-item--has-children:hover > .nav-dropdown,
.nav-item--has-children.is-open > .nav-dropdown {
    opacity: 1; visibility: visible; transform: none;
}
.nav-dropdown__link {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-steel-600);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}
.nav-dropdown__link:hover { color: var(--color-blue); background: var(--color-blue-light); }

/* ── МЕГА-МЕНЮ ─────────────────────────────────────────────────── */
.mega-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: min(1100px, 90vw);
    background: var(--color-white);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow), transform var(--transition-slow);
    z-index: 500;
    overflow: hidden;
}
.nav-item--mega:hover .mega-menu,
.nav-item--mega.is-open .mega-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-menu__inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0;
    align-items: start;
}

/* Категории */
.mega-menu__cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0;
    padding: var(--space-4);
    border-right: 1px solid var(--color-steel-100);
}
.mega-menu__cat-col { padding: var(--space-2); }
.mega-menu__cat-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background var(--transition);
    color: var(--color-steel);
    margin-bottom: var(--space-1);
}
.mega-menu__cat-head:hover { background: var(--color-steel-50); }
.mega-menu__cat-thumb {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--cat-color, #0071e3) 12%, white);
    color: var(--cat-color, #0071e3);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.mega-menu__cat-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mega-menu__cat-name { font-size: var(--text-sm); font-weight: 600; flex: 1; }
.mega-menu__cat-arrow { flex-shrink: 0; color: var(--color-steel-200); transition: color var(--transition); }
.mega-menu__cat-head:hover .mega-menu__cat-arrow { color: var(--color-blue); }
.mega-menu__cat-head:hover .mega-menu__cat-name  { color: var(--color-blue); }

.mega-menu__sub { list-style: none; padding: 0 var(--space-3) var(--space-3); }
.mega-menu__sub-link {
    display: block;
    padding: 3px var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-steel-400);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}
.mega-menu__sub-link:hover { color: var(--color-blue); background: var(--color-blue-light); }
.mega-menu__sub-link--all  { color: var(--color-blue); font-weight: 600; }

/* Кастомные колонки */
.mega-menu__cols { display: grid; gap: 0; padding: var(--space-4); }
.mega-menu__cols--1col { grid-template-columns: 1fr; }
.mega-menu__cols--2col { grid-template-columns: 1fr 1fr; }
.mega-menu__cols--3col { grid-template-columns: 1fr 1fr 1fr; }
.mega-menu__cols--4col { grid-template-columns: 1fr 1fr 1fr 1fr; }
.mega-menu__cols--5col { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
.mega-menu__col { padding: var(--space-2) var(--space-3); }
.mega-menu__col-head {
    font-size: var(--text-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--color-steel-400);
    margin-bottom: var(--space-3); padding: 0 var(--space-2);
}
.mega-menu__col-html { font-size: var(--text-sm); color: var(--color-steel-600); }
.mega-menu__links { list-style: none; }
.mega-menu__link {
    display: flex; align-items: flex-start; gap: var(--space-2);
    padding: var(--space-2) var(--space-2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
    cursor: pointer;
}
.mega-menu__link:hover { background: var(--color-blue-light); }
.mega-menu__link:hover .mega-menu__link-text { color: var(--color-blue); }
.mega-menu__link-icon { font-size: 16px; flex-shrink: 0; }
.mega-menu__link-text { font-size: var(--text-sm); font-weight: 500; color: var(--color-steel); }
.mega-menu__link-desc { font-size: var(--text-xs); color: var(--color-steel-400); display: block; margin-top: 1px; }

/* Популярные товары */
.mega-menu__products {
    width: 220px;
    padding: var(--space-4) var(--space-4);
    border-left: 1px solid var(--color-steel-100);
    flex-shrink: 0;
}
.mega-menu__products-head {
    font-size: var(--text-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--color-steel-400);
    margin-bottom: var(--space-3);
}
.mega-menu__products-grid { display: flex; flex-direction: column; gap: var(--space-2); }
.mega-menu__product-card {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-2) var(--space-2);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background var(--transition);
}
.mega-menu__product-card:hover { background: var(--color-steel-50); }
.mega-menu__product-img {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-steel-50);
    border: 1px solid var(--color-steel-100);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden; position: relative;
}
.mega-menu__product-img img { width: 100%; height: 100%; object-fit: contain; }
.mega-menu__product-img--empty { width: 100%; height: 100%; }
.mega-menu__product-badge {
    position: absolute; bottom: 2px; right: 2px;
    width: 6px; height: 6px; border-radius: 50%;
}
.mega-menu__product-badge--green  { background: #16a34a; }
.mega-menu__product-badge--orange { background: #d97706; }
.mega-menu__product-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-menu__product-name {
    font-size: var(--text-xs); font-weight: 600; color: var(--color-steel);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 130px;
}
.mega-menu__product-card:hover .mega-menu__product-name { color: var(--color-blue); }
.mega-menu__product-price { font-size: var(--text-xs); font-weight: 700; color: var(--color-blue); }
.mega-menu__all-link {
    display: block; margin-top: var(--space-3);
    font-size: var(--text-xs); font-weight: 600; color: var(--color-blue);
    text-decoration: none;
}
.mega-menu__all-link:hover { text-decoration: underline; }

/* HTML-баннер */
.mega-menu__html-banner {
    padding: var(--space-4);
    border-left: 1px solid var(--color-steel-100);
    min-width: 200px;
    max-width: 260px;
}

/* CTA блок */
.mega-menu__cta {
    width: 200px;
    flex-shrink: 0;
    background: var(--color-steel);
    padding: var(--space-6) var(--space-5);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    min-height: 200px;
}
.mega-menu__cta--bg { background-image: var(--cta-bg); background-size: cover; background-position: center; }
.mega-menu__cta-overlay { position: absolute; inset: 0; background: rgba(28,28,30,.75); }
.mega-menu__cta-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-3); height: 100%; justify-content: flex-end; }
.mega-menu__cta-title { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; color: var(--color-white); line-height: 1.3; }
.mega-menu__cta-text  { font-size: var(--text-xs); color: rgba(255,255,255,.65); line-height: 1.5; }
.mega-menu__cta-phone { font-size: var(--text-xs); color: rgba(255,255,255,.5); text-decoration: none; display: flex; align-items: center; gap: 4px; margin-top: var(--space-1); }
.mega-menu__cta-phone:hover { color: rgba(255,255,255,.8); }

/* Оверлей */
.mega-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 400;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    pointer-events: none;
}
.mega-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: all; }

/* ── МОБИЛЬНЫЙ DRAWER ──────────────────────────────────────────── */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 2000;
    visibility: hidden; pointer-events: none;
}
.mobile-drawer.is-open { visibility: visible; pointer-events: all; }

.mobile-drawer__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    opacity: 0; transition: opacity var(--transition-slow);
    cursor: pointer;
}
.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }

.mobile-drawer__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 92vw);
    background: var(--color-white);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow: hidden;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: none; }

.mobile-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-steel-100);
    flex-shrink: 0;
}
.mobile-drawer__logo { display: flex; align-items: center; }
.mobile-drawer__logo img { height: 36px; width: auto; }
.mobile-drawer__close {
    width: 36px; height: 36px; border-radius: var(--radius-md);
    border: 1.5px solid var(--color-steel-100); background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--color-steel-400);
    transition: background var(--transition), color var(--transition);
}
.mobile-drawer__close:hover { background: var(--color-steel-50); color: var(--color-steel); }

.mobile-drawer__search { padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--color-steel-100); flex-shrink: 0; }
.mobile-drawer__search-wrap { display: flex; align-items: center; gap: var(--space-3); background: var(--color-steel-50); border-radius: var(--radius-md); padding: 0 var(--space-3); border: 1px solid var(--color-steel-100); }
.mobile-drawer__search-wrap svg { color: var(--color-steel-400); flex-shrink: 0; }
.mobile-drawer__search-input { flex: 1; height: 40px; border: none; background: none; font-size: var(--text-sm); color: var(--color-steel); outline: none; }
.mobile-drawer__search-input::placeholder { color: var(--color-steel-200); }

.mobile-drawer__messengers { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--color-steel-100); flex-shrink: 0; }
.mobile-drawer__msg-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md); border: none; cursor: pointer;
    font-size: var(--text-sm); font-weight: 600; color: var(--color-white);
    text-decoration: none; transition: opacity var(--transition);
}
.mobile-drawer__msg-btn:hover { opacity: .88; color: var(--color-white); }
.mobile-drawer__msg-btn--wa { background: #25d366; }
.mobile-drawer__msg-btn--tg { background: #229ed9; }

.mobile-drawer__nav {
    flex: 1; overflow-y: auto;
    padding: var(--space-2) var(--space-3);
    -webkit-overflow-scrolling: touch;
}
.mobile-nav { list-style: none; }
.mobile-nav__item { border-bottom: 1px solid var(--color-steel-50); }
.mobile-nav__item:last-child { border-bottom: none; }
.mobile-nav__item--sub { border-bottom: none; }
.mobile-nav__row { display: flex; align-items: center; }
.mobile-nav__link {
    display: block; flex: 1;
    padding: var(--space-4) var(--space-3);
    font-size: var(--text-base); font-weight: 500;
    color: var(--color-steel); text-decoration: none;
    transition: color var(--transition);
}
.mobile-nav__link--sub  { font-size: var(--text-sm); font-weight: 400; padding: var(--space-2) var(--space-4); color: var(--color-steel-600); }
.mobile-nav__link--active { color: var(--color-blue); }
.mobile-nav__link:hover  { color: var(--color-blue); }
.mobile-nav__toggle {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; color: var(--color-steel-400);
    transition: color var(--transition);
    flex-shrink: 0;
}
.mobile-nav__toggle svg { transition: transform var(--transition-slow); }
.mobile-nav__toggle[aria-expanded="true"] { color: var(--color-blue); }
.mobile-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__sub { list-style: none; background: var(--color-steel-50); border-radius: var(--radius-md); margin: 0 var(--space-2) var(--space-2); overflow: hidden; }

.mobile-drawer__contacts { padding: var(--space-4) var(--space-5); background: var(--color-steel-50); border-top: 1px solid var(--color-steel-100); display: flex; flex-direction: column; gap: var(--space-3); flex-shrink: 0; }
.mobile-drawer__contact {
    display: flex; align-items: center; gap: var(--space-3);
    font-size: var(--text-sm); color: var(--color-steel);
    text-decoration: none; transition: color var(--transition);
}
.mobile-drawer__contact svg { color: var(--color-blue); flex-shrink: 0; }
.mobile-drawer__contact:hover { color: var(--color-blue); }
.mobile-drawer__contact--text { color: var(--color-steel-400); pointer-events: none; }
.mobile-drawer__contact--text svg { color: var(--color-steel-400); }

.mobile-drawer__cta { padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex-shrink: 0; border-top: 1px solid var(--color-steel-100); }
.mobile-drawer__cta .btn { gap: var(--space-2); justify-content: center; }

/* ── АДАПТИВ ──────────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .hdr-contact--hlg  { display: flex; }
}

@media (max-width: 1100px) {
    .hdr-main__inner { grid-template-columns: auto 1fr auto; gap: var(--space-4); }
    .hdr-contacts { gap: var(--space-4); }
    .mega-menu__products { width: 180px; }
    .mega-menu__cta { width: 180px; }
}

@media (max-width: 900px) {
    .hdr-burger { display: flex; }
    .hdr-nav-row { display: none; }
    .hdr-main__inner { grid-template-columns: auto 1fr auto; }
    .hdr-contacts { display: none; }
    /* На планшете показываем только самые важные кнопки */
    .hdr-btn { display: none; }
    .hdr-btn:first-of-type { display: inline-flex; }
}

@media (max-width: 600px) {
    .hdr-main__inner { height: 64px; gap: var(--space-3); }
    .hdr-btn { display: none !important; }
    .hdr-icon-btn { display: none; }
}


/* ═══════════════════════════════════════════════════════════════

/* ════════════════════════════════════════════════════════════════
   ШАПКА v4 — современный стиль, dropdown меню, адаптив
════════════════════════════════════════════════════════════════ */

/* ── Переменные шапки ──────────────────────────────────────── */
:root {
    --hdr-blue:       #1a56db;
    --hdr-blue-dark:  #1e429f;
    --hdr-blue-light: #ebf5ff;
    --hdr-dark:       #111827;
    --hdr-dark2:      #1f2937;
    --hdr-gray:       #6b7280;
    --hdr-gray-light: #f3f4f6;
    --hdr-border:     #e5e7eb;
    --hdr-wa:         #25d366;
    --hdr-tg:         #229ed9;
    --hdr-transition: .15s ease;
}

/* ── Обёртка (sticky) ──────────────────────────────────────── */
#site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}
.site-header-wrap--sticky-compact  { position: relative; }
.site-header-wrap--sticky-none     { position: relative; }
#site-header-wrap.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.10); }
.site-header-wrap--dark  { --hdr-border: rgba(255,255,255,.12); }
.site-header-wrap--light { background: #f9fafb; }
.site-header-wrap--dark  { background: var(--hdr-dark); }

/* ── РЯД 2: ЛОГОТИП + ТЕЛЕФОН + КНОПКИ ───────────────────── */
.hdr-main { border-bottom: 1px solid var(--hdr-border); }
.hdr-main__inner {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 24px;
}

/* Логотип */
.hdr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.hdr-logo__img  { display: block; width: auto; max-width: 200px; }
.hdr-logo__text-wrap { display: flex; flex-direction: column; gap: 1px; }
.hdr-logo__name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--hdr-dark);
    letter-spacing: -.025em;
    line-height: 1.1;
}
.hdr-logo__tagline {
    font-size: 10px;
    color: var(--hdr-gray);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 500;
}
.site-header-wrap--dark .hdr-logo__name    { color: #fff; }
.site-header-wrap--dark .hdr-logo__tagline { color: rgba(255,255,255,.45); }

/* Телефон (центр) */
.hdr-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: auto;
}
.hdr-phone__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--hdr-blue-light);
    color: var(--hdr-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--hdr-transition), color var(--hdr-transition);
}
.hdr-phone:hover .hdr-phone__icon { background: var(--hdr-blue); color: #fff; }
.hdr-phone__body { display: flex; flex-direction: column; gap: 1px; }
.hdr-phone__label { font-size: 10px; color: var(--hdr-gray); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.hdr-phone__num   { font-size: 16px; font-weight: 700; color: var(--hdr-dark); letter-spacing: -.01em; }
.hdr-phone:hover .hdr-phone__num { color: var(--hdr-blue); }
.site-header-wrap--dark .hdr-phone__num { color: #fff; }

/* Кнопки */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.hdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    height: 40px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--hdr-transition), opacity var(--hdr-transition);
}
.hdr-btn svg { flex-shrink: 0; }
.hdr-btn--primary  { background: var(--hdr-blue); color: #fff; }
.hdr-btn--primary:hover { background: var(--hdr-blue-dark); color: #fff; }
.hdr-btn--whatsapp { background: var(--hdr-wa); color: #fff; }
.hdr-btn--whatsapp:hover { opacity: .88; color: #fff; }
.hdr-btn--telegram { background: var(--hdr-tg); color: #fff; }
.hdr-btn--telegram:hover { opacity: .88; color: #fff; }
.hdr-btn--outline {
    background: transparent;
    color: var(--hdr-dark);
    border: 1.5px solid var(--hdr-border);
    padding: 0 16px;
}
.hdr-btn--outline:hover { border-color: var(--hdr-blue); color: var(--hdr-blue); }
.site-header-wrap--dark .hdr-btn--outline { color: #fff; border-color: rgba(255,255,255,.25); }

/* Бургер */
.hdr-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1.5px solid var(--hdr-border);
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--hdr-transition);
}
.hdr-burger:hover { border-color: var(--hdr-blue); }
.hdr-burger__line {
    display: block; width: 18px; height: 2px;
    background: var(--hdr-dark); border-radius: 2px;
    transition: transform .2s, opacity .2s, width .2s;
}
.hdr-burger.is-open .hdr-burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-burger.is-open .hdr-burger__line:nth-child(2) { opacity: 0; width: 0; }
.hdr-burger.is-open .hdr-burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header-wrap--dark .hdr-burger { background: transparent; border-color: rgba(255,255,255,.2); }
.site-header-wrap--dark .hdr-burger__line { background: #fff; }

/* ── РЯД 3: НАВИГАЦИЯ ─────────────────────────────────────── */
.hdr-nav-row {
    background: #fff;
    border-bottom: 1px solid var(--hdr-border);
    position: relative;
    transition: box-shadow .3s;
}
.site-header-wrap--dark  .hdr-nav-row { background: var(--hdr-dark2); border-bottom-color: rgba(255,255,255,.1); }
.site-header-wrap--light .hdr-nav-row { background: #f9fafb; }
.hdr-nav-row__inner {
    display: flex;
    align-items: stretch;
    height: 48px;
    position: relative;
}
.hdr-nav { flex: 1; display: flex; align-items: stretch; }
.hdr-nav-row__extra { display: flex; align-items: center; gap: 4px; padding-left: 16px; border-left: 1px solid var(--hdr-border); margin-left: 16px; }
.hdr-nav-extra__link { font-size: 13px; font-weight: 500; color: var(--hdr-gray); padding: 4px 10px; border-radius: 6px; text-decoration: none; transition: color .12s, background .12s; white-space: nowrap; }
.hdr-nav-extra__link:hover { color: var(--hdr-blue); background: var(--hdr-blue-light); }
.hdr-nav-extra__link--accent { color: var(--color-accent, #e85d04); font-weight: 600; }

/* ── МЕНЮ ─────────────────────────────────────────────────── */
.nav-menu { display: flex; align-items: stretch; list-style: none; height: 100%; gap: 0; }
.nav-item  { position: relative; display: flex; align-items: stretch; }
.nav-link  {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color var(--hdr-transition);
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}
/* Подчёркивание при hover / active */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 2px;
    background: var(--hdr-blue);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .2s;
}
.nav-item:hover > .nav-link,
.nav-item--active > .nav-link  { color: var(--hdr-blue); }
.nav-item:hover > .nav-link::after,
.nav-item--active > .nav-link::after { transform: scaleX(1); }
.site-header-wrap--dark .nav-link { color: rgba(255,255,255,.75); }
.site-header-wrap--dark .nav-item:hover > .nav-link { color: #fff; }
.site-header-wrap--dark .nav-link::after { background: #fff; }

.nav-link__chevron { flex-shrink: 0; transition: transform .2s; }
.nav-item:hover > .nav-link .nav-link__chevron { transform: rotate(180deg); }

/* ── DROPDOWN (обычное подменю) ───────────────────────────── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--hdr-border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 28px rgba(0,0,0,.11);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    z-index: 500;
}
.nav-item:hover > .nav-dropdown,
.nav-item.is-open > .nav-dropdown {
    opacity: 1; visibility: visible; transform: none;
}
.nav-dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 13.5px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.nav-dropdown__link:hover { background: var(--hdr-blue-light); color: var(--hdr-blue); }
.nav-dropdown__link--active { color: var(--hdr-blue); font-weight: 500; }
.nav-dropdown__icon {
    width: 28px; height: 28px;
    background: var(--hdr-gray-light);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--hdr-gray);
    font-size: 14px;
    transition: background .12s, color .12s;
}
.nav-dropdown__link:hover .nav-dropdown__icon { background: var(--hdr-blue-light); color: var(--hdr-blue); }
.nav-dropdown__body { display: flex; flex-direction: column; gap: 1px; }
.nav-dropdown__label { font-weight: 500; color: inherit; line-height: 1.2; }
.nav-dropdown__desc  { font-size: 11px; color: var(--hdr-gray); line-height: 1.3; }
.nav-dropdown__divider { height: 1px; background: var(--hdr-border); margin: 4px 0; }
.nav-dropdown__footer {
    display: block;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hdr-blue);
    text-align: center;
    border-top: 1px solid var(--hdr-border);
    margin-top: 2px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}
.nav-dropdown__footer:hover { background: var(--hdr-blue-light); }

/* ── МЕГА-МЕНЮ ────────────────────────────────────────────── */
.mega-panel {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: min(1000px, 95vw);
    background: #fff;
    border: 1px solid var(--hdr-border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.13);
    display: flex;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    z-index: 500;
}
.nav-item--mega:hover .mega-panel,
.nav-item--mega.is-open .mega-panel {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* Тело мегаменю (левая часть) */
.mega-panel__body { flex: 1; padding: 20px; min-width: 0; }

/* Категории в мегаменю */
.mega-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; }
.mega-cat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    transition: background .12s;
}
.mega-cat__head:hover { background: var(--hdr-blue-light); }
.mega-cat__head:hover .mega-cat__name { color: var(--hdr-blue); }
.mega-cat__icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--hdr-gray-light);
    color: var(--hdr-gray);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 16px;
}
.mega-cat__icon img { width: 100%; height: 100%; object-fit: contain; }
.mega-cat__name { font-size: 13.5px; font-weight: 600; flex: 1; }
.mega-cat__arrow { flex-shrink: 0; color: #d1d5db; opacity: 0; transition: opacity .12s, color .12s; }
.mega-cat__head:hover .mega-cat__arrow { opacity: 1; color: var(--hdr-blue); }

.mega-cat__sub { list-style: none; padding: 0 0 6px 54px; }
.mega-cat__sub li a {
    display: block; padding: 3px 8px; font-size: 12.5px;
    color: var(--hdr-gray); border-radius: 5px; text-decoration: none;
    transition: color .1s, background .1s;
}
.mega-cat__sub li a:hover { color: var(--hdr-blue); background: var(--hdr-blue-light); }

/* Кастомные колонки */
.mega-cols { display: grid; gap: 20px; }
.mega-cols--1 { grid-template-columns: 1fr; }
.mega-cols--2 { grid-template-columns: 1fr 1fr; }
.mega-cols--3 { grid-template-columns: 1fr 1fr 1fr; }
.mega-cols--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.mega-cols--5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
.mega-col__title {
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--hdr-gray); margin-bottom: 10px;
}
.mega-col__links { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mega-link {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 8px;
    text-decoration: none; color: #374151;
    transition: background .12s;
}
.mega-link:hover { background: var(--hdr-blue-light); }
.mega-link:hover .mega-link__label { color: var(--hdr-blue); }
.mega-link__icon {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden;
    background: var(--hdr-gray-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.mega-link__icon img { width: 20px; height: 20px; object-fit: contain; }
.mega-link__body  { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mega-link__label { font-size: 13.5px; font-weight: 500; color: #374151; transition: color .12s; }
.mega-link__desc  { font-size: 11px; color: var(--hdr-gray); }

/* Сайдбар мегаменю (правая часть) */
.mega-panel__side {
    width: 220px;
    flex-shrink: 0;
    background: #f8fafc;
    border-left: 1px solid var(--hdr-border);
    display: flex;
    flex-direction: column;
}
.mega-products { padding: 16px; flex: 1; }
.mega-products__title { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hdr-gray); margin-bottom: 10px; }
.mega-products__list  { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mega-product {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 8px; border-radius: 8px;
    text-decoration: none; transition: background .12s;
}
.mega-product:hover { background: #fff; }
.mega-product__img {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 6px; background: #fff;
    border: 1px solid var(--hdr-border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.mega-product__img img { width: 100%; height: 100%; object-fit: contain; }
.mega-product__img--empty { background: #f3f4f6; width: 100%; height: 100%; }
.mega-product__dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 7px; height: 7px; border-radius: 50%;
    border: 1.5px solid #fff;
}
.mega-product__info  { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-product__name  { font-size: 12px; font-weight: 600; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; transition: color .12s; }
.mega-product:hover .mega-product__name { color: var(--hdr-blue); }
.mega-product__price { font-size: 11.5px; font-weight: 700; color: var(--hdr-blue); }
.mega-products__all  { display: block; padding: 8px 16px; font-size: 12.5px; font-weight: 600; color: var(--hdr-blue); border-top: 1px solid var(--hdr-border); text-decoration: none; }
.mega-products__all:hover { text-decoration: underline; }

/* CTA блок мегаменю */
.mega-cta {
    background: var(--hdr-dark);
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.mega-cta--bg { background-image: var(--bg); background-size: cover; background-position: center; }
.mega-cta__overlay { position: absolute; inset: 0; background: rgba(17,24,39,.78); }
.mega-cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.mega-cta__title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
.mega-cta__text  { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.5; }
.mega-cta__btn   { align-self: flex-start; padding: 6px 12px; background: var(--hdr-blue); color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .12s; }
.mega-cta__btn:hover { background: var(--hdr-blue-dark); }
.mega-cta__phone { font-size: 11px; color: rgba(255,255,255,.45); text-decoration: none; }
.mega-cta__phone:hover { color: rgba(255,255,255,.8); }

/* Оверлей */
.mega-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 400;
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s;
    pointer-events: none;
}
.mega-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: all; }

/* ── МОБИЛЬНЫЙ DRAWER ─────────────────────────────────────── */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 2000;
    visibility: hidden; pointer-events: none;
}
.mobile-drawer.is-open { visibility: visible; pointer-events: all; }
.mobile-drawer__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .25s; cursor: pointer;
}
.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }
.mobile-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(360px, 92vw);
    background: #fff;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -8px 0 32px rgba(0,0,0,.12);
    overflow: hidden;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: none; }

.mobile-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--hdr-border);
    flex-shrink: 0;
}
.mobile-drawer__logo img { height: 36px; width: auto; }
.mobile-drawer__logo .hdr-logo__name { font-size: 16px; }
.mobile-drawer__close {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1.5px solid var(--hdr-border); background: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--hdr-gray); transition: background .12s;
}
.mobile-drawer__close:hover { background: var(--hdr-gray-light); }

.mobile-drawer__messengers {
    display: flex; gap: 8px; padding: 12px 20px;
    border-bottom: 1px solid var(--hdr-border); flex-shrink: 0;
}
.mobile-drawer__msg {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px; border-radius: 8px; border: none;
    font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
    transition: opacity .12s;
}
.mobile-drawer__msg:hover { opacity: .88; color: #fff; }
.mobile-drawer__msg--wa  { background: var(--hdr-wa); }
.mobile-drawer__msg--tg  { background: var(--hdr-tg); }
.mobile-drawer__msg--max { background: #7B61FF; }
.mobile-drawer__msg img  { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

.mobile-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 12px; -webkit-overflow-scrolling: touch; }
.mobile-nav { list-style: none; }
.mobile-nav__item { border-bottom: 1px solid #f3f4f6; }
.mobile-nav__item:last-child { border-bottom: none; }
.mobile-nav__item--sub { border-bottom: none; }
.mobile-nav__row { display: flex; align-items: center; }
.mobile-nav__link {
    display: block; flex: 1;
    padding: 13px 10px; font-size: 15px; font-weight: 500;
    color: var(--hdr-dark); text-decoration: none; transition: color .12s;
}
.mobile-nav__link:hover, .mobile-nav__link--active { color: var(--hdr-blue); }
.mobile-nav__link--sub { font-size: 13.5px; font-weight: 400; padding: 8px 16px; color: var(--hdr-gray); }
.mobile-nav__link--sub:hover { color: var(--hdr-blue); }
.mobile-nav__toggle {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; color: var(--hdr-gray);
    flex-shrink: 0; transition: color .12s;
}
.mobile-nav__toggle svg { transition: transform .2s; }
.mobile-nav__toggle[aria-expanded="true"] { color: var(--hdr-blue); }
.mobile-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__sub { list-style: none; background: #f9fafb; border-radius: 8px; margin: 0 4px 8px; overflow: hidden; }

.mobile-drawer__contacts {
    padding: 14px 20px; background: #f9fafb;
    border-top: 1px solid var(--hdr-border);
    display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.mobile-drawer__contact {
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px; color: var(--hdr-dark); text-decoration: none;
    transition: color .12s;
}
.mobile-drawer__contact svg { color: var(--hdr-blue); flex-shrink: 0; }
.mobile-drawer__contact:hover { color: var(--hdr-blue); }
.mobile-drawer__contact--muted { color: var(--hdr-gray); pointer-events: none; }
.mobile-drawer__contact--muted svg { color: var(--hdr-gray); }

.mobile-drawer__cta {
    padding: 14px 20px; display: flex; flex-direction: column;
    gap: 8px; flex-shrink: 0; border-top: 1px solid var(--hdr-border);
}
.mobile-drawer__cta .btn { gap: 6px; justify-content: center; color: #000; }

/* ── АДАПТИВ ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mega-panel { width: min(860px, 96vw); }
    .mega-panel__side { width: 190px; }
}
@media (max-width: 960px) {
    .hdr-burger { display: flex; }
    .hdr-nav-row { display: none; }
    .hdr-phone { display: none; }
    .hdr-main__inner { gap: 10px; height: 64px; }
    .hdr-btn:not(.hdr-btn--primary):not(.hdr-btn--whatsapp) { display: none; }
}
@media (max-width: 640px) {
    .hdr-btn { display: none !important; }
    .hdr-main__inner { height: 58px; }
}


/* ════════════════════════════════════════════════════════════════
   КАТАЛОГ v2 — без сайдбара, плитки категорий, адаптив
════════════════════════════════════════════════════════════════ */

/* ── Hero категории ─────────────────────────────────────────── */
.cat-hero {
    background: #f3f4f6;
    padding: 40px 0 36px;
    border-bottom: 1px solid #e5e7eb;
}
.cat-hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
}
.cat-hero__content { min-width: 0; }
.cat-hero__title {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #111827;
    margin: 12px 0 10px;
    letter-spacing: -.025em;
    line-height: 1.15;
}
.cat-hero__desc {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 14px;
}
.cat-hero__meta { display: flex; align-items: center; gap: 8px; }
.cat-hero__img-wrap { flex-shrink: 0; }
.cat-hero__img { width: 200px; height: 200px; object-fit: contain; }

/* ── Плитки подкатегорий ────────────────────────────────────── */
.cat-subcats {
    padding: 40px 0 0;
}

/* Авто-сетка: 4 колонки на ПК, адаптив вниз */
.cat-grid--auto {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cat-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cat-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cat-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.cat-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.cat-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Карточка категории */
.cat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover {
    border-color: #1a56db;
    box-shadow: 0 4px 20px rgba(26,86,219,.12);
    transform: translateY(-2px);
}

.cat-card__img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f9fafb;
    position: relative;
}
.cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0px;
    transition: transform .25s;
}
.cat-card:hover .cat-card__img { transform: scale(1.04); }

.cat-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--cat-color, #1a56db) 8%, white);
    color: var(--cat-color, #1a56db);
}
.cat-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.cat-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    transition: color .15s;
}
.cat-card:hover .cat-card__title { color: #1a56db; }
.cat-card__count {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

/* ── Секция товаров ─────────────────────────────────────────── */
.cat-products { padding: 40px 0 60px; }

.cat-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.cat-products__title    { font-size: 1.5rem; font-weight: 700; color: #111827; }
.cat-products__subtitle { font-size: 15px; color: #6b7280; margin-top: 4px; }
.cat-products__more     { font-size: 13.5px; font-weight: 600; color: #1a56db; text-decoration: none; margin-left: auto; }
.cat-products__more:hover { text-decoration: underline; }

.cat-products__count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Сетка товаров — 4 колонки по умолчанию */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Пустой каталог */
.catalog-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 60px 20px; color: #9ca3af; text-align: center;
}
.catalog-empty h2 { font-size: 1.25rem; color: #374151; margin-bottom: 8px; }
.catalog-empty a  { color: #1a56db; }

/* ── АДАПТИВ ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .cat-grid--auto { grid-template-columns: repeat(3, 1fr); }
    .product-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .cat-hero__img-wrap { display: none; }
    .cat-hero { padding: 28px 0 24px; }
    .cat-grid--auto { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .product-grid   { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cat-grid--cols-5,
    .cat-grid--cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .cat-hero__title { font-size: 1.5rem; }
    .cat-hero { padding: 20px 0 20px; }
    .cat-subcats { padding: 24px 0 0; }
    .cat-products { padding: 24px 0 40px; }
    .cat-grid--auto { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-grid--cols-3,
    .cat-grid--cols-4,
    .cat-grid--cols-5,
    .cat-grid--cols-6 { grid-template-columns: repeat(2, 1fr); }
    .product-grid   { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-card__img-wrap { aspect-ratio: 1/1; }
    .cat-card__body { padding: 10px 12px 12px; }
    .cat-card__title { font-size: 13px; }
    .cat-products__header { margin-bottom: 16px; padding-bottom: 12px; }
}

@media (max-width: 380px) {
    .cat-grid--auto,
    .product-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   ГЕО-СТРАНИЦЫ
════════════════════════════════════════════════════════════════ */
.geo-page__contacts {
    display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4);
}
.geo-page__contact-item {
    display: flex; align-items: center; gap: var(--space-2);
    font-size: var(--text-sm); color: var(--color-steel);
}
.geo-page__phone {
    color: var(--color-blue); font-weight: 500; text-decoration: none;
}
.geo-page__phone:hover { text-decoration: underline; }

/* Сетка дочерних гео (районы, метро) */
.geo-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-6);
}
.geo-child-card {
    display: flex; flex-direction: column; gap: 2px;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-steel-100);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.geo-child-card:hover {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-sm);
}
.geo-child-card__name {
    font-size: var(--text-sm); font-weight: 500; color: var(--color-ink);
}
.geo-child-card__region {
    font-size: var(--text-xs); color: var(--color-steel-400);
}
@media (max-width: 640px) {
    .geo-children-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════
   КНОПКА ГОРОДА В ШАПКЕ
════════════════════════════════════════════════════════════════ */
.hdr-city {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: var(--radius-md);
    border: 1px solid var(--color-steel-200);
    background: transparent; cursor: pointer;
    font-size: var(--text-sm); color: var(--color-steel);
    transition: border-color var(--transition), color var(--transition);
    white-space: nowrap;
}
.hdr-city:hover { border-color: var(--color-blue); color: var(--color-blue); }
.hdr-city__label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.hdr-city__chevron { flex-shrink: 0; opacity: .6; }

/* ═══════════════════════════════════════════════════════════════
   ПОПАП ВЫБОРА ГОРОДА
════════════════════════════════════════════════════════════════ */
.city-picker {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    pointer-events: none; opacity: 0;
    transition: opacity .2s ease;
}
.city-picker.is-open { pointer-events: auto; opacity: 1; }

.city-picker__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    cursor: pointer;
}

/* Компактная панель */
.city-picker__panel--compact {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    padding: 40px 36px 32px;
    text-align: center;
    transform: translateY(-16px) scale(.97);
    transition: transform .25s ease;
}
.city-picker.is-open .city-picker__panel--compact { transform: translateY(0) scale(1); }

.city-picker__close {
    position: absolute; top: 14px; right: 14px;
    background: none; border: none; cursor: pointer;
    color: var(--color-steel); padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    line-height: 0;
}
.city-picker__close:hover { background: var(--color-steel-100); color: var(--color-ink); }

.city-picker__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px;
    background: var(--color-blue-50, #eff6ff);
    border-radius: 50%;
    color: var(--color-blue);
    margin-bottom: 20px;
}

.city-picker__detected {
    font-size: var(--text-sm);
    color: var(--color-steel);
    margin: 0 0 12px;
    padding: 6px 14px;
    background: var(--color-steel-50, #f9fafb);
    border-radius: 20px;
    display: inline-block;
}
.city-picker__detected strong { color: var(--color-ink); }

.city-picker__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 10px;
    line-height: 1.3;
}

.city-picker__desc {
    font-size: var(--text-sm);
    color: var(--color-steel);
    line-height: 1.65;
    margin: 0 0 24px;
}

.city-picker__go-btn {
    display: inline-flex; align-items: center; gap: 8px;
    width: 100%; justify-content: center;
    padding: 14px 24px;
    background: var(--color-blue);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    margin-bottom: 14px;
}
.city-picker__go-btn:hover {
    background: var(--color-blue-700, #1d4ed8);
    transform: translateY(-1px);
}

.city-picker__hint {
    font-size: 12px;
    color: var(--color-steel-400, #9ca3af);
    margin: 0;
}

@media (max-width: 480px) {
    .city-picker { padding: 16px; align-items: flex-end; }
    .city-picker__panel--compact {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        padding: 32px 24px 28px;
        max-width: 100%;
    }
    .hdr-city__label { max-width: 80px; }
}

/* ═══════════════════════════════════════════════════════════════
   CAT HERO — Hero категорий v2
════════════════════════════════════════════════════════════════ */
.cat-hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-12) 0;
}

/* ── Фоны ──────────────────────────────────────────────────── */
.cat-hero--dark {
    background: var(--color-steel);
    color: var(--color-white);
}
.cat-hero--dark .cat-hero__bg-deco {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 65% 90% at 78% 50%, rgba(0,113,227,.20) 0%, transparent 55%),
        radial-gradient(ellipse 45% 55% at 15% 85%, rgba(232,93,4,.12) 0%, transparent 50%);
}
.cat-hero--light {
    background: var(--color-steel-50);
    color: var(--color-steel);
    border-bottom: 1px solid var(--color-steel-100);
}
.cat-hero--white {
    background: var(--color-white);
    color: var(--color-steel);
    border-bottom: 1px solid var(--color-steel-100);
}

/* ── Сетка ─────────────────────────────────────────────────── */
.cat-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}
.cat-hero--has-image .cat-hero__inner {
    grid-template-columns: 1fr 420px;
}

/* ── Контент ───────────────────────────────────────────────── */
.cat-hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Breadcrumbs на тёмном фоне */
.cat-hero--dark .breadcrumb__link,
.cat-hero--dark .breadcrumb__sep    { color: rgba(255,255,255,.45); }
.cat-hero--dark .breadcrumb__link:hover { color: rgba(255,255,255,.85); }
.cat-hero--dark .breadcrumb__current    { color: rgba(255,255,255,.7); }

/* ── Бейдж ─────────────────────────────────────────────────── */
.cat-hero__badge {
    display: inline-flex; align-items: center;
    padding: 5px 14px;
    background: rgba(0,113,227,.15);
    border: 1px solid rgba(0,113,227,.35);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    font-family: var(--font-display);
    color: #60aaff;
    letter-spacing: .06em;
    text-transform: uppercase;
    width: fit-content;
}
.cat-hero--light .cat-hero__badge,
.cat-hero--white .cat-hero__badge {
    background: var(--color-blue-light);
    border-color: rgba(0,113,227,.25);
    color: var(--color-blue);
}

/* ── Заголовок ─────────────────────────────────────────────── */
.cat-hero__title {
    font-size: clamp(var(--text-3xl), 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}
.cat-hero--dark .cat-hero__title {
    background: linear-gradient(145deg, #ffffff 0%, rgba(255,255,255,.72) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Описание ──────────────────────────────────────────────── */
.cat-hero__desc {
    font-size: var(--text-base);
    line-height: 1.7;
    max-width: 52ch;
    color: rgba(255,255,255,.62);
}
.cat-hero--light .cat-hero__desc,
.cat-hero--white .cat-hero__desc { color: var(--color-steel-400); }

/* ── Действия ──────────────────────────────────────────────── */
.cat-hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.cat-hero__cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 13px 28px;
    background: var(--color-blue);
    color: var(--color-white) !important;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,113,227,.45);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.cat-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,113,227,.6);
    background: var(--color-blue-dark);
}
.cat-hero__count {
    font-size: var(--text-sm); font-weight: 600;
    color: rgba(255,255,255,.45);
}
.cat-hero--light .cat-hero__count,
.cat-hero--white .cat-hero__count { color: var(--color-steel-400); }

/* ── Статистика ────────────────────────────────────────────── */
.cat-hero__stats {
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255,255,255,.1);
}
.cat-hero--light .cat-hero__stats,
.cat-hero--white .cat-hero__stats { border-top-color: var(--color-steel-100); }
.cat-hero__stat { display: flex; flex-direction: column; gap: 2px; }
.cat-hero__stat-val {
    font-size: var(--text-2xl); font-weight: 800;
    font-family: var(--font-display);
    color: var(--color-white); line-height: 1;
}
.cat-hero--light .cat-hero__stat-val,
.cat-hero--white .cat-hero__stat-val { color: var(--color-steel); }
.cat-hero__stat-lbl {
    font-size: var(--text-xs);
    color: rgba(255,255,255,.45);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cat-hero--light .cat-hero__stat-lbl,
.cat-hero--white .cat-hero__stat-lbl { color: var(--color-steel-400); }

/* ── Подкатегории ──────────────────────────────────────────── */
.cat-hero__subcats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.cat-hero__chip {
    padding: 5px 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--radius-full);
    font-size: var(--text-xs); font-weight: 600;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.cat-hero__chip:hover {
    background: rgba(255,255,255,.14);
    color: var(--color-white);
    border-color: rgba(255,255,255,.22);
}
.cat-hero--light .cat-hero__chip,
.cat-hero--white .cat-hero__chip {
    background: var(--color-white);
    border-color: var(--color-steel-100);
    color: var(--color-steel-600);
}
.cat-hero--light .cat-hero__chip:hover,
.cat-hero--white .cat-hero__chip:hover {
    background: var(--color-blue-light);
    border-color: rgba(0,113,227,.3);
    color: var(--color-blue);
}

/* ── Медиа / Изображение ───────────────────────────────────── */
.cat-hero__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-hero__media-glow {
    position: absolute; inset: -30px;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,113,227,.28) 0%, transparent 65%);
    pointer-events: none;
}
.cat-hero__media-frame {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.08),
        0 32px 72px rgba(0,0,0,.45),
        0 8px 24px rgba(0,0,0,.25);
    background: rgba(255,255,255,.03);
}
.cat-hero__media-frame::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,113,227,.12) 0%, transparent 50%, rgba(232,93,4,.06) 100%);
    pointer-events: none;
}
.cat-hero__image {
    display: block;
    width: 100%; height: auto;
    max-height: 420px;
    object-fit: cover;
}

/* ── Фоновый медиа (видео / изображение) ──────────────────── */
.cat-hero--has-bg { isolation: isolate; }

.cat-hero__bg-media {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
}
.cat-hero__bg-video,
.cat-hero__bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.cat-hero__bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10,10,12,.85) 0%,
        rgba(10,10,12,.70) 50%,
        rgba(10,10,12,.50) 100%
    );
}
.cat-hero--has-bg .cat-hero__inner { position: relative; z-index: 1; }
.cat-hero--has-bg .cat-hero__bg-deco { display: none; }

/* ── Акцентный цвет CTA ─────────────────────────────────────── */
.cat-hero__cta {
    background: var(--hero-accent, var(--color-blue));
    box-shadow: 0 4px 20px color-mix(in srgb, var(--hero-accent, var(--color-blue)) 55%, transparent);
}
.cat-hero__cta:hover {
    background: color-mix(in srgb, var(--hero-accent, var(--color-blue)) 80%, #000 20%);
    box-shadow: 0 8px 30px color-mix(in srgb, var(--hero-accent, var(--color-blue)) 65%, transparent);
}

/* ── Рейтинг ────────────────────────────────────────────────── */
.cat-hero__rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.cat-hero__stars {
    position: relative;
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 2px;
}
.cat-hero__stars-bg {
    color: rgba(255,255,255,.22);
}
.cat-hero--light .cat-hero__stars-bg,
.cat-hero--white .cat-hero__stars-bg { color: var(--color-steel-100); }
.cat-hero__stars-fill {
    position: absolute; top: 0; left: 0;
    overflow: hidden;
    width: calc(var(--rating) / 5 * 100%);
    color: #fbbf24;
    white-space: nowrap;
}
.cat-hero__rating-val {
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-white);
}
.cat-hero--light .cat-hero__rating-val,
.cat-hero--white .cat-hero__rating-val { color: var(--color-steel); }
.cat-hero__rating-cnt {
    font-size: var(--text-xs);
    color: rgba(255,255,255,.5);
}
.cat-hero--light .cat-hero__rating-cnt,
.cat-hero--white .cat-hero__rating-cnt { color: var(--color-steel-400); }

/* ── Иконки доверия ─────────────────────────────────────────── */
.cat-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.cat-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cat-hero__trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    flex-shrink: 0;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-md);
    color: rgba(255,255,255,.75);
}
.cat-hero--light .cat-hero__trust-icon,
.cat-hero--white .cat-hero__trust-icon {
    background: var(--color-blue-light);
    border-color: rgba(0,113,227,.15);
    color: var(--color-blue);
}
.cat-hero__trust-text {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}
.cat-hero--light .cat-hero__trust-text,
.cat-hero--white .cat-hero__trust-text { color: var(--color-steel-600); }

/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cat-hero--has-image .cat-hero__inner {
        grid-template-columns: 1fr 300px;
    }
}
@media (max-width: 768px) {
    .cat-hero { padding: var(--space-8) 0; }
    .cat-hero--has-image .cat-hero__inner { grid-template-columns: 1fr; }
    .cat-hero__media { display: none; }
    .cat-hero__title { font-size: clamp(var(--text-2xl), 8vw, var(--text-3xl)); }
    .cat-hero__stats { gap: var(--space-5); }
    .cat-hero__trust { gap: var(--space-3); }
    .cat-hero__trust-text { font-size: var(--text-xs); }
}

/* ══════════════════════════════════════════════════════════════
   Страница городов (page-goroda.php)
══════════════════════════════════════════════════════════════ */
.geo-hub { padding: 56px 0 80px; }

.geo-hub__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.geo-hub__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--color-text, #111827);
}
.geo-hub__intro {
    margin: 0;
    color: var(--color-muted, #6b7280);
    font-size: .975rem;
    line-height: 1.6;
    max-width: 600px;
}
.geo-hub__head-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}
.geo-hub__stat {
    text-align: center;
    background: var(--color-bg-alt, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 90px;
}
.geo-hub__stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary, #1d4ed8);
    line-height: 1;
}
.geo-hub__stat-label {
    display: block;
    font-size: .75rem;
    color: var(--color-muted, #6b7280);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.geo-hub__search-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}
.geo-hub__search-box {
    position: relative;
    flex: 1;
    max-width: 520px;
}
.geo-hub__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted, #9ca3af);
    pointer-events: none;
}
.geo-hub__search-input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border: 2px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .2s;
    outline: none;
}
.geo-hub__search-input:focus { border-color: var(--color-primary, #1d4ed8); }
.geo-hub__search-input::-webkit-search-cancel-button { display: none; }
.geo-hub__search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-muted, #9ca3af);
    padding: 2px;
    line-height: 0;
    transition: color .15s;
}
.geo-hub__search-clear:hover { color: var(--color-text, #111827); }
.geo-hub__search-found {
    font-size: .875rem;
    color: var(--color-muted, #6b7280);
    white-space: nowrap;
}
.geo-hub__no-results {
    padding: 32px;
    text-align: center;
    color: var(--color-muted, #6b7280);
    background: var(--color-bg-alt, #f9fafb);
    border-radius: 12px;
    margin-bottom: 24px;
}
.geo-hub__reset-btn {
    background: none;
    border: none;
    color: var(--color-primary, #1d4ed8);
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    padding: 0;
}

.geo-hub__regions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.geo-hub__region {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 14px;
    padding: 20px 22px 22px;
    transition: box-shadow .2s;
}
.geo-hub__region:hover { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.geo-hub__region--hidden { display: none; }

.geo-hub__region-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border, #f3f4f6);
}
.geo-hub__region-name {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text, #111827);
}
.geo-hub__region-count {
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-primary, #1d4ed8);
    background: var(--color-primary-light, #eff6ff);
    border-radius: 20px;
    padding: 2px 9px;
    flex-shrink: 0;
}

.geo-hub__cities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.js-geo-city { display: contents; }
.js-geo-city.is-hidden { display: none; }

.geo-hub__city-link {
    display: inline-block;
    font-size: .8375rem;
    color: var(--color-text, #374151);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--color-bg-alt, #f9fafb);
    transition: background .15s, color .15s;
    line-height: 1.4;
}
.geo-hub__city-link:hover {
    background: var(--color-primary, #1d4ed8);
    color: #fff;
}

.geo-hub__empty {
    color: var(--color-muted, #6b7280);
    text-align: center;
    padding: 48px 0;
}

@media (max-width: 768px) {
    .geo-hub { padding: 32px 0 56px; }
    .geo-hub__head { flex-direction: column; gap: 20px; }
    .geo-hub__head-stats { gap: 12px; }
    .geo-hub__stat { padding: 12px 16px; min-width: 76px; }
    .geo-hub__stat-num { font-size: 1.4rem; }
    .geo-hub__search-wrap { flex-direction: column; align-items: stretch; }
    .geo-hub__search-box { max-width: 100%; }
    .geo-hub__regions { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   Гео-страница: блок преимуществ (geo-advantages)
══════════════════════════════════════════════════════════════ */
.geo-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.geo-advantages__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 16px 18px;
}
.geo-advantages__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.geo-advantages__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.geo-advantages__title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--color-text, #111827);
    line-height: 1.3;
}
.geo-advantages__desc {
    font-size: .8rem;
    color: var(--color-muted, #6b7280);
    line-height: 1.4;
}
.cat-hero__desc--accent {
    margin-top: var(--space-2, 8px);
    font-style: italic;
    opacity: .85;
}

@media (max-width: 900px) {
    .geo-advantages__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .geo-advantages__grid { grid-template-columns: 1fr; }
}
