/**
 * Modern Header & Homepage Components Styles
 * Extracted from index.php to enable browser caching and reduce initial HTML payload.
 */

/* --- Critical Fonts (Local WOFF2) --- */
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/commissioner/commissioner-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/commissioner/commissioner-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/commissioner/commissioner-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}
:root {
  --page-max-width: 1480px;
  --page-gap: calc((100vw - var(--page-max-width)) / 2);
  --grid-column-gap: 20px;
  --grid-row-gap: 0px;
  --table-border-color: #69899f;
  --border-radius: 10px;
  --transition: 0.3s;
}
html {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  overflow-y: scroll;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Commissioner', 'Exo 2', sans-serif;
  color: #10142A;
  background-color: #fff;
  overflow: visible !important;
  height: auto !important;
}

/* --- Modern Header Styles (Figma) - Растянута на всю ширину --- */
.header-modern-new {
    background: linear-gradient(0deg, #1F2440 0%, #1F2440 100%);
    padding: 25px 0; /* Убрали жесткие боковые отступы, перенесли их во внутренний контейнер */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Слегка уплотнили расстояние между верхним и нижним рядом */
    
    /* Убрано width: 100vw, так как page__inner и так растягивается, 
       а 100vw вызывает горизонтальный скролл на Windows. */
    width: 100%;
    
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
    overflow: visible !important; /* Принудительно отменяем обрезку */
}

.page__inner {
    padding-top: 0; 
    overflow: visible !important; /* Разрешаем выпадающему меню выходить за края */
    position: relative;
    z-index: 100;
}

.header-top-row, .header-bottom-row {
    display: grid;
    grid-template-columns: 240px 190px 1fr auto;
    align-items: center;
    min-height: 48px;
    width: 100%;
    max-width: var(--page-max-width, 1440px) !important; 
    margin: 0 auto;
    padding: 0 clamp(10px, 4vw, 42px); /* Как в Фигме (42px) */
    box-sizing: border-box;
    gap: clamp(15px, 2vw, 34px);
}

.hm-col-1, .hm-col-2, .hm-col-3, .hm-col-4 {
    display: contents; /* Позволяет дочерним элементам стать flex-элементами родителя */
}

.hm-logo-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    gap: 4px;
}
.hm-logo-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: -8px; /* Оптическое выравнивание по сетке */
}
.hm-logo-area picture {
    display: flex;
    align-items: center;
}
.hm-logo-area img {
    height: 48px; 
    width: auto;
}
/* Разработчик: слоган под логотипом (set_slogan + set_slogan_show). */
.hm-slogan {
    display: block;
    max-width: 240px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    line-height: 1.25;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.mobile-logo {
    display: none;
}

.hm-top-wow {
    padding: 10px 30px;
    border-radius: 20px;
    outline: 1px #E85A29 solid;
    outline-offset: -1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hm-top-wow:hover {
    background-color: #E85A29;
}
.hm-top-wow:hover span {
    color: #ffffff;
}
.hm-top-wow:hover img {
    filter: brightness(0) invert(1); /* Делаем иконку огня белой */
}
/* ========================== */

.hm-top-wow span {
    color: #E85A29;
    font-size: 18px;
    font-family: 'Commissioner', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease; /* Добавили плавность тексту */
}
.hm-top-wow img {
    height: 20px;
    transition: filter 0.3s ease; /* Добавили плавность иконке */
}
.hm-top-wow span {
    color: #E85A29;
    font-size: 18px;
    font-family: 'Commissioner', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}
.hm-top-wow img {
    height: 20px;
}


.hm-top-text-group {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 34px); /* В фигме gap 34px */
}

/* --- Стили для новой кнопки "Оставить заявку" --- */
.hm-top-request-btn {
    padding: 8px 16px;
    background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%);
    border-radius: 20px;
    outline: 1px #FF8000 solid;
    outline-offset: -1px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: clamp(14px, 1.1vw, 20px);
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Небольшой эффект при наведении для живости */
.hm-top-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 90, 41, 0.4);
    color: white;
}
.hm-top-text {
    color: white;
    font-size: clamp(15px, 1.15vw, 22px); /* DEV: Commissioner шире — не наезжать на «Оставить заявку» */
    font-family: 'Commissioner', sans-serif;
    white-space: nowrap;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.hm-top-text.uppercase {
    text-transform: uppercase;
}

.hm-top-right, .hm-bottom-right {
    display: flex;
    align-items: center;
    gap: 40px; /* Как в Фигме */
}

.hm-phone-new, .hm-login-new {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    font-size: clamp(15px, 1.15vw, 22px);
    font-family: 'Commissioner', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    min-width: 0;
}
.hm-phone-new img, .hm-login-new img {
    width: 32px;
    height: 32px;
}

/* Bottom row */
/* --- Стили для выбора города с анимацией --- */
.hm-city-wrap {
    position: relative;
    display: inline-block;
}

/* Невидимая зона, чтобы меню не пропадало, пока мышка идет от кнопки к списку */
.hm-city-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; 
}

.hm-city-selector {
    display: flex;
    align-items: center;
    gap: 7px;
    color: white;
    font-size: 22px;
    font-family: 'Commissioner', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.hm-chevron {
    transition: transform 0.3s ease;
}

/* Переворот стрелочки при наведении */
.hm-city-wrap:hover .hm-chevron {
    transform: rotate(180deg);
}

/* Выпадающий список городов (Эффект светлого матового стекла) */
.hm-city-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    
        /* === ЭФФЕКТ ТЕМНОГО СТЕКЛА ДЛЯ ВНУТРЕННИХ СТРАНИЦ === */
    background: rgba(31, 36, 64, 0.85); /* Фирменный темный цвет с прозрачностью */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Сделали тень светлее и мягче */
    padding: 10px 0;
    z-index: 100;
    
    /* Анимация */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Конечное состояние при наведении */
.hm-city-wrap:hover .hm-city-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ссылки внутри списка */
.hm-city-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #ffffff; /* Белый цвет шрифта, чтобы читалось на темном стекле */
    font-size: 16px;
    font-family: 'Commissioner', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
    
    /* === ШРИФТ КАК У УРАЛЬСКА === */
    text-transform: uppercase; 
    letter-spacing: 0.03em; /* Чуть раздвинули буквы для красоты */
}

/* Эффект при наведении (только для НЕактивных городов) */
.hm-city-dropdown a:not(.active):hover {
    background: rgba(255, 255, 255, 0.1); /* Легкое светлое свечение при наведении */
    color: #E85A29;
    padding-left: 25px; /* Легкий эффект сдвига текста вправо */
}

/* === Выбранный (текущий) город === */
.hm-city-dropdown a.active {
    color: #E85A29;          /* Фирменный оранжевый цвет */
    background: transparent; /* Убрали старый белый фон, чтобы не портить стекло */
    font-weight: 700;        
    pointer-events: none;    
    cursor: default;         
}
.hm-catalog-btn-new {
    display: flex;
    align-items: center;
    gap: 11px;
    color: white;
    font-size: clamp(16px, 1.1vw, 20px);
    font-family: 'Commissioner', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    min-width: 0;
    transition: color 0.3s ease;
}

/* Анимированная иконка гамбургер -> крестик */
.hm-hamburger-icon {
    width: 20px;
    height: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hm-hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, background-color 0.3s ease;
    transform-origin: center;
}

.hm-catalog-wrap:hover .hm-catalog-btn-new,
.hm-catalog-wrap.active .hm-catalog-btn-new {
    color: #E85A29;
}

.hm-catalog-wrap:hover .hm-hamburger-icon span,
.hm-catalog-wrap.active .hm-hamburger-icon span {
    background-color: #E85A29;
}

/* Превращение линий в крестик (X) при наведении / открытии */
.hm-catalog-wrap:hover .hm-hamburger-icon span:nth-child(1),
.hm-catalog-wrap.active .hm-hamburger-icon span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hm-catalog-wrap:hover .hm-hamburger-icon span:nth-child(2),
.hm-catalog-wrap.active .hm-hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hm-catalog-wrap:hover .hm-hamburger-icon span:nth-child(3),
.hm-catalog-wrap.active .hm-hamburger-icon span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Мега-меню каталога (открытие по наведению) --- */
.hm-catalog-wrap {
    position: relative;
}

.hm-catalog-dropdown {
    position: absolute;
    top: 100%;
    margin-top: 15px;
    left: -50px; /* Немного смещаем влево для центровки */
    width: 750px; /* Ширина выпадающего меню */
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
    z-index: 1000;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.3s;
}

.hm-catalog-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.hm-catalog-wrap:hover .hm-catalog-dropdown,
.hm-catalog-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hm-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки карточек */
    gap: 15px;
}

.hm-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #1F2440;
    transition: 0.3s;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
}

.hm-cat-thumb {
    width: 100%;
    height: 90px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-sizing: border-box;
    padding: 0;
}

.hm-cat-card.has-db-img .hm-cat-thumb {
    padding: 0;
}

.hm-cat-card.has-db-img .hm-cat-thumb img,
.hm-cat-card.has-db-img .hm-cat-thumb picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    filter: none !important;
}

.hm-cat-card:not(.has-db-img) .hm-cat-thumb img,
.hm-cat-card:not(.has-db-img) .hm-cat-thumb picture img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Применяем оранжевый фильтр только для простых контурных SVG иконок */
.hm-cat-card:not(.has-db-img) img:not([src*="cat-krug"]):not([src*="cat-truba"]):not([src*="cat-polosa"]):not([src*="userfiles"]):not([src*="UserFiles"]),
.hm-cat-card img[src*=".svg"]:not([src*="cat-krug"]):not([src*="cat-truba"]):not([src*="cat-polosa"]):not([src*="userfiles"]):not([src*="UserFiles"]) {
    filter: brightness(0) invert(45%) sepia(61%) saturate(3015%) hue-rotate(346deg) brightness(94%) contrast(90%);
}

.hm-cat-card:hover:not(.has-db-img) img:not([src*="cat-krug"]):not([src*="cat-truba"]):not([src*="cat-polosa"]):not([src*="userfiles"]):not([src*="UserFiles"]),
.hm-cat-card:hover img[src*=".svg"]:not([src*="cat-krug"]):not([src*="cat-truba"]):not([src*="cat-polosa"]):not([src*="userfiles"]):not([src*="UserFiles"]) {
    filter: brightness(0) invert(13%) sepia(28%) saturate(1478%) hue-rotate(193deg) brightness(97%) contrast(105%);
}

.hm-cat-card span {
    font-family: 'Commissioner', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #1F2440;
    transition: color 0.3s ease;
}

.hm-cat-card:hover .hm-cat-thumb {
    transform: translateY(-3px);
}

.hm-cat-card:hover span {
    color: #E85A29;
}


/* --- Обновленный дизайн поиска --- */
.hm-search-wrap-new {
    display: flex;
    align-items: center;
    width: 100%;
    /* Точная ширина из Фигмы */
    max-width: 398px; 

    background: #ffffff;
    border-radius: 8px; 
    padding: 4px;
    box-sizing: border-box;
    height: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.hm-search-input-wrap {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px 0 15px;
    gap: 10px;
    /* Убираем старые рамки и фоны */
    background: transparent;
    outline: none;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
}

.hm-search-input-wrap img.hm-search-icon-left {
    width: 20px;
    height: 20px;
    opacity: 0.4; /* Делаем иконку лупы серенькой */
    flex-shrink: 0;
}

.hm-search-input-wrap input {
    border: none;
    outline: none;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0; /* DEV: иначе Commissioner + кнопка «найти» выталкивают текст за край поля */
    max-width: 100%;
    height: 100%;
    font-size: 16px;
    font-family: 'Commissioner', sans-serif;
    color: #333;
    background: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-search-input-wrap input::placeholder {
    color: #9C9C9C;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* По умолчанию (на десктопах) прячем кнопку поиска */
button.hm-search-btn,
.hm-search-btn {
    display: none !important;
}

/* Стили для мобилки (показываем лупу в кнопке) */
@media (max-width: 1050px) {
    button.hm-search-btn,
    .hm-search-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%);
        border-radius: 50px;
        border: none;
        cursor: pointer;
        padding: 0 !important;
        width: 44px;
        min-width: 44px !important;
        height: 100%;
        flex: 0 0 44px; /* Жестко фиксируем ширину квадрата */
        transition: opacity 0.2s, transform 0.2s;
        margin-left: auto;
    }
    
    .hm-search-btn:hover {
        opacity: 0.9;
        transform: scale(0.98);
    }
    
    .hm-search-btn .btn-text {
        display: none; /* Текст "Найти" не показываем */
    }
    
    .hm-search-btn .btn-icon {
        display: block; /* Показываем белую лупу внутри кнопки */
        width: 22px;
        height: 22px;
        filter: brightness(0) invert(1);
    }
    
    .hm-search-input-wrap {
        flex: 1 1 0;
        min-width: 0; /* Обязательно, чтобы текст внутри растягивался и не толкал кнопку за края экрана */
    }
}

/* --- Стили выпадающего списка живого поиска --- */
.hm-search-wrap-new {
    position: relative;
}
.hm-search-input-wrap {
    position: relative;
}
/* Полная изоляция крестика очистки поиска от любых глобальных стилей (в т.ч. button с фиксированной шириной 190px) */
button.hm-search-clear,
.hm-search-clear,
#hmSearchClear {
    all: unset !important;
    box-sizing: border-box !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin: 0 !important;
    margin-left: auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important; /* DEV: all:unset выше иначе снова показывает крестик в пустом поле */
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer !important;
    flex: 0 0 26px !important;
    flex-shrink: 0 !important;
    color: #94a3b8 !important;
    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 26px !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease !important;
}
button.hm-search-clear:hover,
.hm-search-clear:hover,
#hmSearchClear:hover {
    color: #1e293b !important;
    background-color: #f1f5f9 !important;
    transform: scale(1.1) !important;
}
.hm-search-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(232, 90, 41, 0.2);
    border-top-color: #E85A29;
    border-radius: 50%;
    animation: hmsSpin 0.7s linear infinite;
    flex-shrink: 0;
    margin-left: auto;
}
.hm-search-spinner + .hm-search-clear {
    margin-left: 6px;
}
/* DEV: крестик только когда в поле есть текст. :has — страховка, если JS не успел. */
button.hm-search-clear.is-shown,
.hm-search-clear.is-shown,
#hmSearchClear.is-shown {
    display: inline-flex !important;
}
.hm-search-input-wrap:has(input:placeholder-shown) button.hm-search-clear,
.hm-search-input-wrap:has(input:placeholder-shown) #hmSearchClear {
    display: none !important;
}
@keyframes hmsSpin {
    to { transform: rotate(360deg); }
}

.hm-search-dropdown {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    z-index: 99999;
    overflow: hidden;
    display: none;
    max-height: 520px;
    overflow-y: auto;
    font-family: 'Commissioner', sans-serif;
    box-sizing: border-box;
    text-align: left;
}
@media (max-width: 1050px) {
    .header-bottom-row .hm-col-3 {
        position: static !important;
    }
    .hm-search-wrap-new {
        position: static !important;
    }
    .hm-search-dropdown {
        position: absolute !important;
        top: 100% !important;
        margin-top: 8px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
        max-height: calc(100vh - 140px) !important;
        max-height: calc(100dvh - 140px) !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 1050 !important;
    }
}
.hms-section {
    padding: 10px 14px 6px;
    border-bottom: 1px solid #f1f5f9;
}
.hms-section:last-child {
    border-bottom: none;
}
.hms-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
    padding: 0 4px;
}
.hms-count-badge {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: normal;
}
.hms-cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.hms-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.hms-cat-tag:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}
.hms-cat-tag img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.hms-items-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hms-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.1s ease;
    cursor: pointer;
}
.hms-item:hover, .hms-item.is-selected {
    background: #f1f5f9;
}
.hms-item:active {
    transform: scale(0.99);
}
.hms-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
}
.hms-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.hms-item-info {
    flex-grow: 1;
    min-width: 0;
}
.hms-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hms-item-title mark {
    background: rgba(232, 90, 41, 0.15);
    color: #c2410c;
    font-weight: 700;
    border-radius: 2px;
    padding: 0 2px;
}
.hms-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.hms-item-code {
    color: #94a3b8;
}
.hms-item-stock {
    font-weight: 600;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
}
.hms-item-stock.in-stock {
    background: #eef8f3;
    color: #1a8a52;
}
.hms-item-stock.order {
    background: #fff5ed;
    color: #E85A29;
}
.hms-item-price {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}
.hms-price-val {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #E85A29;
}
.hms-footer {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.hms-all-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Commissioner', sans-serif;
}
.hms-all-btn:hover {
    background: #E85A29;
    border-color: #E85A29;
    color: #ffffff;
}
.hms-all-btn svg {
    transition: transform 0.15s ease;
}
.hms-all-btn:hover svg {
    transform: translateX(3px);
}
.hms-empty {
    padding: 28px 16px;
    text-align: center;
}
.hms-empty-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.hms-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.hms-empty-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}
.hms-empty-desc a {
    color: #2563eb;
    text-decoration: underline;
}
.hms-loading {
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
}

