/* ============================================
   КРИТИЧЕСКИЕ СТИЛИ МОБИЛЬНОГО МЕНЮ
   ДОЛЖНЫ БЫТЬ В НАЧАЛЕ ФАЙЛА!
   ============================================ */

/* Скрываем checkbox */
#mobile-menu-toggle {
    display: none !important;
}

/* Мобильное меню на малых экранах */
@media (max-width: 768px) {
    /* Бургер кнопка */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        cursor: pointer !important;
        background: transparent !important;
        border: none !important;
        padding: 8px !important;
        z-index: 10001 !important;
    }

    .mobile-menu-toggle span {
        width: 25px !important;
        height: 3px !important;
        background: white !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        display: block !important;
    }

    /* Меню скрыто по умолчанию */
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(28, 24, 20, 0.98) !important;
        padding: 20px !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        flex-direction: column !important;
        list-style: none !important;
        margin: 0 !important;
    }

    /* ГЛАВНОЕ ПРАВИЛО - показываем меню когда checkbox checked */
    #mobile-menu-toggle:checked ~ .header-content .main-navigation .nav-menu {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Анимация бургера в крестик - линия 1 */
    #mobile-menu-toggle:checked ~ .header-content .main-navigation .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px) !important;
        background: #b07d2e !important;
    }

    /* Анимация бургера в крестик - линия 2 (скрываем) */
    #mobile-menu-toggle:checked ~ .header-content .main-navigation .mobile-menu-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    /* Анимация бургера в крестик - линия 3 */
    #mobile-menu-toggle:checked ~ .header-content .main-navigation .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
        background: #b07d2e !important;
    }

    /* Overlay для закрытия меню */
    .menu-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 9999 !important;
        cursor: pointer !important;
    }

    #mobile-menu-toggle:checked ~ .menu-overlay {
        display: block !important;
    }

    /* Элементы меню */
    .nav-menu > li {
        padding: 15px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .nav-menu > li > a {
        color: white !important;
        text-decoration: none !important;
        font-size: 16px !important;
        display: block !important;
    }

    /* Подменю всегда видимо на мобильном */
    .nav-submenu {
        display: block !important;
        position: static !important;
        background: rgba(0, 0, 0, 0.2) !important;
        padding: 10px 0 !important;
        margin: 10px 0 0 0 !important;
        list-style: none !important;
    }

    .nav-submenu li {
        padding: 8px 0 !important;
    }

    .nav-submenu li a {
        padding: 8px 20px !important;
        display: block !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 14px !important;
    }

    /* Стрелка dropdown */
    .dropdown-arrow {
        transform: rotate(180deg) !important;
    }
}

@import url("mobile-menu.css");


/* =================================
   HEADER STYLES - КОМПАКТНАЯ ВЕРСИЯ
   ================================= */

/* Header - делаем более компактным */
.header {
    background: linear-gradient(135deg, #1c1814 0%, #2c2418 100%);
    color: white;
    padding: 0.5rem 0; /* Уменьшили с 1rem до 0.5rem */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px; /* Фиксированная высота */
}

/* Logo - делаем компактнее */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Уменьшили с 12px */
    font-size: 20px; /* Уменьшили с 24px */
    font-weight: bold;
    color: white;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Основные стили навигации - компактные */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px; /* Уменьшили с 30px */
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px; /* Уменьшили с 25px */
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px; /* Уменьшили с 16px */
    padding: 8px 0; /* Уменьшили с 10px */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px; /* Уменьшили с 5px */
}

.nav-menu a:hover {
    color: #d4a853;
}

/* Contact info - компактнее */
.contact-info {
    display: flex;
    gap: 15px; /* Уменьшили с 20px */
    align-items: center;
}

.phone {
    font-size: 16px;
    font-weight: bold;
}

.phone a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #b07d2e 0%, #8a6914 100%);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(176, 125, 46, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.phone a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(176, 125, 46, 0.4);
    background: linear-gradient(135deg, #8a6914 0%, #b07d2e 100%);
}

