.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__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: inherit;
    min-width: 0;
}

.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;
}

.header-strip--new-year {
    --brand-blue: #028fde;
    --winter-ink: #003b5c;
    --winter-sky: #e4f5ff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
    min-height: 56px;
    padding-inline: max(0px, calc((100% - 1660px) / 2));
    background-color: var(--winter-sky);
    border-bottom: 1px solid #c8e8f8;
    color: var(--winter-ink);
}

.header-strip--new-year .header-strip__links {
    gap: 20px;
    padding-inline: 8px;
}

.header-strip--new-year::before,
.header-strip--new-year::after {
    content: "";
    align-self: stretch;
    width: min(100%, 238px);
    pointer-events: none;
    background: url("../img/winter-mountains.webp?v=azure") no-repeat;
    background-size: 476px 100%;
}

.header-strip--new-year::before {
    justify-self: start;
    background-position: left center;
    mask-image: linear-gradient(to right, #000 48%, transparent);
}

.header-strip--new-year::after {
    justify-self: end;
    background-position: right center;
    mask-image: linear-gradient(to left, #000 48%, transparent);
}

.header-strip--new-year a {
    padding-inline: 6px;
    border-radius: 4px;
    transition: none;
}

.header-strip--new-year a:focus-visible {
    outline: 2px solid #0067a2;
    outline-offset: -1px;
}

.header-strip--new-year .header-strip__tours {
    gap: 10px;
    font-size: 19px;
    text-decoration: none;
}

.header-strip__year {
    color: #a84300;
    background: #ffead9;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.75em;
    vertical-align: 1px;
    letter-spacing: 0.02em;
}

.header-strip__arrow {
    display: block;
    flex: none;
    width: 23px;
    height: 18px;
    color: #0067a2;
}

.header__ornament {
    display: block;
    width: 86px;
    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-strip--new-year .header-strip__telegram {
    position: relative;
    padding-left: 20px;
    font-weight: 400;
    text-decoration: none;
}

.header-strip--new-year .header-strip__telegram::before {
    content: "";
    position: absolute;
    left: 0;
    height: 18px;
    border-left: 1px solid #9acbe4;
}

.header-strip--new-year .header-strip__telegram img {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background-color: var(--brand-blue);
}

.header-strip--new-year a:hover {
    color: #005986;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.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 .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__ornament {
        width: 76px;
    }

    .header-strip--new-year {
        min-height: 40px;
    }
}

@media (max-width: 900px) {
    .header-strip--new-year .teaser-link-text-desktop {
        display: none;
    }

    .header-strip--new-year .teaser-link-text-mobile {
        display: inline;
    }

    .header-strip--new-year .header-strip__links {
        gap: 12px;
    }

    .header-strip--new-year::before,
    .header-strip--new-year::after {
        background-size: max(200%, 250px) 100%;
        background-position-y: center;
    }

    .header-strip--new-year .header-strip__tours {
        gap: 6px;
        font-size: 14px;
    }

    .header-strip__arrow {
        width: 20px;
        height: 16px;
    }

    .header-strip--new-year .header-strip__telegram {
        padding-left: 12px;
    }
}

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

@media (max-width: 440px) {
    .header-strip--new-year .header-strip__telegram {
        min-width: 40px;
    }

    .header-strip--new-year .header-strip__telegram img {
        width: 23px;
        height: 23px;
    }

    .header-strip--new-year .header-strip__telegram .teaser-link-text-mobile {
        display: none;
    }
}

@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;
    }
}

@media (min-width: 1661px) {
    .header-strip--new-year::before,
    .header-strip--new-year::after {
        mask-image: linear-gradient(to right, transparent, #000 14% 64%, transparent);
    }
}

@media (max-width: 340px) {
    .lang_ru .header-strip--new-year::before,
    .lang_ru .header-strip--new-year::after {
        visibility: hidden;
    }
}

/* 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;
    }
}
