/* critical.css - Обновленная версия */
/* ===== SKIP LINK - КРИТИЧЕСКИ ВАЖНО ДЛЯ ДОСТУПНОСТИ ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #007cba;
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    z-index: 999999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Важно: не используем display:none для доступности */
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #ff6b00;
    outline-offset: 2px;
}

/* Скрытый вариант (альтернатива) - полностью невидим до фокуса */
.skip-link-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link-hidden:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #007cba;
    color: #fff;
    z-index: 999999;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    outline: 3px solid #ff6b00;
    outline-offset: 2px;
}

/* Базовые стили для предотвращения CLS */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* ===== КРИТИЧЕСКИЕ СТИЛИ HERO-SLIDER (предотвращают CLS) ===== */
.home_big_img {
    overflow: hidden;
    position: relative;
}

/* Скрываем неактивные слайды до инициализации Slick */
.home_big_img > .slick-slide.pre-init-slide {
    display: none;
}

/* Первый слайд всегда виден ДО инициализации Slick */
.home_big_img > .slick-slide:first-child {
    display: block !important;
}

/* Десктоп: первый слайд показывает изображение */
@media (min-width: 768px) {
    .home_big_img > .slick-slide:first-child .pkonly,
    .home_big_img > .slick-slide:first-child .largest-contentful-image {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .home_big_img > .slick-slide:first-child .mobonly {
        display: none !important;
    }
}

/* Мобильные: первый слайд показывает изображение */
@media (max-width: 767px) {
    .home_big_img > .slick-slide:first-child .mobonly,
    .home_big_img > .slick-slide:first-child .largest-contentful-image {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .home_big_img > .slick-slide:first-child .pkonly {
        display: none !important;
    }
}

.home_big_slider {
    height: 500px;
}

@media (max-width: 1140px) {
    .home_big_slider {
        height: 1500px;
    }
}

@media (max-width: 768px) {
    .home_big_slider {
        height: 700px;
    }
}

/* ===== МОБИЛЬНЫЙ ЗАГОЛОВОК ===== */
@media (max-width: 768px) {
    body {
        /* padding-top больше не нужен, так как заголовок не фиксирован */
    }
    
    .mobile__nav {
        position: relative;;
        background: white;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
    }
    
    /* Первая строка: лого + номер телефона */
    .mobile__nav .header_wrap {
        padding: 10px 15px;
    }
    
    .mobile__nav .logo .name {
        color: #000;
        text-transform: uppercase;
        }

    /* Номер телефона в шапке */
    .mobile__nav .mobile-phone {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mobile__nav .mobile-phone a {
        font-weight: 600;
        font-size: 25px;
        color: #222;
    }
    
    .mobile__nav .mobile-phone .free-call {
        line-height: 50%;
        color: #959595;
    }
    
    /* Кнопка "Обратный звонок" - скрыта */
    .mobile__nav .tell_btn {
        display: none;
    }
    
    /* Кнопка меню - СКРЫТА (нам нужна только плавающая) */
    .mobile_btn {
        display: none !important;
    }
    
    /* Группа иконок */
    .mobile__nav .ipadbtn {
        display: none;
    }
    
    /* Скрываем десктопный заголовок на мобильных */
    .desktop-header {
        display: none;
    }
    
    /* Мобильное меню - будет создано скриптом */
    .mobile_nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 99999;
        overflow-y: auto;
        padding: 80px 20px 20px;
        box-sizing: border-box;
    }
    
    .mobile_nav.active {
        display: block;
    }
    
    /* Кнопка закрытия меню */
    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
        font-size: 30px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
}

/* ===== ДЕСКТОПНЫЙ ЗАГОЛОВОК ===== */
@media (min-width: 769px) {
    .desktop-header {
        position: relative;
        width: 100%;
        height: 180px;
        background: white;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: block;
    }
    
    .desktop-header .header_wrap {
        height: 90px;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
    }
    
    .desktop-header nav {
        border-top: 1px solid #eee;
    }
    
    /* Скрываем мобильный заголовок на десктопе */
    .mobile__nav {
        display: none;
    }
    
    /* Скрываем корзину плагина в шапке десктопа */
    .desktop-header .navbar-basket-wrapper {
        display: none !important;
    }
}

/* ===== ПОКАЗЫВАЕМ/СКРЫВАЕМ ЗАГОЛОВКИ В ЗАВИСИМОСТИ ОТ УСТРОЙСТВА ===== */
@media (max-width: 768px) {
    .desktop-header,
    .desktop-header nav {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile__nav {
        display: none;
    }
    
    .desktop-header {
        display: block;
    }
}

/* ===== ФИКСИРУЕМ ВЫСОТУ ДЛЯ ПРЕДОТВРАЩЕНИЯ CLS ===== */
.mobile__nav {
    min-height: 130px;
}

.desktop-header {
    min-height: 180px;
    max-height: 180px;
}

/* ===== ОБЩИЕ СТИЛИ ===== */

.logo .name {
    font-weight: 700;
    font-size: 20px;
}

main {
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .mobile_nav {
        top: 0;
        height: 100vh;
    }
    
    /* Адаптация номера телефона для маленьких экранов */

    .mobile__nav .mobile-phone .free-call {
        font-size: 21px;
    }
}

/* Резервируем место для изображений */
img:not([width]):not([height]) {
    width: auto;
    height: auto;
    max-width: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-display: swap;
}

@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ===== ПЛАВАЮЩИЕ КНОПКИ ДЛЯ ВСЕХ УСТРОЙСТВ ===== */

/* Контейнер плавающих кнопок */
.floating-buttons-container {
    position: fixed;
    right: 15px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.floating-buttons-container.loaded {
    pointer-events: auto;
    opacity: 1;
}

.floating-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #FF6B00;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.floating-buttons-container.loaded .floating-button {
    opacity: 1;
    transform: translateY(0);
}

.floating-button:hover {
    transform: scale(1.05);
    background-color: #FF8533;
}

/* Стили для кнопки корзины как ссылки */
a.floating-button.cart-button {
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

a.floating-button.cart-button:hover,
a.floating-button.cart-button:focus {
    text-decoration: none;
    color: inherit;
}

.floating-button-wrapper {
    position: relative;
}

.feedback-sub-buttons {
    position: absolute;
    right: 65px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999998;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.feedback-sub-buttons.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-sub-button {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: 1px solid #eee;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    box-sizing: border-box;
    gap: 10px;
}

.floating-sub-button:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
    border-color: #007cba;
}

.floating-button-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.floating-sub-button-icon {
    width: 20px;
    height: 20px;
    fill: #333;
    flex-shrink: 0;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3B30;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.floating-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999998;
    background: rgba(0,0,0,0.1);
}

/* ===== СТИЛИ ДЛЯ АНИМАЦИИ КНОПКИ ОБРАТНОЙ СВЯЗИ ===== */

/* Контейнер для анимированных иконок */
.feedback-animation-container {
    position: relative;
    width: 32px;
    height: 32px;
}

/* Анимированные иконки */
.animated-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    top: 0;
    left: 0;
}

/* Классы для каждой иконки */
.phone-icon {
    opacity: 1;
    transform: scale(1);
}

.message-icon {
    opacity: 0;
    transform: scale(0.8);
}

.telegram-icon {
    opacity: 0;
    transform: scale(0.8);
}

/* Анимация появления иконок */
.animated-icon.active {
    opacity: 1;
    transform: scale(1);
}

/* Стандартные иконки (скрыты по умолчанию) */
.feedback-icon,
.close-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    fill: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    top: 0;
    left: 0;
}

.close-icon {
    display: none;
}

/* Показываем стандартную иконку когда меню закрыто */
.feedback-icon.visible {
    opacity: 1;
    visibility: visible;
}

/* Показываем иконку закрытия когда меню открыто */
.close-icon.visible {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ===== СТИЛИ ДЛЯ АНИМАЦИИ ТЕКСТА "МЕНЮ" ===== */
.menu-button-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button.show-text .menu-button-text {
    opacity: 1;
    transform: translateY(0);
}

.menu-button.show-text .floating-button-icon {
    opacity: 0;
    transform: translateY(-10px);
}

.menu-button .floating-button-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

/* Стили для активного состояния корзины */
.cart-button.active {
    background-color: #FF3B30 !important;
    transform: scale(0.95) !important;
}

.cart-button.active .floating-button-icon {
    transform: rotate(-15deg);
    transition: transform 0.3s ease;
}

/* ===== СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (3 КНОПКИ) ===== */
@media (max-width: 768px) {
    .floating-buttons-container {
        bottom: 20px;
        right: 15px;
    }
    
    .floating-buttons-container.loaded .cart-button {
        transition-delay: 0.1s;
    }
    
    .floating-buttons-container.loaded .menu-button {
        transition-delay: 0.2s;
    }
    
    .floating-buttons-container.loaded .feedback-button {
        transition-delay: 0.3s;
    }
    
    /* Скрываем старые элементы в шапке */
    .mobile__nav .tell_btn,
    .mobile__nav .ipadbtn > *:not(.mobile_btn) {
        display: none;
    }
    

    
    /* Скрываем корзину плагина в шапке */
    .navbar-basket-wrapper,
    .ipadbtn .navbar-basket-wrapper {
        display: none !important;
    }
    
    @media (max-width: 480px) {
        .floating-buttons-container {
            bottom: 15px;
            right: 10px;
        }
        
        .floating-button {
            width: 50px;
            height: 50px;
        }
        
        .feedback-animation-container,
        .animated-icon,
        .feedback-icon,
        .close-icon {
            width: 32px;
            height: 32px;
        }
        
        .feedback-sub-buttons {
            right: 60px;
            gap: 6px;
            min-width: 200px;
            padding: 12px;
        }
        
        .floating-sub-button {
            padding: 10px 12px;
            font-size: 13px;
        }
        
        .floating-sub-button-icon {
            width: 18px;
            height: 18px;
        }
        
        .menu-button-text {
            font-size: 12px;
        }
    }
}

/* ===== СТИЛИ ДЛЯ ДЕСКТОПНЫХ УСТРОЙСТВ (2 КНОПКИ) ===== */
@media (min-width: 769px) {
    .floating-buttons-container {
        bottom: 30px;
        right: 20px;
    }
    
    /* Скрываем кнопку меню на десктопе */
    .floating-button.menu-button {
        display: none !important;
    }
    
    .floating-buttons-container.loaded .cart-button {
        transition-delay: 0.1s;
    }
    
    .floating-buttons-container.loaded .feedback-button {
        transition-delay: 0.2s;
    }
    
    .floating-button {
        width: 60px;
        height: 60px;
    }
    
    .floating-button-icon,
    .feedback-animation-container,
    .animated-icon,
    .feedback-icon,
    .close-icon {
        width: 32px;
        height: 32px;
    }
    
    .feedback-sub-buttons {
        min-width: 240px;
        padding: 18px;
    }
    
    .floating-sub-button {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    @media (min-width: 1200px) {
        .floating-buttons-container {
            bottom: 40px;
            right: 30px;
        }
        
        .floating-button {
            width: 64px;
            height: 64px;
        }
        
        .floating-button-icon,
        .feedback-animation-container,
        .animated-icon,
        .feedback-icon,
        .close-icon {
            width: 32px;
            height: 32px;
        }
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ КОРЗИНЫ ===== */
.basket-modal-overflow.basket-modal-fade {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.2s ease-in-out !important;
}

.basket-modal.basket-modal-zoom-out {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out !important;
}

/* Улучшаем видимость кнопки закрытия корзины */
.smart-basket__modal-controls-close {
    cursor: pointer !important;
    z-index: 10000 !important;
    position: relative !important;
}

.smart-basket__modal-controls-close:hover {
    background-color: #f4f4f4 !important;
}

.smart-basket__modal-controls-icon {
    pointer-events: none;
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ МОДАЛЬНОГО ОКНА ОБРАТНОГО ЗВОНКА ===== */
.callback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.callback-modal.active {
    display: block !important;
}

.callback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.callback-modal.active .callback-modal-overlay {
    opacity: 1;
}

.callback-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.callback-modal.active .callback-modal-content {
    opacity: 1;
}
/* ===== СТИЛИ ДЛЯ МОБИЛЬНОГО МЕНЮ (бывшие inline) ===== */
.mobile_nav_header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007cba;
}

.mobile_nav_header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.mobile_nav .navbar a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}

.mobile_nav_contact .number {
    margin-bottom: 20px;
}

.mobile_nav_contact .number a {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #007cba;
    text-decoration: none;
    margin-bottom: 5px;
}

.mobile_nav_contact .number p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.mobile_nav_contact .whatsapp_btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.mobile_nav_contact .tell_btn {
    width: 100%;
}

.mobile_nav_contact .tell_btn .call_btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

/* ===== СТИЛИ ДЛЯ EMAIL-WRAPPER (бывшие inline в footer.php) ===== */
.email-wrapper {
    position: relative;
    display: inline-block;
}

.copy-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    white-space: nowrap;
    margin-top: 5px;
}

.email-wrapper:hover .copy-popup {
    opacity: 1;
    visibility: visible;
}

.copy-button {
    background: #00C16D;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    /* transition убран для производительности */
}

.copy-button:hover {
    background: #005a87;
}

.copy-button.copied {
    background: #28a745;
}

/* ===== СТИЛИ ДЛЯ COOKIE-УВЕДОМЛЕНИЯ (бывшие inline в footer.php) ===== */
.cookies-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    z-index: 2147483647;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookies-notification[style*="display: block"],
.cookies-notification.show {
    transform: translateY(0);
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookies-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.cookies-content a {
    color: #007cba;
    text-decoration: underline;
    /* transition убран для производительности */
}

.cookies-content a:hover {
    color: #005a87;
    text-decoration: none;
}

.cookies-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookies-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    min-width: 120px;
    text-align: center;
}

.accept-btn {
    background: #007cba;
    color: white;
}

.accept-btn:hover,
.accept-btn:focus {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 124, 186, 0.3);
}

.reject-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.reject-btn:hover,
.reject-btn:focus {
    background: #e9e9e9;
    transform: translateY(-1px);
}

.cookies-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .cookies-notification {
        padding: 15px;
    }
    
    .cookies-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .cookies-buttons {
        justify-content: center;
    }
    
    .cookies-content p {
        font-size: 14px;
    }
    
    .cookies-btn {
        min-width: 110px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .cookies-notification {
        padding: 12px;
    }
    
    .cookies-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookies-btn {
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .cookies-btn {
        padding: 12px 20px;
        min-height: 44px;
    }
}

/* ===== JS МОБИЛЬНОЕ МЕНЮ (бывшие inline стили) ===== */
.js-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 99999;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.js-mobile-nav.active {
    display: block;
}

.js-mobile-nav .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    font-size: 30px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.js-mobile-nav .mobile-nav-content {
    margin-top: 20px;
}

.js-mobile-nav .mobile-nav-content h3 {
    margin: 0 0 25px;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.js-mobile-nav .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.js-mobile-nav .mobile-nav-links a {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-left: 4px solid #007cba;
}

.js-mobile-nav .mobile-nav-contact-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.js-mobile-nav .mobile-nav-contact-section a[href^="tel:"] {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #007cba;
    text-decoration: none;
    margin-bottom: 8px;
}

.js-mobile-nav .mobile-nav-contact-section p {
    margin: 0 0 25px;
    color: #666;
    font-size: 14px;
}

.js-mobile-nav .whatsapp-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.js-mobile-nav .callback-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

/* Floating overlay active state */
.floating-overlay.active {
    display: block !important;
}