.hm-cart-new, .hm-fav-new {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    font-size: 22px;
    font-family: 'Commissioner', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
}
.hm-cart-new img {
    width: 40px;
    height: 40px;
}
.hm-fav-new img {
    width: 32px;
    height: 32px;
}
@media (min-width: 1051px) {
    .hm-cart-badge {
        display: none !important;
    }
}

/* =========================================
   АДАПТИВНОСТЬ НОВОЙ ШАПКИ (MOBILE STYLES)
   ========================================= */
@media (max-width: 1300px) {
    .header-top-row, .header-bottom-row {
        grid-template-columns: 200px 200px 1fr auto;
        gap: 15px;
    }
    .hm-search-wrap-new { max-width: 400px; }
}

@media (max-width: 1050px) {
    .header-modern-new {
        padding: 15px 0;
        gap: 15px;
    }

    /* Отключаем Grid, переходим на гибкий Flexbox */
    .header-top-row, .header-bottom-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 0 15px; /* Uniform mobile padding */
    }

    .header-bottom-row {
        position: relative;
    }

    .hm-catalog-wrap {
        position: static;
    }

    /* Восстанавливаем display: flex для колонок, чтобы работал order и flex-basis */
    .hm-col-1, .hm-col-2, .hm-col-3, .hm-col-4 {
        display: flex;
    }

    /* --- ВЕРХНИЙ РЯД (Логотип и Иконки Профиля) --- */
    .hm-col-1 { order: 1; }
    .hm-logo-area a { margin-left: 0 !important; }
    .hm-logo-area img { display: block; height: 36px; width: auto; }
    .header-modern-new .hm-slogan {
        max-width: 160px;
        font-size: 10px;
        line-height: 1.2;
    }

    /* Скрываем слоганы, город и ВАУ цены на мобильных */
    .header-top-row .hm-col-2,
    .header-top-row .hm-col-3,
    .header-bottom-row .hm-col-1 { 
        display: none; 
    }

    .header-top-row .hm-col-4 {
        order: 2;
    }
    .hm-top-right { gap: 15px; }

    /* Оставляем только иконки, прячем текст */
    .hm-phone-new, .hm-login-new {
        font-size: 0 !important; 
        gap: 0;
    }
    .hm-phone-new img, .hm-login-new img {
        width: 28px;
        height: 28px;
    }

    /* --- НИЖНИЙ РЯД (Бургер, Поиск, Корзина) --- */
    .header-bottom-row .hm-col-2 {
        order: 1;
        flex: 0 0 auto;
    }
    
    /* Делаем из кнопки каталога квадратный бургер */
    .hm-catalog-btn-new {
        font-size: 0; /* Скрываем текст */
        width: 48px;
        height: 48px;
        background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%);
        border-radius: 8px;
        justify-content: center;
        padding: 0;
        gap: 0;
        transition: background 0.25s ease;
    }

    /* На мобильных кнопка оранжевая — полоски бургера и крестик ВСЕГДА чисто белые! */
    .hm-catalog-btn-new .hm-hamburger-icon {
        width: 20px;
        height: 15px;
    }
    .hm-catalog-btn-new .hm-hamburger-icon span,
    .hm-catalog-wrap:hover .hm-hamburger-icon span,
    .hm-catalog-wrap.active .hm-hamburger-icon span,
    .hm-catalog-btn-new.active .hm-hamburger-icon span {
        background-color: #ffffff !important;
        height: 2.5px;
        border-radius: 2px;
    }

    /* На мобильных крестик ТОЛЬКО когда wrap или btn имеет класс .active (отключаем залипание hover на тачскринах) */
    .hm-catalog-wrap:not(.active) .hm-hamburger-icon span,
    .hm-catalog-btn-new:not(.active) .hm-hamburger-icon span {
        transform: none !important;
        opacity: 1 !important;
    }
    .hm-catalog-wrap.active .hm-hamburger-icon span:nth-child(1),
    .hm-catalog-btn-new.active .hm-hamburger-icon span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg) !important;
    }
    .hm-catalog-wrap.active .hm-hamburger-icon span:nth-child(2),
    .hm-catalog-btn-new.active .hm-hamburger-icon span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    .hm-catalog-wrap.active .hm-hamburger-icon span:nth-child(3),
    .hm-catalog-btn-new.active .hm-hamburger-icon span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg) !important;
    }

    /* Активное состояние кнопки (каталог открыт) */
    .hm-catalog-wrap.active .hm-catalog-btn-new,
    .hm-catalog-btn-new.active {
        background: #cf491c !important;
    }

    /* Поиск занимает все пространство с четкими внешними отступами слева и справа */
    .header-bottom-row .hm-col-3 {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
        padding: 0 !important;
        display: flex;
        align-items: center;
        position: static !important;
    }
    .hm-search-wrap-new {
        height: 44px;
        max-width: 100% !important;
        width: calc(100% - 24px) !important;
        margin: 0 12px !important;
        position: static !important;
    }
    .hm-search-input-wrap {
        padding: 0 6px 0 12px;
        gap: 8px;
    }
    .hm-search-input-wrap input {
        font-size: 14px;
        min-width: 0;
    }
    /* DEV: на узком экране полный placeholder «Что вы хотите найти?» не влезает в поле рядом с кнопкой */
    .hm-search-input-wrap input::placeholder {
        font-size: 13px;
    }

    /* Корзина и Избранное */
    .header-bottom-row .hm-col-4 {
        order: 3;
        flex: 0 0 auto;
    }
    .hm-bottom-right { gap: 15px; }
    
    .hm-cart-new, .hm-fav-new {
        font-size: 0 !important; /* Скрываем текст */
        gap: 0;
    }
    .hm-cart-new {
        position: relative !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
    .hm-cart-count {
        display: none !important;
    }
    .hm-cart-badge {
        display: none;
        position: absolute;
        top: -6px;
        right: -7px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 9px;
        background: #E85A29;
        color: #ffffff !important;
        font-family: 'Commissioner', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 14px !important;
        text-align: center;
        box-sizing: border-box;
        border: 2px solid #1F2440;
        box-shadow: 0 2px 6px rgba(232, 90, 41, 0.4);
        pointer-events: none;
        z-index: 10;
        white-space: nowrap;
    }
    .hm-cart-badge.has-items,
    .hm-cart-badge:not([data-count="0"]):not(:empty) {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .hm-cart-badge[data-count="0"],
    .hm-cart-badge:empty {
        display: none !important;
    }
    .hm-fav-new {
        display: none !important; /* На макете мобилки нет избранного */
    }
    .hm-cart-new img {
        width: 28px;
        height: 28px;
    }

    /* Адаптация мега-меню под мобилку: центрировано, строго в границах экрана */
    .hm-catalog-dropdown {
        position: absolute;
        top: 100%;
        margin-top: 8px;
        left: 12px;
        right: 12px;
        width: auto;
        box-sizing: border-box;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        z-index: 1100;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-12px) !important;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
    }
    .hm-catalog-dropdown.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    .hm-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hm-cat-thumb {
        height: 75px;
    }
}

@media (min-width: 601px) and (max-width: 1050px) {
    .hm-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Для самых маленьких экранов (телефоны) */
@media (max-width: 480px) {
    .hm-fav-new { display: none; } /* Прячем звездочку, чтобы дать больше места поиску */
    .hm-logo-area img { height: 30px; }
    .hm-catalog-btn-new, .hm-search-wrap-new { height: 44px; }
    .header-bottom-row .hm-col-3 {
        padding: 0 !important;
    }
    .hm-search-dropdown {
        left: 8px !important;
        right: 8px !important;
        border-radius: 14px !important;
    }
    .hms-section {
        padding: 8px 12px 4px;
    }
    .hms-item {
        padding: 8px 10px;
        gap: 10px;
    }
    .hms-item-thumb {
        width: 40px;
        height: 40px;
    }
    .hms-item-title {
        font-size: 13px;
    }
    .hms-price-val {
        font-size: 14px;
    }
}

html {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

body {
    overflow: visible !important;
    height: auto !important;
}

/* --- Modern Slider Styles (Адаптивный Full-Screen) --- */
.slider-modern-new {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #10142A !important;
}

.slider-modern-new .smn-slides-wrapper,
.slider-modern-new .slick-list,
.slider-modern-new .slick-track {
    height: 100% !important;
    max-height: 100% !important;
    opacity: 1 !important;
}

/* Hide non-first slides before Slick initializes to prevent CLS */
.slider-modern-new .smn-slides-wrapper:not(.slick-initialized) {
    height: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}
.slider-modern-new .smn-slides-wrapper:not(.slick-initialized) .smn-slide:not(:first-child) {
    display: none !important;
}

/* Стили для фонового видео (заполнение 100% слайда без синих полос) */
.smn-video-bg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100% !important;
    min-height: 100% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    z-index: 0 !important;
}

.smn-video-blur {
    position: absolute !important;
    inset: -5% !important;
    width: 110% !important;
    height: 110% !important;
    transform: none !important;
    object-fit: cover !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
    filter: blur(25px) !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .smn-video-blur {
        filter: none !important;
        opacity: 0.3 !important;
    }
}

.smn-video-reels {
    position: absolute;
    top: calc(50% + 50px); /* Смещаем ниже шапки */
    left: 75%; 
    transform: translate(-50%, -50%);
    height: 75%; /* Чуть меньше по высоте, чтобы влезло */
    max-height: 750px;
    width: auto;
    z-index: 0; 
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.15);
}

@media (max-width: 1440px) {
    .smn-video-reels {
        top: calc(50% + 40px);
        height: 72%;
    }
}

@media (max-width: 1200px) {
    .smn-video-reels {
        top: calc(50% + 30px);
        height: 70%;
    }
}

@media (max-width: 992px) {
    .smn-video-reels {
        left: 50%;
        top: calc(50% + 20px);
        height: 65%;
    }
}

.smn-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Уменьшено затемнение для более светлого видео */
    background: linear-gradient(0deg, rgba(31, 36, 64, 0.40) 0%, rgba(31, 36, 64, 0.40) 100%);
    z-index: 1;
}
.smn-slide {
    width: 100%;
    height: 100% !important;
    height: 100vh !important;
    min-height: 500px;
    position: relative;
    overflow: hidden; /* Added to prevent background bleed between slides */
    background-size: cover;
    background-position: center;
    background-color: #1F2440;
}


/* Декоративная графика справа */
.smn-decor {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80vh;
    max-height: 607px;
    width: auto;
    aspect-ratio: 442 / 607;
    max-width: 100%;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

@media (max-width: 992px) {
    .smn-decor {
        display: none !important;
    }
}

.smn-container {
    max-width: 1440px; /* В точности как ширина фрейма в Figma */
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
}

/* Выравнивание текста */
.smn-content {
    position: absolute;
    left: clamp(20px, 10vw, 145px); /* Точно как в макете (left: 145px) */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 41px); /* Точно как в макете (gap: 41px) */
    align-items: flex-start;
    max-width: 55%; /* Ограничиваем ширину текста, чтобы он не залезал на видео справа */
    z-index: 5;
    opacity: 1;
}

.smn-title {
    color: white;
    font-size: clamp(28px, 3.5vw, 42px); /* Точно как в макете (font-size: 42px) */
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    word-wrap: break-word;
    line-height: 1.1;
}

.smn-subtitle {
    color: white;
    font-size: clamp(18px, 2vw, 24px); /* Точно как в макете (font-size: 24px) */
    font-family: 'Commissioner', sans-serif;
    font-weight: 200;
    word-wrap: break-word;
}

/* Главная кнопка */
.smn-btn {
    padding: clamp(14px, 2vh, 24px) clamp(30px, 4vw, 60px);
    background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%), #E85A29;
    border-radius: 8px;
    color: white;
    font-size: clamp(18px, 2vw, 30px);
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.smn-btn:hover {
    transform: scale(1.03);
}

/* Навигация: Стрелки */
.smn-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 5vw, 80px);
    height: clamp(40px, 5vw, 80px);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10; /* Увеличили z-index, чтобы они всегда были поверх видео и затемнения */
}

.smn-arrow:hover {
    opacity: 1;
}

/* Прижимаем к самым краям экрана, задавая безопасный отступ */
.smn-prev { left: clamp(15px, 3vw, 40px); }
.smn-next { right: clamp(15px, 3vw, 40px); }

.smn-arrow img {
    height: clamp(32px, 4vw, 60px); /* Стрелки увеличиваются на 4k мониторах */
}

