.header__logo {
    align-items: center;
}

.header__logo-wrapper picture {
    display: block;
}

.header-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 40px;
    padding: 0 12px;
    background-color: #ff7b00;
    color: #fff;
    font: 700 13px/1.3 Lato, system-ui, sans-serif;
}

.header-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    color: inherit;
}

.header-strip__telegram {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-strip a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

/* Winter photo credits (Unsplash):
   Antoine Pouligny, unsplash.com/photos/v6gZPjsROrI (gondola)
   Simon Berger, unsplash.com/photos/qkJhJOefs-Y (chalets)
   Vincent Etter, unsplash.com/photos/FpQeEaXO0TQ (Mont Blanc)
   Lorin Both, unsplash.com/photos/-kU1Z5ugxWY (Valais) */
/* Each four-density photo composition keeps its native ratio. Narrow slots
   crop around the gondola or chalet; wider screens add white margin. */
.header-wrapper--new-year .header-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
    padding-inline: 0;
    background: #fff;
    color: #075784;
}

.header-wrapper--new-year .header-strip__telegram {
    margin-inline: clamp(6px, 1.4vw, 16px);
    padding-inline: 8px;
    border-radius: 4px;
    transition: none;
}

.header-wrapper--new-year .header-strip__telegram img {
    border-radius: 50%;
    background: #0876a7;
}

.header-wrapper--new-year .header-strip__telegram:focus-visible {
    outline-offset: -3px;
}

.header-wrapper--new-year .header-strip::before,
.header-wrapper--new-year .header-strip::after {
    content: "";
    width: min(100%, 340px);
    min-width: 0;
    align-self: stretch;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: var(--trim-width) auto, auto 40px;
}

.header-wrapper--new-year .header-strip::before {
    --trim-width: 89px;
    justify-self: end;
    background-image: url("../img/telegram-new-year-baubles.webp"), url("../img/telegram-photo-lift.webp");
    background-position: left 16px bottom 2px, 58% bottom;
}

.header-wrapper--new-year .header-strip::after {
    justify-self: start;
    background-image: url("../img/telegram-new-year-fir.webp"),
        url("../img/telegram-new-year-lights.webp"), url("../img/telegram-photo-chalet.webp");
    background-size: 25px auto, 137px auto, auto 40px;
    background-position: left 137px bottom 0, left 154px top -5px, 33% bottom;
}

@media (max-width: 1023px) {
    .header-wrapper--new-year .header-strip::before {
        --trim-width: clamp(59px, 18vw, 89px);
        background-position: left -8px bottom 2px, 53% bottom;
        mask-image: linear-gradient(to right, #000 84%, transparent);
    }

    .header-wrapper--new-year .header-strip::after {
        background-size: 25px auto, clamp(103px, 17vw, 137px) auto, auto 40px;
        background-position: calc(33% + 33px) bottom, 88% -5px, 33% bottom;
        mask-image: linear-gradient(to left, #000 84%, transparent);
    }
}

.header__winter-logo {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
}

.header-wrapper--new-year .header__logo-wrapper {
    flex: none;
}

.header-wrapper--new-year .header__logo-wrapper > a {
    display: block;
}

.header-wrapper--new-year .header__logo-text {
    text-wrap: balance;
    max-width: 246px;
    padding-left: 12px;
}

.header-wrapper--new-year .header__logo-text::before {
    content: none;
}

.header-wrapper--new-year #header a.menu-extended__title.vip-animated,
.header-wrapper--new-year #header a.menu-extended__title.vip-animated:is(:hover, :focus-visible) {
    animation: none;
    transition: none;
    transform: none;
}

@media (min-width: 1024px) {
    .header-wrapper--new-year #header {
        padding-top: 5px;
    }

    .header-wrapper--new-year .header__upper {
        margin-bottom: 4px;
    }

    .header-wrapper--new-year .header__logo {
        min-width: 0;
    }

    .header-wrapper--new-year .header__content_main {
        flex: none;
        gap: clamp(12px, 1.3vw, 20px);
    }

    .header-wrapper--new-year .header__content .blue-btn {
        margin-left: 0;
        white-space: nowrap;
    }

    .header-wrapper--new-year #header .header__lower {
        gap: 8px;
    }

    .header-wrapper--new-year #header .header__lower .menu {
        gap: clamp(5px, .6vw, 9px);
        margin-left: 0;
    }

    .header-wrapper--new-year #header .header__lower .menu > li + li {
        margin-left: 0;
    }

    .header-wrapper--new-year #header .header__lower .menu > li > a {
        white-space: nowrap;
        font-size: clamp(14px, 1.26vw, 15.5px);
    }

    .header-wrapper--new-year #header .menu a.vip-animated {
        padding-inline: 10px;
    }
}

@media (max-width: 1023px) {
    .header-wrapper.header-wrapper--new-year {
        position: sticky;
        flex-shrink: 0;
    }

    .header-wrapper--new-year ~ main {
        padding-top: 0;
    }

    .header-wrapper--new-year .header__upper {
        justify-content: flex-start;
        gap: 8px;
    }

    .header-wrapper--new-year .header__logo {
        margin-right: auto;
    }

    .header-wrapper--new-year .header__lower {
        gap: 6px;
        margin-left: 6px;
    }

    .header-wrapper--new-year .header__content .blue-btn--mobile {
        margin-left: 0;
    }

    .lang_en .header-wrapper--new-year .header__content_main,
    .header-wrapper--new-year .header__content-info {
        display: none;
    }

    .header__winter-logo {
        width: clamp(94px, calc(100vw - 184px), 145px);
    }
}

@media (max-width: 640px) {
    .header__logo-wrapper .logo {
        width: 124px !important;
    }
}

@media (min-width: 480px) and (max-width: 640px) {
    .header-wrapper--new-year .header__logo-text {
        display: block;
        max-width: 180px;
        font-size: 12px;
        line-height: 1.2;
    }
}

/* A short landscape viewport needs the vertical space while reading a tour. */
@media (max-width: 1023px) and (max-height: 480px) and (orientation: landscape) {
    .header-wrapper.header-wrapper--new-year {
        position: relative;
    }
}
