/* Base layout & header (from base.html) */
/* Combined Header Styles */
    .combined-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: transform 0.3s ease;
    }

    .combined-header.scrolled {
        transform: translateY(-50px);
    }
    
    /* На мобильных устройствах header всегда статичен */
    @media (max-width: 991px) {
        .combined-header.scrolled {
            transform: none !important;
        }
    }

    /* Основной контент вплотную под шапкой (без белой полосы), !important перебивает другие файлы */
    .main-content {
        padding-top: 55px !important;
    }
    /* Не допускаем двойного отступа: в style.css есть body.fixed-navbar { padding-top:80px } */
    body.fixed-navbar {
        padding-top: 0 !important;
    }
    .main-content > *:first-child {
        margin-top: 0 !important;
    }
    @media (max-width: 991px) {
        .main-content {
            padding-top: 52px !important;
        }
    }

    /* Отступ от шапки до заголовка — 6.6rem только на ПК (≥992px) */
    @media (min-width: 992px) {
        .page-content,
        .products-catalog-page,
        .product-detail-page,
        .news-page,
        .news-detail-page,
        .news-category-page,
        .support-home-page,
        .software-page,
        .project-detail-page,
        .application-detail-page,
        .solution-detail-page,
        .applications-category-page,
        .accounts-login-page,
        .profile-page-content,
        .comparison-container,
        .series-hero,
        .main-content > .container.py-5,
        .main-content > .container:has(.page-title) {
            padding-top: 6.6rem !important;
        }
    }

    /* Главная и полноэкранный hero — без дополнительного отступа */
    .main-content > .hero-section:first-child,
    .main-content > section.hero-section:first-child {
        padding-top: 0 !important;
    }

    /* Каталог продуктов на мобильных: без лишнего зазора под шапкой */
    @media (max-width: 991px) {
        .products-catalog-page {
            padding-top: 0 !important;
        }

        .products-catalog-page .products-hero,
        .products-catalog-page .category-hero {
            margin-top: 0 !important;
        }
    }

    /* Каталог: единый розовый блок заголовка на мобильных (как «Все типы продуктов») */
    @media (max-width: 768px) {
        .products-catalog-page .products-hero,
        .products-catalog-page .category-hero {
            min-height: 0 !important;
            height: auto !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
            background: transparent !important;
        }

        .products-catalog-page .products-hero-image,
        .products-catalog-page .category-hero-image {
            display: none !important;
            float: none !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .products-catalog-page .products-hero-content,
        .products-catalog-page .category-hero-content {
            width: 100% !important;
            float: none !important;
            height: auto !important;
            min-height: 200px !important;
            margin: 0 !important;
            padding: 2rem 1.25rem 1.5rem 1.25rem !important;
            text-align: left !important;
            justify-content: flex-start !important;
            align-items: flex-start !important;
            box-sizing: border-box !important;
        }

        .products-catalog-page .products-filter-section,
        .products-catalog-page .category-filter-section {
            margin-top: 0 !important;
        }

        .products-catalog-page .hero-text {
            width: 100%;
        }

        .products-catalog-page .hero-text h1 {
            font-size: 2rem !important;
            margin-bottom: 1rem !important;
            text-align: left !important;
        }

        .products-catalog-page .hero-text p {
            font-size: 0.95rem !important;
            line-height: 1.6 !important;
            margin: 0 !important;
            text-align: left !important;
            min-height: 4.8em;
        }
    }

    /* Каталог (ПК): единый блок фильтров на всех страницах */
    .products-catalog-page .products-filter-section,
    .products-catalog-page .category-filter-section {
        background: #111111;
        padding: 2rem 0;
        margin: 0;
    }

    .products-catalog-page .products-filter-section .filter-row,
    .products-catalog-page .category-filter-section .filter-row {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .products-catalog-page .products-filter-section .filter-group,
    .products-catalog-page .category-filter-section .filter-group {
        display: flex;
        flex-direction: column;
        min-width: 220px;
        width: 220px;
    }

    /* Маркеры списка в карточках товаров — круг, без символа • (ломается кодировкой) */
    .dbaudio-key-facts li::before {
        content: "" !important;
        position: absolute;
        left: 0.15rem;
        top: 0.55em;
        width: 0.42rem;
        height: 0.42rem;
        border-radius: 50%;
        background-color: #e91e63 !important;
        color: transparent !important;
        font-size: 0 !important;
        font-weight: normal !important;
    }

    /* Стили топ бара */
    .top-bar {
        background: #333333 !important;
        border-bottom: 1px solid #444444 !important;
        padding: 0.6rem 0 !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        display: block !important;
        position: relative !important;
        height: 50px !important;
    }
    
    .top-links {
        display: flex;
        gap: 2rem;
        align-items: center;
        height: 100%;
        justify-content: flex-start;
    }
    
    .top-link {
        color: #ffffff;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: color 0.3s ease;
        height: 100%;
        padding: 0.5rem 0;
    }
    
    .top-link:hover {
        color: #007bff;
    }
    
    /* Стили для переключения языка и личного кабинета */
    .lang-link {
        color: #ffffff !important;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .lang-link:hover {
        color: #cccccc !important;
    }
    
    .lang-link.active {
        color: #007bff !important;
    }
    
    .lang-separator {
        color: #ffffff !important;
    }
    
    .top-actions .btn {
        color: #ffffff !important;
        height: auto;
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Исправление цвета для всех элементов топ-бара */
    .top-bar * {
        color: #ffffff !important;
    }
    
    .top-bar .btn {
        color: #ffffff !important;
    }
    
    .top-bar .lang-link {
        color: #ffffff !important;
    }
    
    .top-bar .lang-separator {
        color: #ffffff !important;
    }
    
    .top-link i {
        font-size: 0.8rem;
    }
    
    /* Comparison Counter */
    .comparison-count {
        background: #dc3545;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0.3rem;
        font-weight: 600;
    }
    
    /* Comparison Sidebar */
    .comparison-sidebar {
        position: fixed;
        top: 0;
        right: -400px;
        width: 400px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 10000;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .comparison-sidebar.open {
        right: 0;
    }
    
    .comparison-sidebar-header {
        padding: 1.5rem;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
    }
    
    .comparison-sidebar-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
        color: #1a1a1a;
    }
    
    .comparison-sidebar-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #6c757d;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .comparison-sidebar-close:hover {
        color: #dc3545;
    }
    
    .comparison-sidebar-content {
        padding: 1.5rem;
    }
    
    .comparison-item {
        display: flex;
        align-items: center;
        padding: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 1rem;
        background: #f8f9fa;
    }
    
    .comparison-item-image {
        width: 60px;
        height: 60px;
        border-radius: 6px;
        overflow: hidden;
        margin-right: 1rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
    
    .comparison-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .comparison-item-info {
        flex: 1;
    }
    
    .comparison-item-name {
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #1a1a1a;
    }
    
    .comparison-item-category {
        font-size: 0.8rem;
        color: #6c757d;
        margin-bottom: 0.5rem;
    }
    
    .comparison-item-remove {
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 4px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0.8rem;
    }
    
    .comparison-item-remove:hover {
        background: #c82333;
    }
    
    .comparison-sidebar-actions {
        padding: 1.5rem;
        border-top: 1px solid #e9ecef;
        background: #f8f9fa;
    }
    
    .comparison-sidebar-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .comparison-empty {
        text-align: center;
        padding: 2rem;
        color: #6c757d;
    }
    
    .comparison-empty i {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: #dee2e6;
    }
    
    /* Sidebar Overlay */
    .comparison-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .comparison-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .comparison-sidebar {
            width: 100%;
            right: -100%;
        }
    }
    
    .top-actions {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        height: 100%;
        justify-content: flex-end;
    }
    
    .language-switcher {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        height: 100%;
        padding: 0.5rem 0;
    }
    
    .lang-link {
        color: #333333;
        text-decoration: none;
        font-weight: 500;
    }
    
    .lang-link.active {
        color: #007bff;
    }
    
    .lang-separator {
        color: #666;
    }
    
    .user-link, .auth-link {
        color: #333333;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: color 0.3s ease;
    }
    
    .user-link:hover, .auth-link:hover {
        color: #007bff;
    }
    
    /* Исправление отступов и выравнивания */
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Специальные стили для топ-бара на десктопе */
    @media (min-width: 992px) {
        .top-bar .container {
            padding-left: 15px !important;
            padding-right: 15px !important;
            max-width: 1200px !important;
            margin: 0 auto !important;
        }
        
        .main-navbar .container {
            padding-left: 15px !important;
            padding-right: 15px !important;
            max-width: 1200px !important;
            margin: 0 auto !important;
        }
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .col, .col-md-4, .col-lg-4, .col-md-6, .col-lg-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Выравнивание кнопок */
    .card-body {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .card-body .btn {
        margin-top: auto;
        align-self: flex-start;
    }
    
    /* Отступы для теней */
    .section {
        padding: 80px 0;
        margin: 60px 0;
    }
    
    .card {
        margin-bottom: 30px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    /* Статичность блоков новостей - только убираем проблемные эффекты */
    .news-card, .product-card, .solution-card {
        position: static !important;
    }
    
    /* Отступ для основного контента под фиксированным шапкой (без зазора) */
    .main-content {
        padding-top: 55px !important;
    }
    
    html {
        overflow-x: visible !important; /* Разрешаем горизонтальный скроллинг при необходимости */
        min-height: 100%;
        height: 100%;
    }
    
    body {
        padding-top: 0 !important;
        overflow-x: visible !important; /* Разрешаем горизонтальный скроллинг при необходимости */
        overflow-y: visible !important; /* Оставляем вертикальный скроллинг */
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    /* Убираем конфликтующие стили */
    html, body {
        overflow-x: visible !important; /* Принудительно убираем скрытие горизонтального скроллинга */
        max-width: none !important; /* Убираем ограничение ширины */
        width: 100% !important;
    }
    
    /* Липкий подвал: основной контент растягивается, подвал прижат к низу */
    .main-content {
        flex: 1 0 auto;
    }
    
    .footer {
        flex-shrink: 0;
    }
    
    /* Prevent shadow clipping - more targeted approach */
    .news-cards-container, .products-cards-container, .solutions-cards-container {
        overflow: visible !important;
    }
    
    /* Specific card containers that need shadow space */
    .news-card, .product-card, .event-card, .partner-card {
        margin: 1rem !important;
    }
    
    /* Add margin to elements with hover effects to prevent shadow clipping */
    .news-card, .product-card, .event-card, .partner-card, 
    .accessory-card, .tutorial-card, .download-item,
    .series-product-card, .related-product-card, .support-service-card,
    .secondary-service-card, .additional-service-card, .faq-item {
        margin: 1rem !important;
    }
    
    /* Ensure parent containers have enough space */
    .news-cards-container, .products-cards-container, .solutions-cards-container,
    .events-section, .partners-section, .more-from-series, .related-products {
        padding: 2rem 0 !important;
        margin: 1rem 0 !important;
    }
    
    /* Main Navigation Styles */
    .main-navbar {
        background: #1a1a1a;
        padding: 1rem 0;
        position: sticky !important;
        top: 0 !important;
        z-index: 1001 !important;
        margin-top: 0 !important;
        overflow: visible !important; /* Разрешаем переполнение */
        min-width: 0 !important; /* Убираем минимальную ширину */
    }
    
    /* Убираем ограничения ширины контейнера */
    .main-navbar .container {
        max-width: none !important;
        overflow: visible !important;
        min-width: 0 !important;
    }
    
    .navbar-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0; /* Позволяем контенту сжиматься */
        overflow: visible; /* Разрешаем переполнение */
    }
    
    .navbar-main-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0; /* Позволяем контенту сжиматься */
        overflow: visible; /* Разрешаем переполнение */
        flex-wrap: nowrap; /* Предотвращаем перенос на новую строку */
        gap: 1rem; /* Добавляем отступы между элементами */
    }
    
    .navbar-logo {
        flex-shrink: 0;
        margin-right: 3rem; /* Возвращаем правильный отступ справа от логотипа */
        margin-left: 0rem; /* Отступ от левого края до логотипа */
    }
    
    .logo-link {
        display: block;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }
    
    .logo-link:hover {
        opacity: 0.8;
    }
    
    .brand-logo {
        height: 80px;
        width: auto;
    }
    
    
    .navbar-nav-horizontal {
        display: flex;
        gap: 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
        flex: 1;
        align-items: flex-end;
        justify-content: flex-start;
        margin-left: 1rem;
        margin-right: 1rem;
        min-width: 0;
        flex-shrink: 1;
        min-height: 2.25rem;
    }
    
    /* Адаптивные стили для навигации */
    @media (max-width: 1400px) {
        .navbar-nav-horizontal {
            gap: 0.8rem;
            margin-left: 0.5rem;
            margin-right: 0.5rem;
        }
    }
    
    @media (max-width: 1200px) {
        .navbar-nav-horizontal {
            gap: 0.6rem;
            margin-left: 0.25rem;
            margin-right: 0.25rem;
        }
    }
    
    @media (max-width: 1050px) {
        .navbar-nav-horizontal {
            gap: 0.4rem;
            margin-left: 0.25rem;
            margin-right: 0.25rem;
        }
        
        .nav-link {
            font-size: 0.9rem;
        }
    }
    
    @media (max-width: 992px) {
        .navbar-nav-horizontal {
            gap: 0.3rem;
            margin-left: 0.25rem;
            margin-right: 0.25rem;
        }
        
        .nav-link {
            font-size: 0.85rem;
        }
    }
    
    @media (max-width: 1024px) {
        .navbar-nav-horizontal {
            gap: 0.2rem;
            margin-left: 0.1rem;
            margin-right: 0.1rem;
        }
        
        .nav-link {
            font-size: 0.8rem;
            padding: 0.25rem 0.5rem;
        }
    }
    
    .navbar-nav-horizontal .nav-item {
        display: flex;
        align-items: flex-end;
    }
    
    .nav-link {
        color: #ffffff;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
        padding: 0.5rem 0;
        white-space: nowrap;
        font-size: 1.1rem;
        line-height: 1.3;
        display: block;
        box-sizing: border-box;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
    }
    
    .nav-link:hover {
        color: #007bff;
        /* без полоски при наведении — полоска только у активной страницы */
    }
    
    .nav-link.active {
        color: #007bff;
        border-bottom-color: #007bff;
        padding-bottom: 0.5rem;
    }
    
    .nav-link.active:hover {
        color: #0056b3;
        border-bottom-color: #0056b3;
    }
    
    /* Search Form Styles */
    .navbar-search {
        flex-shrink: 1; /* Позволяем сжиматься */
        width: auto;
        min-width: 150px;
        max-width: 300px;
        position: relative;
        z-index: 1003;
        margin-left: 1rem !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }
    
    /* Адаптивные стили для поиска */
    @media (max-width: 1400px) {
        .navbar-search {
            max-width: 250px;
            margin-left: 0.5rem !important;
            margin-right: 0 !important;
            min-width: 170px;
        }
    }
    
    @media (max-width: 1200px) {
        .navbar-search {
            max-width: 220px;
            margin-left: 0.25rem !important;
            margin-right: 0 !important;
            min-width: 150px;
        }
    }
    
    @media (max-width: 1150px) {
        .navbar-search {
            max-width: 180px;
            margin-left: 0.1rem !important;
            margin-right: 0 !important;
            min-width: 120px;
        }
    }
    
    
    @media (max-width: 1100px) {
        .navbar-search {
            display: none; /* Скрываем поиск при недостатке места */
        }
    }
    
    @media (max-width: 768px) {
        .navbar-search {
            display: none; /* Скрываем поиск только на мобильных */
        }
    }
    
    /* Адаптивные стили для поля ввода поиска */
    @media (max-width: 1200px) {
        .search-input {
            padding: 0.4rem 0.8rem;
            font-size: 0.85rem;
        }
        .search-btn {
            padding: 0.4rem 0.6rem;
        }
    }
    
    @media (max-width: 1000px) {
        .search-input {
            padding: 0.35rem 0.6rem;
            font-size: 0.8rem;
        }
        .search-btn {
            padding: 0.35rem 0.5rem;
        }
    }
    
    @media (max-width: 900px) {
        .search-input {
            padding: 0.3rem 0.5rem;
            font-size: 0.75rem;
        }
        .search-btn {
            padding: 0.3rem 0.4rem;
        }
    }
    
    @media (max-width: 992px) {
        .search-input {
            padding: 0.35rem 0.7rem;
            font-size: 0.8rem;
        }
        .search-btn {
            padding: 0.35rem 0.5rem;
        }
    }
    
    .search-form {
        position: relative;
        width: 100%;
        z-index: 1004;
    }
    
    .search-input-group {
        display: flex;
        align-items: center;
        background: #2c2c2c;
        border-radius: 25px;
        padding: 0.25rem;
        border: 1px solid #444;
        transition: border-color 0.3s ease;
        width: 100%;
        position: relative;
        z-index: 1005;
        min-width: 100px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .search-input-group:focus-within {
        border-color: #007bff;
    }
    
    .search-input {
        border: none;
        outline: none;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        flex: 1;
        font-size: 0.9rem;
        background: transparent;
        color: #ffffff;
        min-width: 60px;
        position: relative;
        z-index: 1006;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-input::placeholder {
        color: #999;
        font-style: italic;
    }
    
    .search-btn {
        background: #007bff;
        border: none;
        color: white;
        padding: 0.5rem 0.75rem;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        flex-shrink: 0;
        position: relative;
        z-index: 1007;
        min-width: 35px;
        min-height: 35px;
    }
    
    .search-btn:hover {
        background: #0056b3;
    }
    
    .search-btn i {
        font-size: 0.9rem;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .mobile-header-actions {
        display: none;
    }
    
    .mobile-search-icon,
    .mobile-lang-icon {
        display: none;
        z-index: 1001;
    }
    
    .hamburger-line {
        width: 25px;
        height: 3px;
        background: #ffffff;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Make button borders thinner */
    .btn {
        border-width: 0.5px !important;
    }
    
    .btn-outline-primary,
    .btn-outline-secondary,
    .btn-outline-success,
    .btn-outline-danger,
    .btn-outline-warning,
    .btn-outline-info,
    .btn-outline-light,
    .btn-outline-dark {
        border-width: 0.5px !important;
    }

/* Comparison sidebar & products AZ (from base.html) */
.comparison-sidebar {
        position: fixed;
        top: 0;
        right: -400px;
        width: 400px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1050;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .comparison-sidebar.active {
        right: 0;
    }

    .comparison-sidebar-header {
        padding: 1.5rem;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .comparison-sidebar-header h5 {
        margin: 0;
        font-weight: 600;
    }

    .btn-close {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #6c757d;
        cursor: pointer;
    }

    .comparison-sidebar-content {
        flex: 1;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .comparison-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 1rem;
        position: relative;
    }

    .comparison-item-image {
        width: 50px;
        height: 50px;
        background: #f8f9fa;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .comparison-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .comparison-item-info {
        flex: 1;
    }

    .comparison-item-info h6 {
        margin: 0 0 0.25rem 0;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .comparison-item-info p {
        margin: 0;
        font-size: 0.8rem;
        color: #6c757d;
    }

    .btn-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: none;
        border: none;
        color: #dc3545;
        cursor: pointer;
        padding: 0.25rem;
    }

    .comparison-sidebar-actions {
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }

    .comparison-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .comparison-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .comparison-open {
        overflow: hidden;
    }

    @media (max-width: 992px) {
        .navbar-main-content {
            flex-wrap: wrap;
        }
        
        .navbar-nav-horizontal {
            gap: 1.5rem;
        }
        
        .navbar-search {
            width: 300px;
            min-width: 250px;
        }
    }
    
    /* Professional Mobile Navigation Styles */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100%;
        background: white;
        z-index: 9999;
        transition: right 0.3s ease;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-nav-drawer.active {
        right: 0;
    }
    
    .mobile-nav-header {
        background: #1a1a1a;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 60px;
    }
    
    .mobile-nav-logo .mobile-brand-logo {
        height: 40px;
        width: auto;
    }
    
    .mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .mobile-search-btn,
    .mobile-close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background 0.3s ease;
    }
    
    .mobile-search-btn:hover,
    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-language-switcher {
        color: white;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background 0.3s ease;
    }
    
    .mobile-language-switcher:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-quick-links {
        background: #f8f9fa;
        padding: 1rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .quick-link-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0.5rem;
        background: white;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
        text-align: center;
        text-decoration: none;
        color: inherit;
    }
    
    .quick-link-item:hover {
        background: #e9ecef;
    }
    
    .quick-link-item i {
        font-size: 1.5rem;
        color: #6f42c1;
        margin-bottom: 0.5rem;
    }
    
    .quick-link-item span {
        font-size: 0.8rem;
        color: #333;
        font-weight: 500;
    }
    
    .mobile-main-nav {
        flex: 1;
        padding: 1rem 0;
    }
    
    .mobile-nav-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e9ecef;
        cursor: pointer;
        transition: background 0.3s ease;
        text-decoration: none;
        color: inherit;
    }
    
    .mobile-nav-item:hover {
        background: #f8f9fa;
    }
    
    .mobile-nav-item.active {
        background: rgba(0, 123, 255, 0.08);
        border-left: 3px solid #007bff;
        color: #007bff;
    }
    
    .mobile-nav-item.active span {
        color: #007bff;
    }
    
    .mobile-nav-item span {
        font-size: 1rem;
        color: #333;
        font-weight: 500;
    }
    
    .mobile-nav-item i {
        color: #6f42c1;
        font-size: 0.9rem;
    }
    
    .mobile-newsletter,
    .mobile-social {
        background: #1a1a1a;
        padding: 1.5rem;
        color: white;
    }
    
    .mobile-newsletter h4,
    .mobile-social h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .mobile-newsletter p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        opacity: 0.9;
    }
    
    .newsletter-link {
        color: #6f42c1;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .newsletter-link:hover {
        color: #5a32a3;
    }
    
    .social-icons {
        display: flex;
        gap: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: background 0.3s ease;
    }
    
    .social-icon:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    @media (max-width: 768px) {
        .comparison-sidebar {
            width: 100%;
            right: -100%;
        }
        
        .container {
            padding-left: 0 !important;
            padding-right: 0 !important;
            max-width: 100% !important;
            width: 100% !important;
        }
        
        .container-fluid {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        
        /* Hide desktop navigation on mobile */
        .navbar-collapse {
            display: none !important;
        }
        
        .mobile-menu-btn {
            display: flex !important;
        }
        
        .mobile-header-actions {
            display: flex !important;
        }
        
        /* Добавляем отступ для логотипа в мобильной версии */
        .navbar-logo {
            margin-left: 0.3rem !important;
            margin-right: 0.3rem !important;
        }
        
        .mobile-search-icon,
        .mobile-lang-icon {
            display: flex !important;
        }
        
        /* Hide top bar completely on mobile */
        .top-bar {
            display: none !important;
        }
        
        .main-navbar {
            background: #1a1a1a;
            padding: 0.75rem 0;
        }
        
        .navbar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }
        
        .navbar-logo {
            flex: 1;
        }
        
        .navbar-logo .brand-logo {
            height: 45px;
            width: auto;
        }
        
        .navbar-search {
            display: none;
        }
        
        /* Mobile header actions */
        .mobile-header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-right: 0.3rem;
        }
        
        .mobile-search-icon-btn,
        button.mobile-lang-icon {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
        }
        .mobile-search-icon,
        .mobile-lang-icon {
            color: white;
            font-size: 1.1rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: background 0.3s ease, transform 0.2s ease;
        }
        .mobile-search-icon-btn .mobile-search-icon,
        button.mobile-lang-icon {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        button.mobile-lang-icon {
            font-size: 0.9rem;
            position: relative;
            z-index: 1002;
            pointer-events: auto;
        }
        .mobile-search-icon-btn:hover,
        .mobile-search-icon-btn:focus,
        button.mobile-lang-icon:hover,
        button.mobile-lang-icon:focus {
            background: rgba(255, 255, 255, 0.1);
            outline: none;
        }
        .mobile-search-icon:active {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(0.95);
        }
        
        .mobile-menu-btn {
            color: white;
        }
        
        /* Mobile drawer adjustments */
        .mobile-nav-drawer {
            width: 100%;
            max-width: 400px;
        }
        
        .mobile-quick-links {
            grid-template-columns: 1fr 1fr 1fr;
        }
        
        .quick-link-item {
            padding: 0.75rem 0.25rem;
        }
        
        .quick-link-item i {
            font-size: 1.2rem;
        }
        
        .quick-link-item span {
            font-size: 0.7rem;
        }
    }
    
    @media (max-width: 576px) {
        .mobile-nav-drawer {
            width: 100%;
            max-width: 100%;
        }
        .container {
            padding-left: 0.75rem !important;
            padding-right: 0.75rem !important;
            max-width: 100% !important;
            width: 100% !important;
        }
        
        .container-fluid {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        
        /* Ensure top bar is hidden on small screens too */
        .top-bar {
            display: none !important;
        }
        
        .brand-logo {
            height: 35px;
        }
        
        .mobile-header-actions {
            gap: 0.75rem;
        }
        
        .mobile-search-icon,
        .mobile-lang-icon {
            font-size: 1rem;
            padding: 0.4rem;
        }
        
        .mobile-menu-btn {
            width: 35px;
            height: 35px;
        }
        
        .navbar-main-content {
            flex-direction: column;
            gap: 1rem;
            align-items: center;
        }
        
        .navbar-nav-horizontal {
            flex-direction: column;
            gap: 0.5rem;
            text-align: center;
        }
        
        .navbar-search {
            width: 100%;
            max-width: 200px;
        }
        
        .brand-logo {
            height: 40px;
        }
        
        .hero-title {
            font-size: 2rem;
        }
        
        .hero-subtitle {
            font-size: 1.1rem;
        }
    }
    
    /* Products A-Z Modal Styles */
    .products-az-modal-content {
        background: white;
        border-radius: 12px;
        max-width: 1200px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
        animation: modalSlideIn 0.3s ease-out;
    }
    
    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(-20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    .products-az-modal-header {
        padding: 32px 32px 24px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-radius: 12px 12px 0 0;
    }
    
    .products-az-modal-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
        letter-spacing: -0.02em;
    }
    
    .products-az-modal-close {
        position: relative;
        background: #6c5ce7;
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease;
    }

    .products-az-close-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 20px;
        line-height: 1;
        width: 100%;
        text-align: center;
    }
    
    .products-az-modal-close:hover {
        background: #5a4fcf;
        transform: scale(1.05);
    }
    
    .products-az-modal-body {
        padding: 24px 32px 32px;
    }
    
    .products-az-search-section {
        display: flex;
        align-items: center;
        gap: 24px;
        margin-bottom: 32px;
        flex-wrap: wrap;
    }
    
    .products-az-search-input {
        position: relative;
        flex: 1;
        min-width: 320px;
    }
    
    .products-az-search-input input {
        width: 100%;
        padding: 14px 20px 14px 20px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-size: 16px;
        background: #f8f9fa;
        transition: all 0.3s ease;
        font-family: inherit;
    }
    
    .products-az-search-input input:focus {
        outline: none;
        border-color: #6c5ce7;
        background: white;
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    }
    
    .products-az-search-input i {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        pointer-events: none;
        font-size: 16px;
    }
    
    .products-az-heritage-link {
        color: #6c5ce7;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
        font-size: 15px;
        transition: color 0.3s ease;
    }
    
    .products-az-heritage-link:hover {
        color: #5a4fcf;
        text-decoration: underline;
    }
    
    .products-az-content {
        min-height: 200px;
    }
    
    .products-az-loading {
        text-align: center;
        padding: 60px 40px;
        color: #6c757d;
        font-size: 18px;
        font-weight: 500;
    }
    
    /* Адаптивность для попапа */
    @media (max-width: 768px) {
        .products-az-modal-content {
            margin: 10px;
            max-height: calc(100vh - 20px);
        }
        
        .products-az-modal-header {
            padding: 24px 20px 20px;
        }
        
        .products-az-modal-title {
            font-size: 1.8rem;
        }
        
        .products-az-modal-body {
            padding: 20px;
        }
        
        .products-az-search-section {
            flex-direction: column;
            align-items: stretch;
            gap: 16px;
        }
        
        .products-az-search-input {
            min-width: auto;
        }
    }