/* Навигация: Точки */
.smn-dots {
    position: absolute;
    bottom: clamp(30px, 5vh, 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 4;
}

.smn-dots-inner {
    display: flex;
    gap: clamp(10px, 1.5vw, 24px);
    align-items: center;
}

.smn-dot {
    width: clamp(8px, 1vw, 14px);
    height: clamp(8px, 1vw, 14px);
    background: rgba(217, 217, 217, 0.20);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.smn-dot:hover, .smn-dot-active {
    background: rgba(228, 228, 228, 0.50);
}


@media (max-width: 992px) {
    .smn-slide {
        height: 100vh; /* На планшетах и телефонах тоже оставляем फुल-скрин */
        min-height: 500px;
    }
    .smn-content {
        left: 15px; /* Match header padding */
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        gap: clamp(15px, 3vh, 30px);
        align-items: center; /* Центрируем текст на узких экранах для красоты */
        text-align: center; 
        max-width: none; /* Prevent clamp from making it overflow */
        width: calc(100% - 30px);
    }
    .smn-arrow { display: none; }
}
/* --- Интерактивная плавающая кнопка (FAB) --- */
@keyframes fabInitialSlide {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(2);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(2);
    }
}

.fab-wrapper {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: bottom right;
    opacity: 0;
    animation: fabInitialSlide 1s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

.fab-main-btn {
    width: 50px;  /* Уменьшили размер главной кнопки */
    height: 50px;
    background-color: #E85A29;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(232, 90, 41, 0.4);
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    position: relative;
}

.fab-main-btn img {
    width: 35px;  /* Иконка внутри главной кнопки */
    height: 35px;
    object-fit: contain;
    transition: transform 0.3s;
}

/* Контейнер для вылетающих кнопок */
.fab-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 1;
}

.fab-sub-btn {
    position: absolute;
    top: -20px;  /* Ровно половина от 40px */
    left: -20px; /* Ровно половина от 40px */
    width: 40px; /* Размер вылетающих кнопок */
    height: 40px;
    background-color: #E85A29;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(232, 90, 41, 0.3);
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translate(0, 0) scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-sub-btn img {
    width: 40px;  /* Иконка внутри главной кнопки */
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.fab-sub-btn:hover {
    background-color: #d64500;
}

.fab-sub-btn:hover img {
    transform: scale(1.15); /* Увеличиваем только картинку внутри */
}

/* === Анимация Раскрытия === */
.fab-wrapper.open .fab-sub-chat {
    transform: translate(5px, -60px) scale(1);
    opacity: 1;
    transition-delay: 0s;
}
.fab-wrapper.open .fab-sub-bell {
    transform: translate(-50px, -50px) scale(1);
    opacity: 1;
    transition-delay: 0.05s;
}
.fab-wrapper.open .fab-sub-phone {
    transform: translate(-60px, 5px) scale(1);
    opacity: 1;
    transition-delay: 0.1s;
}

.fab-wrapper.open .fab-main-btn {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(232, 90, 41, 0.2);
}

@media (max-width: 992px) {
    .fab-wrapper { right: 15px; bottom: 15px; }
    .fab-main-btn { width: 34px; height: 34px; }
    .fab-main-btn img { width: 18px; height: 18px; }
    .fab-sub-btn { width: 26px; height: 26px; top: -13px; left: -13px; }
    .fab-sub-btn img { width: 14px; height: 14px; }
    .fab-wrapper.open .fab-sub-chat { transform: translate(4px, -38px) scale(1); }
    .fab-wrapper.open .fab-sub-bell { transform: translate(-26px, -26px) scale(1); }
    .fab-wrapper.open .fab-sub-phone { transform: translate(-38px, 4px) scale(1); }
}

/* Для мобильных устройств можно сделать отступы чуть поменьше */
@media (max-width: 992px) {
    .smn-floating-buttons {
        right: 20px;
        bottom: 20px;
    }
}
.smn-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    text-decoration: none;
}
.smn-float-btn:hover { transform: scale(1.05); }
.smn-float-phone { background-color: #E85A29; }
.smn-float-btn img { width: 30px; height: 30px; object-fit: contain; }

@media (max-width: 1550px) {
    .smn-prev { left: 10px; }
    .smn-next { right: 10px; }
}

@media (max-width: 992px) {
    .smn-slide {
        height: 520px;
    }
    .smn-video-reels {
        left: 50% !important;
        top: 57% !important;
        transform: translate(-50%, -50%) !important;
        height: 72% !important;
        max-height: 390px !important;
        width: auto !important;
        border-radius: 20px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important;
    }
    .smn-content {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        top: 16% !important;
        transform: translateX(-50%) !important;
        width: 92% !important;
        max-width: 360px !important;
        padding: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        gap: 8px !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
    }
    .smn-title {
        width: 100% !important;
        font-size: 20px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
        text-align: center !important;
        text-transform: uppercase !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.85) !important;
        margin: 0 !important;
        letter-spacing: 0.3px !important;
    }
    .smn-subtitle {
        width: 100% !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-align: center !important;
        word-wrap: break-word !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
        margin: 0 !important;
    }
    .btn-slider-more, .smn-btn {
        font-size: 14px !important;
        padding: 9px 20px !important;
        margin-top: 4px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    }
    .smn-arrow { 
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        z-index: 12 !important;
    }
    .smn-prev { left: 8px !important; }
    .smn-next { right: 8px !important; }
}

@media (max-width: 480px) {
    .smn-content {
        width: 94% !important;
        max-width: 350px !important;
        top: 15% !important;
    }
    .smn-title {
        font-size: 19px !important;
    }
    .smn-subtitle {
        font-size: 14px !important;
    }
}

/* --- NEW COMBINED FOOTER (Адаптивный Full-Width) --- */
.footer-new {
    background: #fff;
    font-family: 'Commissioner', sans-serif;
    padding: 60px 0 80px;
    position: relative;
    
    /* Растягиваем фон на всю ширину экрана */
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
}

.fn-container {
    max-width: 100% !important; /* Убрали ограничение в 1700px, теперь контент тянется на всю ширину экрана */
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 30px) !important; /* Безопасные отступы по краям, как и везде */
    position: relative;
}
.fn-map-wrap {
    position: relative;
    width: 100%;
    height: 600px;
    background: url('/img/map-kz.svg') center/contain no-repeat;
    margin-bottom: 60px;
}

/* --- Анимированный выбор города в футере --- */
.fn-city-wrap {
    position: absolute; top: 0; right: 0; z-index: 20;
}
.fn-city-wrap::after {
    content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 15px; 
}
.fn-city-select {
    display: flex; align-items: center; gap: 8px;
    color: #1F2440; font-size: 18px; font-weight: 400; text-transform: uppercase;
    cursor: pointer;
}
.fn-chevron { transition: transform 0.3s ease; }
.fn-city-wrap:hover .fn-chevron { transform: rotate(180deg); }
.fn-city-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: #ffffff; min-width: 200px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fn-city-wrap:hover .fn-city-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.fn-city-dropdown a {
    display: block; padding: 12px 20px; color: #1F2440; font-size: 16px;
    font-family: 'Commissioner', sans-serif; text-decoration: none; text-transform: capitalize; transition: all 0.2s ease;
}
.fn-city-dropdown a:not(.active):hover { background: #f4f6f9; color: #E85A29; padding-left: 25px; }
.fn-city-dropdown a.active { color: #E85A29; background: #fff5f0; font-weight: 700; pointer-events: none; cursor: default; }
.fn-socials {
    position: absolute;
    bottom: 0; right: 0;
    display: none; gap: 15px;
}
.fn-socials a { transition: 0.3s; display: block; width: 42px; height: 42px; }
.fn-socials a:hover { transform: scale(1.1); }
.fn-socials img { width: 100%; height: 100%; object-fit: contain; }

.fn-card {
    position: absolute;
    top: 12%; 
    /* УВЕЛИЧИЛИ ЗНАЧЕНИЕ С 15% ДО 24%, ЧТОБЫ СДВИНУТЬ КАРТОЧКУ ВПРАВО */
    left: 20%; 
    
    width: clamp(320px, 22vw, 380px); 
    background: rgba(255, 255, 255, 0.6); /* Прозрачное белое стекло */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8); /* Легкая белая рамка */
    border-radius: 16px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.1);
    padding: 20px; 
    box-sizing: border-box;
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    z-index: 10;
}

/* Ромбик убран, поэтому псевдоэлементы ::before удалены */

.fn-card-img { 
    width: 100%; 
    height: clamp(140px, 12vw, 180px); /* Картинка стала больше */
    object-fit: cover; 
    border-radius: 8px; 
}

.fn-card-row { 
    display: flex; 
    gap: 10px; 
    align-items: flex-start; 
}

.fn-card-icon { 
    width: 18px; /* Чуть увеличили иконки */
    height: 18px; 
    flex-shrink: 0; 
    object-fit: contain; 
    margin-top: 2px; 
}

.fn-card-text { 
    color: #1F2440; 
    font-size: clamp(14px, 1.1vw, 16px); /* Текст стал крупнее */
    line-height: 1.3; 
}

.fn-card-text.bold { font-weight: 700; }

.fn-card-schedule { 
    display: flex; 
    gap: 6px; 
    align-items: center; 
    flex-wrap: wrap; 
    margin-top: 4px; 
}

.fn-day { font-weight: 500; font-size: 14px; }
.fn-day.active { color: #1F2440; }
.fn-day.inactive { color: #999; }
.fn-card-phones { display: flex; flex-direction: column; gap: 6px; }

.fn-btn-map {
    display: inline-flex; align-items: center; gap: 8px;
    background: #E85A29; color: white;
    padding: 10px 20px; /* Кнопка стала крупнее */
    border-radius: 8px;
    text-decoration: none; font-size: 14px; font-weight: 600;
    transition: 0.3s; align-self: flex-start;
}
.fn-btn-map:hover { background: #d64500; }
.fn-btn-map img { width: 18px; height: 18px; object-fit: contain; }
.fn-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.fn-btn-site {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1F2440; color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none; font-size: 14px; font-weight: 600;
    transition: 0.3s;
}
.fn-btn-site:hover { background: #16192c; color: #fff; }

.fn-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(30px, 4vw, 60px);
    border-top: 1px solid rgba(31, 36, 64, 0.1); /* Сделали линию-разделитель более мягкой */
    padding-top: clamp(30px, 4vh, 50px);
}

.fn-col-title {
    color: #1F2440; /* Ваш фирменный темно-синий */
    font-size: clamp(18px, 1.5vw, 24px); /* Заголовки колонок стали крупнее */
    font-weight: 700; 
    text-transform: uppercase;
    margin-bottom: clamp(20px, 2.5vh, 35px);
    letter-spacing: 0.03em; /* Чуть раздвинули буквы для солидности */
}

.fn-link-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    gap: clamp(14px, 1.8vh, 24px); /* Добавили "воздуха" между ссылками */
}

.fn-link-list a {
    color: #4A5568; /* Заменили резкий черный на глубокий темно-серый */
    font-size: clamp(16px, 1.2vw, 20px); /* Шрифт адаптивно увеличивается на больших мониторах */
    font-weight: 500; /* Сделали текст чуть плотнее, чтобы он хорошо читался */
    text-decoration: none; 
    transition: all 0.3s ease;
    line-height: 1.4;
    display: inline-block;
}

.fn-link-list a:hover { 
    color: #E85A29; /* Ваш фирменный оранжевый при наведении */
    transform: translateX(8px); /* Красивый современный эффект сдвига текста вправо */
}

@media (max-width: 992px) {
    .fn-map-wrap { 
        height: auto; 
        min-height: auto; 
        display: flex; 
        flex-direction: column; 
        /* УБРАЛИ background: none; ЧТОБЫ КАРТУ БЫЛО ВИДНО */
        background-position: top center;
        background-size: 100% auto; 
    }
    .fn-city-wrap {
        /* Смещаем вправо над картой */
        position: absolute; 
        top: -45px; 
        right: 0; 
        left: auto;
        transform: none;
    }
    .fn-city-dropdown {
        right: 0;
        left: auto;
        margin-left: 0;
    }
    .fn-card { 
        position: static; 
        width: 100%; 
        max-width: 500px; 
        /* Отступаем место под саму карту (SVG). Пропорция карты примерно 2 к 1 (т.е. 50vw). */
        margin: calc(50vw) auto 0; 
    }
    .fn-socials { 
        position: static; display: flex; justify-content: center; margin-top: 20px; 
    }
    .fn-links-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .fn-links-grid { grid-template-columns: 1fr; }
    .fn-card { margin-top: calc(55vw); } /* Чуть больше отступ на телефонах */
    .footer-modern-white { padding: 40px 0 60px; }
    /* Сжимаем футер в аккуратную колонку по центру */
    .footer-modern-white .fn-links-grid {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
}
/* --- Modern White Footer --- */
.footer-modern-white {
    background: #ffffff;
    padding: 60px 0 80px;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
    border-top: 1px solid #f0f0f0;
    font-family: 'Commissioner', sans-serif;
}

.footer-modern-white .fn-container {
    max-width: var(--page-max-width, 1480px) !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 30px);
}

.fn-content-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-modern-white .fn-links-grid {
    display: flex;
    gap: clamp(40px, 6vw, 120px);
    flex-wrap: wrap;
    border-top: none; /* Убираем серую линию от старых стилей */
    padding-top: 0;   /* Убираем лишний отступ */
}

.footer-modern-white .fn-col-title {
    color: #1F2440;
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: clamp(20px, 2vw, 35px);
    letter-spacing: 0.03em;
}

.footer-modern-white .fn-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.5vw, 22px);
}

.footer-modern-white .fn-link-list a {
    color: #1F2440;
    text-decoration: none;
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-modern-white .fn-link-list a:hover {
    color: #E85A29;
}

.fn-right-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 35px;
}

.fn-socials-row {
    display: flex;
    gap: 20px;
}

.fn-social-icon img {
    width: clamp(32px, 3vw, 44px);
    height: clamp(32px, 3vw, 44px);
    object-fit: contain;
    transition: transform 0.2s ease;
}

.fn-social-icon:hover img {
    transform: scale(1.1);
}

/* --- Footer Legal Bar --- */
.footer-legal-bar {
    background: #293c6c;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    font-family: 'Commissioner', sans-serif;
    color: #ffffff;
    padding: 30px 0;
}

html {
    background: #ffffff;
}

body {
    background: #ffffff !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.section_view_body + .footer-legal-bar,
footer + .footer-legal-bar {
    margin-bottom: 0 !important;
}

.footer-legal-bar .fn-container {
    max-width: var(--page-max-width, 1480px) !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 30px);
}

/* Desktop layout (flex row) */
.footer-legal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-legal-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: clamp(12px, 1.2vw, 14px);
    opacity: 0.6;
}

.footer-legal-middle {
    text-align: center;
}

.footer-legal-middle a {
    color: #ffffff;
    text-decoration: underline;
    font-size: clamp(12px, 1.2vw, 14px);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.footer-legal-middle a:hover {
    opacity: 1;
}

.footer-legal-right {
    text-align: right;
    font-size: clamp(12px, 1.2vw, 14px);
    opacity: 0.6;
}

.footer-legal-right a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.footer-legal-right a:hover {
    opacity: 1;
}

/* Mobile Layout */
@media (max-width: 1050px) {
    .footer-legal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .footer-legal-left, .footer-legal-middle, .footer-legal-right {
        text-align: center;
        align-items: center;
    }
}

.fn-city-select-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1F2440;
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

/* Делаем светлую иконку шеврона темной для белого фона */
.fn-chevron-footer {
    width: clamp(12px, 1vw, 16px);
    filter: brightness(0) saturate(100%) invert(13%) sepia(16%) saturate(1915%) hue-rotate(193deg) brightness(96%) contrast(92%);
    transition: transform 0.3s ease;
}

/* Выпадающий список городов в футере */
.fn-city-wrap-footer {
    position: relative;
    display: inline-block;
}
.fn-city-wrap-footer::after {
    content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 15px;
}
.fn-city-wrap-footer:hover .fn-chevron-footer {
    transform: rotate(180deg);
}
.fn-city-dropdown-footer {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: #ffffff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.05);
}
.fn-city-wrap-footer:hover .fn-city-dropdown-footer {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.fn-city-dropdown-footer a {
    display: block; padding: 12px 20px; color: #1F2440; font-size: clamp(15px, 1.2vw, 18px);
    text-decoration: none; transition: all 0.2s ease; text-transform: capitalize;
}
.fn-city-dropdown-footer a:not(.active):hover { background: #f4f6f9; color: #E85A29; padding-left: 25px; }
.fn-city-dropdown-footer a.active { color: #E85A29; background: #fff5f0; font-weight: 700; pointer-events: none; }

@media (max-width: 992px) {
    .fn-city-wrap-footer {
        display: block !important;
        margin-top: 15px;
        margin-bottom: 5px;
    }
    .fn-city-dropdown-footer {
        top: auto !important;
        bottom: calc(100% + 15px);
        right: auto !important;
        left: 50%;
        transform: translate(-50%, 15px);
    }
    .fn-city-wrap-footer:hover .fn-city-dropdown-footer {
        transform: translate(-50%, 0);
    }
    .fn-city-wrap-footer::after {
        top: auto !important;
        bottom: 100%;
    }
    .fn-content-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .fn-right-block {
        align-items: center;
    }
    .footer-modern-white .fn-links-grid {
        justify-content: center;
    }
}
    /* =========================================
       АДАПТИВНОСТЬ ШАПКИ (MOBILE STYLES)
       ========================================= */

    /* --- Планшеты и меньше ( < 992px ) --- */
    @media (max-width: 992px) {
        .header-modern {
            padding: 10px 0;
        }

        .header-modern .layout {
            flex-wrap: wrap; /* Разрешаем элементам переноситься на новую строку */
        }

        /* Логотип уменьшаем */
        .hm-logo-area {
            width: auto;
            max-width: 150px;
        }
        .header-modern .hm-slogan {
            display: none; /* Скрываем слоган старой шапки для экономии места */
        }

        /* Центральная часть (Каталог + Поиск) уходит вниз */
        .hm-center-area {
            order: 3; /* Порядок отображения: 3-м пунктом (внизу) */
            width: 100%;
            margin-top: 15px;
            gap: 10px;
            padding-left: 0;
            justify-content: space-between;
        }

        /* Блок с действиями (Корзина, Бургер) прижимаем вправо */
        .hm-actions-area {
            margin-left: auto;
            gap: 20px;
        }

        /* Показываем бургер */
        .hm-burger {
            display: flex !important;
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
            background: #f7f9fc;
            border-radius: 8px;
            cursor: pointer;
        }
        .hm-burger span {
            background: var(--color-blue2); /* Цвет полосок бургера */
        }

        /* Телефон и Профиль скрываем в шапке (они должны быть в выпадающем меню) */
        .hm-phone-wrapper, 
        .header__lk { 
            display: none; 
        }
        
        /* Скрываем подписи у иконок */
        .hm-action-item span {
            display: none;
        }
    }

    /* --- Мобильные телефоны ( < 600px ) --- */
    @media (max-width: 600px) {
        /* Делаем поиск и каталог на всю ширину */
        .hm-center-area {
            flex-direction: column; /* Элементы друг под другом */
            align-items: stretch; /* Растянуть на всю ширину */
        }

        /* Кнопка каталога */
        .hm-catalog-btn {
            width: 100%;
            justify-content: center;
            height: 48px; /* Чуть выше для удобства нажатия пальцем */
        }
        
        /* Поиск */
        .hm-search-wrap {
            max-width: 100%;
        }
        .hm-search-wrap input {
            height: 48px !important;
        }
        .hm-search-wrap button {
            height: 48px !important;
            width: auto !important; /* Разрешаем ширину по тексту */
            min-width: 80px;
        }

        /* Логотип еще компактнее */
        .hm-logo-area {
            max-width: 120px;
        }

        /* Корзина */
        .hm-action-item svg {
            width: 28px;
            height: 28px;
        }
        
        /* Счетчик корзины */
        .hm-cart-count {
            top: -5px;
            right: -5px;
        }
        
        /* Отключаем всплывающее десктопное меню каталога на мобильных, 
           чтобы оно не перекрывало экран (пользователь будет кликать на кнопку и переходить в раздел) */
        .header__catalog:hover .catalog__menu {
            display: none; 
            opacity: 0;
            visibility: hidden;
        }
    }
    /* --- Modern News Section --- */
    .section-news-modern {
        background-color: #fff; /* Белый фон для контраста с галереей */
        padding: 80px 0;
    }

    .news-header-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        flex-wrap: wrap;
        gap: 20px;
    }

    .news-title {
        font-size: 36px;
        font-weight: 800;
        color: var(--color-blue2);
        line-height: 1.2;
    }

    .news-link-all {
        display: inline-flex;
        align-items: center;
        color: var(--color-gold);
        font-weight: 700;
        text-decoration: none;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: color 0.3s;
    }
    .news-link-all:hover {
        color: var(--color-blue2);
    }
    .news-link-all svg {
        width: 18px;
        height: 18px;
        margin-left: 8px;
        fill: currentColor;
    }

    /* Сетка новостей */
    .news-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        gap: 30px;
    }

    /* Карточка новости */
    .news-card {
        display: flex;
        flex-direction: column;
        background: #f9f9fb;
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        transition: transform 0.3s, box-shadow 0.3s;
        height: 100%;
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    /* Изображение новости */
    .news-card__img {
        height: 220px;
        position: relative;
        overflow: hidden;
    }
    .news-card__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }
    .news-card:hover .news-card__img img {
        transform: scale(1.05);
    }

    /* Дата поверх картинки */
    .news-card__date {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255,255,255,0.9);
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
        color: var(--color-blue2);
    }

    /* Контент */
    .news-card__body {
        padding: 25px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .news-card__title {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin-bottom: 12px;
        line-height: 1.4;
        transition: color 0.3s;
    }
    .news-card:hover .news-card__title {
        color: var(--color-gold); /* Заголовок золотеет при наведении */
    }

    .news-card__desc {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 20px;
        flex-grow: 1; /* Прижимает кнопку вниз */
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Обрезает текст после 3 строк */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card__more {
        font-size: 14px;
        font-weight: 600;
        color: var(--color-blue2);
        display: inline-flex;
        align-items: center;
    }
    .news-card__more svg {
        width: 16px;
        height: 16px;
        margin-left: 5px;
        fill: currentColor;
        transition: transform 0.3s;
    }
    .news-card:hover .news-card__more svg {
        transform: translateX(5px);
    }

    /* Адаптивность */
    @media (max-width: 992px) {
        .news-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
        }
    }

    @media (max-width: 600px) {
        .section-news-modern {
            padding: 50px 0;
        }
        .news-header-wrap {
            margin-bottom: 30px;
        }
        .news-title {
            font-size: 28px;
        }
        .news-grid {
            grid-template-columns: 1fr; /* 1 колонка на телефоне */
            gap: 20px;
        }
        .news-card__img {
            height: 200px;
        }
    }
    /* --- Стили для Мега-меню (Металлопрокат) --- */
.header-nav__megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #F9F9F9;
    width: 850px; /* Ширина выпадающего блока */
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
    cursor: default; /* Чтобы курсор не менялся на руку на пустом месте */
}

/* Показываем меню при наведении */
.header-nav__item:hover .header-nav__megamenu {
    display: block;
    animation: fadeInMenu 0.3s ease forwards;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Сетка для колонок */
.mm-grid-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 30px; /* Отступ между колонками */
}

/* Заголовок группы */
a.mm-column-title {
    font-size: 14px;
    font-weight: 800;
    color: #293c6c;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 8px;
    display: block;
    text-decoration: none; /* Убираем стандартное подчеркивание ссылки */
    transition: color 0.3s ease, border-color 0.3s ease;
}

a.mm-column-title:hover {
    color: var(--color-gold); /* Цвет текста при наведении */
    border-bottom-color: transparent; /* Убираем полоску при наведении (по желанию) */
}

/* Список ссылок */
.mm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mm-list li {
    margin-bottom: 8px;
}

.mm-list li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: block;
}

