/* ==========================================================================
   МОБИЛЬНАЯ ШАПКА - ПОЛНЫЙ КОД
   ========================================================================== */

/* Бургер-меню для мобильных */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 101;
    background: transparent;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #272727;
    transition: all 0.3s;
    border-radius: 3px;
}

.topbar.opened-mobile .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.topbar.opened-mobile .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.topbar.opened-mobile .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Оверлей для мобильного меню */
.topbar.opened-mobile::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* Мобильное меню - базовые стили */
.newmobile-menu {
    position: fixed;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    transform: translateX(-100vw);
    transition: all 0.4s ease 0s;
    background: #fff;
    height: 100vh;
    overflow-y: auto;
    top: 0;
    width: 100%;
    max-width: 320px;
    z-index: 100;
    left: 0;
}

.topbar.opened-mobile .newmobile-menu {
    transform: translateX(0);
}

/* Верхняя часть мобильного меню */
.mobile-menu-top {
    display: none;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid rgba(225, 228, 231, 0.5);
}

.mobile-menu-top-address {
    display: flex;
    margin-bottom: 15px;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

/* Видимая мобильная информация */
.mobile-header-visible {
    display: none;
}

/* Адаптивность для мобильных */
@media (max-width: 919px) {
    .header-logos {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 10px 0;
    }
    
    .logos2 {
        flex-shrink: 0;
    }
    
    .logos2 img {
        min-height: 50px;
    }
    
    .mobile-header-visible {
        display: flex;
        flex-direction: row;
        gap: 15px;
        flex: 1;
        font-size: 10px;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        position: static !important;
        flex-shrink: 0;
        display: flex !important;
    }
    
    .mobile-visible-address,
    .mobile-visible-schedule,
    .mobile-visible-phone,
    .mobile-visible-button {
        white-space: nowrap;
    }
    
    .mobile-visible-address ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-visible-phone a {
        color: #3e5cc5;
        font-weight: 600;
        text-decoration: none;
    }
    
    .mobile-btn-small {
        padding: 5px 10px;
        background: #3e5cc5;
        color: white;
        border-radius: 4px;
        text-decoration: none;
        font-size: 10px;
    }
    
    .main-header-container {
        display: none !important;
    }
    
    .header-btns {
        display: none !important;
    }
    
    .topbar {
        margin-top: 10px;
        position: relative;
    }
    
    .mobile-menu-top {
        display: block;
    }
    
    .main-header-address {
        flex: 1;
        min-width: 45%;
    }
    
    .mobile-header-works {
        flex: 1;
        min-width: 45%;
        font-size: 13px;
        color: #666;
    }
    
    .main-header-address ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .main-header-address .nav-item {
        margin-bottom: 8px;
    }
    
    .main-header-address a {
        font-size: 13px;
        color: #272727;
        text-decoration: none;
    }
    
    .main-header-address a:hover {
        color: #3e5cc5;
    }
    
    .eye {
        font-size: 12px;
        margin-bottom: 10px;
        display: block;
    }
    
    .main-header-phone {
        font-size: 16px;
        margin-bottom: 10px;
        display: block;
    }
    
    .header-btns-mobile-row {
        display: flex;
        margin-top: 13px;
        gap: 10px;
        align-items: center;
    }
    
    .header-recall {
        flex: 1;
        text-align: center;
        min-width: 0;
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .header-basket {
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .header-lk {
        margin-bottom: 10px;
        display: inline-block;
        width: 100%;
        text-align: center;
        font-size: 13px;
    }
    
    /* Навигация в мобильном меню */
    .header-responsive__phones {
        text-align: left;
        padding: 20px;
        border-bottom: 1px solid rgba(225, 228, 231, 0.5);
        width: 100%;
    }
    
    .header-responsive__phone {
        padding-bottom: 15px;
        position: relative;
        font-size: 18px;
        white-space: nowrap;
        display: block;
        color: #232427;
        text-decoration: none;
    }
    
    .header-responsive__phone-tel {
        font-weight: 500;
    }
    
    .navigation-list {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .navigation-list ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .navigation-list__item {
        margin: 0 20px;
        border-bottom: 1px solid rgba(225, 228, 231, 0.5);
        position: relative;
    }
    
    .navigation-list__link-1 {
        font-size: 16px;
        padding: 15px 20px;
        display: block;
        color: #232427;
        text-decoration: none;
    }
    
    .navigation-list__link-1:hover {
        color: #2c5aa0;
        text-decoration: none;
    }
    
    /* Блоки внизу меню */
    .blocks__items {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: dense;
        align-items: stretch;
        gap: 15px;
        padding: 0 20px;
        margin: 20px 0 40px 0;
    }
    
    .blocks__item {
        height: auto;
        border-radius: 12px;
        border: 1px solid rgba(62, 92, 197, 0.14);
        background: rgba(62, 92, 197, 0.06);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        box-shadow: 0px 3px 21px -7px rgba(0, 0, 0, 0.2);
    }
    
    .blocks__item-big {
        grid-column: span 2;
    }
    
    .blocks__items__title {
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        text-align: center;
        color: #3e4555;
        text-decoration: none;
        display: block;
    }
    
    .blocks__items__title:hover {
        color: #2c5aa0;
        text-decoration: none;
    }
    
    /* Баннер */
    .text-alert-header {
        display: block !important;
        padding: 10px 0;
    }
}

/* Для средних экранов */
@media (max-width: 768px) {
    .mobile-header-visible {
        font-size: 9px;
        gap: 10px;
    }
    
    .mobile-btn-small {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* Для совсем маленьких экранов */
@media (max-width: 576px) {
    .logos2 img {
        min-height: 40px;
    }
    
    .mobile-header-visible {
        font-size: 8px;
        gap: 8px;
    }
    
    .mobile-btn-small {
        font-size: 8px;
        padding: 3px 6px;
    }
    
    .mobile-menu-toggle {
        right: 10px;
        top: 10px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .eye {
        font-size: 11px;
    }
    
    .main-header-address ul li {
        font-size: 12px;
    }
    
    .mobile-header-works {
        font-size: 12px;
    }
    
    .header-recall {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .navigation-list__link-1 {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .blocks__items {
        padding: 0 15px;
        gap: 10px;
    }
    
    .blocks__item {
        padding: 20px 15px;
    }
    
    .blocks__items__title {
        font-size: 16px;
    }
    
    .newmobile-menu {
        max-width: 280px;
    }
}

/* Фикс для предотвращения скролла при открытом меню */
body.menu-opened {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


@media (max-width: 919px) {
    .swiper-container,
    .main-slider,
    .home-slider {
        display: block !important;
    }
}

@media (max-width: 919px) {
    .slider2-mob {
        display: block !important;
    }
}

@media (min-width: 920px) {
    .slider2-mob {
        display: none !important;
    }
}