

/* Start:/local/templates/bazon/styles.css?178783322067104*/
:root {
    --primary: #F43218;
    --primary-dark: #c8280f;
    --secondary: #0f172a;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius-sm: 0.5rem;
    /* 8px */
    --radius-md: 0.75rem;
    /* 12px */
    --radius-lg: 1rem;
    /* 16px */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe, table {
    max-width: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background: var(--white);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 80rem;
    /* 1280px */
    margin: 0 auto;
    padding: 0 1.25rem;
    /* 20px */
}

/* Breadcrumbs */
.bx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
    overflow: hidden;
    max-width: 100%;
}

.bx-breadcrumb-item {
    white-space: nowrap;
}

.bx-breadcrumb-item-sep {
    margin: 0 0.25rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .bx-breadcrumb {
        font-size: 0.75rem;
        gap: 0.15rem;
    }

    .bx-breadcrumb-item-sep {
        margin: 0 0.15rem;
    }
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-0.125rem);
    /* 2px */
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo-dot {
    color: var(--primary);
    font-size: 1.5rem;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary);
    /* Пункты меню не должны переноситься по словам («О компании», «Вопросы
       и ответы») — при нехватке ширины пусть лучше строка сожмётся по
       отступам (см. правила ниже), чем текст переломится на два ряда. */
    white-space: nowrap;
    flex-shrink: 0;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-link {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Пятый пункт меню («Вопросы и ответы») на обычной ширине контейнера (1280px)
   уже не помещается в одну строку вместе с логотипом, иконками, телефоном и
   кнопкой звонка — раньше при нехватке места слова переносились и шапка
   «плыла» на две строки. До хамбургер-меню (768px) ужимаем отступы и текст
   ступенчато, а не резко. */
@media (max-width: 1360px) {
    .main-nav ul {
        gap: 1.1rem;
    }
    .header-actions {
        gap: 0.7rem;
    }
    .header-actions .btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
    }
    .phone-link {
        font-size: 1rem;
    }
}

@media (max-width: 1180px) {
    .main-nav ul {
        gap: 0.75rem;
    }
    .main-nav a {
        font-size: 0.92rem;
    }
    .header-actions {
        gap: 0.5rem;
    }
    /* На этой ширине телефон текстом уже не помещается рядом со всем
       остальным — оставляем только кнопку звонка и мессенджеры, номер
       остаётся доступен через «Заказать звонок» и в самом хамбургер-меню. */
    .header-actions .phone-link {
        display: none;
    }
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu-close {
    display: none !important;
}

.mobile-menu-contacts {
    display: none !important;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0 0 0 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(45deg, var(--primary), #60a5fa);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    object-fit: cover;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}


/* Features */
.features-section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 37.5rem;
    /* 600px */
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    /* 250px */
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 0.0625rem solid var(--border);
    /* 1px */
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-0.3125rem);
    /* 5px */
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Robust Grid System */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.row.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Mobile Friendly Grid */
@media (max-width: 992px) {
    .row.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .row.grid-3 {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* Slider Fix: Allow clean hover */
.popular-section {
    position: relative;
}

.slider-wrapper {
    padding: 20px;
    margin: -20px;
}

.swiper,
.swiper-container {
    overflow: hidden;
    /* Respect container bounds */
    padding-bottom: 30px;
    /* Space for shadow */
}

.modern-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f1f5f9;
    position: relative;
    /* Ensure overlapping children stay inside if absolute */
    overflow: hidden;
    /* Fix unwanted overflows */
}

/* Catalog Filter Controls */
.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem !important;
    align-items: flex-end;
}

.control-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.catalog-controls .form-control,
.catalog-controls select.form-control,
.catalog-controls .btn {
    width: 100%;
    height: 48px;
    line-height: 1.5;
    padding: 0.375rem 0.75rem;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    margin-top: auto;
    /* Выравнивание по нижнему краю — все на одной линии */
}

.catalog-controls .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SEO-блок после grid подразделов */
.catalog-grid+.modern-card,
.catalog-list+.modern-card {
    margin-top: 2.5rem;
}


/* Product Card Sizing */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-md);
    /* Rounded corners on card */
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    border: 1px solid var(--border);
    overflow: hidden;
    /* Clip everything to rounded corners */
}