.mm-list li a:hover {
    color: var(--color-gold); /* Оранжевый при наведении */
    padding-left: 5px; /* Эффект сдвига */
}

/* Адаптив: если экран меньше, сдвигаем меню */
@media (max-width: 1200px) {
    .header-nav__megamenu {
        width: 700px;
        left: -50px;
    }
    .mm-grid-columns {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на экранах поменьше */
    }
}


/* --- КАТАЛОГ ПРОДУКЦИИ (На весь экран) --- */
.section-catalog-tabs {
    background-color: #276ea9; /* Насыщенный синий фон (контраст > 5:1 по WCAG AA) */
    /* Убрали нижний отступ, чтобы контент плотно прилегал к низу без синей полосы */
    padding: clamp(40px, 4vh, 80px) 0 0 0 !important; 
    color: #fff;
    font-family: 'Commissioner', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
    min-height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.section-catalog-tabs > .layout {
    max-width: 100%; 
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 30px); 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.ct-title {
    font-size: clamp(36px, 4vw, 48px); 
    font-weight: 600; 
    text-transform: uppercase;
    margin-bottom: clamp(30px, 5vh, 60px); 
    color: #fff;
    line-height: 1.1; /* Фикс: чтобы слова не наезжали друг на друга при переносе */
}

/* Сетка кнопок */
.ct-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    grid-auto-flow: row dense;
    gap: clamp(10px, 2vw, 24px);
    margin-bottom: clamp(30px, 5vh, 50px); 
}

.ct-btn {
    width: 100%;
    min-height: clamp(112px, 12vh, 150px); 
    height: 100%; 
    background: #FFFFFF; 
    color: #1F2440; 
    border-radius: 14px;
    border: 2px solid transparent;
    padding: clamp(10px, 1.2vh, 14px) clamp(8px, 1vw, 12px); 
    font-weight: 500;
    font-size: clamp(14px, 1.2vw, 17px); 
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 1vh, 10px);
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ct-btn span {
    width: 100%;
    display: block;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    white-space: normal;
    margin-top: auto;
    flex-shrink: 0;
    color: #1F2440;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ct-btn img {
    width: 100%; 
    max-width: 100%;
    height: clamp(70px, 9.5vh, 100px);
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0; 
    display: block;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.ct-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.16);
    border-color: rgba(232, 90, 41, 0.45);
}
.ct-btn:hover span {
    color: #E85A29;
}
.ct-btn:hover img {
    transform: scale(1.06);
}

/* Реальные картинки из 1С / базы на неактивных кнопках */
.ct-btn.has-db-img:not(.active) img,
.ct-btn:not(.active) img[src*="userfiles"],
.ct-btn:not(.active) img[src*="UserFiles"] {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(70px, 9.5vh, 100px) !important;
    object-fit: contain !important;
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* Активная карточка: белая карточка с фирменной оранжевой рамкой и текстом */
.ct-btn.active { 
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* Вернули обратно 2 ряда высоты */
    order: -1;
    background: #FFFFFF !important; 
    border: 2px solid #E85A29 !important;
    color: #E85A29 !important;
    font-weight: 700 !important; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-3px);
}

.ct-btn.active span {
    color: #E85A29 !important;
    font-weight: 700 !important;
}

.ct-btn.active img {
    filter: none !important;
    width: 100%;
    max-width: 100%;
    height: clamp(70px, 9.5vh, 100px);
    object-fit: contain;
    margin: auto 0;
    transform: scale(1.06);
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
    content: normal !important;
}

/* Если в карточке контурная SVG иконка (фоллбэк без 1С фото) */
.ct-btn:not(.has-db-img) img,
.ct-btn img[src*=".svg"]:not([src*="userfiles"]):not([src*="UserFiles"]) {
    width: clamp(38px, 4.5vw, 55px);
    height: clamp(38px, 4.5vw, 55px);
    filter: brightness(0);
}
.ct-btn.active:not(.has-db-img) img,
.ct-btn:hover:not(.has-db-img) img {
    filter: brightness(0) invert(45%) sepia(61%) saturate(3015%) hue-rotate(346deg) brightness(94%) contrast(90%);
}

/* Специальные картинки для активных табов (ТОЛЬКО для старых статических категорий без фото из 1С) */
.ct-btn:not(.has-db-img).active[onclick*="tab-truby"] img,
.ct-btn:not(.has-db-img).active[onclick*="tab-armatura"] img,
.ct-btn:not(.has-db-img).active[onclick*="tab-kvadrat"] img,
.ct-btn:not(.has-db-img).active[onclick*="tab-list"] img,
.ct-btn:not(.has-db-img).active[onclick*="tab-krug"] img {
    filter: none !important;
    width: clamp(120px, 15vw, 220px) !important;
    height: clamp(120px, 15vw, 220px) !important;
    max-width: 90%;
    border-radius: 8px; /* Небольшое скругление для фотографий, чтобы смотрелись аккуратнее */
}

.ct-btn:not(.has-db-img).active[onclick*="tab-truby"] img {
    content: url('/img/catalog-main-truby.png');
}
.ct-btn:not(.has-db-img).active[onclick*="tab-armatura"] img {
    content: url('/img/cat-arm-desc.jpg');
}
.ct-btn:not(.has-db-img).active[onclick*="tab-kvadrat"] img {
    content: url('/img/rec-kv.png?v2');
}
.ct-btn:not(.has-db-img).active[onclick*="tab-list"] img {
    content: url('/img/sale-list.jpg');
}
.ct-btn:not(.has-db-img).active[onclick*="tab-krug"] img {
    content: url('/img/sale-krug.jpg');
}