.phone-icon {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Dropdown меню - компактное */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px; /* Уменьшили с 12px */
    transition: transform 0.3s ease;
    margin-left: 3px;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Базовые стили для всех подменю первого уровня - открываются ВНИЗ */
.nav-submenu {
    position: absolute;
    top: 100%; /* Прямо под пунктом меню */
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 220px;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    display: none !important; /* Скрываем по умолчанию */
    pointer-events: none; /* Предотвращаем случайные клики на скрытом меню */
}

/* Показываем подменю при hover на пункте меню ИЛИ на самом подменю */
.nav-dropdown:hover > .nav-submenu,
.nav-dropdown .nav-submenu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    display: block !important;
    pointer-events: auto; /* Разрешаем клики когда меню видимо */
}

/* Убираем hover для вложенных подменю - они открываются только через hover родителя */
.nav-submenu .nav-dropdown:hover > .nav-submenu-nested {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    display: block !important;
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu a {
    color: #2c3e50;
    padding: 10px 18px; /* Уменьшили с 12px 20px */
    display: block;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px; /* Уменьшили с 14px */
}

.nav-submenu a:hover {
    background: #f8f9fa;
    color: #b07d2e;
}

.nav-submenu li:last-child a {
    border-bottom: none;
}

/* Пункты подменю без ссылок (Услуги) — те же стили, что у .nav-submenu a (как в Гранты) */
.nav-submenu .nav-submenu-label {
    display: block;
    color: #2c3e50;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    cursor: default;
}
.nav-submenu li:last-child .nav-submenu-label {
    border-bottom: none;
}

/* Мобильное меню - компактное */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 3px; /* Уменьшили с 4px */
}

.mobile-menu-toggle {
    background: transparent !important; /* Убираем белый фон */
    border: none !important;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: white !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px); /* Скорректировали с 6px */
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px); /* Скорректировали с 6px */
}

/* =================================
   FOOTER STYLES
   ================================= */

.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-primary-actions {
    margin-top: 16px;
}

.footer-price-card {
    display: block;
    padding: 18px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    color: white;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    max-width: 320px;
}

