@font-face {
    font-family: 'Libra Serif Modern';
    src: url("../fonts/LibraSerifModern-Regular.otf") format('opentype');
}
.main_titles{
    font: 48px / 62px "Mirandolina CalligrThree";
    color: #CF000F;
    font-weight: 500;
    text-align: center;
    padding-bottom: 70px;
}
.header {
    width: 100%;
    display: flex;
    background-color: #FFF;
    position: sticky;
    top: 0;
    z-index: 11;
}

.header__inner {
    max-width: 1256px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 24px 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

.header__menu-block {
    display: flex;
    gap: 24px;
    align-items: center;
    max-width: 535px;
    width: 100%;
}

.header__logo {
    max-width: 256px;
    width: 100%;
    display: flex;
}

.header__buttons {
    display: flex;
    gap: 12px;
    max-width: 255px;
    width: 100%;
}

.header__menu-button {
    width: 75px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8F5F1;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s;

    &:hover {
        background-color: #f6f2e8;
    }
}

.barre {
    height: 6px;
    width: 27px;
    position: relative;
}

.barre:before {
    height: 2px;
    width: 27px;
    border-radius: 2px;
    background: #760000;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transform-origin: 50%;
    -moz-transform-origin: 50%;
    -ms-transform-origin: 50%;
    -o-transform-origin: 50%;
    transform-origin: 50%;
    transition: .1s linear all;
}

.barre:after {
    height: 2px;
    width: 17px;
    border-radius: 2px;
    background: #760000;
    position: absolute;
    top: 6px;
    left: 0;
    -webkit-transform-origin: 50%;
    -moz-transform-origin: 50%;
    -ms-transform-origin: 50%;
    -o-transform-origin: 50%;
    transform-origin: 50%;
    transition: .1s linear all;
}

.barre:before {
    content: "";
    top: 0;
}

.barre:after {
    content: "";
    top: 6px;
}

.header__menu-button_opened {
    & .barre:before {
        top: 0;
        -webkit-transform: rotate(20deg);
        -moz-transform: rotate(20deg);
        -ms-transform: rotate(20deg);
        -o-transform: rotate(20deg);
        transform: rotate(20deg);
    }

    & .barre:after {
        top: 0;
        width: 27px;
        -webkit-transform: rotate(-20deg);
        -moz-transform: rotate(-20deg);
        -ms-transform: rotate(-20deg);
        -o-transform: rotate(-20deg);
        transform: rotate(-20deg);
        opacity: 1;
    }
}

.header__order-button {
    width: 168px;
    height: 48px;
    border-radius: 10px;
    background-color: #760000;
    outline: none;
    border: none;
    font: 500 16px/24px Roboto;
    color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color .2s;

    &:hover {
        background-color: #A83232;
    }
    &:active {
        background-color: #4E0000;
    }
}

.header__contacts-block {
    max-width: 520px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    & > :not(:first-child) {
        margin-left: 24px;
    }
}

.header__contacts {
    width: max-content;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;

    & *:first-of-type {
        font: 500 16px/16px Roboto;
        color: #333333;
    }
    & *:last-of-type {
        font: 300 14px/14px Roboto;
        color: #333333;
    }
}

.header__social {
    display: flex;
    gap: 12px;
    /*margin-left: 24px;*/

    & a {
        width: 48px;
        height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #F8F5F1;
        border-radius: 12px;
        transition: background-color .2s;

        & svg path {
            transition: fill .2s;
        }
    }
}

.wa-icon {
    &:hover {
        background-color: #F1FFF4;

        & svg path {
            fill: #48C95F;
        }
    }
}

.tg-icon {
    &:hover {
        background-color: #E9F7FF;

        & svg path {
            fill: #25A8ED;
        }
    }
}

.vk-icon {
    &:hover {
        background-color: #E8F3FF;

        & svg path {
            fill: #4977AB;
        }
    }
}

.header__lang-block {
    display: flex;
    flex-direction: column;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 12px 16px;
    box-sizing: border-box;
    margin-left: 8px;
    position: relative;
    transition: background-color .3s;
}

.header__lang {
    display: flex;
    align-items: center;
    cursor: pointer;

    & a {
        font: 16px/24px Roboto;
        color: #333333;
    }
}

.header__lang-body {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 48px;
    left: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 2px 29px 12px 16px;
    box-sizing: border-box;
    background-color: #F8F5F1;
    visibility: hidden;
    opacity: 0;
    transition: visibility .3s, opacity .3s;

    & a {
        font: 16px/16px Roboto;
        padding: 6px 0;
        box-sizing: border-box;
        color: #333333;
        transition: color .3s;

        &:first-of-type {
            padding-top: 0;
        }
        &:last-of-type {
            padding-bottom: 0;
        }
        &:hover {
            color: #760000;
        }
    }
}

.header__lang-block_active {
    background-color: #F8F5F1;

    & .header__lang-body {
        visibility: visible;
        opacity: 1;
    }
}

.header__menu {
    position: absolute;
    top: 108px;
    left: calc((100vw - 1880px - 16px) / 2);
    right: calc((100vw - 1880px - 16px) / 2);
    height: calc(100dvh - 131px);
    max-width: 1880px;
    width: 100%;
    margin: 0 auto;
    background-color: #F8F5F1;
    border-radius: 20px;
    z-index: 5;
    overflow-y: scroll;
    visibility: hidden;
    opacity: 0;
    transition: visibility .2s, opacity .2s;

    &::-webkit-scrollbar {
        display: none;
    }
}

.header__menu-inner {
    max-width: 1256px;
    width: 100%;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    padding: 64px 20px 48px;
    box-sizing: border-box;
    margin: 0 auto;
}

.header__menu-promo {
    max-width: 301px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header__menu-promo-item {
    width: 100%;
    height: 482px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    transition: transform .5s;

    & span {
        font: 36px/47px "Libra Serif Modern";
        color: #FFF;
        text-align: center;
        text-transform: uppercase;
    }
    &:last-of-type {
        height: 257px;
    }
    &:hover {
        transform: translateX(3px);
    }
}

.header__menu-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.header__menu-nav-catalog {
    width: 100%;
    display: flex;
    gap: 48px;
}

.header__menu-nav-special {
    max-width: 279px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-left: auto;
}

.header__menu-nav-special-title {
    font: 18px/100% Roboto;
    color: #333333;
}

.header__menu-nav-special-links {
    width: 100%;
    display: flex;
    flex-direction: column;

    & a {
        font: 300 14px/100% Roboto;
        color: #333333;
        text-decoration: none;
        padding: 6px 0;
        transition: color .3s;

        &:first-of-type {
            padding-top: 0;
        }
        &:last-of-type {
            padding-bottom: 0;
        }
        &:hover {
            color: #760000;
        }
    }
}

.header__menu-nav-rooms {
    width: 100%;
    display: flex;
    gap: 32px;
}

.header__menu-nav-rooms-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.header__menu-nav-rooms-list-title {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;

    & span {
        font: 18px/100% Roboto;
        color: #333333;
    }
}

.header__menu-nav-rooms-list-title-stars {
    display: flex;
    gap: 2px;
}

.header__menu-nav-rooms-list-links {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.header__menu-nav-rooms-list-link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    padding: 6px 0;

    & span:first-of-type {
        width: 145px;
        font: 300 14px/100% Roboto;
        color: #333333;
        transition: color .3s;
    }
    & span:last-of-type {
        width: max-content;
        font: 300 14px/100% Roboto;
        color: #333333;
    }
    &:hover {
        & span:first-of-type {
            color: #760000;
        }
    }
}

.header__menu-nav-links {
    width: 100%;
    columns: 3 auto;
    column-fill: balance;
    column-gap: 23px;
    margin-top: 64px;

    & a {
        font: 18px/100% Roboto;
        color: #333333;
        text-decoration: none;
        padding: 10px 0;
        display: flex;
        transition: color .3s;

        &:hover {
            color: #760000;
        }
    }
}

.header__menu-nav-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 73px;

    & .header__social {
        margin-top: 5px;
        margin-left: 0;

        & a {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            padding: 0;
        }
    }
    & .wa-icon {
        background-color: #F1FFF4;

        & svg {
            width: 14px;
            height: 14px;
        }
        & svg path {
            fill: #48C95F;
        }
    }

    .tg-icon {
        background-color: #E9F7FF;

        & svg {
            width: 14px;
            height: 12px;
        }
        & svg path {
            fill: #25A8ED;
        }
    }

    .vk-icon {
        background-color: #E8F3FF;

        & svg {
            width: 14px;
            height: 8px;
        }
        & svg path {
            fill: #4977AB;
        }
    }
}

.header__menu-nav-contacts-title {
    width: 100%;

    & span {
        font: 18px/100% Roboto;
        color: #333333;
    }
}

.header__menu-nav-contacts-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    
    & a {
        font: 300 14px/100% Roboto;
        color: #333333;
        transition: color .3s;

        &:hover:not(:first-of-type) {
            color: #760000;
        }
    }
}


