/* Desktop-only refinement of the existing Masala Travel header. */
@media (min-width: 1200px) {
    .mt-header .mt-header__inner {
        align-items: center !important;
        gap: 10px !important;
        min-height: 128px !important;
        padding: 18px 26px !important;
    }

    .mt-header .mt-header__logo {
        flex: 0 0 190px !important;
    }

    .mt-header .mt-header__logo img {
        max-width: 190px !important;
        height: auto !important;
    }

    .mt-header .mt-header__telegram-box {
        flex: 1 1 270px !important;
        min-width: 250px !important;
        max-width: 290px !important;
    }

    .mt-header .mt-header__search {
        flex: 0 0 58px !important;
    }

    .mt-header .mt-header__search-btn {
        width: 58px !important;
        height: 58px !important;
        color: transparent !important;
        background-color: rgba(255, 255, 255, .96) !important;
        background-image: url('/assets/template/images/masala-header-minimal/search.svg') !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 28px 28px !important;
        border: 1px solid rgba(23, 99, 46, .18) !important;
        border-radius: 16px !important;
        box-shadow: 0 5px 14px rgba(34, 70, 36, .12) !important;
    }

    .mt-header .mt-header__search-btn svg {
        opacity: 0 !important;
    }

    .mt-header .mt-header__phone {
        position: relative !important;
        flex: 0 0 230px !important;
        box-sizing: border-box !important;
        min-height: 82px !important;
        margin: 0 !important;
        padding: 14px 14px 14px 68px !important;
        text-align: left !important;
        background: rgba(255, 255, 255, .92) !important;
        border: 1px solid rgba(23, 99, 46, .22) !important;
        border-radius: 18px !important;
        box-shadow: 0 7px 18px rgba(34, 70, 36, .11) !important;
    }

    .mt-header .mt-header__phone::before {
        position: absolute;
        top: 50%;
        left: 14px;
        width: 42px;
        height: 42px;
        content: '';
        background: url('/assets/template/images/masala-header-minimal/phone-contact.svg') center / contain no-repeat;
        transform: translateY(-50%);
    }

    .mt-header .mt-header__phone a {
        display: block !important;
        margin: 0 0 5px !important;
        color: #27352d !important;
        font-size: 19px !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
        letter-spacing: .01em !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .mt-header .mt-header__phone span {
        display: block !important;
        color: #5d685f !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
    }

    .mt-header .mt-header__visa {
        position: relative !important;
        flex: 0 0 255px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        min-height: 82px !important;
        margin: 0 !important;
        padding: 13px 38px 13px 66px !important;
        color: #24342a !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.22 !important;
        text-align: left !important;
        text-decoration: none !important;
        background: rgba(255, 255, 255, .92) !important;
        border: 2px solid #58ae62 !important;
        border-radius: 18px !important;
        box-shadow: 0 7px 18px rgba(34, 70, 36, .11) !important;
    }

    .mt-header .mt-header__visa::before {
        position: absolute;
        top: 50%;
        left: 14px;
        width: 40px;
        height: 40px;
        content: '';
        background: url('/assets/template/images/masala-header-minimal/visa-passport.svg') center / contain no-repeat;
        transform: translateY(-50%);
    }

    .mt-header .mt-header__visa::after {
        position: absolute;
        top: 50%;
        right: 14px;
        width: 16px;
        height: 16px;
        content: '';
        background: url('/assets/template/images/masala-header-minimal/arrow-right.svg') center / contain no-repeat;
        transform: translateY(-50%);
    }

    .mt-header .mt-header__visa:hover,
    .mt-header .mt-header__visa:focus {
        color: #166b2e !important;
        background-color: #fbfff9 !important;
        box-shadow: 0 9px 22px rgba(34, 112, 48, .18) !important;
    }

    .mt-header .mt-header__socials {
        flex: 0 0 160px !important;
        gap: 8px !important;
    }
}

/* Keep the pre-existing tablet and mobile header completely unchanged. */
@media (max-width: 1199px) {
    .mt-header .mt-header__phone::before,
    .mt-header .mt-header__visa::before,
    .mt-header .mt-header__visa::after {
        content: none !important;
    }
}

/* MASALA COMPACT HEADER START */
@media (min-width: 1200px) {
    html body .mt-header {
        background-size: cover !important;
        background-position: center 42% !important;
    }

    /* Опускаем верхний ряд на 10px, не увеличивая его высоту */
    html body .mt-header .mt-header__inner {
        min-height: 128px !important;
        padding: 28px 26px 8px !important;
    }

    /* Убираем лишнее пространство перед меню */
    html body .mt-header .mt-header__nav {
        margin-top: 0 !important;
        padding: 24px 0 18px !important;
    }
}
/* MASALA COMPACT HEADER END */