.footer-price-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.footer-price-card-title {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.footer-price-card-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.35;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    font-size: 20px;
    margin-top: 2px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-details a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.contact-details span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Footer CTA */
.footer-cta {
    background: linear-gradient(135deg, #b07d2e 0%, #8a6914 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.footer-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.footer-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* =================================
   MODAL STYLES
   ================================= */

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #b07d2e;
    border-color: #b07d2e;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: #b07d2e;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* =================================
   СТИЛИ ДЛЯ КЛИКАБЕЛЬНОГО ТЕЛЕФОНА
   ================================= */

.phone a,
a.phone {
    color: white;
    text-decoration: none;
    font-size: 16px; /* Скорректировали под компактный дизайн */
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px; /* Уменьшили с 8px */
}

.phone a:hover,
a.phone:hover {
    color: #d4a853;
    transform: translateY(-1px);
}

/* Дополнительные стили для иконки телефона */
.phone-icon {
    font-size: 14px; /* Уменьшили с 16px */
    margin-right: 4px; /* Уменьшили с 6px */
}

/* Эффект нажатия */
.phone a:active,
a.phone:active {
    transform: translateY(1px);
    opacity: 0.8;
}

/* =================================
   RESPONSIVE STYLES - МОБИЛЬНАЯ АДАПТАЦИЯ
   ================================= */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 15px; /* Уменьшили с 20px */
    }
    
    .main-navigation {
        gap: 15px; /* Уменьшили с 20px */
    }
}

@media (max-width: 768px) {
    /* Компактный header на мобильных */
    .header {
        padding: 0.4rem 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 45px;
        gap: 10px;
    }

    .logo {
        font-size: 16px;
        gap: 6px;
        order: 1;
        flex-shrink: 0;
    }

    /* Скрыть текст логотипа на мобильном */
    .logo span {
        display: none;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .main-navigation {
        order: 3;
        gap: 10px;
        position: relative;
        margin-left: auto;
    }

    .contact-info {
        order: 2;
        display: flex;
        gap: 4px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    /* ЗЕЛЕНАЯ КНОПКА ТЕЛЕФОНА - компактная на мобильном */
    .phone {
        display: flex !important;
        flex-shrink: 1;
        min-width: 0;
    }

    .phone a {
        display: flex !important;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        background: linear-gradient(135deg, #b07d2e 0%, #8a6914 100%);
        border-radius: 18px;
        font-size: 12px;
        font-weight: 700;
        color: white !important;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(176, 125, 46, 0.4);
        transition: all 0.3s ease;
        white-space: nowrap;
        border: 1.5px solid rgba(255, 255, 255, 0.2);
    }

    .phone a:hover,
    .phone a:active {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(176, 125, 46, 0.5);
        background: linear-gradient(135deg, #8a6914 0%, #b07d2e 100%);
    }

    .phone-icon {
        width: 14px;
        height: 14px;
        fill: white;
        flex-shrink: 0;
    }

    .whatsapp, .telegram {
        display: flex;
        flex-shrink: 0;
    }

    .whatsapp svg, .telegram svg {
        width: 20px;
        height: 20px;
    }
    
    /* ИСПРАВЛЕННОЕ МОБИЛЬНОЕ МЕНЮ */
    .nav-menu {
        display: none;
        position: fixed;
        top: 45px; /* Высота компактного header */
        left: 0;
        right: 0;
        bottom: 0;
        background: #1c1814 !important; /* Полностью непрозрачный яркий фон */
        backdrop-filter: none !important; /* Убираем blur - он создает мутность */
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important; /* Полная непрозрачность */
        filter: none !important; /* Убираем любые фильтры которые могут делать тусклым */
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        border-radius: 0;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        z-index: 9999;
        /* Убеждаемся что нет белого фона */
        border: none !important;

        /* Добавляем прокрутку */
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100vh - 45px);
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }
    
    /* Основные пункты меню */
    .nav-menu > li > a {
        padding: 10px 8px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    
    .nav-menu > li:last-child > a {
        border-bottom: none;
    }
    
    /* Подменю в мобильной версии - скрыты по умолчанию */
    .nav-dropdown .nav-submenu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(255,255,255,0.1) !important;
        margin: 8px 0 0 0 !important;
        border-radius: 6px !important;
        max-height: none !important;
        overflow: visible !important;
        display: none !important; /* Скрыты по умолчанию на мобильных */
    }
    
    /* Показываем подменю при активном состоянии родителя */
    /* Показываем подменю при активном состоянии - ВАЖНО: используем оба селектора */
    .nav-dropdown.mobile-submenu-active > .nav-submenu {
        display: block !important; /* Принудительно показываем подменю */
        animation: slideDown 0.3s ease;
    }
    
    /* Для всех подменю внутри активного dropdown */
    .nav-dropdown.mobile-submenu-active .nav-submenu {
        display: block !important;
    }
    
    /* Для вложенных подменю (nested) тоже - ВАЖНО для многоуровневых меню */
    .nav-dropdown.mobile-submenu-active .nav-submenu-nested {
        display: block !important;
    }
    
    /* Для вложенных dropdown внутри активного */
    .nav-submenu .nav-dropdown.mobile-submenu-active > .nav-submenu-nested {
        display: block !important;
    }
    
    .nav-submenu a {
        color: rgba(255,255,255,0.9);
        border-color: rgba(255,255,255,0.1);
        padding: 12px 18px; /* Уменьшили с 15px 20px */
        font-size: 14px; /* Уменьшили с 16px */
    }
    
    .nav-submenu a:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }
    
    /* Стрелка для dropdown в мобильной версии */
    .nav-dropdown .dropdown-arrow {
        font-size: 14px; /* Уменьшили с 16px */
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.mobile-submenu-active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Блокируем прокрутку body когда открыто меню */
    /* ИСПРАВЛЕНО: убрали position: fixed чтобы не было белого overlay */
    body.menu-open,
    html.menu-open {
        overflow: hidden !important;
        /* position: fixed убран - вызывает белый overlay при скролле */
        width: 100% !important;
        height: 100% !important;
        /* Предотвращаем прокрутку без position: fixed */
        position: relative !important;
    }
    
    /* Добавляем backdrop для мобильного меню - БЕЗ затемнения чтобы меню было ярким */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.15); /* Минимальное затемнение - меню будет ярким */
        z-index: 9998;
        pointer-events: none !important; /* ВАЖНО: backdrop не должен блокировать клики! */
    }
    
    /* Анимация для подменю */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px); /* Уменьшили с -10px */
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-cta {
        padding: 30px 20px;
    }
    
    .footer-cta h3 {
        font-size: 1.5rem;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .header-content {
        min-height: 45px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .contact-info {
        gap: 6px;
    }
    
    .phone {
        font-size: 12px;
    }
    
    .phone a,
    a.phone {
        min-height: 32px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .nav-menu {
        padding: 12px;
        gap: 8px;
        top: 45px;
        max-height: calc(100vh - 45px);
    }
    
    .nav-menu > li > a {
        padding: 10px 6px;
        font-size: 15px;
    }
    
    .nav-submenu a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Дополнительные стили для landscape ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        top: 45px;
        max-height: calc(100vh - 45px);
        padding: 12px;
        gap: 6px;
    }
    
    .nav-menu > li > a {
        padding: 8px 6px;
        font-size: 14px;
    }
    
    .nav-submenu a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Исправления для контактов в футере */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer .contact-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.footer .contact-icon {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    min-width: 24px;
    opacity: 0.9;
}

.footer .contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.footer .contact-details a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer .contact-details a:hover {
    color: #d4a853;
}

.footer .contact-details span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.4;
}

/* Убираем конфликтующие стили */
.footer .contact-item::before {
    display: none !important;
    content: none !important;
}

/* Убираем стили псевдоэлементов для email и time классов в футере */
.footer .contact-item.email::before,
.footer .contact-item.time::before {
    display: none !important;
    content: none !important;
}

/* Мобильная адаптация для контактов в футере */
@media (max-width: 768px) {
    .footer .contact-item {
        padding: 15px;
        gap: 10px;
    }
    
    .footer .contact-icon {
        font-size: 18px;
    }
    
    .footer .contact-details a {
        font-size: 15px;
    }
    
    .footer .contact-details span {
        font-size: 13px;
    }
}
/* Screen reader only класс для скрытых текстов */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Многоуровневое меню (ТОЛЬКО для вложенных подменю внутри nav-submenu) */
/* Это ТРЕТИЙ уровень - подменю внутри подменю */
.nav-submenu .nav-dropdown {
    position: relative;
}

.nav-submenu .nav-dropdown .nav-submenu-nested {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0; /* УБИРАЕМ gap - это была проблема! */
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 220px;
    z-index: 1001;
}

/* ВАЖНО: Добавляем невидимый мостик для плавного перехода курсора */
.nav-submenu .nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 10px;
    height: 100%;
    background: transparent;
    z-index: 1002;
}

.nav-submenu .nav-dropdown:hover > .nav-submenu-nested,
.nav-submenu .nav-dropdown::before:hover + .nav-submenu-nested,
.nav-submenu .nav-dropdown .nav-submenu-nested:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    display: block !important;
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .nav-submenu-nested {
        position: static;
        margin-left: 20px;
        background: rgba(255,255,255,0.05);
        border-radius: 6px;
    }
    
    .nav-submenu-nested a {
        padding-left: 30px;
    }
}

/* =================================
   СЕЛЕКТОР ГОРОДОВ В ФУТЕРЕ
   ================================= */

/* Селектор городов в футере */
.footer-city-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
    text-align: center;
}