@media screen and (max-width: 1100px) {
    .header__inner {
        padding: 24px 60px;
    }
    .header__menu-block {
        gap : 46px;
        max-width: unset;
        margin-right: 12px;
    }
    .header__menu-button {
        &:hover {
            background-color: #F8F5F1;
        }
        &:active {
            background-color: #f6f2e8;
        }
    }
    .header__order-button {
        &:hover {
            background-color: #760000;
        }
        &:active {
            background-color: #4E0000;
        }
    }
    .header__contacts {
        display: none;
    }
    .header__social {
        display: none;
    }
    .header__lang-block {
        margin-left: auto;
    }
    .header__menu {
        top: 111px;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
    }
    .header__menu-inner {
        flex-direction: column;
        padding: 48px 40px;
    }
    .header__menu-promo {
        max-width: 324px;
        position: absolute;
        top: 330px;
        right: 40px;
    }
    .header__menu-promo-item {
        height: 275px;
        padding: 20px;
        box-sizing: border-box;

        & span {
            font: 32px/42px "Libra Serif Modern";
        }
        &:last-of-type {
            height: 275px;
        }
        &:hover {
            transform: translateX(0);
        }
        &:active {
            transform: translateX(3px);
        }
    }
    .header__menu-nav {
        position: relative;
    }
    .header__menu-nav-catalog {
        flex-direction: column;
        gap: 38px;
    }
    .header__menu-nav-special {
        margin-left: unset;
    }
    .header__menu-nav-special-links {
        & a {
            &:hover {
                color: #333333;
            }
            &:active {
                color: #760000;
            }
        }
    }
    .header__menu-nav-rooms-list-link {
        &:hover {
            & span:first-of-type {
                color: #333333;
            }
        }
        &:active {
            & span:first-of-type {
                color: #760000;
            }
        }
    }
    .header__menu-nav-links {
        columns: 1 auto;
        margin-top: 54px;

        & a {
            font: 16px/100% Roboto;
            padding: 9px 0 10px;

            &:hover {
                color: #333333;
            }
            &:active {
                color: #760000;
            }
        }
    }
    .header__menu-nav-contacts {
        margin-top: unset;
        max-width: 325px;
        width: 100%;
        position: absolute;
        right: 0;
        bottom: 11px;

        & .header__social {
            display: flex;
            margin-top: 5px;
            margin-left: 0;

            & a {
                width: 32px;
                height: 32px;
                border-radius: 8px;
                padding: 0;
            }
        }
        & .wa-icon {
            background-color: #F1FFF4;

            & svg {
                width: 14px;
                height: 14px;
            }
            & svg path {
                fill: #48C95F;
            }
        }

        .tg-icon {
            background-color: #E9F7FF;

            & svg {
                width: 14px;
                height: 12px;
            }
            & svg path {
                fill: #25A8ED;
            }
        }

        .vk-icon {
            background-color: #E8F3FF;

            & svg {
                width: 14px;
                height: 8px;
            }
            & svg path {
                fill: #4977AB;
            }
        }
    }
}


