html,
body {
    margin: 0;
}

#hotel_ki_body {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: 1fr auto;


    h1{
        margin: 5px 0;
        font-size: 2.1em;
    }

    .main {
        min-width: 0;
    }

    .header {
        background: var(--gray-dark-background);
        border-bottom: 2px solid var(--color-main);
        display: flex;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .header .menu {
        display: flex;
        gap: 6vw;
        margin: 0 auto;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }

    .header .menu li .item {
        color: var(--header-menu-color);
        cursor: pointer;
        display: block;
        font-weight: 500;
        padding: 18px;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .header .menu li .item:hover {
        text-decoration: underline;
    }

    .top_block_grid {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .top_block_image {
        width: 270px;
    }

    .top_block_item {
        align-items: center;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        justify-content: start;
        padding: 14px;
        position: relative;
    }

    .top_block_background_wrapper {
        bottom: 0;
        height: 100%;
        left: 0;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
    }

    .top_block_background {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        display: flex;
        height: auto;
        left: 50%;
        min-height: 100%;
        min-width: 100%;
        position: relative;
        top: 50%;
        transform: translate(-50%,-50%);
        width: auto;
        z-index : 0;
    }

    .top_block_shading:before {
        background: var(--gray-opacity);
        content: '';
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
    }

    .top_block_shading .top_block_inner {
        position: relative;
    }

    .top_block_content .top_block_relative {
        padding: 14px;
        position: relative;
    }

    .top_block_first {
        align-items: end;
        grid-row: 1 / 4;
        justify-content: start;
        padding-bottom: 0;
    }

    .top_block_first .top_block_content .top_block_relative {
        background: var(--white-opacity);
        border-radius: 6px 6px 0 0;
    }

    .top_block_first .button_like {
        border-radius: 50%;
        padding: 10px;
        position: absolute;
        right: 6px;
        top: 6px;
    }

    .top_block_first ~ .top_block_item {
        color: var(--white);
        font-weight: 500;
        justify-content: center;
        min-height: 160px;
    }

    .top_block_first ~ .top_block_item .top_block_content {
        align-items: center;
        display: inline-flex;
        flex-direction: column;
        gap: 8px;
        min-width: 200px;
    }

    @media (min-width: 576px) {
        .top_block_content .top_block_relative {
            padding: 20px;
        }

        .top_block_first .top_block_content .top_block_relative {
            padding: 40px;
            width: 400px;
        }

        .top_block_first .button_like {
            right: 30px;
            top: 30px;
        }
    }

    @media (min-width: 768px) {
        .top_block_grid {
            grid-template-columns: 2fr 1fr;
        }
    
        .top_block_min_height {
            min-height: 570px;
        }
    }

    @media (min-width: 1000px) {
        .top_block_grid {
            grid-template-columns: calc((100% - 1000px) / 2 + 700px) calc((100% - 1000px) / 2 + 290px);
        }
    
        .top_block_first {
            justify-content: end;
        }
    
        .top_block_first .top_block_inner {
            width: 686px;
        }
    }

    @media (min-width: 1200px) {
        .top_block_first ~ .top_block_item {
            justify-content: start;
        }
    
        .top_block_first ~ .top_block_item .top_block_inner {
            text-align: right;
            width: 276px;
        }
    }

    .top_block_right {
        padding: 0 0 40px 14px;
    }

    .top_block_right .top_block_inner {
        margin-left: auto;
        margin-top: auto;
        width: 80vw;
    }

    .top_block_right .top_block_image {
        background: var(--white-opacity);
        border-radius: 0 0 20px 20px;
        margin-bottom: auto;
        margin-left: 10vw;
        margin-right: auto;
        padding: 10px;
        position: relative;
    }

    .top_block_right .top_block_content .top_block_relative {
        background: var(--black-opacity);
        border-radius: 20px 0 0 20px;
    }

    @media (max-width: 480px) {
        .top_block_right .font_size_responsive {
            font-size: 5vw;
        }
    }

    @media (max-width: 585px) {
        .top_block_right {
            padding: 0 14px 14px 14px;
        }

        .top_block_right .top_block_inner {
            width: auto;
        }

        .top_block_right .top_block_image {
            margin-left: auto;
            width: 180px;
        }

        .top_block_right .top_block_content .top_block_relative {
            border-radius: 20px;
        }
    }

    .about_block {
        display: flex;
        gap: 20px;
    }

    .about_item {
        flex: 1;
        gap: 10px;
    }

    .floors_block {
        border: 1px solid var(--gray);
        border-radius: 6px;
        color: #727271;
        padding: 10px 14px 10px 25px;
        margin: 15px 0px;
    }

    .floors_block_header {
        background: var(--gray);
        border-radius: 6px;
        color: var(--gray-dark);
        display: inline-flex;
        margin-left: -15px;
        min-width: 140px;
        padding: 4px 15px;
    }

    .floors_block_content:last-of-type p:last-of-type {
        margin-bottom: 0;
    }

    .about_images {
        display: none;
    }

    .about_images .about_image {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 10px;
        order: 1;
    }

    .about_images .about_image:nth-child(2) {
        order: 0;
    }

    .about_images .about_image img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .about_images .about_image .social_links {
        justify-content: end;
    }

    .about_images .about_image .social_links .icon:before {
        height: 40px;
        width: 40px;
    }

    @media (min-width: 576px) {
        .about_item .section_title {
            margin: 0 38px;
        }

        .about_description {
            padding: 0 38px;
        }

        .floors_block {
            margin: 0 -38px;
            padding-left: 38px;
        }

        .about_images {
            display: grid;
        }

        .about_images:has(> :nth-child(2)) {
            grid-template-columns: 1fr 1fr;
        }

        .about_images .about_image:nth-child(2) {
            grid-row: 1 / 3;
            grid-column: 2;
            order: 1;
        }
    }

    @media (min-width: 1028px) {
        .about_item:first-child {
            flex: 1.3;
        }
    }

    @media (max-width: 900px) {
        .about_block {
            flex-direction: column;
        }
    }

    .contacts_wrapper .contacts_block > iframe {
        width: 100%;
    }

    @media (min-width: 576px) {
        .contacts_wrapper .social_links {
            width: 78px;
        }
    }

    @media (max-width: 769px) {
        .contacts_wrapper {
            flex-direction: column;
            gap: 40px;
        }
    
        .contacts_wrapper .contacts_block {
            gap: 20px;
        }
    }

    .footer {
        background: var(--gray-dark-background);
        color: var(--white);
    }

    .footer .footer_inner {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: space-between;
        padding-bottom: 30px;
        padding-top: 30px;
    }

    .footer .footer_inner .links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .logo{
        background: #fff;
        border-radius: 29px;
        padding: 5px 15px;
        height: min-content;
    }

    .footer .footer_inner .logo img {
        width: 240px;
    }

    @media (max-width: 575px) {
        .footer .footer_inner {
            align-items: center;
            flex-direction: column;
        }
    }

    .social_links {
        display: flex;
        flex-wrap: wrap;
        font-size: 0;
        gap: 10px;
    }

    .social_links > * {
        background: var(--color-main);
        border-radius: 6px;
        padding: 2px;
    }

    .up {
        background: var(--color-main);
        bottom: 14px;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        font-size: 0;
        padding: 10px;
        position: fixed;
        right: 14px;
    }

    @media (max-width: 769px) {
        .up {
            display: none;
        }
    }

    .services_frame:has(.services_list:empty) {
        display: none;
    }

    .services_list {
        flex-wrap: wrap;
    }

    .services_list .service_block {
        border-radius: 6px;
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: 100%;
        height: 300px;
        overflow: hidden;
        position: relative;
    }

    @media (min-width: 576px) {
        .services_list .service_block {
            flex-basis: calc(50% - 5px);
        }
    }

    @media (min-width: 768px) {
        .services_list .service_block {
            flex-basis: calc(25% - 10px);
        }
    }

    .service_info {
        background-color: var(--gray-opacity);
    }

    .services_list .service_block .service_image {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .services_list .service_block .service_info {
        bottom: 0;
        font-weight: 700;
        left: 0;
        line-height: 1;
        padding: 12px 14px;
        position: absolute;
        width: 100%;
    }

    .services_list .service_block .service_info .service_name {
        color: var(--white);
        font-size: 24px;
        margin-bottom: 8px;
    }

    .services_list .service_block .service_info .service_price {
        color: var(--white);
        font-size: 32px;
    }

    .colored_text {
        color: var(--color-main);
    }

    .text_white {
        color: var(--white);
    }

    .grid {
        display: grid;
    }

    .grid_row_4 {
        grid-row: span 4; 
    }

    .subgrid {
        grid-template-rows: subgrid;
    }

    .slider_clamp_container {
        line-height: 1.3em;
    }

    .slider_clamp_container:not(.show) {
        height: 9.1em;
        overflow: hidden;
        position: relative;
    }

    .slider_clamp_container:not(.show):after {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
        bottom: 0;
        content: '';
        height: 1.3em;
        position: absolute;
        right: 0;
        width: 100%;
    }

    .slider_clamp_container:not(.show) .slider_clamp_text {
        display: -webkit-box;
        -webkit-line-clamp: 7;
        -webkit-box-orient: vertical;
    }
}