/* Адаптивная сетка кнопок каталога при малом количестве категорий (до 5) */
.ct-nav.ct-nav-few {
    grid-auto-flow: row;
}
@media (min-width: 993px) {
    .ct-nav.ct-nav-few {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .ct-nav.ct-nav-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .ct-nav.ct-nav-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .ct-nav.ct-nav-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ct-nav.ct-nav-few .ct-btn.active {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 0 !important;
        min-height: clamp(112px, 12vh, 150px) !important;
    }
    .ct-nav.ct-nav-few .ct-btn.active img {
        width: 100% !important;
        height: clamp(75px, 10vh, 110px) !important;
        max-width: 100% !important;
        content: normal !important;
    }
}
@media (max-width: 992px) and (min-width: 577px) {
    .ct-nav.ct-nav-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .ct-nav.ct-nav-few .ct-btn.active {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 0 !important;
    }
    .ct-nav.ct-nav-few .ct-btn.active img {
        width: 100% !important;
        height: clamp(75px, 10vh, 110px) !important;
        content: normal !important;
    }
}
@media (max-width: 576px) {
    .ct-nav.ct-nav-few .ct-btn.active {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 0 !important;
    }
    .ct-nav.ct-nav-few .ct-btn.active img {
        width: 100% !important;
        height: clamp(70px, 9.5vh, 100px) !important;
        content: normal !important;
    }
}

.ct-body { display: none; position: relative; z-index: 1; width: 100%; flex-grow: 1; }
.ct-body.active { display: flex; }

/* Псевдоэлементы для заливки низа: Лево - Темно-синий, Право - Белый */
.ct-body::before { content: ''; position: absolute; top: 0; bottom: -1000px; left: -100vw; right: 50%; background-color: #1F2440; z-index: -1; }
.ct-body::after { content: ''; position: absolute; top: 0; bottom: -1000px; left: 50%; right: -100vw; background-color: #F6F8FA; z-index: -1; }

/* Левое ТЕМНО-СИНЕЕ меню */
.ct-sidebar {
    width: 50%; background-color: #1F2440;
    padding: clamp(30px, 3vh, 60px) clamp(20px, 2vw, 40px);
    display: flex; flex-direction: column; 
    /* Gap удален, чтобы левая граница ссылок (border-left) создавала сплошную непрерывную линию */
}
.ct-sidebar-title {
    font-size: clamp(24px, 2.5vw, 32px); 
    font-weight: 600; color: #fff;
    margin-bottom: clamp(15px, 2vh, 30px); line-height: 1.2; text-transform: uppercase;
}
.ct-sidebar-link {
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; text-decoration: none;
    padding: clamp(16px, 2vh, 24px) 20px clamp(16px, 2vh, 24px) 25px; transition: 0.3s;
    font-size: clamp(16px, 1.5vw, 20px); 
    font-weight: 400; position: relative;
    border-left: 1px solid rgba(255,255,255,0.4);
    margin-left: 10px; /* Отступ от края блока */
}
.ct-sidebar-link:hover { background: rgba(255,255,255,0.05); }
.ct-sidebar-link.active { color: #fff; font-weight: 400; background: transparent; }
.ct-sidebar-link.active::before {
    content: ''; position: absolute; 
    left: -3px; /* Центрируем толстый блок ровно на линии border-left (1 + 2 = 3) */
    top: 50%; transform: translateY(-50%);
    width: 5px; height: 50%; background-color: #fff;
}
/* Виртуальная кнопка "Подробнее" (как в Figma) */
.ct-sidebar-link.active::after {
    content: 'Подробнее';
    display: inline-flex; justify-content: center; align-items: center;
    background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%);
    color: white; padding: 10px 40px; border-radius: 16px; font-size: 18px; font-weight: 400;
    text-transform: capitalize; word-wrap: break-word;
    pointer-events: none; /* Это просто визуальная часть ссылки */
}

/* Правый БЕЛЫЙ блок с инфой */
.ct-content {
    width: 50%; 
    background: #F6F8FA; color: #000;
    padding: clamp(30px, 3vh, 60px) clamp(40px, 4vw, 80px);
    display: flex; flex-direction: column;
}
.ct-default-content { transition: opacity 0.2s ease-in-out; width: 100%; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(20px, 3vh, 40px); height: 100%; }

.ct-top-block { display: flex; gap: clamp(20px, 2vw, 30px); align-items: flex-start; position: relative; z-index: 1; }
/* Создаем псевдоэлемент, который будет играть роль белой карточки-фона позади картинки */
.ct-top-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(140px, 15vw, 220px); 
    height: clamp(120px, 12vw, 180px);
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    z-index: -1;
}

.ct-product-img {
    width: clamp(140px, 15vw, 220px); 
    height: clamp(120px, 12vw, 180px);
    object-fit: contain; flex-shrink: 0;
    /* Убираем свой фон у картинки, так как фильтр делает его черным */
    background: transparent;
    padding: 15px;
    box-sizing: border-box;
}

/* Делаем белые векторные иконки черными, чтобы они не сливались с белым фоном, при этом не ломая обычные фото (jpg) */
img.ct-product-img[src*=".svg"] {
    filter: brightness(0);
}
.ct-intro-text { font-size: clamp(14px, 1.3vw, 18px); line-height: 1.5; font-weight: 600; color: #000; }

.ct-section-head { color: #3284CF; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; margin-bottom: -5px; }

/* Характеристики - одна вертикальная колонка */
.ct-specs-list { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.ct-spec-row { 
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center; 
    gap: clamp(15px, 2vw, 30px);
    border-bottom: 1px solid rgba(50, 132, 207, 0.1);
    padding: 8px 0;
    width: 100%;
}
.ct-spec-name { font-size: clamp(14px, 1.3vw, 18px); color: #333; font-weight: 400; line-height: 1.3; }

.ct-spec-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

/* Значения в рамочке */
.ct-spec-val { 
    font-weight: 600; color: #000; font-size: clamp(14px, 1.3vw, 16px); 
    text-align: center;
    border: 1px solid #3284CF;
    border-radius: 8px;
    padding: 8px 15px;
    width: 170px; /* Жесткая ширина для идеальной ровности всех блоков */
    flex-shrink: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    word-break: break-word;
    background: #fff;
}

.ct-app-text { font-size: clamp(14px, 1.3vw, 18px); line-height: 1.5; color: #000; font-weight: 400; max-width: 800px; }

.ct-link-btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: clamp(14px, 2vh, 22px) clamp(30px, 4vw, 70px); 
    background: linear-gradient(37deg, #3284CF 0%, #0374DB 100%);
    color: #fff; border-radius: 12px; text-decoration: none;
    font-size: clamp(18px, 1.8vw, 30px); font-weight: 700; transition: 0.3s; align-self: flex-start;
}
.ct-link-btn:hover { background: #E85A29; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(50, 132, 207, 0.4); }

@media (max-width: 1400px) {
    .ct-nav { grid-template-columns: repeat(4, 1fr); }
    .ct-body::before { right: 50%; }
    .ct-body::after { left: 50%; }
    .ct-sidebar { width: 50%; padding-right: 10px; }
    .ct-content { width: 50%; }
    .ct-sidebar-link.active::after { position: static; transform: none; margin-top: 10px; display: flex; width: max-content; }
    .ct-sidebar-link { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1200px) {
    .ct-nav { grid-template-columns: repeat(3, 1fr); } 
    .ct-specs-list { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .ct-body, .sv-body { 
        flex-direction: column; 
        /* ЖЕСТКО растягиваем контентную часть на весь экран, игнорируя любые обертки */
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        /* Убираем боковые скругления, чтобы не "свисали" углы */
    }
    .ct-body::before, .ct-body::after { display: none; }
    .ct-sidebar { width: 100%; padding: 25px 20px; border-radius: 0; box-sizing: border-box; }
    .ct-content { width: 100%; padding: 25px 20px; border-radius: 0; box-sizing: border-box; }
    .ct-sidebar-link.active::before { display: none; }
}
@media (max-width: 600px) {
    .ct-nav { grid-template-columns: repeat(2, 1fr); } /* 2 в ряд на телефонах */
    .ct-top-block { flex-direction: column; text-align: center; }
    .ct-product-img { width: 100%; height: 200px; padding: 20px; }
    .ct-top-block::before { width: 100%; height: 200px; } /* Адаптируем белую подложку */
    
    .ct-spec-group { width: 100% !important; max-width: 100% !important; }
    .ct-spec-val { width: 130px; font-size: 13px; }
}
@media (max-width: 400px) {
    .ct-spec-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ct-spec-val { width: 100%; justify-content: flex-start; padding: 8px 15px; }
}

/* Выпадающий список товаров в табах каталога (Аккордеон) */
.ajax-dropdown-container {
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
    border-top: 2px solid #e19e3a;
    box-shadow: inset 0px -5px 10px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    border-radius: 0 0 8px 8px;
    scrollbar-width: thin;
    scrollbar-color: #293c6c #f4f6f9;
}
.ajax-dropdown-container:hover {
    scrollbar-color: #e19e3a #f4f6f9;
}
.ajax-dropdown-container::-webkit-scrollbar {
    width: 6px;
}
.ajax-dropdown-container::-webkit-scrollbar-track {
    background: #f4f6f9;
    border-radius: 3px;
}
.ajax-dropdown-container::-webkit-scrollbar-thumb {
    background-color: #293c6c;
    border-radius: 3px;
    border: 1px solid #f4f6f9;
}
.ajax-dropdown-container:hover::-webkit-scrollbar-thumb {
    background-color: #e19e3a;
}
.ajax-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ajax-product-list li {
    border-bottom: 1px solid #f0f2f5;
}
.ajax-product-list a {
    display: block;
    padding: 10px 15px 10px 25px;
    color: #293c6c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}
.ajax-product-list a::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #e19e3a;
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.2s ease;
}
.ajax-product-list a:hover {
    color: #e19e3a;
    background: #fdfbf8;
    padding-left: 30px;
}
.ajax-product-list a:hover::before {
    opacity: 1;
    background: #e19e3a;
}

/* === НОВЫЙ Слайдер (Promo Slider) v2 (FIXED) === */

/* Сброс родительского контейнера */
.section_view_modern,
.section_view_modern .section__inner,
.section_view_modern .layout {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
    border: none !important;
}

/* 1. Главный контейнер */
.promo-slider-section {
    grid-column: 1 / -1;
    width: 100%;
    height: 420px; /* Немного увеличили высоту */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 40px;
    /* Градиент фона */
    background: linear-gradient(105deg, #EBEFF9 0%, #EBEFF9 55%, #D6DAEA 55%, #D6DAEA 100%);
    z-index: 1;
}

.swiper_promo_hero {
    width: 100%;
    height: 100%;
}

/* === ИСПРАВЛЕНИЕ: Принудительный Flex для ряда === */
.swiper_promo_hero .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    box-sizing: content-box;
}

/* === Слайды: настройки для Slide-эффекта === */
.swiper_promo_hero .swiper-slide {
    width: 100%; /* Swiper сам рассчитает ширину, но это база */
    height: 100%;
    position: relative !important; /* Важно: якорь для контента */
    opacity: 1 !important;         /* Важно: всегда видимы */
    visibility: visible !important;
    z-index: 1;
    flex-shrink: 0 !important;     /* Важно: запрещаем сжатие слайдов */
    display: block !important;
}

/* Внутренний контейнер слайда */
.promo-slide__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 0 80px;
    position: relative;
    box-sizing: border-box;
}

/* --- Левая часть: Текст --- */
.promo-slide__content {
    width: 50%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.promo-slide__title {
    font-family: 'Commissioner', sans-serif;
    font-size: clamp(26px, 3.2vw, 42px); /* DEV: длинные заголовки не наезжают на фото слайда */
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 25px;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.promo-slide__feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.promo-slide__feature svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.promo-slide__feature span {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

.promo-slide__btn {
    background-color: #F05000 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.promo-slide__btn:hover {
    background-color: #d64500 !important;
}

/* --- Правая часть: Картинка --- */
.promo-slide__image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-slide__image img {
    width: 90%; /* Чуть меньше 100, чтобы не прилипало к краю */
    height: 90%;
    object-fit: contain; /* ВАЖНО: Картинка-заглушка будет видна целиком */
    object-position: center;
    max-width: none !important;
    max-height: none !important;
    display: block;
}

/* --- Навигация --- */
.promo-nav-prev,
.promo-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.promo-nav-prev { left: 20px; }
.promo-nav-next { right: 20px; }

.promo-nav-prev:hover, .promo-nav-next:hover {
    background: #F05000;
}
.promo-nav-prev:hover svg path, .promo-nav-next:hover svg path {
    fill: #fff;
}

/* --- Пагинация --- */
.promo-pagination {
    position: absolute;
    bottom: 20px !important;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.promo-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    background: #B0B0B0;
    border-radius: 2px;
    opacity: 1;
    margin: 0 !important;
}

.promo-pagination .swiper-pagination-bullet-active {
    background: #333;
    width: 40px;
}

/* --- Адаптив --- */
@media (max-width: 992px) {
    .promo-slider-section {
        height: auto;
        min-height: 450px;
        background: #EBEFF9;
    }
    .promo-slide__inner {
        flex-direction: column-reverse;
        padding: 40px 20px;
        justify-content: flex-end;
        text-align: center;
    }
    .promo-slide__content {
        width: 100%;
        align-items: center;
    }
    .promo-slide__image {
        position: relative;
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }
    .promo-slide__title {
        font-size: 26px;
    }
    .promo-nav-prev, .promo-nav-next {
        display: none; /* Скрываем стрелки на мобильном */
    }
}
/* --- Секция отзывов --- */
.section-reviews-modern {
    background-color: #fff;
    padding: 80px 0;
    position: relative;
}

/* Заголовок (в едином стиле с Партнерами и Преимуществами) */
.reviews-header {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px; /* Отступ до виджета */
    color: var(--color-blue2); /* Ваш синий #293c6c */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

/* Золотая линия под заголовком */
.reviews-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold); /* Ваш золотой #e19e3a */
    margin: 20px auto 0;
}

/* Контейнер для виджета */
.reviews-container {
    width: 100%;
    min-height: 200px; /* Резервируем место, чтобы не было скачка при загрузке */
    position: relative;
    z-index: 1;
}

/* --- Адаптивность --- */

/* Планшеты */
@media (max-width: 992px) {
    .section-reviews-modern {
        padding: 60px 0;
    }
    .reviews-header {
        font-size: 30px;
        margin-bottom: 40px;
    }
}

/* Телефоны */
@media (max-width: 600px) {
    .section-reviews-modern {
        padding: 40px 0;
    }
    .reviews-header {
        font-size: 26px;
        margin-bottom: 30px;
    }
    /* На мобильных иногда виджеты прилипают к краям, добавим защиту */
    .reviews-container {
        padding: 0 5px; 
    }
}
#searcMidRes {
    max-height: 400px; /* Максимальная высота списка */
    overflow-y: auto;  /* Вертикальная прокрутка, если товаров много */
    background: #fff;  /* Фон, чтобы текст не сливался */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Тень для красоты */
    border-radius: 0 0 4px 4px;
}
/* --- Стили для слайдера новостей --- */
.news-slider {
    margin: 0 -15px; /* Компенсация внутренних отступов */
    position: relative;
    display: block;
    opacity: 0; /* Скрываем до загрузки JS, чтобы не прыгало */
    transition: opacity 0.3s;
}

/* Когда слайдер инициализирован, показываем его */
.news-slider.slick-initialized {
    opacity: 1;
}

.news-slide-wrapper {
    padding: 0 15px; /* Отступ между карточками */
    box-sizing: border-box;
    height: 100%;
}

/* Выравнивание высоты слайдов */
.news-slider .slick-track {
    display: flex !important;
}
.news-slider .slick-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}
.news-slider .news-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.news-slider .news-card__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-slider .news-card__desc {
    flex-grow: 1;
}

/* Стили стрелок (чтобы они были видны) */
.news-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.news-slider .slick-prev { left: -20px; }
.news-slider .slick-next { right: -20px; }

/* Рисуем стрелочки внутри кружков */
.news-slider .slick-arrow::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #293c6c;
    border-right: 2px solid #293c6c;
    position: absolute;
    top: 50%;
    left: 50%;
}
.news-slider .slick-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.news-slider .slick-next::before { transform: translate(-70%, -50%) rotate(45deg); }

/* --- ИСПРАВЛЕННЫЕ ТОЧКИ (DOTS) --- */
.news-slider .slick-dots {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
    position: static; /* Чтобы не накладывались на текст */
}

.news-slider .slick-dots li {
    margin: 0 6px;
    width: 12px;     /* Фиксируем размер контейнера точки */
    height: 12px;
    display: block;
}

/* Самое важное: отключаем стандартный символ точки из slick-theme.css */
.news-slider .slick-dots li button:before {
    display: none !important;
    content: none !important;
}

.news-slider .slick-dots li button {
    font-size: 0;       /* Скрываем цифры 1, 2, 3 */
    line-height: 0;
    display: block;
    width: 12px;        /* Размер самого кружка */
    height: 12px;
    padding: 0;
    cursor: pointer;
    border: none;
    outline: none;
    background: #d1d1d1; /* Цвет неактивной точки (серый) */
    border-radius: 50%;  /* Делаем круг */
    transition: 0.3s;
    opacity: 1;          /* Убираем прозрачность от стандартной темы */
}

/* Активная точка */
.news-slider .slick-dots li.slick-active button {
    background: #ffaa00; /* Яркий цвет (или используйте var(--color-gold)) */
    transform: scale(1.2); /* Чуть увеличиваем активную */
}
/* Отключаем Grid только для блока новостей, чтобы слайдер работал корректно */
.layout.news-layout-fix {
    display: block;
    width: 100%; /* На всякий случай явно задаем ширину */
}

/* Если заголовок "Новости" и ссылка "Все новости" разъехались, поправим их: */
.news-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px; /* Отступ до слайдера */
}
    
    /* --- Стили для мини-всплывашки (для Кровли) v2 --- */
    
    /* Делаем родительский li "базой" для позиционирования */
    .catalog__menu-list li {
        position: relative;
    }

    /* Само всплывающее окошко */
    .mini-popup {
        display: none; /* Скрыто по умолчанию */
        position: absolute;
        top: 0;        /* Выравниваем по верху родительского пункта */
        right: 100%;   /* Прижимаем к левому краю пункта */
        
        background: #fff;
        width: 260px;  /* Чуть шире */
        padding: 10px; /* Отступы внутри контейнера */
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15); /* Мягкая тень как у основного меню */
        border: 1px solid rgba(0,0,0,0.05);
        z-index: 102;  /* Поверх всего */
        margin-right: 10px; /* Отступ от основного меню */
    }

    /* Стрелочка-указатель (треугольник справа от всплывашки) */
    .mini-popup::after {
        content: '';
        position: absolute;
        top: 20px; /* Высота треугольника */
        right: -6px;
        margin-top: -6px;
        width: 12px;
        height: 12px;
        background: #fff;
        transform: rotate(45deg);
        border-right: 1px solid rgba(0,0,0,0.05);
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    /* "Невидимый мост", чтобы меню не закрывалось при движении мыши */
    .mini-popup::before {
        content: '';
        position: absolute;
        top: 0;
        right: -20px; 
        width: 20px;
        height: 100%;
        background: transparent;
    }

    /* Показываем при наведении */
    .catalog__menu-list li:hover .mini-popup {
        display: block;
        animation: fadeInLeft 0.2s ease forwards;
    }

    /* --- ССЫЛКИ ВНУТРИ (Доборные элементы, Фасонные изделия) --- */
    .mini-popup a {
        display: flex !important;           /* Включаем флекс для выравнивания */
        align-items: center !important;
        justify-content: space-between !important; /* Текст слева, стрелка справа */
        width: 100% !important;
        box-sizing: border-box !important;
        
        padding: 12px 15px !important;      /* Просторные отступы */
        margin-bottom: 2px;
        
        /* Шрифт и Цвет */
        font-family: 'Commissioner', sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;        /* Жирный шрифт как в основном меню */
        color: #293c6c !important;          /* Ваш фирменный темно-синий */
        text-decoration: none !important;
        
        border-radius: 8px;
        transition: all 0.2s ease;
        background: transparent;
        border: 1px solid transparent !important;
    }
    
    .mini-popup a:last-child { margin-bottom: 0; }

    /* Добавляем маленькую стрелочку внутри пунктов (как вы просили ранее) */
    .mini-popup a::after {
        content: '' !important;
        display: block !important;
        width: 6px;
        height: 6px;
        border-right: 2px solid #e19e3a; /* Оранжевая стрелка */
        border-top: 2px solid #e19e3a;
        transform: rotate(45deg);
        opacity: 0.6;
        transition: 0.2s;
    }

    /* Ховер эффект (наведение мышкой) */
    .mini-popup a:hover {
        background: #f4f6f9 !important;     /* Светлый фон */
        color: #293c6c !important;          /* Текст остается синим */
        padding-left: 20px !important;      /* Сдвиг текста вправо */
    }
    
    /* При наведении стрелочка становится ярче и двигается */
    .mini-popup a:hover::after {
        opacity: 1;
        transform: rotate(45deg) translateX(2px);
    }

    /* Анимация плавного появления */
    @keyframes fadeInLeft {
        from { opacity: 0; transform: translateX(-10px); }
        to { opacity: 1; transform: translateX(0); }
    }
 
/* --- Big Sale Section --- */
.section-big-sale {
    max-width: 100%; 
    margin: 0 auto;
    /* УВЕЛИЧИЛИ отступы, как в Рекомендуемых (сверху/снизу больше воздуха) */
    padding: clamp(60px, 8vh, 100px) clamp(10px, 2vw, 30px);
    min-height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(30px, 5vh, 60px); /* Увеличили отступ до кнопки ВАУ ЦЕНЫ */
    font-family: 'Commissioner', sans-serif;
    box-sizing: border-box;
}

/* Жесткая сетка: ровно 6 колонок */
.bs-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: clamp(10px, 1.5vw, 25px); /* Увеличили расстояние между карточками (как в Рекомендуемых) */
    width: 100%;
    align-items: stretch;
}

.bs-cards { 
    display: contents; 
}

/* Главный баннер */
.bs-banner {
    width: 100%; 
    min-height: clamp(450px, 75vh, 900px); /* Значительно увеличили баннер для огромных мониторов */
    background: linear-gradient(0deg, rgba(31, 36, 64, 0.40) 0%, rgba(31, 36, 64, 0.40) 100%), url('/img/big-sale-banner.webp') center/cover no-repeat;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: clamp(20px, 3vw, 40px) clamp(15px, 2vw, 30px);
    box-sizing: border-box;
}

.bs-banner-text {
    text-align: center;
    margin-bottom: clamp(20px, 3vh, 40px);
}

.bs-banner-text span {
    display: block;
    color: white;
    font-size: clamp(22px, 2.5vw, 46px); /* Текст баннера стал массивнее */
    text-transform: uppercase;
    line-height: 1.2;
}

.bs-banner-text .bs-bold { font-weight: 700; }
.bs-banner-text .bs-light { font-weight: 500; }

.bs-btn-download {
    width: 100%;
    padding: clamp(15px, 2vh, 25px);
    background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%), #040404;
    border-radius: 10px;
    color: white;
    font-size: clamp(16px, 1.8vw, 26px); /* Кнопка скачивания прайса стала крупнее */
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bs-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 90, 41, 0.4);
}

/* Карточки товаров */
.bs-card {
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vh, 18px); /* Воздух внутри карточки */
    
    /* Добавляем белую плашку (фон) для всей карточки, чтобы текст всегда был виден */
    background: #ffffff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: clamp(15px, 2vw, 30px);
    box-sizing: border-box;
}

.bs-card-img {
    width: 100%;
    height: clamp(150px, 25vh, 400px); /* Уменьшили высоту, так как добавили паддинги родителю */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
}

.bs-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Красивое увеличение картинки при наведении мышки */
.bs-card:hover .bs-card-img img {
    transform: scale(1.12); 
}

.bs-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: clamp(20px, 2vw, 30px); /* Иконка избранного увеличена */
    height: clamp(20px, 2vw, 30px);
    background: url('/img/Star_cart.svg') no-repeat center/contain;
    cursor: pointer;
    z-index: 10 !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.bs-fav:hover {
    transform: scale(1.18);
}

.bs-badge {
    position: absolute;
    /* Прижимаем вплотную к правому нижнему углу */
    bottom: 15px; 
    right: 15px;
    /* Делаем отступы чуть больше, чтобы плашка смотрелась массивно, как на картинке */
    padding: clamp(8px, 1.2vw, 16px) clamp(16px, 2vw, 28px); 
    background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%), #5B5B5B;
    box-shadow: none; /* Убираем тень, так как плашка теперь встроена в угол */
    border-radius: 50px; /* Скругляем все углы */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.bs-badge span {
    color: white;
    font-size: clamp(16px, 1.8vw, 28px); /* Сделали шрифт крупнее и заметнее */
    font-weight: 600;
}

.bs-badge img {
    width: clamp(16px, 1.8vw, 28px); /* Огонек пропорционально растет вместе с текстом */
    height: clamp(16px, 1.8vw, 28px);
}

/* Информация о товаре */
.bs-prices {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 4px;
    margin-top: clamp(10px, 1.5vh, 15px);
}

.bs-price-new {
    color: #3284CF;
    font-size: clamp(22px, 2.5vw, 42px); /* УВЕЛИЧИЛИ ценник как в Рекомендуемых */
    font-weight: 700;
    line-height: 1;
}

.bs-price-old {
    color: #3B3B3B;
    font-size: clamp(14px, 1.6vw, 24px); /* Старая цена пропорционально выросла */
    font-weight: 500;
    text-decoration: line-through;
    line-height: 1.1;
}

.bs-stock, .rec-card-stock {
    color: #4487C4;
    font-size: clamp(14px, 1.5vw, 22px);
    font-weight: 400;
}
.bs-stock.stock-yes, .rec-card-stock.stock-yes {
    color: #16a34a !important;
}
.bs-stock.stock-no, .rec-card-stock.stock-no {
    color: #94a3b8 !important;
}
.bs-stock.stock-order, .rec-card-stock.stock-order {
    color: #f59e0b !important;
}

.bs-name {
    color: black;
    font-size: clamp(15px, 1.6vw, 26px);
    font-weight: 500;
    min-height: clamp(48px, 6vh, 80px);
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.bs-btn-buy {
    width: 100%;
    height: clamp(45px, 6vh, 70px);
    margin-top: auto; 
    background: linear-gradient(37deg, #3284CF 0%, #0374DB 100%);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: clamp(16px, 1.8vw, 28px);
    font-weight: 400;
    text-decoration: none;
    text-transform: capitalize;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bs-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 132, 207, 0.4);
}

.bs-btn-buy img {
    width: clamp(20px, 2vw, 32px);
    height: clamp(20px, 2vw, 32px);
    object-fit: contain;
}

/* Кнопка "Вау цены" */
.bs-bottom {
    display: flex;
    justify-content: center;
    margin-top: 0; 
}

.bs-wow {
    width: 100%;
    max-width: clamp(300px, 35vw, 500px);
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(16px, 2.5vh, 24px) clamp(30px, 5vw, 60px);
    border-radius: 20px;
    outline: 2px #E85A29 solid;
    outline-offset: -2px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #E85A29;
    font-size: clamp(22px, 2.2vw, 34px); /* Текст ВАУ стал заметнее */
    font-weight: 500;
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bs-wow img {
    width: 15px;
    height: 20px;
    display: inline-block;
}

.bs-wow:hover {
    background-color: #E85A29;
    color: #ffffff;
}

.bs-wow:hover img {
    filter: brightness(0) invert(1);
}

/* --- Адаптив --- */
@media (max-width: 1200px) {
    .bs-row { grid-template-columns: repeat(3, 1fr); }
    .section-big-sale { min-height: auto; }
}

@media (max-width: 768px) {
    .section-big-sale { padding: 50px 15px; }
    .bs-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .bs-row { grid-template-columns: 1fr; }
}

/* --- Scroll Animations Utility --- */
.anim-el {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.anim-el.anim-fade-up {
    transform: translateY(60px);
}
.anim-el.anim-fade-left {
    transform: translateX(60px);
}
.anim-el.anim-fade-right {
    transform: translateX(-60px);
}
.anim-el.anim-fade-down {
    transform: translateY(-60px);
}
.anim-el.anim-zoom {
    transform: scale(0.92);
}
.anim-el.in-view {
    opacity: 1;
    transform: none; 
}

/* Специфический фикс для карточки новостей, чтобы вернуть её по вертикали (она позиционируется абсолютно) */
.news-c-card.anim-el.in-view {
    transform: translateY(-50%) scale(1);
}
@media (max-width: 992px) {
    .news-c-card.anim-el.in-view {
        transform: none;
    }
}


/* === ЭФФЕКТ СВЕТЛОГО СТЕКЛА КАК НА СКРИНШОТЕ (ТОЛЬКО ДЛЯ ГЛАВНОЙ СТРАНИЦЫ) === */
.main-page .hm-city-dropdown {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}



/* --- Стили шапки и слайдера на главной странице --- */
.main-page .header-modern-new {
    background: transparent !important;
    position: absolute !important;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw !important;
    margin-left: 0 !important;
    z-index: 1000;
}
@media (max-width: 1050px) {
    .main-page .header-modern-new {
        background: #10142A !important;
        position: relative !important;
        left: auto;
        transform: none;
    }
    .main-page main.main {
        margin-top: 0 !important;
    }
}
.smn-slide {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
}
.slider-modern-new .slick-dots {
    position: absolute;
    bottom: 40px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    z-index: 10;
    display: flex !important;
    justify-content: center;
    gap: 16px;
}
.slider-modern-new .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}
.slider-modern-new .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 8px;
    height: 8px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: rgba(217, 217, 217, 0.20);
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.slider-modern-new .slick-dots li button:before {
    display: none;
}
.slider-modern-new .slick-dots li.slick-active button {
    background: rgba(228, 228, 228, 0.50);
    transform: none;
}


/* --- Customer Reviews Section (Адаптивный Full-Screen + Увеличенные элементы) --- */
.section-reviews-custom {
    background: #fff;
    /* Убираем жесткие отступы и делаем их адаптивными */
    padding: clamp(30px, 4vh, 60px) clamp(15px, 3vw, 40px) !important;
    font-family: 'Commissioner', sans-serif;
    
    /* Растягиваем на всю ширину и высоту экрана */
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Выравнивание по центру по вертикали */
    overflow: hidden;
}

/* Растягиваем контент на всю ширину экрана */
.rev-head, .rev-slider, .rev-btn-wrap {
    width: 100%;
    max-width: 100%; /* Убрали ограничение в 1700px, теперь контент тянется на весь экран */
    margin-left: auto;
    margin-right: auto;
}

.rev-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 3vh, 40px); /* Выровнено с другими заголовками */
}

.rev-title {
    color: #1F2440;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2; /* Увеличено для предотвращения наложения строк */
}

.rev-nav {
    display: flex;
    gap: clamp(12px, 1.5vw, 24px);
}

.rev-nav-btn {
    width: clamp(45px, 5vw, 75px); /* Кнопки навигации крупнее */
    height: clamp(45px, 5vw, 75px);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

/* Масштабируем стрелочки внутри кнопок */
.rev-nav-btn svg {
    width: clamp(12px, 1.5vw, 20px);
    height: auto;
}

.rev-prev { background: rgba(8, 8, 8, 0.05); }
.rev-next { background: rgba(0, 0, 0, 0.20); }
.rev-prev:hover { background: rgba(8, 8, 8, 0.1); }
.rev-next:hover { background: rgba(0, 0, 0, 0.3); }

.rev-slider {
    margin-bottom: clamp(30px, 4vh, 60px);
}

.rev-slider .slick-slide {
    padding: 0 clamp(10px, 1.5vw, 20px);
    outline: none;
}

.rev-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.rev-img-wrap {
    position: relative;
    width: 100%;
    max-width: clamp(200px, 25vw, 400px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: clamp(15px, 2.5vh, 35px);
    background: #D9D9D9;
}

.rev-img-wrap picture,
.rev-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rev-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(36px, 4vw, 70px); /* Кнопка Play тоже выросла */
    height: clamp(42px, 4.5vw, 80px);
    opacity: 0.8;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.rev-play svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rev-card:hover .rev-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.rev-name {
    color: #1F649E;
    font-size: clamp(18px, 2vw, 30px); /* Уменьшено для предотвращения обрезки */
    font-weight: 600;
    margin-bottom: clamp(4px, 1vh, 12px);
    line-height: 1.3;
    padding-bottom: 2px;
    white-space: normal;
}

.rev-city {
    color: #4A5568;
    font-size: clamp(14px, 1.5vw, 20px); /* Уменьшено для предотвращения обрезки */
    font-weight: 500;
    line-height: 1.4;
    padding-bottom: 4px;
    white-space: normal;
}

/* Стили для текстовых отзывов */
.rev-quote-wrap {
    width: 100%;
    max-width: clamp(200px, 25vw, 400px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: clamp(15px, 2.5vh, 35px);
    background: #f5f7fa;
    border: 2px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    box-sizing: border-box;
}

.rev-card:hover .rev-quote-wrap {
    border-color: #4487C4;
    background: #eef2f6;
}

.rev-quote-icon svg {
    width: clamp(40px, 5vw, 80px);
    height: auto;
    transition: 0.3s;
}

.rev-card:hover .rev-quote-icon svg {
    transform: scale(1.1);
}

.rev-text-preview {
    color: #555;
    font-size: clamp(13px, 1.3vw, 16px);
    line-height: 1.4;
    margin-top: 10px;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

/* Модальное окно для полного текста отзыва */
.review-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.review-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(31, 36, 64, 0.6);
    backdrop-filter: blur(4px);
}
.review-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: revModalShow 0.3s ease;
    box-sizing: border-box;
}
@keyframes revModalShow {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Предотвращение сброса скролла наверх при открытии модальных окон */
body.modal-opened,
.page__body.modal-opened {
    position: static !important;
    overflow: hidden !important;
}

button.review-modal-close,
.review-modal-close {
    all: unset !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #F4F4F4 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    color: #64748b !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    text-align: center !important;
}
button.review-modal-close:hover,
.review-modal-close:hover {
    background: #E85A29 !important;
    color: #FFFFFF !important;
    transform: rotate(90deg) !important;
}
button.review-modal-close svg,
.review-modal-close svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    display: block !important;
    pointer-events: none !important;
}
.review-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.review-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f7fa;
    border: 2px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.review-modal-avatar svg {
    width: 40px;
    height: 40px;
}
.review-modal-name {
    color: #4487C4;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Commissioner', sans-serif;
}
.review-modal-city {
    color: #787878;
    font-size: 18px;
    margin-bottom: 24px;
    font-family: 'Commissioner', sans-serif;
}
.review-modal-text {
    color: #1F2440;
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    font-family: 'Commissioner', sans-serif;
    white-space: pre-wrap;
    text-align: left;
    width: 100%;
}

.rev-btn-wrap {
    display: flex;
    justify-content: flex-start;
}

.rev-btn {
    padding: clamp(14px, 2vh, 24px) clamp(30px, 4vw, 70px); /* Кнопка "Оставить отзыв" массивная */
    background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%), #BABABA;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: clamp(18px, 1.8vw, 30px);
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.rev-btn:hover {
    transform: scale(1.03);
}

/* --- Адаптив --- */
@media (max-width: 1200px) {
    .section-reviews-custom { min-height: auto; } /* Снимаем привязку 100vh на экранах поменьше */
}
@media (max-width: 992px) {
    .rev-head { align-items: center; }
}
@media (max-width: 600px) {
    .section-reviews-custom { padding: 50px 15px !important; }
    .rev-head { flex-direction: column; gap: 20px; align-items: flex-start; }
    .rev-nav { align-self: flex-end; }
    .rev-btn-wrap { justify-content: center; }
}


/* --- New News Section (Адаптивный Full-Screen) --- */
.section-news-custom {
    padding: 0 !important;
    background: #f8fafc !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

.news-c-head {
    max-width: 100%;
    margin: 0 auto clamp(20px, 3vh, 40px);
    /* Оставляем отступы только здесь, чтобы текст заголовка не прилипал к монитору */
    padding: 0 clamp(15px, 3vw, 40px); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.news-c-title {
    color: #1F2440;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2; /* Добавлено для предотвращения наложения строк */
}

.news-c-all {
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
    padding: clamp(12px, 1.5vw, 16px) clamp(20px, 2.5vw, 32px);
    border: 1px solid #1F2440;
    border-radius: 4px;
    color: #1F2440;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    text-decoration: none;
    transition: 0.3s;
}

.news-c-all:hover {
    background: #1F2440;
    color: #fff;
}

.news-c-all:hover svg path {
    stroke: #fff;
}

.news-c-body {
    max-width: 100%;
    margin: 0 auto;
    /* ИСПРАВЛЕНО: Убрали боковые отступы (0 вместо clamp), чтобы растянуть картинки */
    padding: 0; 
    box-sizing: border-box;
}

.news-c-hero {
    width: 100%;
    /* ИСПРАВЛЕНО: Уменьшили высоту главного баннера с 65vh до 45vh */
    height: clamp(300px, 45vh, 600px);
    background: url('/img/news-main.png') center/cover no-repeat;
    position: relative;
    /* ИСПРАВЛЕНО: Убрали скругления углов */
    border-radius: 0; 
    overflow: hidden;
}

.news-c-card {
    position: absolute;
    right: clamp(40px, 5vw, 100px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(400px, 40vw, 650px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: clamp(30px, 4vw, 50px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vh, 40px);
    z-index: 2;
}

.news-c-card-title {
    color: #000;
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 500;
    line-height: 1.3;
}

.news-c-card-desc {
    color: #000;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 300;
    line-height: 1.4;
}

.news-c-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.news-c-arrow {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.news-c-arrow:hover { opacity: 1; transform: scale(1.1); }

.news-c-grid {
    display: flex;
    width: 100%;
    /* ИСПРАВЛЕНО: Убрали скругления углов */
    border-radius: 0; 
    overflow: hidden;
}

.news-c-item {
    flex: 1 1 0;
    /* ИСПРАВЛЕНО: Уменьшили высоту нижних карточек с 35vh до 25vh */
    height: clamp(150px, 25vh, 350px);
    position: relative;
    padding: clamp(20px, 2.5vw, 40px);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: left;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
}

.news-c-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    transition: background 0.3s ease;
}

.news-c-item.bg-dark::before { background: linear-gradient(0deg, rgba(31, 36, 64, 0.80) 0%, rgba(31, 36, 64, 0.80) 100%); }
.news-c-item.bg-orange::before { background: linear-gradient(0deg, rgba(232, 90, 41, 0.80) 0%, rgba(232, 90, 41, 0.80) 100%); }

/* Эффект при наведении на нижние карточки */
.news-c-item:hover::before {
    background: linear-gradient(0deg, rgba(232, 90, 41, 0.90) 0%, rgba(232, 90, 41, 0.90) 100%);
}

.news-c-item-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(24px, 2.5vw, 42px);
    font-weight: 500;
    max-width: 90%;
    line-height: 1.2;
}

.news-c-item.font-light .news-c-item-text { font-weight: 400; }

/* --- АДАПТИВ НОВОСТЕЙ --- */
@media (max-width: 992px) {
    /* Делаем сетку свайпаемой по горизонтали */
    .news-c-grid { 
        display: flex;
        flex-direction: row; 
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px; /* отступ для скроллбара */
        gap: 15px;
    }
    .news-c-grid::-webkit-scrollbar { height: 6px; }
    .news-c-grid::-webkit-scrollbar-track { background: transparent; }
    .news-c-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 10px; }
    
    .news-c-item { 
        flex: 0 0 85%; /* Ширина 85% позволяет видеть следующую карточку (подсказка для свайпа) */
        height: 250px; 
        justify-content: flex-start; 
        text-align: left; 
        scroll-snap-align: start;
    }
    .news-c-hero { height: auto; min-height: 500px; display: flex; align-items: center; justify-content: center; padding: 20px; }
    .news-c-card { position: static; transform: none; width: 100%; max-width: 600px; }
}

/* Для небольших планшетов и телефонов в горизонтальном положении */
@media (max-width: 768px) {
    .news-c-item { height: 200px; padding: 20px; }
    .news-c-item-text { font-size: 20px; }
}

/* Строго для мобильных телефонов ( < 600px ) */
@media (max-width: 600px) {
    .section-news-custom { padding: 40px 0; }
    
    .news-c-head { 
        flex-direction: column; 
        align-items: stretch; /* Кнопка "Все новости" растягивается на всю ширину */
        gap: 15px; 
        padding: 0 15px;
        margin-bottom: 25px;
    }
    
    .news-c-title { 
        font-size: 32px; 
        text-align: center; 
    }
    
    .news-c-all { 
        justify-content: center; 
        font-size: 16px;
        padding: 12px;
    }

    /* Главная новость: разделяем картинку (верх) и текст (низ) */
    .news-c-hero { 
        display: block; 
        padding: 0; 
        min-height: auto; 
        background-position: top center; 
    }
    
    /* Этот невидимый блок "держит" видимую часть картинки на телефоне */
    .news-c-hero::before {
        content: '';
        display: block;
        width: 100%;
        height: 220px; 
    }

    /* Карточка с текстом сливается с общим белым фоном сайта */
    .news-c-card { 
        max-width: 100%;
        border-radius: 0; 
        box-shadow: none; /* Убираем тени для чистоты дизайна */
        padding: 25px 15px;
        gap: 15px;
    }
    
    .news-c-card-title { font-size: 20px; }
    .news-c-card-desc { font-size: 15px; }
}

/* --- Стили для блока Услуги (Адаптивный Full-Screen) --- */
.section-services-tabs {
    background-color: #fff;
    padding: clamp(80px, 10vh, 130px) 0 clamp(40px, 5vh, 80px) 0;
    font-family: 'Commissioner', sans-serif;
    min-height: auto;
    display: flex;
    align-items: center; 
    
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
    
    /* НОВОЕ: Скрываем всё, что пытается вылезти за пределы 100vw */
    position: relative;
    overflow: hidden; 
}

.section-services-tabs > .layout {
    width: 100%;
    max-width: 100%; /* Убираем ограничение в 1400px */
    padding: 0 clamp(15px, 3vw, 40px); /* Добавляем безопасные отступы по краям, чтобы контент не прилипал к монитору */
    margin: 0 auto;
    box-sizing: border-box;
}

.st-title {
    color: #1F2440;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2; /* Добавлено для предотвращения наложения строк */
    margin-bottom: clamp(20px, 3vh, 40px); /* Выровнено с другими заголовками */
}

/* Верхние вкладки */
.sv-nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 24px); /* Адаптивный отступ между кнопками */
    margin-bottom: clamp(40px, 6vw, 80px);
}

.sv-btn {
    flex: 1 1 auto; /* Кнопки равномерно заполняют ширину */
    min-height: clamp(60px, 7vw, 90px);
    padding: clamp(12px, 2vw, 20px) clamp(20px, 3vw, 40px);
    background: #475569;
    border-radius: 8px;
    color: white;
    font-size: clamp(18px, 2.2vw, 32px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sv-btn:hover {
    background: #334155;
}

.sv-btn.active {
    background: linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%), #475569;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(232, 90, 41, 0.25);
}

/* Тело таба услуг */
.sv-body {
    display: none;
    /* НОВОЕ: жестко фиксируем ширину */
    width: 100%; 
    min-width: 0; 
}

.sv-body.active {
    display: flex;
    gap: clamp(50px, 8vw, 150px); 
    align-items: flex-start;
    /* НОВОЕ: запрещаем распирать блок шире экрана */
    width: 100%; 
    max-width: 100%; 
}

/* Левое меню (Виды резки) */
.section-services-tabs .ct-sidebar {
    /* Чуть сузили левое меню, чтобы дать больше места центральному отступу */
    width: clamp(250px, 25%, 350px) !important; 
    padding: 0 !important;
    background: #fff !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
}

.section-services-tabs .ct-sidebar::before {
    display: none !important;
}

.section-services-tabs .ct-sidebar-title {
    color: #1F2440;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: clamp(10px, 2vw, 20px);
    line-height: 1.2;
}

.section-services-tabs .ct-sidebar-link {
    color: black;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 400;
    padding: clamp(12px, 1.5vw, 16px) clamp(16px, 2vw, 20px);
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-services-tabs .ct-sidebar-link:hover,
.section-services-tabs .ct-sidebar-link.active {
    color: #fff;
    background: #E85A29;
    border-color: #E85A29;
}

/* Отключаем виртуальную кнопку "Подробнее" и индикатор слева, которые унаследовались от темного меню каталога */
.section-services-tabs .ct-sidebar-link.active::before,
.section-services-tabs .ct-sidebar-link.active::after {
    content: none;
    display: none !important;
}

/* Правая часть с контентом */
.section-services-tabs .ct-content {
    width: 100% !important;
    padding: 0 !important;
    background: #fff !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Увеличены вертикальные отступы между заголовками и текстом справа */
    gap: clamp(40px, 5vw, 70px); 
    min-width: 0; 
}

.section-services-tabs .ct-inner-content {
    display: none;
    animation: fadeIn 0.4s;
    flex-direction: column;
    gap: clamp(30px, 4vw, 55px);
}

.section-services-tabs .ct-inner-content.active {
    display: flex;
}

.section-services-tabs .ct-intro-text {
    color: black;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 400;
    line-height: 1.5;
    max-width: 95%;
}

.section-services-tabs .ct-section-head {
    color: #E85A29;
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: clamp(15px, 2vw, 25px);
}

/* Блок характеристик (Сетка Карточек) */
.section-services-tabs .ct-specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(15px, 2vw, 25px);
    width: 100%;
}

.section-services-tabs .ct-spec-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    background: #f8f9fa;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.section-services-tabs .ct-spec-name {
    color: #6c757d;
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-services-tabs .ct-spec-val {
    color: #E85A29;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    width: auto;
    border: none;
    padding: 0;
    white-space: nowrap;
}

/* Кнопка "Подробнее" */
.section-services-tabs .ct-link-btn {
    padding: clamp(16px, 2vw, 24px) clamp(70px, 8vw, 120px); /* Увеличена длина (горизонтальный отступ) */
    background: linear-gradient(0deg, #E85A29 0%, #E85A29 100%), linear-gradient(230deg, #E85A29 0%, #E85A29 55%, #FF8000 100%), #BABABA;
    border-radius: 8px;
    color: white;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin-left: auto; /* Выравнивание по правому краю */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-services-tabs .ct-link-btn:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 90, 41, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Адаптив Услуг: Планшеты ( < 992px ) --- */
@media (max-width: 992px) {
    .sv-body.active { 
        flex-direction: column; 
        gap: 25px; /* Уменьшили пустую зону */
    }
    
    /* Превращаем левое меню в горизонтальную скролл-ленту */
    .section-services-tabs .ct-sidebar { 
        width: 100% !important; 
        max-width: 100%; 
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 15px !important;
        gap: 10px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Скрываем скроллбар в Firefox */
    }
    .section-services-tabs .ct-sidebar::-webkit-scrollbar {
        display: none; /* Скрываем скроллбар в Webkit */
    }
    
    .section-services-tabs .ct-sidebar-title {
        display: none; /* Скрываем текстовый заголовок для экономии места */
    }
    
    /* Оформляем ссылки как кнопочки */
    .section-services-tabs .ct-sidebar-link {
        white-space: nowrap;
        border: 1px solid #9A9A9A;
        border-radius: 8px;
        padding: 8px 16px !important;
        font-size: 15px !important;
        border-bottom: 1px solid #9A9A9A !important;
        display: flex;
        align-items: center;
    }
    
    /* Активная кнопочка */
    .section-services-tabs .ct-sidebar-link:hover,
    .section-services-tabs .ct-sidebar-link.active {
        background: #E85A29;
        color: #fff !important;
        border-color: #E85A29 !important;
        padding-left: 16px !important; /* Убираем десктопный сдвиг текста */
    }

    /* Главные вкладки (Резка, Гибка) ставим по 2 в ряд */
    .sv-nav {
        gap: 10px;
        margin-bottom: 30px;
    }
    .sv-btn { 
        flex-basis: calc(50% - 5px); 
        font-size: 16px;
        padding: 15px 10px;
        min-height: 60px;
    }
}

/* --- Адаптив Услуг: Телефоны ( < 600px ) --- */
@media (max-width: 600px) {
    .section-services-tabs { 
        padding: 40px 0; 
        min-height: auto; 
    }
    .sv-btn { 
        font-size: 14px;
        min-height: 50px;
    }
    .section-services-tabs .ct-content {
        gap: 20px;
    }
    .section-services-tabs .ct-section-head {
        font-size: 20px;
    }
    .section-services-tabs .ct-intro-text {
        font-size: 15px;
    }
    .section-services-tabs .ct-spec-name {
        font-size: 14px;
    }
    .section-services-tabs .ct-spec-val { 
        width: 100%; 
        font-size: 15px;
        padding: 8px;
    }
    .section-services-tabs .ct-link-btn { 
        width: 100%; 
        text-align: center; 
        font-size: 18px;
    }
}

/* FIX: Ensure .sv-btn has box-sizing border-box so its padding doesn't push it beyond flex-basis */
.sv-btn {
    box-sizing: border-box;
}

/* FIX: Layout padding for section-services limits the max-width to not overflow screen */
.section-services-tabs > .layout {
    box-sizing: border-box;
    max-width: 100%;
}

/* FIX: box-sizing missing on inner elements causing them to burst layout when width is 100% */
.section-services-tabs .ct-spec-val,
.section-services-tabs .ct-link-btn {
    box-sizing: border-box;
}

/* MOBILE CARD LAYOUT FOR SERVICES SECTION */
@media (max-width: 768px) {
    .section-services-tabs {
        width: 100% !important;
        margin-left: 0 !important;
        background-color: transparent !important;
        padding: 20px 15px !important; 
    }
    .section-services-tabs > .layout {
        background-color: #fff;
        border-radius: 20px;
        padding: 25px 15px !important;
    }
    .section-services-tabs .ct-body, 
    .section-services-tabs .sv-body {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Превращаем сетку кнопок в аккуратный список */
    .section-services-tabs .ct-sidebar {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    .section-services-tabs .ct-sidebar-link {
        flex: 1 1 auto;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #eef2f6 !important;
        border-radius: 0 !important;
        padding: 14px 8px !important;
        font-size: 16px !important;
        color: #1F2440 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        transition: 0.2s ease;
        white-space: normal !important;
        text-align: left !important;
    }
    
    .section-services-tabs .ct-sidebar-link::after {
        content: '→';
        font-size: 16px;
        color: #BABABA;
        transition: transform 0.2s, color 0.2s;
        margin-left: 10px;
    }

    .section-services-tabs .ct-sidebar-link:hover,
    .section-services-tabs .ct-sidebar-link.active {
        color: #E85A29 !important;
        font-weight: 600 !important;
        background: transparent !important;
        border-bottom: 1px solid #eef2f6 !important;
    }
    
    .section-services-tabs .ct-sidebar-link.active::after {
        color: #E85A29;
        transform: translateX(4px);
    }
}

/* === MODERN SLICK DOTS RESET & STYLING === */
.slick-dots {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 16px auto 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    position: static !important;
    box-sizing: border-box !important;
    z-index: 5 !important;
}
.slick-dots li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
}
.slick-dots li button {
    display: block !important;
    width: 8px !important;
    min-width: 8px !important;
    max-width: 24px !important;
    height: 8px !important;
    min-height: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #cbd5e1 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}
.slick-dots li button:before {
    display: none !important;
    content: '' !important;
}
.slick-dots li.slick-active button {
    width: 24px !important;
    border-radius: 12px !important;
    background: #E85A29 !important;
}

/* === MOBILE FIX FOR BIG SALE (ВАУ ЦЕНЫ) AND RECOMMENDED SECTIONS === */
@media (max-width: 768px) {
    /* Section Big Sale / Вау цены */
    .section-big-sale {
        padding: 30px 15px !important;
        gap: 20px !important;
        overflow: hidden !important;
    }
    .bs-row {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .bs-banner {
        width: 100% !important;
        min-height: 220px !important;
        max-height: 280px !important;
        padding: 24px 16px !important;
        border-radius: 14px !important;
        justify-content: flex-end !important;
        box-sizing: border-box !important;
    }
    .bs-banner-text {
        margin-bottom: 14px !important;
    }
    .bs-banner-text span {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }
    .bs-btn-download {
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    .bs-cards,
    .bs-cards.slick-initialized,
    .rec-cards,
    .rec-cards.slick-initialized {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        position: relative !important;
    }
    .bs-cards .slick-slide,
    .rec-cards .slick-slide {
        padding: 0 6px !important;
        box-sizing: border-box !important;
        height: auto !important;
        display: block !important;
    }
    .bs-cards .slick-track,
    .rec-cards .slick-track {
        display: flex !important;
        align-items: stretch !important;
    }
    .bs-cards .slick-slide > div,
    .rec-cards .slick-slide > div {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Карточка Вау-цен (.bs-card) */
    .bs-card {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 16px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08) !important;
        height: 100% !important;
    }
    .bs-card-img {
        width: 100% !important;
        height: 180px !important;
        min-height: 180px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 10px !important;
    }
    .bs-card-img img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
    .bs-badge {
        bottom: 10px !important;
        right: 10px !important;
        padding: 6px 14px !important;
    }
    .bs-badge span {
        font-size: 14px !important;
    }
    .bs-badge img {
        width: 14px !important;
        height: 14px !important;
    }
    .bs-prices {
        margin-top: 4px !important;
        gap: 2px !important;
    }
    .bs-price-new {
        font-size: 22px !important;
        line-height: 1.1 !important;
    }
    .bs-price-old {
        font-size: 14px !important;
    }
    .bs-stock {
        font-size: 14px !important;
        margin-top: 2px !important;
    }
    .bs-name {
        font-size: 15px !important;
        line-height: 1.25 !important;
        min-height: auto !important;
        margin: 4px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .bs-btn-buy {
        width: 100% !important;
        height: 44px !important;
        margin-top: 8px !important;
        font-size: 16px !important;
        border-radius: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .bs-bottom {
        margin-top: 16px !important;
    }
    .bs-wow {
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 18px !important;
        border-radius: 14px !important;
    }

    /* Section Recommended / Рекомендуем для вас */
    .section-recommended {
        padding: 30px 15px !important;
        overflow: hidden !important;
    }
    .rec-title {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin-bottom: 14px !important;
    }
    .rec-container {
        gap: 14px !important;
    }
    .rec-card {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 12px !important;
        box-sizing: border-box !important;
        background: transparent !important;
        height: 100% !important;
    }
    .rec-card > div,
    .rec-card-top {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .rec-card-img-wrap {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        max-height: 220px !important;
        min-height: 180px !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
        position: relative !important;
        background: #ffffff !important;
        box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .rec-card-img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
    .rec-badge {
        bottom: 10px !important;
        right: 10px !important;
        padding: 5px 12px !important;
        font-size: 11px !important;
    }
    .rec-info-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 100% !important;
    }
    .rec-price-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
    .rec-card-price {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        line-height: 1.1 !important;
    }
    .rec-card-stock {
        font-size: 14px !important;
        color: #16a34a !important;
    }
    .rec-card-name {
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
        min-height: auto !important;
        margin: 4px 0 0 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .rec-btn-buy {
        width: 100% !important;
        height: 44px !important;
        margin-top: 6px !important;
        font-size: 16px !important;
        border-radius: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* --- Растягиваем блок Карты на весь экран --- */
.section-map-new {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Растягиваем контейнер внутри карты */
.section-map-new .fn-container {
    max-width: 100% !important; /* Убрали ограничение в 1700px, теперь карта тянется на всю ширину */
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 30px) !important; /* Безопасные боковые отступы, как в других блоках */
}

/* Настраиваем пропорции самой карты */
.fn-map-wrap {
    width: 100%;
    height: auto !important;
    /* Жизненно важно: сохраняем пропорцию 2 к 1. Это не даст точкам городов "съехать" с карты при растяжении экрана */
    aspect-ratio: 2 / 1; 
    min-height: 400px;
}

/* Адаптив для планшетов и телефонов */
@media (max-width: 992px) {
    .fn-map-wrap {
        aspect-ratio: auto;
        height: auto !important;
        min-height: 500px;
    }
}


                /* Убираем панель действий админа в теле страницы */
                .padmin-actions, .about-breadcrumbs { display: none !important; }

                .section_about {
                    padding: clamp(40px, 5vw, 80px) 0 0;
                    margin: 0;
                    font-family: 'Commissioner', sans-serif;
                    position: relative;
                    z-index: 1;
                    min-height: 65vh; /* На 4К растягивается по высоте */
                    width: 100vw !important;
                    margin-left: calc(-50vw + 50%) !important;
                    box-sizing: border-box;
                    background: #F9F9F9;
                }
                /* Выравнивание ширины контента по шапке сайта */
                .section_about .layout,
                .about-video-section .layout {
                    width: 100% !important;
                    max-width: var(--page-max-width, 1440px) !important;
                    margin: 0 auto !important;
                    padding-left: clamp(10px, 4vw, 42px) !important;
                    padding-right: clamp(10px, 4vw, 42px) !important;
                    box-sizing: border-box !important;
                }
                .about-header {
                    position: relative;
                    z-index: 2;
                }
                .about-hero-group {
                    position: relative;
                    z-index: 1;
                }
                .about-watermark {
                    position: absolute;
                    top: 0;
                    right: 0;
                    height: 100%; /* Жестко привязываем высоту к концу подзаголовка! */
                    width: auto;
                    max-width: 45%;
                    z-index: -1;
                    pointer-events: none;
                }
                .about-watermark img {
                    height: 100%;
                    width: auto;
                    object-fit: contain;
                    object-position: right top;
                }
                .about-breadcrumbs {
                    display: inline-flex;
                    align-items: center;
                    gap: 12px;
                    font-size: 16px;
                    color: #000;
                    margin-bottom: clamp(30px, 4vw, 60px);
                }
                .about-breadcrumbs a {
                    color: #000;
                    text-decoration: none;
                }
                .about-title-main {
                    font-size: clamp(28px, 3.5vw, 60px); /* Увеличено для широких экранов */
                    font-weight: 600;
                    text-transform: uppercase;
                    color: #000;
                    max-width: 1600px; /* Увеличено для широких экранов */
                    margin-bottom: clamp(30px, 5vw, 100px);
                    line-height: 1.2;
                }
                .about-title-sub {
                    font-size: clamp(22px, 2.5vw, 40px); /* Увеличено для широких экранов */
                    font-weight: 600;
                    text-transform: uppercase;
                    color: #4487C4;
                    max-width: 1600px; /* Увеличено для широких экранов */
                    margin-bottom: clamp(40px, 5vw, 100px);
                    line-height: 1.3;
                }
                .about-text-content {
                    font-size: clamp(16px, 1.5vw, 24px);
                    font-weight: 400;
                    line-height: 1.5;
                    color: #000;
                    max-width: 1600px; /* Увеличено для широких экранов */
                    margin-bottom: clamp(40px, 5vw, 80px);
                }
                .about-principles {
                    margin-top: clamp(60px, 8vw, 120px);
                    margin-bottom: clamp(40px, 5vw, 80px);
                }
                .about-principles-title {
                    font-size: clamp(32px, 4vw, 48px);
                    font-weight: 600;
                    text-transform: uppercase;
                    color: #000;
                    margin-bottom: clamp(20px, 3vw, 40px);
                }
                .about-principle-item {
                    display: flex;
                    align-items: flex-start;
                    gap: 15px;
                    margin-bottom: 20px;
                }
                .about-principle-check {
                    color: #E85A29;
                    font-size: clamp(24px, 2.5vw, 32px);
                    font-weight: 600;
                    flex-shrink: 0;
                    margin-top: -2px;
                }
                .about-principle-text {
                    color: #4487C4;
                    font-size: clamp(20px, 2.5vw, 32px);
                    font-weight: 600;
                    text-transform: uppercase;
                }
                .about-video-section {
                    padding-bottom: 80px;
                    min-height: 35vh; /* На 4К растягивает этот блок по длине экрана */
                    position: relative;
                    z-index: 1;
                    width: 100vw !important;
                    margin-left: calc(-50vw + 50%) !important;
                    box-sizing: border-box;
                    background: #F9F9F9;
                }
                .about-video-slider {
                    width: 100%;
                    max-width: 100%;
                    margin: 0 auto;
                    /* overflow: hidden; can sometimes cut off box shadows, but usually slick-slider container is okay */
                }
                .about-video-slider .slick-list {
                    padding: 60px 0 !important;
                    overflow: hidden !important;
                }
                .about-video-slide {
                    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
                    transform: scale(0.85); /* Боковые видео уменьшены */
                    opacity: 0.6;
                    position: relative;
                    /* Убрали margin: 0 -6%, так как он ломал расчеты Slick! */
                    z-index: 1 !important; /* Боковые слайды всегда снизу */
                }
                .about-video-overlay {
                    position: absolute;
                    top: 0; left: 0; right: 0; bottom: 0;
                    z-index: 10;
                    background: rgba(0,0,0,0.4); /* Сильное затемнение боковых */
                    border-radius: 16px;
                    cursor: pointer;
                    transition: opacity 0.5s ease;
                }
                .about-video-slide.slick-center {
                    transform: scale(1.2); /* Центральное очень большое, перекрывает боковые */
                    opacity: 1;
                    z-index: 50 !important; /* Строго поверх остальных! */
                }
                .about-video-slide.slick-center .about-video-iframe-wrapper {
                    box-shadow: 0px 20px 50px rgba(0,0,0,0.6); /* Глубокая тень */
                }
                .about-video-slide.slick-center .about-video-overlay {
                    opacity: 0;
                    /* Оставляем pointer-events: auto чтобы ловить свайпы прямо по видео! */
                }
                .about-video-slide.is-playing .about-video-overlay {
                    pointer-events: none;
                    display: none;
                }
                .about-video-iframe-wrapper {
                    position: relative;
                    padding-bottom: 56.25%;
                    height: 0;
                    border-radius: 16px;
                    overflow: hidden;
                    box-shadow: 0px 10px 20px rgba(0,0,0,0.2);
                    background: #000;
                }
                .about-video-iframe-wrapper iframe {
                    position: absolute;
                    top: 0; left: 0; width: 100%; height: 100%;
                    border: 0;
                }
                
                @media (max-width: 1200px) {
                    .about-video-slide.slick-center { transform: scale(1.1); }
                }
                @media (max-width: 992px) {
                    .about-video-slide { 
                        transform: scale(0.92); 
                        opacity: 0.4; 
                        padding: 0 10px; /* Добавляем зазоры между видео, по которым отлично срабатывает свайп! */
                    }
                    .about-video-slide.slick-center { transform: scale(1); opacity: 1; }
                }
                @media (max-width: 768px) {
                    .section_about .layout, .about-video-section .layout {
                        padding-left: clamp(10px, 4vw, 20px) !important;
                        padding-right: clamp(10px, 4vw, 20px) !important;
                    }
                    .about-title-main {
                        font-size: 26px;
                        margin-bottom: 20px;
                    }
                    .about-title-sub {
                        font-size: 18px;
                        margin-bottom: 30px;
                    }
                    .about-text-content {
                        font-size: 15px;
                        margin-bottom: 40px;
                        line-height: 1.6;
                    }
                    .about-principles {
                        margin-top: 50px;
                        margin-bottom: 50px;
                    }
                    .about-principles-title {
                        font-size: 24px;
                        margin-bottom: 25px;
                    }
                    .about-principle-text {
                        font-size: 16px;
                    }
                    .about-principle-check {
                        font-size: 20px;
                        margin-top: 0;
                    }
                    .about-principle-item {
                        margin-bottom: 25px;
                    }
                    .about-watermark {
                        height: 250px;
                        right: 0;
                        max-width: 50%;
                        opacity: 0.2; /* Субтильно на мобильных, чтобы не мешать чтению */
                    }
                    .about-video-section {
                        padding-bottom: 40px;
                    }
                    .about-video-slider .slick-list {
                        padding: 30px 0 !important; /* Меньше отступов на мобильных */
                    }
                    .about-video-overlay {
                        background: rgba(0,0,0,0.6); /* Более сильное затемнение боковых на мобильных для акцента на центре */
                    }
                }
                @media (max-width: 992px) {
                    .about-video-slide {
                        margin: 0 10px; /* Отключаем наложение на планшетах/мобилках */
                        transform: scale(0.9);
                    }
                    .about-video-slide.slick-center {
                        transform: scale(1.05);
                    }
                }



/* --- Callback Modal Styles --- */
.callback-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.callback-modal-overlay.active {
    display: flex;
    animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.callback-modal-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px 28px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    font-family: 'Commissioner', sans-serif;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

button.callback-modal-close {
    all: unset !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #F4F4F4 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    color: #666666 !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}
button.callback-modal-close:hover {
    background: #E85A29 !important;
    color: #FFFFFF !important;
}
button.callback-modal-close svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    display: block !important;
    pointer-events: none !important;
}

.callback-test-note {
    display: none;
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.callback-test-note.is-visible { display: block; }
.callback-modal-title {
    color: #E85A29;
    font-size: 20px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.35;
    padding-right: 20px;
    word-wrap: break-word;
}

.callback-section-title {
    color: #3B3B3B;
    font-size: 14px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 16px;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.callback-section-title-large {
    font-size: 16px;
}

.callback-field {
    margin-bottom: 10px;
}

.callback-input {
    width: 100%;
    height: 44px;
    background: #FAFAFA;
    border: 1px solid #EFEFEF;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    color: #3B3B3B;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.callback-input::placeholder {
    color: #9F9F9F;
    font-weight: 400;
}
.callback-input.invalid {
    border-color: #e53935 !important;
    background-color: #fff8f8 !important;
}
.callback-field-error {
    color: #e53935;
    font-size: 12px;
    font-family: 'Commissioner', sans-serif;
    margin-top: 4px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease, margin-top 0.25s ease;
}
.callback-field-error.active {
    max-height: 40px;
    opacity: 1;
    margin-top: 6px;
}

.callback-textarea {
    width: 100%;
    min-height: 80px;
    background: #FAFAFA;
    border: 1px solid #EFEFEF;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    color: #3B3B3B;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s, background 0.2s;
}
.callback-textarea::placeholder {
    color: #9F9F9F;
    font-weight: 400;
}
.callback-textarea:focus {
    border-color: #E85A29;
    background: #FFFFFF;
}

/* Delivery row */
.callback-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.callback-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.callback-checkbox-label input { display: none; }

.callback-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid #E85A29;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    flex-shrink: 0;
    transition: background 0.2s;
}
.callback-checkbox-label input:checked + .callback-checkbox-custom {
    background: #E85A29;
}
.callback-checkbox-label input:checked + .callback-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.callback-checkbox-text {
    color: #4A5568;
    font-size: 14px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

.callback-address-wrap {
    display: flex;
    align-items: center;
    background: #FAFAFA;
    border: 1px solid #EFEFEF;
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
    flex: 1;
    max-width: 220px;
}
.callback-address-icon {
    margin-right: 6px;
    display: flex;
    align-items: center;
}
.callback-address-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    color: #3B3B3B;
    width: 100%;
}
.callback-address-input::placeholder {
    color: #718096;
}

/* Attach file */
.callback-attach-row {
    margin-bottom: 12px;
}
.callback-file-label {
    color: #1F649E;
    font-size: 14px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-wrap: break-word;
}
.callback-file-input { display: none; }
/* script.js оборачивает любой input[type=file] в .file («Прикрепить фаил»).
   В модалке заявки своя ссылка — старую плашку прячем, если кэш скрипта ещё старый. */
.callback-file-label .file,
.callback-attach-row .file,
.callback-file-label .file__upload,
.callback-attach-row .file__upload {
    display: contents;
}
.callback-file-label .file__bg,
.callback-attach-row .file__bg {
    display: none !important;
}
.callback-file-name {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
    text-decoration: none;
}

/* Preferred contact method */
.callback-contact-ways {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
.callback-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.callback-radio-label input { display: none; }

.callback-radio-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid #E85A29;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    flex-shrink: 0;
}
.callback-radio-label input:checked + .callback-radio-custom {
    background: #E85A29;
}
.callback-radio-label input:checked + .callback-radio-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.callback-radio-text {
    color: #4A5568;
    font-size: 14px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}
.callback-radio-text.active-text,
.callback-radio-label input:checked ~ .callback-radio-text {
    color: #1F2440;
}
.callback-radio-text.whatsapp-text {
    color: #4A5568;
}

/* Submit button */
.callback-submit-btn {
    background: #E85A29;
    color: white;
    font-size: 18px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    height: 50px;
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 14px;
    transition: background 0.35s ease, opacity 0.25s ease, transform 0.1s;
    word-wrap: break-word;
}
.callback-submit-btn:hover {
    background: #d44e20;
}
.callback-submit-btn:active {
    transform: scale(0.99);
}

/* Agreements — прижаты к левому краю полей формы */
.callback-agreements {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}
.callback-agree-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.callback-agree-item input {
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}
.callback-agree-item .callback-checkbox-custom {
    margin-top: 2px;
}
.callback-agree-item input:checked + .callback-checkbox-custom {
    background: #E85A29;
}
.callback-agree-item input:checked + .callback-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
.callback-agree-text {
    color: #4A5568;
    font-size: 12px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    line-height: 1.35;
    word-wrap: break-word;
}
.callback-agree-text a {
    color: #1F649E;
    font-weight: 500;
    text-decoration: underline;
}
.callback-agree-item.is-invalid .callback-checkbox-custom {
    border-color: #e53935;
    background: #fff8f8;
}
.callback-agree-item.is-invalid .callback-agree-text {
    color: #e53935;
}

/* Slick Carousel Core (Local) */
.slick-slider { position: relative; display: block; box-sizing: border-box; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; -khtml-user-select: none; -ms-touch-action: pan-y; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.slick-list { position: relative; display: block; overflow: hidden; margin: 0; padding: 0; }
.slick-list:focus { outline: none; }
.slick-list.dragging { cursor: pointer; cursor: hand; }
.slick-slider .slick-track, .slick-slider .slick-list { -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
.slick-track { position: relative; top: 0; left: 0; display: block; margin-left: auto; margin-right: auto; }
.slick-track:before, .slick-track:after { display: table; content: ''; }
.slick-track:after { clear: both; }
.slick-loading .slick-track { visibility: hidden; }
.slick-slide { display: none; float: left; height: 100%; min-height: 1px; }
[dir='rtl'] .slick-slide { float: right; }
.slick-slide img { display: block; }
.slick-slide.slick-loading img { display: none; }
.slick-slide.dragging img { pointer-events: none; }
.slick-initialized .slick-slide { display: block; }
.slick-loading .slick-slide { visibility: hidden; }
.slick-vertical .slick-slide { display: block; height: auto; border: 1px solid transparent; }
.slick-arrow.slick-hidden { display: none; }

