/* Shared site header. This component is intended to replace headers across many pages. */
.site-header {
    --site-header-red: var(--accent-red, #d30e17);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 18px rgba(41, 42, 47, .08);
    font-family: "Inter", "Roboto", sans-serif;
}

body.site-header-page {
    overflow-x: hidden;
    font-family: "Inter", "Roboto", sans-serif;
}

.site-header-wrapper {
    overflow: visible;
    overflow-x: hidden;
}

.site-header + main {
    padding-top: 102px;
}

.site-header-page .topinfobar {
    margin-top: 82px;
}

.topinfobar + .site-header-wrapper .site-header + main {
    padding-top: 20px;
}

.booking-site-header-page main.page {
    padding-top: 82px;
}

.site-header a {
    color: #111;
    text-decoration: none;
}

.site-header__bar {
    width: min(1440px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header__logo img {
    display: block;
    width: 50px;
    height: 50px;
}

.site-header__city,
.site-header__mobile-city {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 174px;
    height: 42px;
    padding: 0;
    border-radius: 24px;
    background: #f0f0f0;
}

.site-header__city > button,
.site-header__mobile-city > button {
    width: 100%;
    height: 100%;
    padding: 0 34px 0 38px;
    border: 0;
    background: transparent;
    color: #111;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.site-header__pin {
    position: absolute;
    left: 17px;
    width: 12px;
    height: 16px;
}

.site-header__pin::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #111;
}

.site-header__city::after,
.site-header__mobile-city::after {
    content: "";
    position: absolute;
    right: 17px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: translateY(-3px) rotate(45deg);
    pointer-events: none;
}

.site-header__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 5;
    min-width: 100%;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(41, 42, 47, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.site-header__dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 14px;
}

.site-header__dropdown a:hover,
.site-header__dropdown a.is-active {
    color: var(--site-header-red);
    background: #f5f5f5;
}

[data-header-dropdown].is-open > .site-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.site-header__language-button,
.site-header__burger {
    border: 0;
    background: transparent;
}

.site-header__language-button {
    width: 32px;
    padding: 0;
    cursor: pointer;
}

.site-header__language-button img {
    display: block;
    width: 28px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.site-header__nav {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    justify-content: space-between;
    gap: 5px;
    margin-inline: 4px;
}

.site-header__nav-group {
    display: flex;
}

.site-header__nav-link {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    transition: color .2s ease;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible,
.site-header__nav-link.is-active,
.site-header__nav-link[aria-expanded="true"] {
    color: var(--site-header-red);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 0;
}

.site-header__phone {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.site-header__phone:hover .site-header__phone-number,
.site-header__phone:focus-visible .site-header__phone-number {
    color: #b20a12;
}

.site-header__phone-number {
    color: var(--site-header-red);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: color .2s ease;
}

.site-header__phone-label {
    margin-top: 4px;
    color: #111;
    font-size: 11.6px;
    font-weight: 400;
    white-space: nowrap;
}

.site-header__icon-link,
.site-header__profile {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.site-header__icon-link img {
    width: 31px;
    max-height: 31px;
}

.site-header__profile img {
    width: 25px;
    height: 25px;
}

.site-header__profile {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--site-header-red);
}

.site-header__booking,
.site-header__mobile-booking,
.site-header__mobile-menu-booking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 41px;
    padding: 0 15px;
    border-radius: 26px;
    background: var(--site-header-red);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.site-header__booking-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform .25s ease;
}

.site-header__booking-dropdown.is-open .site-header__booking-arrow {
    transform: translateY(3px) rotate(-135deg);
}

.site-header__booking-dropdown.is-open .site-header__booking {
    border-radius: 26px;
}

.site-header__panels {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
}

.site-header__panel {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    width: 100%;
    min-height: 108px;
    padding: 0;
    border-top: 1px solid #f2f2f2;
    background: #fff;
    box-shadow: 0 12px 18px rgba(41, 42, 47, .08);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    pointer-events: none;
    transition: opacity .32s ease, visibility .32s ease, transform .32s ease;
}

.site-header__panel-inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 108px;
    margin: 0 auto;
    padding: 22px 76px 30px;
    display: flex;
    align-items: center;
    gap: clamp(44px, 6vw, 92px);
}

.site-header__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.site-header__panel-inner > a {
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.site-header__panel-inner > a:hover,
.site-header__panel-inner > a.is-active {
    color: var(--site-header-red);
}

.site-header__contacts-panel .site-header__panel-inner {
    gap: 54px;
}

.site-header__contact-brand,
.site-header__contact-phone,
.site-header__socials {
    display: flex;
    align-items: center;
}

.site-header__contact-brand {
    gap: 16px;
}

.site-header__contact-brand img {
    width: 44px;
    height: 44px;
}

.site-header__contact-phone {
    align-items: flex-start;
    flex-direction: column;
}

.site-header__contact-phone a {
    font-size: 20px;
    font-weight: 700;
    color: var(--site-header-red);
}

.site-header__contact-phone span {
    font-size: 11px;
}

.site-header__socials {
    gap: 16px;
}

.site-header__socials img {
    display: block;
    width: 42px;
    height: 42px;
}

.site-header__contact-more {
    font-size: 18px !important;
}

.site-header__languages-panel .site-header__panel-inner > a {
    display: grid;
    place-items: center;
    width: 78px;
    height: 66px;
    border-radius: 6px;
}

.site-header__languages-panel a.is-active {
    background: #eee;
}

.site-header__languages-panel img {
    width: 50px;
    max-height: 38px;
}

.site-header__booking-dropdown {
    position: relative;
    z-index: 10;
}

.site-header__booking-options {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 100%;
    min-width: 100%;
    padding: 6px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(41, 42, 47, .18);
}

.site-header__booking-options a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
}

.site-header__booking-options a:first-child {
    color: var(--site-header-red);
    font-weight: 700;
}

.site-header__booking-options a:hover {
    color: var(--site-header-red);
    background: #f5f5f5;
}

.site-header__mobile-booking,
.site-header__mobile-phone,
.site-header__burger,
.site-header__mobile-menu {
    display: none;
}

@media (max-width: 1310px) {
    .site-header__bar {
        gap: 14px;
    }

    .site-header__nav-link {
        font-size: 14px;
    }

    .site-header__actions {
        gap: 10px;
    }

    .site-header__phone-number {
        font-size: 19px;
    }

    .site-header__phone-label {
        font-size: 11px;
    }

    .site-header__booking {
        padding: 0 14px;
        font-size: 12px;
    }
}

@media (max-width: 1180px) {
    body.site-header-menu-open {
        overflow: hidden;
    }

    .site-header__bar {
        width: 100%;
        min-height: 68px;
        padding: 7px 24px;
        gap: 18px;
        border-bottom: 1px solid #eee;
    }

    .site-header + main {
        padding-top: 88px;
    }

    .site-header-page .topinfobar {
        margin-top: 68px;
        font-size: 13px;
    }

    .site-header-page .topinfobar .flex svg {
        display: none;
    }

    .site-header__logo img {
        width: 48px;
        height: 48px;
    }

    .site-header__city,
    .site-header__language-button,
    .site-header__nav,
    .site-header__actions,
    .site-header__panels {
        display: none;
    }

    .site-header__mobile-booking,
    .site-header__mobile-phone,
    .site-header__burger {
        display: flex;
    }

    .site-header__mobile-booking {
        margin-left: auto;
        min-height: 44px;
        padding: 0 18px;
    }

    .site-header__mobile-phone {
        color: var(--site-header-red);
    }

    .site-header__mobile-phone svg {
        width: 33px;
        height: 33px;
        fill: currentColor;
        color: var(--site-header-red);
    }

    .site-header__mobile-phone use {
        fill: var(--site-header-red);
    }

    .site-header__burger {
        width: 46px;
        height: 46px;
        padding: 12px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border-radius: 5px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(41, 42, 47, .16);
    }

    .site-header__burger span {
        width: 22px;
        height: 2px;
        background: #111;
        transition: transform .2s ease, opacity .2s ease;
    }

    .site-header__burger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header__burger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .site-header__burger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header__mobile-menu {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        display: block;
        padding: 0 24px;
        background: #fff;
        box-shadow: 0 12px 22px rgba(41, 42, 47, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity .3s ease, visibility .3s ease, transform .3s ease, padding .3s ease;
    }

    .site-header__mobile-menu.is-open {
        padding-top: 12px;
        padding-bottom: 124px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-header__mobile-menu nav > * {
        border-bottom: 1px solid #aaa;
    }

    .site-header__mobile-group,
    .site-header__mobile-direct {
        border-bottom: 1px solid #aaa;
    }

    .site-header__mobile-group {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .site-header__mobile-direct {
        display: flex;
        width: 100%;
    }

    .site-header__mobile-group button,
    .site-header__mobile-direct {
        width: 100%;
        min-height: 62px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 0;
        background: transparent;
        color: #111;
        font-size: 23px;
        font-weight: 500;
        text-align: left;
    }

    .site-header__mobile-arrow {
        width: 18px;
        height: 18px;
        border-right: 4px solid #777;
        border-bottom: 4px solid #777;
        transform: translate(-4px, -4px) rotate(45deg);
        transition: transform .25s ease, border-color .25s ease;
    }

    .site-header__mobile-group button[aria-expanded="true"] .site-header__mobile-arrow {
        border-color: var(--site-header-red);
        transform: translate(-4px, 4px) rotate(-135deg);
    }

    .site-header__mobile-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease, padding-bottom .3s ease;
    }

    .site-header__mobile-submenu.is-open {
        max-height: 260px;
        padding-bottom: 12px;
    }

    .site-header__mobile-submenu a {
        display: flex;
        min-height: 56px;
        align-items: center;
        color: #888;
        font-size: 22px;
    }

    .site-header__mobile-actions,
    .site-header__mobile-languages {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        gap: 20px;
        padding: 28px 0 20px;
    }

    .site-header__mobile-actions a,
    .site-header__mobile-languages a {
        display: grid;
        place-items: center;
    }

    .site-header__mobile-actions img {
        width: 43px;
        max-height: 43px;
    }

    .site-header__mobile-actions a:nth-child(3) {
        width: 50px;
        height: 50px;
        justify-self: center;
        border-radius: 50%;
        background: var(--site-header-red);
    }

    .site-header__mobile-actions a:nth-child(3) img {
        width: 25px;
        height: 25px;
    }

    .site-header__mobile-actions .bvi-open img {
        filter: brightness(0) saturate(100%) invert(14%) sepia(97%) saturate(5345%) hue-rotate(350deg) brightness(88%) contrast(97%);
    }

    .site-header__mobile-languages {
        grid-template-columns: repeat(3, 1fr);
        padding: 8px 0 26px;
    }

    .site-header__mobile-languages a {
        min-height: 64px;
        border-radius: 6px;
    }

    .site-header__mobile-languages a.is-active {
        background: #eee;
    }

    .site-header__mobile-languages img {
        width: 48px;
        max-height: 36px;
    }

    .site-header__mobile-city {
        width: 100%;
        height: 48px;
    }

    .site-header__mobile-city .site-header__dropdown {
        top: auto;
        bottom: calc(100% + 8px);
    }

    .site-header__mobile-booking-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .site-header__mobile-booking-group span {
        grid-column: 1 / -1;
        font-size: 18px;
        font-weight: 700;
    }

    .site-header__mobile-booking-group a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        border: 1px solid var(--site-header-red);
        border-radius: 24px;
        color: var(--site-header-red);
        font-size: 14px;
        font-weight: 700;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .site-header__bar {
        padding-inline: 16px;
        gap: 12px;
    }

    .site-header__logo img {
        width: 44px;
        height: 44px;
    }

    .site-header__mobile-booking {
        padding: 4px 12px;
        font-size: 14px;
    }

    .site-header__mobile-phone svg {
        width: 29px;
        height: 29px;
    }

    .site-header__burger {
        width: 42px;
        height: 42px;
    }

    .site-header__mobile-group button,
    .site-header__mobile-direct {
        font-size: 21px;
    }

    .site-header__mobile-submenu a {
        font-size: 20px;
    }
}