.footer-city-section h4 {
    color: white;
    margin: 0 0 25px 0;
    font-size: 20px;
    font-weight: 600;
    border: none;
    padding: 0;
    display: block;
}

.footer-city-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-city-block {
    flex: 1 1 260px;
    min-width: 240px;
    text-align: left;
}

.footer-city-block--main {
    flex: 2 1 380px;
    min-width: 280px;
    text-align: center;
}

.footer-icon-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

.footer-icon-link:hover {
    color: #b07d2e;
    text-decoration: underline;
}

.footer-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 768px) {
    .footer-city-layout {
        gap: 18px;
    }
    .footer-city-block,
    .footer-city-block--main {
        flex: 1 1 100%;
        min-width: 0;
        text-align: left;
    }
    .footer-city-block--main .city-selector {
        margin-left: 0;
        margin-right: 0;
    }
}

.footer .city-selector {
    position: relative;
    margin: 0 auto;
    display: inline-block;
}

.footer .city-dropdown {
    position: relative;
    display: inline-block;
}

.footer .city-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: #b07d2e;
    border: 2px solid #b07d2e;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(176, 125, 46, 0.3);
    min-width: 200px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.footer .city-btn:hover,
.footer .city-btn:focus {
    background: #8a6914;
    border-color: #8a6914;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 125, 46, 0.4);
}