@media screen and (max-width: 720px) {
    .header__inner {
        padding: 10px 14px 11px 20px;
    }
    .header__menu-block {
        gap : 26px;
        margin-right: 4px;
    }
    .header__logo {
        max-width: 182px;
    }
    .header__order-button {
        display: none;
    }
    .header__menu {
        top: 84px;
        left: 10px;
        right: 10px;
        height: calc(100dvh - 94px);
        width: calc(100% - 20px);
    }
    .header__menu-inner {
        padding: 32px 20px;
    }
    .header__menu-promo {
        position: static;
        top: unset;
        right: unset;
    }
    .header__menu-promo-item {
        height: 150px;

        & span {
            font: 24px/31px "Libra Serif Modern";
        }
        &:last-of-type {
            height: 150px;
        }
    }
    .header__menu-nav-special {
        margin-left: unset;
    }
    .header__menu-nav-rooms {
        gap: 24px;
        flex-direction: column;
    }
    .header__menu-nav-rooms-list-link {
        justify-content: space-between;

        &:hover {
            & span:first-of-type {
                color: #333333;
            }
        }
        &:active {
            & span:first-of-type {
                color: #760000;
            }
        }
    }
    .header__menu-nav-links {
        columns: 1 auto;
        margin-top: 54px;

        & a {
            padding: 9px 0 10px;
            font: 18px/100% Roboto;

            &:hover {
                color: #333333;
            }
            &:active {
                color: #760000;
            }
        }
    }
    .header__menu-nav-contacts {
        margin-top: 30px;
        position: static;
        right: unset;
        bottom: unset;

        & .header__social {
            & a {
                width: 48px;
                height: 48px;
            }
        }
        & .wa-icon {
            & svg {
                width: 21px;
                height: 21px;
            }
        }

        .tg-icon {
            & svg {
                width: 21px;
                height: 18px;
            }
        }

        .vk-icon {
            & svg {
                width: 21px;
                height: 12px;
            }
        }
    }
    .header__lang-block {
        padding: 10px 4px 10px 6px;
        margin-left: auto;
    }
    .header__lang-body {
        padding: 2px 17px 12px 6px;
        top: 44px;
    }
}