﻿@media (max-width: 910px) {

    .header-top-mobile {
        display: block;
        padding: 20px 10px;
        background: #FFF;
    }

    .header-top .wrapper {
        padding: 0;
    }

    .mob-menu-block-top {
        display: flex;
        padding: 20px 0;
        justify-content: space-between;
        align-items: center;
    }

    .mob-menu-close {
        border: none;
        display: block;
        font-size: 0;
        cursor: pointer;
        width: 45px;
        height: 45px;
        border-radius: 10px;
        flex-shrink: 0;
        background: #F5F8FB;
    }

    .header-top-mobile .wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    .header-mobile-right {
        display: flex;
        gap: 5px;
    }

        .header-mobile-right .header-bottom-button {
            background-color: #F5F8FB;
        }

        .header-mobile-right .header-login-button span {
            color: #012063;
        }

    /*.header-mobile-right .header-login-button::before {
            background-image: url(//cdn.specialist.ru/Content/File/layouts/header2025/img/profile-mob.png);
        }

        .header-mobile-right .header-cart-button {
            background-image: url(//cdn.specialist.ru/Content/File/layouts/header2025/img/cart-mob.png);
        }

       */

    .header-menu-button, .header-logout-button {
        width: 45px;
        height: 45px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        /*background-image: url(//cdn.specialist.ru/Content/File/layouts/header2025/img/menu-button.png);*/
    }

    /*.header-mobile-right .header-logout-button {
        background-image: url(//cdn.specialist.ru/Content/File/layouts/header2025/img/logout.png);
    }*/

    .header-cart-button {
        width: 45px;
        height: 45px;
    }

    .mob-menu-block {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100000px;
        right: auto;
        background: #FFF;
        z-index: 500;
        display: flex;
        flex-direction: column;
        transition: 0.3s;
        padding: 0 20px;
        padding-bottom: 100px;
        overflow: auto;
    }

        .mob-menu-block.active {
            left: 0;
            right: 0;
            transition: 0.3s;
        }

    .header-bottom-rigth {
        margin-bottom: 40px;
    }

    .header-top {
        order: 1;
    }

    .mob-menu-block .header-top .logo-link {
        display: none;
    }

    .header-bottom {
        background: transparent;
    }

    .header-bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    .header-menu {
        order: 1
    }

    .header-menu-list {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 40px;
    }

    .top-level-menu {
        color: #333333;
    }

    .header-bottom {
        padding: 0;
    }

    .header-submenu:not(.login-submenu) {
        position: static;
        padding: 0;
    }

    .mob-menu-block .cart-header-block, .mob-menu-block .login-header-block {
        display: none !important;
    }

    .header-menu-search {
        width: 100%;
    }

    .header-search-button, button.header-search-button {
        display: none;
    }

    .header-menu-search-body {
        visibility: visible;
        opacity: 1;
        position: relative;
        top: 0;
        left: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        width: 100%;
    }

        .header-menu-search-body form {
            border-radius: 10px;
            background: #F5F8FB;
            width: 100%;
        }

        .header-menu-search-body input {
            height: 45px;
        }

    .top-level-menu:after {
        background-image: url(//cdn.specialist.ru/Content/File/layouts/header2025/img/arrow-down-black.svg);
    }

    .top-level-menu:hover {
        background: transparent;
        color: #333333;
    }

    .header-menu-item .header-submenu:not(.login-submenu).active {
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-bottom: 20px;
        width: auto;
        visibility: visible;
        height: auto;
        clip-path: initial;
        clip: initial;
    }

    .header-submenu:not(.login-submenu)::before {
        display: none;
    }

    .header-submenu a {
        font-size: 14px;
    }

    .header-row-right {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        padding: 0 10px;
    }

    .header-phones-block {
        flex-wrap: wrap;
        width: 100%;
        margin-bottom: 32px;
        gap: 24px 18px;
    }

    .top-level-menu {
        font-size: 16px;
        justify-content: space-between;
        padding-left: 0;
        margin-bottom: 12px;
    }

    .whatsapp-item {
        height: 100%;
    }

        .whatsapp-item a, .max-item a {
            color: rgba(24, 24, 24, 0.70);
            font-size: 12px;
            font-weight: 600;
            line-height: 100%; /* 12px */
            padding: 11px 15px;
            /*padding-left: 50px;*/
            width: fit-content;
            height: 100%;
            max-width: 160px;
            border-radius: 10px;
            background: #F5F8FB;
            
            /*background: url(//cdn.specialist.ru/content/file/layouts/header2025/img/whatsapp-icon.png) left 10px center no-repeat, #fff;*/
        }

    .max-item a svg{
        width: 30px;
    }
    
    .max-item a span{
        position: relative;
        flex: 1;
    }
    
    .phone-num-link {
        font-size: 20px;
        width: fit-content;
    }

    .login-submenu.active {
        height: auto;
        left: 0;
        top: calc( 100% + 30px);
        border-radius: 10px;
        background: #FFF;
        z-index: 1030;
        clip-path: initial;
        clip: auto;
        padding: 20px 10px;
        width: 280px;
        overflow: visible;
    }

    .order-callback {
        font-size: 14px;
        padding: 16px;
    }
}

@media (max-width: 500px) {
    .header-phones-block {
        flex-direction: column;
    }

    .header-row-right-inner {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 35px;

    }

    .order-callback {
        width: 100%;
        display: block;
    }
}

    @media (max-width: 400px) {
        .mob-menu-block {
            padding: 0 10px;
            padding-bottom: 100px;
        }

        .header-top-mobile .wrapper {
            padding: 0 10px;
        }

        .login-submenu.active {
            width: 250px;
        }
    }
