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

/* The center is reserved for the two links; the mountain and village artwork
   is drawn at a fixed height and cropped from its outside edge on narrow screens. */
.header-wrapper--new-year .header-strip {
    --strip-height: 48px;
    --scene-height: 48px;
    --sky: #e4f5ff;
    --ink: #073f60;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content minmax(0, 1fr);
    gap: 0;
    padding: 0;
    min-height: var(--strip-height);
    color: var(--ink);
    background: linear-gradient(90deg, var(--sky), #edf8ff 32%, #f2faff 50%, #edf8ff 68%, var(--sky));
    box-shadow: inset 0 -1px #c7e4f4;
}

.header-wrapper--new-year .header-strip::before,
.header-wrapper--new-year .header-strip::after {
    content: "";
    width: min(100%, 232px);
    height: var(--strip-height);
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: auto var(--scene-height);
}

.header-wrapper--new-year .header-strip::before {
    margin-left: max(0px, calc((100vw - 1500px) / 2));
    background-image: url("../img/holiday-alpine-lift.webp");
    background-position: left bottom;
}

.header-wrapper--new-year .header-strip::after {
    justify-self: end;
    margin-right: max(0px, calc((100vw - 1500px) / 2));
    background-image: url("../img/holiday-alpine-village.webp");
    background-position: right bottom;
}

.header-wrapper--new-year .header-strip :where(a) {
    min-height: var(--strip-height);
    padding-inline: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: none;
}

.header-wrapper--new-year .header-strip__tours {
    gap: 9px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
}

.header-strip__year {
    padding: 3px 6px;
    border-radius: 4px;
    color: #92410d;
    background: #ffe8d2;
    font: 700 13px/1 Lato, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

.header-strip__arrow {
    position: relative;
    flex: none;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #087cba;
    color: #fff;
}

.header-strip__arrow::before,
.header-strip__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 27%;
}

.header-strip__arrow::before {
    width: 46%;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
}

.header-strip__arrow::after {
    box-sizing: border-box;
    width: 31%;
    height: 31%;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-1px, -50%) rotate(45deg);
}

.header-wrapper--new-year .header-strip__telegram {
    position: relative;
    gap: 7px;
    margin-left: 9px;
    padding-left: 22px;
    color: #175275;
    font-size: 14px;
    font-weight: 400;
}

.header-wrapper--new-year .header-strip__telegram::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(50% - 8px);
    height: 16px;
    border-left: 1px solid #9fc9df;
}

.header-wrapper--new-year .header-strip__telegram img {
    width: 21px;
    height: 21px;
    background: #087cba;
    border-radius: 50%;
}

.header-wrapper--new-year .header-strip a:hover .header-strip__label,
.header-wrapper--new-year .header-strip__telegram:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-wrapper--new-year .header-strip a:focus-visible {
    outline: 2px solid #07517a;
    outline-offset: -3px;
    border-radius: 5px;
}

@media (min-width: 1540px) {
    .header-wrapper--new-year .header-strip::before {
        mask-image: linear-gradient(to right, transparent, #000 21px);
    }

    .header-wrapper--new-year .header-strip::after {
        mask-image: linear-gradient(to left, transparent, #000 21px);
    }
}

@media (max-width: 900px) {
    .header-wrapper--new-year .header-strip {
        --strip-height: 44px;
        --scene-height: 44px;
    }

    .header-wrapper--new-year .header-strip__tours {
        font-size: 17px;
        gap: 7px;
    }

    .header-wrapper--new-year .header-strip__telegram {
        margin-left: 4px;
        padding-left: 14px;
    }
}

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

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

@media (max-width: 1280px) {
    .header-wrapper--new-year .header-strip::before {
        mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent);
    }

    .header-wrapper--new-year .header-strip::after {
        mask-image: linear-gradient(to left, #000 calc(100% - 14px), transparent);
    }
}

@media (max-width: 640px) {
    .header-wrapper--new-year .header-strip {
        --strip-height: 40px;
        --scene-height: 40px;
    }

    .header-wrapper--new-year .header-strip__tours {
        gap: 5px;
        padding-inline: 4px;
        font-size: 15px;
    }

    .header-strip__year {
        padding: 3px 4px;
        font-size: 11px;
    }

    .header-strip__arrow {
        width: 19px;
        height: 19px;
    }
}

@media (max-width: 475px) {
    .header-wrapper--new-year .header-strip__telegram {
        width: 44px;
        padding: 0 0 0 2px;
        margin-left: 4px;
    }

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

    .header-wrapper--new-year .header-strip::before {
        background-position: left -4px bottom;
        mask-image: linear-gradient(to right, #000 78%, transparent);
    }

    .header-wrapper--new-year .header-strip::after {
        background-position: right 0 bottom;
        mask-image: linear-gradient(to left, #000 78%, transparent);
    }
}

@media (max-width: 320px) {
    .header-wrapper--new-year .header-strip__tours {
        font-size: 13px;
        gap: 3px;
        padding-inline: 3px;
    }
    .header-strip__year {
        padding-inline: 3px;
    }

    .header-wrapper--new-year .header-strip__telegram {
        width: 36px;
        margin-left: 2px;
    }

    .header-wrapper--new-year .header-strip::after {
        background-position: right -2px bottom;
    }

    .header-wrapper--new-year .header-strip::before {
        background-position: left -11px bottom;
    }
}

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