/* Allow hover effect without clipping shadow? 
   Conflict: User wants rounded corners AND hover lift.
   Compromise: overflow:hidden on card is okay if shadow is on wrapper or if we accept box-shadow might be slightly clipped if not careful.
   Actually, standard box-shadow works fine with overflow:hidden and border-radius.
*/

.product-img-wrap {
    height: 280px;
    /* Taller as requested */
    width: 100%;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill bleed */
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-image {
    height: 13.75rem;
    /* 220px */
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-image {
    color: var(--text-light);
    font-weight: 500;
}

.product-badge {
    position: absolute;
    top: 0.625rem;
    /* 10px */
    left: 0.625rem;
    /* 10px */
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.625rem;
    /* 4px 10px */
    border-radius: 1.25rem;
    /* 20px */
    font-size: 0.8rem;
    font-weight: 700;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 700;
}

/*.product-price {*/
/*    font-size: 1.4rem;*/
/*    color: var(--primary);*/
/*    font-weight: 800;*/
/*    margin-top: auto;*/
/*}*/

.product-price {
    display: flex;
    align-items: baseline; /* Выравнивает текст по нижней линии шрифта */
    gap: 10px;             /* Отступ между новой и старой ценой */
    margin-top: auto;      /* Сохраняем ваше прижатие к низу карточки */
}

/* Новая актуальная цена (ваши исходные стили) */
.product-price__current {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
}

/* Старая зачеркнутая цена */
.product-price__old {
    font-size: 1.0rem;             /* Меньше, чем основная цена */
    color: #8c8c8c;                /* Нейтральный серый цвет */
    font-weight: 500;              /* Тоньше, чтобы не отвлекать внимание */
    text-decoration: line-through; /* Зачеркивание */
}

.product-price__badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background-color: #e02222; /* Цвет плашки (можно сменить на ваш var(--primary)) */
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;          /* Небольшой отступ от старой цены */
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* SEO Section */
.seo-section {
    padding: 5rem 0;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.seo-image-placeholder {
    width: 100%;
    height: 18.75rem;
    /* 300px */
    background: var(--secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.seo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Feedback */
.feedback-section {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0;
    margin-top: 2rem;
}

.feedback-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feedback-text h2 {
    color: var(--white);
}

.feedback-text p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.feedback-form .form-control {
    background: #ffffff;
    border: 0.0625rem solid #cbd5e1;
    /* 1px */
    color: var(--text-main);
    padding: 0.75rem 1rem;
    /* 12px 16px */
    font-size: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    box-sizing: border-box;
    transition: 0.3s;
}

.feedback-form .form-control::placeholder {
    color: #94a3b8;
}

.feedback-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1875rem rgba(37, 99, 235, 0.2);
    /* 3px */
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-result {
    margin-top: 1rem;
    font-weight: 600;
}

.form-result.success {
    color: #4ade80;
}

.form-result.error {
    color: #f87171;
}

/* Footer */
.footer {
    background: #020617;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 0.0625rem solid #1e293b;
    /* 1px */
}

/* Подписи колонок подвала и заголовок корзины раньше были тегами h4 и h2.
   Эти блоки сквозные, поэтому попадали в структуру заголовков каждой страницы
   сайта и ломали иерархию. Вид сохранён, разметка теперь нейтральная. */
.footer-col h4,
.footer-col-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Swiper Nav */
/* Swiper Nav (Consolidated) */
/* Swiper Nav (Consolidated & Fixed) */
.popular-section .swiper-button-next,
.popular-section .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.popular-section .swiper-button-prev {
    left: 10px;
    /* Inside */
}

.popular-section .swiper-button-next {
    right: 10px;
    /* Inside */
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: 800;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
    color: #fff;
}

/* Slider Fixes */
.swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
    /* Important for padding */
}

.product-card {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Limit Title Lines for Uniformity */
.product-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 700;

    /* Line Clamp - 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6rem;
    /* Force height for 3 lines to align buttons */
    line-height: 1.2;
}

/* Responsive arrows */
@media (max-width: 768px) {
    .popular-section .swiper-button-prev {
        left: 0;
    }

    .popular-section .swiper-button-next {
        right: 0;
    }
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-container,
    .seo-grid,
    .feedback-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-menu-toggle {
        display: block !important;
        width: 1.875rem;
        height: 1.5rem;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #334155 !important;
        margin-bottom: 5px;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Mobile Menu Active State — Fullscreen Overlay */
    .main-nav.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 0;
        z-index: 999;
        align-items: center;
        justify-content: flex-start;
        padding-top: 25vh;
        animation: menuFadeIn 0.25s ease;
    }

    @keyframes menuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-nav.active ul {
        display: flex;
        flex-direction: column !important;
        gap: 1.5rem;
        margin: 0;
        padding: 0;
        text-align: center;
        list-style: none;
    }

    .main-nav.active li {
        text-align: center;
    }

    .main-nav.active a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.4rem;
        font-weight: 700;
        color: #334155;
        border: none;
        text-align: center;
    }

    .main-nav.active a:hover {
        color: var(--primary);
    }

    /* Кнопка закрытия X */
    .mobile-menu-close {
        display: none;
    }

    .main-nav.active .mobile-menu-close {
        display: block !important;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
        background: none;
        border: none;
        font-size: 2rem;
        line-height: 1;
        color: #334155;
        cursor: pointer;
        z-index: 1002;
    }

    /* Контакты в мобильном меню */
    .mobile-menu-contacts {
        display: none;
    }

    .main-nav.active .mobile-menu-contacts {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid #e2e8f0;
        width: 80%;
    }

    .main-nav.active .mobile-menu-contacts .phone-link {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--primary);
    }

    .main-nav.active .mobile-menu-contacts .btn {
        font-size: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        color: #fff;
    }

    .main-nav {
        display: none;
        /* Hide default nav */
    }

    .header-actions {
        display: none !important;
    }
}

/* Fix Delivery Overlap - Force Clear */
.delivery-tariffs-block,
.payment-section,
.process-steps {
    clear: both;
    overflow: hidden;
    /* Force layout context */
    width: 100%;
    display: block;
    position: relative;
}

/* Process Steps Mobile Wrap */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    /* Fix overflow */
}


/* Restored Content Blocks */
.content-block {
    padding: 4rem 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: 0.3s;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.contact-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.modern-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
}

.modern-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Features - Now using Bootstrap */
.features-section {
    padding: 5rem 0;
}

/* ... header ... */

/* ... card ... */

/* Features Grid Removed - using Bootstrap Row */

/* Tariffs Grid - Removed */

.tariff-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.tariff-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tariff-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* RECONSTRUCTED MISSING SECTIONS (Catalog List & Detail) matches Original Design */
.catalog-list .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.product-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.detail-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.detail-col-info {
    flex: 1 1 400px;
    min-width: 0;
    order: 2;
}

.detail-col-gallery {
    flex: 1 1 400px;
    min-width: 0;
    order: 1;
}

@media (min-width: 769px) {
    .detail-col-info { order: 1; }
    .detail-col-gallery { order: 2; }
}

.detail-image {
    background: #f1f5f9;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.detail-image img {
    max-height: 400px;
    mix-blend-mode: multiply;
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.detail-price {
    margin-bottom: 2rem;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.list-group-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
}

.badge {
    padding: 0.3em 0.6em;
    border-radius: 10rem;
    font-size: 75%;
    font-weight: 700;
}

.badge-light {
    background: #f1f5f9;
    color: var(--text-light);
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.catalog-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.catalog-pagination a,
.catalog-pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-main);
    font-weight: 600;
}


/* Delivery Page Spacing */
.delivery-tariffs-block {
    margin-bottom: 4rem;
}

.payment-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Category Card (Custom) */
.category-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-img {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    display: block;
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-body {
    padding: 1.25rem;
    text-align: center;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
}

/* Container Mobile Optimization */
@media (max-width: 576px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100%;
    }

    .catalog-grid,
    .tariffs-grid,
    .payment-grid,
    .features-grid {
        gap: 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    /* Footer Mobile Fix */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Container constraints */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100%;
    }
}

/* End mobile media query */

/* Force Clear and Layout Context for AOS Wrappers */
.delivery-tariffs-block,
.payment-section,
.process-steps {
    display: block;
    width: 100%;
    clear: both;
    overflow: hidden;
    /* Prevent float overlap */
    height: auto;
    position: relative;
    /* Ensure clean separation */
    margin-bottom: 2rem;
}

/* Utilities */
.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.p-0 {
    padding: 0 !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-muted {
    color: #64748b !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-dark {
    color: var(--secondary) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.position-relative {
    position: relative !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

/* Responsive Utility Orders */
@media (max-width: 768px) {
    .order-1 {
        order: 1 !important;
    }

    .order-2 {
        order: 2 !important;
    }
}

@media (min-width: 769px) {
    .order-md-1 {
        order: 1 !important;
    }

    .order-md-2 {
        order: 2 !important;
    }
}

/* DELIVERY PAGE GRID SYSTEM (Custom & Robust) */
.grid-gap-lg {
    gap: 3rem;
}

.grid-gap-md {
    gap: 1.5rem;
}

/* 2 Columns (Hero) */
.d-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* 4 Columns (Steps) */
.d-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* 3 Columns (Payment) */
.d-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Auto Columns (Tariffs) */
.d-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* RESPONSIVE BEHAVIOR */
@media (max-width: 992px) {
    .d-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
    }
}

@media (max-width: 768px) {
    .d-grid-2 {
        grid-template-columns: 1fr;
        /* Stack Hero */
    }

    .hero-image {
        /* order: -1; */
    }

    .d-grid-3 {
        grid-template-columns: 1fr;
        /* Stack Payment */
    }
}

@media (max-width: 576px) {
    .d-grid-4 {
        grid-template-columns: 1fr;
        /* Stack Steps on Phone */
    }

    .d-grid-auto {
        grid-template-columns: 1fr;
        /* Stack Tariffs */
    }

    /* Ensure full width on mobile */
    .delivery-page-wrapper img {
        width: 100%;
        height: auto;
    }

    /* Fix weird squeeze on mobile if legacy styles persist */
    .delivery-page-wrapper {
        width: 100%;
        box-sizing: border-box;
    }
}

/* NEW TARIFF TABLE STYLES */
.tariff-table {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.tariff-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 50px;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}

.tariff-row:last-child {
    border-bottom: none;
}

.tariff-row:hover {
    background: #f8fafc;
}

.tariff-thead {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--secondary);
    border-bottom: 2px solid #e2e8f0;
}

.t-region {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary);
}

.t-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.t-time {
    color: var(--text-light);
}

.t-icon {
    font-size: 1.5rem;
    text-align: center;
}

@media (max-width: 600px) {
    .tariff-thead {
        display: none;
    }

    /* Hide headers on mobile */
    .tariff-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
        padding: 2rem;
    }

    .t-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .t-price {
        font-size: 1.5rem;
    }
}