.footer .city-btn:active {
    transform: translateY(0);
}

.footer .city-btn.active {
    background: #fff;
    color: #b07d2e;
    border-color: #fff;
}

.footer .city-btn.active .city-arrow {
    transform: rotate(180deg);
}

.footer .city-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.footer .city-name {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.footer .city-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Dropdown меню */
.footer .city-dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    min-width: 280px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b07d2e #f1f1f1;
}

.footer .city-dropdown-menu.dropdown-up {
    bottom: 100%;
    margin-bottom: 15px;
}

.footer .city-dropdown-menu.dropdown-down {
    top: 100%;
    margin-top: 15px;
}

.footer .city-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.footer .city-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.footer .city-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.footer .city-dropdown-menu::-webkit-scrollbar-thumb {
    background: #b07d2e;
    border-radius: 3px;
}

.footer .city-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #8a6914;
}

.footer .city-dropdown-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.footer .city-dropdown-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    border: none;
    padding: 0;
}

.footer .city-dropdown-content {
    padding: 10px 0;
}

.footer .city-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.footer .city-dropdown-item:hover,
.footer .city-dropdown-item:focus {
    background: #f8f9fa;
    color: #b07d2e;
    transform: translateX(5px);
}

.footer .city-dropdown-item:active {
    background: #ede7de;
}

.footer .city-dropdown-item.active {
    background: #f7f3ee;
    color: #b07d2e;
    font-weight: 600;
    border-left: 3px solid #b07d2e;
}

.footer .city-dropdown-separator {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* Адаптивность для селектора городов */
@media (max-width: 768px) {
    .footer-city-section {
        padding: 30px 0;
        margin: 30px 0;
    }

    .footer-city-section h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer .city-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .footer .city-dropdown-menu {
        min-width: 250px;
        max-height: 300px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .footer .city-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 160px;
        flex-direction: column;
        gap: 5px;
    }

    .footer .city-name {
        font-size: 14px;
    }
    
    .footer .city-dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        min-width: calc(100vw - 40px);
        max-width: 280px;
        max-height: 250px;
    }

    .footer .city-dropdown-header {
        padding: 15px 20px 10px;
    }

    .footer .city-dropdown-item {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .footer .city-dropdown-menu {
        min-width: calc(100vw - 20px);
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .footer .city-dropdown-menu {
        max-height: 200px;
    }

    .footer .city-dropdown-menu.dropdown-up {
        margin-bottom: 10px;
    }

    .footer .city-dropdown-menu.dropdown-down {
        margin-top: 10px;
    }
}
/* ============================================
   МОБИЛЬНОЕ МЕНЮ - CSS ONLY (КРИТИЧЕСКОЕ!)
   ============================================ */

/* Скрываем checkbox */
#mobile-menu-toggle {
    display: none !important;
}

/* Меню скрыто по умолчанию на мобильном */
@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(28, 24, 20, 0.98) !important;
        padding: 20px !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        flex-direction: column !important;
    }

    /* ПОКАЗЫВАЕМ меню когда checkbox активен */
    #mobile-menu-toggle:checked ~ .header-content .main-navigation .nav-menu {
        display: flex !important;
        opacity: 1 !important;
    }

    /* Анимация бургера в крестик */
    #mobile-menu-toggle:checked ~ .header-content .main-navigation .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px) !important;
        background: #b07d2e !important;
    }

    #mobile-menu-toggle:checked ~ .header-content .main-navigation .mobile-menu-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    #mobile-menu-toggle:checked ~ .header-content .main-navigation .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
        background: #b07d2e !important;
    }

    /* Overlay */
    .menu-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 9999 !important;
    }

    #mobile-menu-toggle:checked ~ .menu-overlay {
        display: block !important;
    }

    /* Подменю всегда открыто на мобильном */
    .nav-submenu {
        display: block !important;
        position: static !important;
        background: rgba(0, 0, 0, 0.2) !important;
        padding: 0 !important;
        margin: 10px 0 !important;
    }

    .nav-submenu li {
        padding: 10px 0 !important;
    }

    .nav-submenu li a {
        padding: 10px 20px !important;
        display: block !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
}
/* Фиксируем header чтобы он не прокручивался */
@media (max-width: 768px) {
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
    }

    /* Добавляем отступ к body чтобы контент не был под header */
    body {
        padding-top: 65px !important;
    }

    /* Меню от низа header */
    .nav-menu {
        top: 100% !important;
    }
}
/* ДЕСКТОП - скрываем мобильные элементы */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .menu-overlay {
        display: none !important;
    }
    
    #mobile-menu-toggle {
        display: none !important;
    }
    
    /* Десктопное меню нормальное */
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        gap: 20px !important;
    }
    
    .header {
        position: relative !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* МОБИЛЬНЫЙ - фиксированный header и правильная позиция меню */
@media (max-width: 768px) {
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
    }
    
    /* Отступ для контента */
    body {
        padding-top: 70px !important;
    }
    
    /* Меню от самого верха viewport, а не от header */
    .nav-menu {
        top: 0 !important;
        padding-top: 70px !important;
    }
    
    /* Overlay от самого верха */
    .menu-overlay {
        top: 0 !important;
    }
}