/* ============================================
   PRODUCT CARD CAROUSEL  
   ============================================ */
.card-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-carousel-img.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
    padding: 0;
}

.carousel-prev {
    left: 6px;
}

.carousel-next {
    right: 6px;
}

.carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-img-wrap:hover .carousel-arrow,
.detail-gallery:hover .carousel-arrow {
    opacity: 1;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    transform: scale(1.3);
}

/* Detail page gallery arrows */
.detail-gallery {
    position: relative;
}

.detail-gallery .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
}

.detail-gallery .carousel-prev {
    left: 12px;
}

.detail-gallery .carousel-next {
    right: 12px;
}

/* Mobile: arrows always visible */
@media (max-width: 768px) {
    .carousel-arrow {
        opacity: 1;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   HEADER TOOLBAR: Filter + Search (2nd row)
   ============================================ */
.header-toolbar {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.6rem 0;
}

.header-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Cascading Filter --- */
.catalog-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #334155;
    cursor: pointer;
    min-width: 130px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.filter-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.filter-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* --- Global Search --- */
.global-search {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.search-field {
    width: 100%;
    padding: 0.5rem 2.2rem 0.5rem 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #334155;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-field::placeholder {
    color: #94a3b8;
}

.search-clear {
    position: absolute;
    right: 10px;
    font-size: 1.3rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

.search-clear:hover {
    color: #334155;
}

/* --- Search Dropdown --- */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    max-height: 440px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.search-group-label {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #334155;
    transition: background 0.15s;
    cursor: pointer;
}

.search-item:hover,
.search-item.active {
    background: #f1f5f9;
}

.search-item-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-meta {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.search-item-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    white-space: nowrap;
}

.search-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.search-loading {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* --- Header Catalog Filter (in toolbar) --- */
.header-catalog-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.filter-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    color: #475569;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.filter-reset-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* --- Search Context Hint --- */
.search-context {
    font-size: 0.75rem;
    color: var(--primary);
    padding: 0.2rem 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Responsive --- */

/* ===== Tablet (max-width: 992px) ===== */
@media (max-width: 992px) {
    .header-toolbar-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .catalog-filter,
    .header-catalog-filter {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-select {
        flex: 1;
        min-width: 100px;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .global-search {
        width: 100%;
    }

    /* Каталог - фильтр в 2 колонки */
    .catalog-controls {
        flex-wrap: wrap;
        gap: 1rem !important;
    }

    .control-group {
        min-width: 0;
        flex: 1 1 calc(50% - 0.5rem);
    }

    /* Герой-секция */
    .hero {
        min-height: 0;
        padding: 3rem 0;
    }
}

/* ===== Mobile (max-width: 768px) ===== */
@media (max-width: 768px) {

    /* --- Глобальные --- */
    .wrapper {
        overflow-x: hidden;
    }

    .container {
        padding: 0 1rem;
    }

    /* --- Header --- */
    .header {
        padding: 0.5rem 0;
    }

    .header-inner {
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 101;
        margin-left: auto;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background: var(--secondary);
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Мобильное меню открытое */
    .main-nav.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 200;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }

    .main-nav.active ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .main-nav.active a {
        font-size: 1.3rem;
    }

    /* --- Header Toolbar --- */
    .header-toolbar-inner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .header-catalog-filter {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-catalog-filter .filter-select {
        width: 100%;
        min-width: 0;
    }

    .header-catalog-filter .filter-btn,
    .header-catalog-filter .filter-reset-btn {
        width: 100%;
    }

    /* --- Каталог фильтр на странице --- */
    .catalog-controls {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .control-group {
        min-width: 0;
        width: 100%;
        flex: none;
    }

    /* --- Герой-секция --- */
    .hero,
    .hero-section {
        min-height: 0;
        padding: 2rem 0;
        overflow: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* --- Каталог Grid --- */
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .catalog-grid .modern-card {
        padding: 0.75rem;
    }

    .catalog-grid .section-image {
        height: 100px;
    }

    /* --- Товарный grid --- */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .product-card .product-img-wrap {
        height: 150px;
    }

    .product-card .product-body {
        padding: 0.75rem;
    }

    .product-card .product-title {
        font-size: 0.85rem;
    }

    .product-card .product-price {
        font-size: 1rem;
    }

    /* --- Detail Page --- */
    .detail-grid-wrapper {
        flex-direction: column !important;
    }

    .detail-grid-wrapper>div {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .detail-col-gallery {
        order: 1 !important;
    }
    .detail-col-info {
        order: 2 !important;
    }

    .product-detail {
        padding: 0.75rem !important;
        margin-top: 0.5rem !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .detail-gallery .main-image {
        min-height: 200px;
        max-height: 350px;
        border-radius: 8px;
    }

    .modern-card {
        padding: 1rem !important;
        border-radius: 8px !important;
    }

    /* Характеристики — текст не выходит за рамки */
    .detail-chars .value {
        word-break: break-all;
        overflow-wrap: anywhere;
        max-width: 55%;
    }

    .detail-chars li {
        font-size: 0.85rem;
        padding: 8px 0;
        gap: 8px;
    }

    /* Теги аналогов / кроссов */
    .crossrefs-list,
    .analogs-list {
        max-width: 100%;
        overflow: hidden;
    }

    .crossref-tag,
    .analog-tag {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
        word-break: break-all;
    }

    /* Кнопка "В корзину" */
    .add-to-cart-btn {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }

    /* --- Breadcrumbs --- */
    .breadcrumb-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.25rem;
    }

    /* --- Секции --- */
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* --- Популярные товары (Swiper) --- */
    .popular-slider .swiper-slide {
        width: 200px;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* --- SEO Bottom Block --- */
    .modern-card.mt-5.p-4 {
        padding: 1rem !important;
    }

    /* --- H1 / H2 sizes --- */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* ===== Small Mobile (max-width: 576px) ===== */
@media (max-width: 576px) {

    .catalog-filter,
    .header-catalog-filter {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .filter-btn {
        grid-column: 1 / -1;
    }

    .filter-select {
        min-width: 0;
    }

    .filter-reset-btn {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
    }

    .header-toolbar {
        padding: 0.5rem 0;
    }

    .search-dropdown {
        border-radius: 8px;
        max-height: 60vh;
    }

    /* Товарный grid в 1 колонку */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Сокращаем отступы */
    .content-block {
        padding: 1rem 0;
    }

    .modern-card {
        padding: 1rem;
        border-radius: 8px;
    }
}

/* ================================
   CART FAB BUTTON
   ================================ */
.cart-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(244, 50, 24, 0.4);
    z-index: 900;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(244, 50, 24, 0.5);
}

.cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #0f172a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.cart-fab, .phone-fab {
    position: fixed;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Раздельное позиционирование, цвета и тени */
.cart-fab {
    bottom: 2rem;
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(244, 50, 24, 0.4);
}
.cart-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(244, 50, 24, 0.5);
}

.phone-fab {
    bottom: 6rem;
    background: #25D366; /* Яркий зеленый цвет */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); /* Зеленая тень */
}
.phone-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Кнопка «Наверх». Третья в стопке плавающих кнопок, поэтому сдержаннее по
   виду: белая с рамкой, появляется только после заметной прокрутки. Позиция
   выше корзины и звонка — 10rem против 6 и 2. */
.to-top-fab {
    position: fixed;
    right: 2rem;
    bottom: 10rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    border: 1px solid var(--border, #e2e8f0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.to-top-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top-fab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* В каталоге плавающие кнопки уезжают влево, чтобы не перекрывать фильтры */
.to-top-fab.left-side {
    right: auto;
    left: 2rem;
}

@media (max-width: 640px) {
    .to-top-fab {
        right: 1rem;
        bottom: 9rem;
        width: 2.75rem;
        height: 2.75rem;
    }
    .to-top-fab.left-side {
        right: auto;
        left: 1rem;
    }
}

/* Общие стили для уведомлений (бейджей) */
.cart-fab-badge, .phone-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #0f172a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

@media (max-width: 768px) {
    /* Базовые параметры кнопок на мобильных */
    .cart-fab, .phone-fab {
        width: 3rem !important;
        height: 3rem !important;
        z-index: 999 !important;
    }

    /* ПО УМОЛЧАНИЮ СПРАВА (Выравниваем строго по правому краю) */
    .cart-fab, .phone-fab {
        right: 1.5rem !important;
        left: auto !important;
    }

    /* Фиксированная высота справа (с фильтром) */
    .cart-fab {
        bottom: 5rem !important;
    }
    .phone-fab {
        bottom: 8.5rem !important;
    }

    /* СПРАВА, НО ВНИЗУ (Без фильтра) */
    .cart-fab.low-position {
        bottom: 2rem !important;
    }
    .phone-fab.low-position {
        bottom: 5.5rem !important;
    }

    /* ВАРИАНТ СЛЕВА (Для каталога) */
    .cart-fab.left-side, .phone-fab.left-side {
        right: auto !important;
        left: 1.5rem !important;
    }
    .cart-fab.left-side {
        bottom: 2rem !important;
    }
    .phone-fab.left-side {
        bottom: 5.5rem !important;
    }
}

/* ================================
   CART MODAL
   ================================ */
.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.cart-modal-overlay.active {
    display: flex;
}

.cart-modal {
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    width: 100%;
    max-width: 36rem;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: cartSlideUp 0.3s ease;
}

@keyframes cartSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-modal-header h2,
.cart-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #64748b;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    gap: 1rem;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: var(--bg-light);
}

.cart-qty {
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
}

.cart-remove-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 1rem;
    margin-left: 0.25rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 1rem;
}

.cart-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

.cart-order-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    font-size: 1rem;
    color: #fff;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-empty p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Cart Order Form */
.cart-order-form h3 {
    margin: 0 0 0.25rem 0;
}

.cart-order-items-summary {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.cart-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
}

.cart-input:focus {
    outline: none;
    border-color: var(--primary);
}

.cart-textarea {
    min-height: 4rem;
    resize: vertical;
}

/* Подписи к полям заказа. Раньше назначение поля показывала только подсказка
   внутри него, и она пропадала при вводе — человек терял, что именно заполняет. */
.cart-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px;
}

/* Согласие на обработку данных */
.cart-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0.25rem 0 0.9rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #64748b;
    cursor: pointer;
}

.cart-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.cart-consent a {
    color: var(--primary);
    text-decoration: underline;
}

.cart-back-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
}

.cart-order-status {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cart-order-status.error {
    color: #ef4444;
}

/* Cart Success */
.cart-success {
    text-align: center;
    padding: 2rem 1rem;
}

.cart-success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Cart Notification Toast */
.cart-notification {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    z-index: 1200;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Add to cart button on cards */
.add-to-cart-btn {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

/* Telegram link in footer */
.tg-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    color: var(--primary) !important;
}

.tg-link:hover {
    opacity: 0.8;
}

@media (max-width: 576px) {
    .cart-fab {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .cart-modal {
        max-height: 90vh;
    }
}

/* View All Details — inline link inside category card */
.view-all-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: opacity 0.2s;
}
.view-all-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.title-like-h2 {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;

    /* Специфичные стили вашего h2 */
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.title-like-h3 {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;

    /* Специфичные стили вашего h3 (берем размер по умолчанию, например 1.25rem) */
    font-size: 1.25rem;
    margin-bottom: 0.75rem; /* Стандартный отступ для h3, подправьте если нужно */
}

/* Адаптивность для мобильных устройств (копия вашего @media) */
@media (max-width: 768px) {
    .title-like-h2 {
        font-size: 1.25rem;
    }

    .title-like-h3 {
        font-size: 1.1rem;
    }
}

/* Custom z-index overrides */
.cart-fab, .phone-fab {
    z-index: 1000 !important;
}
.header, header, .site-header {
    z-index: 1000 !important;
}

/* Фикс переноса цен на мобильных (запрещаем бить цену на строки) */
.product-price__current, 
.product-price__old, 
.product-price__badge {
    white-space: nowrap !important;
}

/* Разрешаем flex-контейнеру цен переноситься на вторую строку */
.product-price {
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
}

/* Улучшаем читаемость цен на мобильных */
@media (max-width: 576px) {
    .product-price__current {
        font-size: 1.25rem !important; /* Чуть уменьшаем, чтобы легче помещалась */
    }
    .product-price__old {
        font-size: 0.9rem !important;
    }
    .product-price__badge {
        font-size: 0.75rem !important;
        padding: 1px 4px !important;
    }
}

/* Фикс перекрытия товаров кнопками на мобильных:
   Добавляем нижний отступ контейнерам списков товаров на мобилках,
   чтобы при полном скролле вниз товары не перекрывались плавающими кнопками */
@media (max-width: 768px) {
    .catalog-list,
    .ac-content,
    .ac-products-grid,
    .catalog-grid {
        padding-bottom: 9rem !important;
    }
    
    /* Принудительно устанавливаем 2 колонки для каталога на мобильных экранах */
    .catalog-grid,
    .ac-products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
}
/* ============================================================
   Читаемость и удобство нажатия на телефоне
   Аудит: половина текста мельче рекомендованных 16 точек, причём мельче всего
   набрано ровно то, ради чего человек и пришёл — цена, скидка и номер OEM.
   Плюс 18 интерактивных элементов из 36 ниже 44 точек по высоте: по ширине
   нормальные, не хватает именно высоты, палец промахивается на ходу.
   ============================================================ */
@media (max-width: 768px) {
    /* Ключевые данные товара — не мельче основного текста */
    .product-price,
    .product-price__current,
    .detail-price .h2 {
        font-size: 1.15rem !important;
    }

    .product-title,
    .product-cat {
        font-size: 1rem !important;
    }

    .product-article,
    .product-badge {
        font-size: 0.85rem !important;
    }

    .product-price__old,
    .product-price__badge {
        font-size: 0.9rem !important;
    }

    /* Телефон и режим работы в шапке */
    .header .phone-number,
    .header .work-time,
    .header-contacts a {
        font-size: 1rem !important;
    }

    /* Высота зоны нажатия у ссылок-действий. Ширина у них достаточная,
       добирали именно вертикаль до 44 точек. */
    .header-contacts a,
    .link-arrow,
    .rp-link,
    .mobile-menu-toggle,
    .footer-col a,
    .main-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .mobile-menu-toggle {
        min-width: 44px;
        justify-content: center;
    }

    /* Соседние ссылки в шапке стояли в 3 точках друг от друга */
    .header-contacts {
        gap: 10px;
    }
}

/* End */


/* Start:/bitrix/components/bitrix/breadcrumb/templates/.default/style.min.css?1773387719467*/
.bx-breadcrumb{margin:10px 0}.bx-breadcrumb i{color:#b5bdc2;line-height:13px;font-size:12px;vertical-align:middle;margin-right:5px}.bx-breadcrumb .bx-breadcrumb-item{float:left;margin-bottom:10px;white-space:nowrap;line-height:13px;vertical-align:middle;margin-right:10px}.bx-breadcrumb .bx-breadcrumb-item span{font-family:"Open Sans",Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:13px;white-space:normal}.bx-breadcrumb .bx-breadcrumb-item a{border-bottom:0}
/* End */
/* /local/templates/bazon/styles.css?178783322067104 */
/* /bitrix/components/bitrix/breadcrumb/templates/.default/style.min.css?1773387719467 */