/* =================================
   СТИЛИ ДЛЯ БЛОКА ПОДКАСТОВ
   ================================= */

.podcasts-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.podcasts-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.podcasts-header {
    text-align: center;
    margin-bottom: 50px;
}

.podcasts-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.podcasts-header .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.podcast-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
}

.podcast-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.podcast-cover {
    position: relative;
}

.podcast-cover-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.podcast-info {
    display: flex;
    flex-direction: column;
}

.podcast-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.podcast-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.podcast-player {
    margin: 25px 0;
}

.podcast-audio-player {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    background: #f8f9fa;
    outline: none;
}

.podcast-audio-player::-webkit-media-controls-panel {
    background-color: #f8f9fa;
    border-radius: 12px;
}

.podcast-episodes {
    margin-top: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.podcast-episodes::-webkit-scrollbar {
    width: 6px;
}

.podcast-episodes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.podcast-episodes::-webkit-scrollbar-thumb {
    background: #b07d2e;
    border-radius: 3px;
}

.podcast-episodes::-webkit-scrollbar-thumb:hover {
    background: #8a6914;
}

.episode-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #b07d2e;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.episode-item:hover {
    background: #ede7de;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(176, 125, 46, 0.15);
}

.episode-item.episode-active {
    background: #ede7de;
    border-left-color: #b07d2e;
    box-shadow: 0 4px 16px rgba(176, 125, 46, 0.2);
}

.episode-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #b07d2e 0%, #8a6914 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.episode-details h4 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: #2c3e50;
    font-weight: 600;
}

.episode-details p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.episode-duration {
    display: inline-block;
    padding: 4px 10px;
    background: #e3e8ff;
    color: #b07d2e;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.podcast-platforms {
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.platforms-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.platform-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #b07d2e;
}

.platform-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.platform-apple:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.platform-yandex:hover {
    background: #fc3f1d;
    color: #fff;
    border-color: #fc3f1d;
}

.platform-mave:hover {
    background: #b07d2e;
    color: #fff;
    border-color: #b07d2e;
}

.platform-castbox:hover {
    background: #f48024;
    color: #fff;
    border-color: #f48024;
}

.platform-pocketcasts:hover {
    background: #f43e37;
    color: #fff;
    border-color: #f43e37;
}

.platform-podcastaddict:hover {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.platform-deezer:hover {
    background: #ff0092;
    color: #fff;
    border-color: #ff0092;
}

.platform-zvuk:hover {
    background: #4c51bf;
    color: #fff;
    border-color: #4c51bf;
}

/* Адаптивность */
@media (max-width: 768px) {
    .podcasts-section {
        padding: 50px 0;
    }
    
    .podcast-card {
        padding: 25px;
    }
    
    .podcast-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .podcast-cover {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .podcasts-header .section-title {
        font-size: 1.8rem;
    }
    
    .podcast-title {
        font-size: 1.4rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .platform-link {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .platform-link span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .podcast-card {
        padding: 20px;
    }
}
