/* главная страница с 91 по  1521*/
/* страница дом до 6 человек с 1523 по 1833*/
/* страница дом до 12 с 1835 по 1853*/
/* гостиничный дом с 1855 по 1898 */
/* беседки с 1900 по 1957 */
/* бассейн с 1959 по 2054 */
/* ресторан с 2056 по 2153*/
/* чан с 2155 по 2257 */
/* баня с 2259 по 2352*/
/* фотогалерея с 2354, только этот код применяется ко всем страницам где есть галерея фоток кроме главной */

:root {
    /* основные цвета */
    --white: #FFFF;

    /* текст */
    --primary_text: #06061D;
    --secondary_text: #A9B4C2;
    --price_color: #090909;
    --text: #2E2E45;

    /* задний фон */
    --body_back: #FFFFF3;
    --header_back: #00000066;

    /* структура */
    --back_btn: #3C1C84;
    --back_grin: #515B3A;
    --border: #D1DCEA;

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-VariableFont_opsz\,wght.ttf") format(truetype);
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bergamasco";
    src: url("fonts/Bergamasco\ Regular.otf") format(opentype);
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 16px;
}

body {
    font-family: "Inter";
    font-weight: 400;
    color: var(--primary_text);
    background-color: var(--body_back);
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-family: "Bergamasco";
    color: var(--white);
    font-size: 100px;
    font-weight: 400;
    text-transform: uppercase;
}

h2 {
    font-family: "Bergamasco";
    color: var(--primary_text);
    font-size: 42px;
    font-weight: 400;
    text-transform: uppercase;
}

h3 {
    font-family: "Inter";
    color: var(--white);
    font-weight: 400;
    font-size: 32px;
}

img {
  max-width: 100%;
  display: block;
}

header {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-image: url("img/back_header.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 650px;
    padding-top: 15px;
    position: relative;
}

.burger_menu {
    display: none;
}

.header_nav_btn {
    width: 100%;
    max-width: 1300px;
    height: 80px;
    border-radius: 25px;
    background-color: var(--header_back);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 25px;
}

.header_block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    color: var(--white);
}

.header_block.gap {
    gap: 10px;
}

.header_title {
    margin-top: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.title_text {
    position: relative;
    line-height: 1;
    letter-spacing: -0.02em;
    display: inline-block;
}

.title_text::before {
    content: '';
    position: absolute;
    top: 43%;
    left: 0.94em;
    transform: translateY(-50%);
    width: 0.06em;
    height: 0.06em;
    background: var(--white);
    border-radius: 50%;
    z-index: 1;
}

.title_text::after {
    content: '';
    position: absolute;
    top: -0.3em;
    right: -0.3em;
    width: 0.6em;
    height: 0.6em;
    background-image: url("img/title_el.svg");
    background-size: contain;
    z-index: 1;
}

.booking_form {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 195px;
}

.booking_fields {
    width: 860px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px;
    background-color: var(--white);
}

.booking_field {
    width: 100%;
    height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--secondary_text);
    cursor: pointer;
    position: relative;
    padding: 0 18px;
}

.booking_field:first-child {
    border-left: none;
}

.booking_field label {
    font-size: 14px;
    color: var(--secondary_text);
    font-family: "Inter";
    margin-bottom: 2px;
}

#check_in, #check_out{
    border: none;
    outline: none;
    cursor: pointer;
    font-family: "Inter";
    font-size: 14px;
    color: var(--primary_text);
    width: 100%;
}

#check_in::-webkit-calendar-picker-indicator, #check_out::-webkit-calendar-picker-indicator {
  display: none;
}

.guests_field select {
    border: none;
    outline: none;
    width: fit-content;
    padding: 0 10px 0 0;
    font-family: "Inter";
    font-size: 14px;
    color: var(--primary_text);
}

.icon_booking {
    cursor: auto;
    position: absolute;
    width: 24px;
    height: 24px;
    right: 18px;
}

.search_button {
    width: 235px;
    height: 54px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    background-color: var(--back_btn);
    color: var(--white);
    font-family: "Inter";
    font-size: 16px;
    font-weight: 400;
}

.message {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: var(--back_grin);
    display: flex;
    justify-content: center;
    align-items: center;
    top: 555px;
    margin-left: 1200px;
}

main {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 100px auto;
    gap: 100px;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.news_slider {
    max-width: 1400px;
    height: 380px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    white-space: nowrap;
    gap: 20px;
}

.news_slider::-webkit-scrollbar {
  display: none;
}

.news_slider_block {
    flex: 0 0 420px;
    height: 380px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 15px;
}

.news_slider_block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.news_slider_item {
    position: absolute;
    bottom: 16px;
    width: 380px;
    height: 70px;
    border-radius: 6px;
    background-color: var(--white);
    border: 1px solid var(--secondary_text);
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 12px 15px;
}

.news_slider_item_title {
    font-weight: 600 !important;
    color: var(--primary_text) !important;
    font-size: 16px !important;
}

.news_slider_item p {
    width: 350px;
    font-weight: 400;
    font-size: 14px;
    color: var(--secondary_text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.about_block_title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.about_block_title h2 {
    display: flex;
    align-items: center;
}

.decorative {
    position: absolute;
    width: 220px;
    height: 60px;
    background-color: var(--back_grin);
    filter: blur(60px);

}

.about_block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.about_block.video {
    width: 100%;
    height: 380px;
    border-radius: 15px;
    background-image: url("img/video.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.about_block.text {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 15px;
}

.about_info {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.about_info_item {
    width: 360px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.gallery_grid {
    display: grid;
    margin: 0 auto;
    padding: 20px 0;
}

.gallery_item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.view_btn,
.view_btn_full {
    background-color: var(--body_back);
    border: 2px solid var(--back_btn);
    color: var(--primary_text);
    font-size: 16px;
    border-radius: 15px;
    font-family: "Inter";
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.view_btn img, .view_btn_full img {
    width: 24px;
    height: 24px;
    margin-left: 5px;
}

.superscript {
    vertical-align: super;
    font-size: 0.7em;
}

@media (min-width: 961px) {
  .gallery_grid {
    width: 1300px;
    grid-template-columns: 310px 420px 310px 200px;
    gap: 20px;
  }

  .item_1, .item_3, .item_4,
  .item_5, .item_6, .item_7, .item_8 {
    height: 500px;
    border-radius: 15px;
  }

  .item_2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
  }

  .view_btn {
    height: 60px;
  }

  .item_button {
    display: none;
  }
}

.container.center {
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

.best_offers {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.best_offer_item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.best_offer_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 310px;
    position: relative;
    gap: 10px;
}

.best_offer_photo {
    width: 310px;
    height: 340px;
    overflow: hidden;
    border-radius: 15px;
    
}

.slider_progress {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 15px;
}

.slider_progress_block {
    width: 90px;
    height: 5px;
    border-radius: 15px;
    background-color: var(--white);
    border: 0.5px solid var(--border);
}

.slider_progress_block.active {
    background-color: var(--back_grin);
    border: none;
}

.house_size {
    position: absolute;
    top: 12px;
    right: 17px;
    width: 50px;
    height: 24px;
    background-color: var(--white);
    border-radius: 6px;
    font-size: 14px;
    color: var(--primary_text);
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.house_size span {
    font-size: 0.8em !important;
    color: var(--primary_text) !important;
    font-family: "Inter";
}

.best_offer_block_name_price {
    margin-top: 5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.best_offer_block_name {
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary_text);
    line-height: 24px;
}

.best_offer_block_price {
    font-weight: 400;
    font-size: 20px;
    color: var(--price_color);
    text-wrap: nowrap;
}

.best_offer_block_opis {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.best_offer_block form {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#date_rezerv {
    width: 220px;
    height: 56px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 0px 18px;
    cursor: pointer;
}

.best_offer_block_btn {
    width: 80px;
    height: 56px;
    background-color: var(--back_btn);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
    cursor: pointer;
}

.info_bron {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    gap: 15px;
    max-height: 300px;
    flex-direction: column;
}

.info_bron_item {
    width: 500px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.container_title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 30px;
}

.container_title_block {
    display: flex;
    flex-direction: column;
    height: 75px;
    justify-content: space-around;
    align-items: center;
    font-size: 20px;
}

.rewiews {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.rewiews_slider {
    width: 100%;
    height: 215px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    white-space: nowrap;
}

.rewiew_item {
    width: 420px;
    height: 215px;
    padding: 23px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    gap: 13px;
}

.rewiew_block {
    display: flex;
    gap: 13px;
}

.rewiew_block.column {
    display: flex;
    flex-direction: column;
}

.rewiew_block_name {
    font-weight: 600;
    color: var(--price_color);
    line-height: 24px;
}

.rewiew_block_date {
    font-size: 14px;
    font-weight: 400;
    color: var(--price_color);
}

.rewiew_block_opis {
    width: 370px;
    text-wrap: wrap;
    font-size: 14px;
    font-weight: 400;
    color: var(--price_color);
    list-style: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rewiew_block img {
    width: 36px;
    height: 36px;
}

.rewiew_block_from {
    font-size: 14px;
    font-weight: 400;
    color: var(--back_btn);
}

.btn_slider {
    display: flex;
    gap: 15px;
}

.btn_slider button {
    width: 32px;
    height: 32px;
    border-radius: 15px;
    background-color: var(--back_btn);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none;
    border: none;
}

.news_slider.nowidth{
    width: 100%;
}

.map {
    width: 100%;
}

.contact_block {
    width: 670px;
    position: absolute;
    top: 60px;
    right: 50px;
    max-width: 1300px;
    border-radius: 15px;
    overflow: hidden;
    z-index: 1;
    background-color: var(--white);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.contact_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.contact_top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact_text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact_item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
}

.contact_item p, .contact_text p, .contact_text a {
    font-weight: 400;
    font-size: 14px;
    color: var(--text);
    text-wrap: nowrap;
}

.phone {
    font-weight: 600;
    font-size: 20px;
    color: var(--primary_text);
}

.contact_address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.contact_image {
    width: 100%;
    height: 300px;
    border-radius:15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

footer {
    background-color: var(--back_grin);
    padding: 50px 50px 150px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 90px;

}

.footer_forms {
    background-color: #FFFFFF33;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 1300px;
    display: flex;
    gap: 24px;
    flex-direction: column;
}

.footer_title {
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
}

.footer_form {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.footer_input {
    flex: 1;
    width: 100%;
    max-width: 420px;
    min-width: 280px;
    height: 56px;
    padding: 0 20px;
    border: 1pd solid var(--border);
    border-radius: 15px;
    font-size: 16px;
    color: var(--price_color);
    font-family: "Inter";
    outline: none;
}

.footer_input::placeholder {
    color: var(--primary_text);
    font-family: "Inter";
}

.footer_button {
    width: 375px;
    background-color: var(--back_btn);
    color: var(--white);
    border-radius: 15px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    border: none;
    font-family: "Inter";
}

.footer_block {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    color: var(--white);
    font-weight: 400;
    font-size: 14px;
}

.footer_block_nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 220px;
    align-items: flex-start;
}

.footer_block_nav.font {
    font-size: 16px !important;
}

.footer_text_dec {
    position: relative;
}

.footer_text_dec::after {
    content: '';
    position: absolute;
    top: -1.3em;
    right: -3.3em;
    width: 2.6em;
    height: 2.6em;
    transform: scalex(-1);
    background-image: url(img/title_el.svg);
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
}


@media (max-width: 1300px) {
  .gallery_grid {
    width: 960px;
    grid-template-columns: 255px 375px 250px;
    gap: 20px;
    justify-content: center;
  }

  .item_1 { height: 380px; }
  .item_2 {
    height: 446px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .item_3 { height: 380px; }

  .item_5 { height: 500px; }
  .item_6 { height: 500px; }
  .item_7 { height: 500px; }

  .item_4, .item_8, .item_button {
    display: none;
  }

  .best_offers {
    justify-content: space-evenly;
    }

    .about_block.video {
    width: 500px;
    }

    .about_block.text {
    width: 38%;
    }

    .message {
        margin-left: 1100px;
    }
    
    footer {
        padding-bottom: 60px;
    }

    .news_slider {
        padding-left: 20px;
    }
}

@media (max-width: 1200px) {
    html {
    font-size: 14px;
    }

    .header_nav_btn {
    width: 90%;
    }

    .booking_fields {
    width: 750px;
    }

    .message {
        margin: 0;
        right: 10px;
    }

    h1 {
        font-size: 78px;
    }

    h3 {
        font-size: 28px;
    }

    .header_block {
        gap: 20px;
    }

    .about_info {
    padding: 0 20px;
    }

    .info_bron_item {
    width: 400px;
    }
}

@media (max-width: 1000px) {
    main {
        margin-top: 80px;
    }
    .booking_fields {
        width: 666px;
    }

    .search_button {
        width: 200px;
    }

    .news_slider_block {
        flex: 0 0 350px;
    }

    .news_slider_item {
        width: 320px;
    }

    .news_slider_item p {
        width: 300px;
    }

    h2 {
        font-size: 36px;
    }

    .best_offer_block {
        width: 295px;
    }

    .best_offer_photo {
        width: 100%;
    }

    #date_rezerv {
        width: 200px;
    }

    .gallery_grid {
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px 20px;
  }

  .gallery_item {
    height: 240px;
  }

  .item_button {
    grid-column: span 3;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .view_btn_full {
    width: 100%;
    height: 56px;
    font-size: 16px;
  }

  .item_2 .view_btn {
    display: none;
  }

  .item_1, .item_2, .item_3,
  .item_4, .item_5, .item_6,
  .item_7, .item_8 {
    display: block;
  }

  .item_1 img,
  .item_2 img,
  .item_3 img,
  .item_4 img,
  .item_5 img,
  .item_6 img,
  .item_7 img,
  .item_8 img {
    height: 100%;
  }

  .btn_slider {
    display: none;
  }
}


@media (max-width: 920px)  {
    .header_title {
    flex-direction: column-reverse;
    }

    .title_text::after {
    content: '';
    position: absolute;
    top: -0.7em;
    right: 2.9em;
    }

    .header_block a {
        display: none;
        white-space: nowrap;
    }

    .footer_link {
        display: block !important;
    }

    .nodisplaynone {
        display: block !important;
        font-size: 16px;
    }

    .burger_menu {
        display: flex;
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 875px) {
    main {
        margin-top: 70px;
    }
    .title_text {
        text-align: center;
        width: 600px;
    }

    .header_title {
        align-items: center;
        margin-top: 25px;
    }

    .title_text::after {
        top: 0.9em;
        right: 1.3em;
    }

    .title_text::before {
        top: 21%;
        left: 1.3em;
    }

    .booking_form {
    flex-direction: column;
    gap: 15px;
    margin-top: 50px;
    }

    .booking_fields {
    width: 320px;
    height: auto;
    flex-wrap: wrap;
    padding: 10px;
    }

    .booking_field {
    width: 100%;
    min-width: auto;
    padding: 10px 15px;
    border-left: none;
    border-top: 1px solid #eee;
    }

    .booking_field:first-child {
    border-top: none;
    }

    .search_button {
    width: 100%;
    padding: 12px;
    text-align: center;
    }

    .about_block {
    flex-direction: column;
    padding: 0 20px;
    }

    .about_block_title {
        padding: 0 20px;
    }

    .about_block.video {
    width: 100%;
    }

    .about_block.text {
        width: 100%;
    }

    .info_bron {
        height: fit-content;
        max-height: none;
    }

    .container_title {
        flex-direction: column;
        gap: 10px;
    }

    h2 {
        text-align: center;
    }

    .container.center {
        gap: 30px;
    }

    .territoria_cart {
        padding: 0 20px;
    }

    .message {
        width: 74px;
        height: 74px;
        top: 610px;
    }

    .contact_block {
        width: 90%;
        position: static;
        margin: 0 auto;
        margin-bottom: 70px;
    }

    .footer_form {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .footer_button {
        width: 100%;
    }

    .footer_block {
        flex-direction: column;
        gap: 40px;
    }

    footer {
        gap: 20px;
    }

    .contact_top {
        flex-wrap: wrap;
    }

    .footer_input {
        max-width: unset;
    }
}


@media (max-width: 600px) {
    .title_text {
        width: 455px;
    }

    h1 {
    font-size: 65px;
    }

    .title_text::before {
        top: 21%;
        left: 0.95em;
    }

    .title_text::after {
        top: 0.9em;
        right: 1.1em;
    }

    .news_slider_block {
        flex: 0 0 250px;
        height: 310px;
    }

    .news_slider_item {
        width: 220px;
        height: fit-content;
    }
    .news_slider_item_title {
        display: block !important;
        white-space: break-spaces;
        word-break: break-all;
    }
    .news_slider_item p {
        width: 200px;
    }
    
    .about_info {
        display: none;
    }

    .gallery_grid {
        grid-template-columns: 200px 200px;
        width: 360px;
        gap: 10px;
    }

    .best_offer_block {
        width: 155px;
    }

    .best_offer_photo {
        height: 200px;
    }

    .best_offer_block_name_price {
        flex-direction: column;
    }

    .best_offer_block_name {
        font-size: 14px;
    }

    .best_offer_block_price {
        font-size: 16px;
    }

    .best_offer_block form {
        flex-direction: column;
        gap: 10px;
    }

    #date_rezerv, .best_offer_block_btn {
        width: 155px;
    }

    .best_offers {
        gap: 10px;
    }

    .rewiew_item {
        width: 250px;
    }

    .rewiew_block_opis {
        width: 220px;
    }

    .info_bron_item {
        width: 100%;
    }
    
    main {
        gap: 70px;
    }
}

@media (max-width: 470px) {
    .header_nav_btn {
        padding: 0 10px;
    }
    
    h3 {
        font-size: 20px;
    }

    h1 {
        font-size: 48px;
    }

    .title_text {
        width: 340px;
    }

    .title_text::before {
        top: 21%;
        left: 1em;
    }

    .title_text::after {
        top: 0.9em;
        right: 1.1em;
    }  

    .news_slider {
        height: 310px;
    }

    .news_slider_block {
        flex: 0 0 180px;
    }

    .news_slider_item {
        width: 160px;
    }

    .news_slider_item p {
        width: 140px;
    }

    .gallery_grid {
        grid-template-columns: 155px 155px;
        padding: 0 20px;
    }

    h2 {
        font-size: 24px;
    }

    .container_title_block {
        font-size: 16px;
    }

    .footer_input {
        flex: unset;
        min-width: unset;
    }
}

/* дом для 6 */

.house6 {
    background-image: url("img/h6.png");
    height: 550px;
}

.nobr {
    display: none;
}

.title_text--inner::after {
    display: none;
}

.title_text--inner::before {
    top: 27%;
    left: 0em;
}

.message--inner {
    top: 450px;
}

.about_place {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.about_place_photo {
    width: 520px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.about_place_block {
    width: 58%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.about_place_name_price {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about_place_name {
    font-size: 32px;
    line-height: 130%;
}

.about_place_price {
    font-weight: 600;
    font-size: 20px;
}

.about_place_price span {
    font-weight: 400;
}

.about_place_included_block {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about_place_included_items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about_place_included_item {
    width: 100%;
    max-width: 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.about_place_included {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    font-size: 20px;
    gap: 30px;
}

.about_place_btn {
    width: 270px;
    height: 54px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    background-color: var(--back_btn);
    color: var(--white);
    font-family: "Inter";
    font-size: 16px;
    font-weight: 400;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery_photo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery_photo__row {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.gallery_photo__item {
    overflow: hidden;
    border-radius: 20px;
    flex-shrink: 0;
}

.gallery_photo__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.w310 { width: 310px; }
.w420 { width: 420px; }
.w200 { width: 200px; }
.h500 { height: 500px; }

.booking_form--inner {
    margin-top: 20px;
}

@media (max-width: 1300px) {
    .gallery_photo {
        padding: 0 20px;
        gap: 15px;
    }

    .gallery_photo__row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery_photo__item {
        flex-shrink: 0;
        border-radius: 18px;
    }
    
    .gallery_photo__item:nth-child(1) { width: 250px; height: 500px; }
    .gallery_photo__item:nth-child(2) { width: 375px; height: 500px; }
    .gallery_photo__item:nth-child(3) { width: 250px; height: 500px; }

    .gallery_photo__row:nth-child(2) .gallery_photo__item:nth-child(1) { width: 200px; height: 500px; }
    .gallery_photo__row:nth-child(2) .gallery_photo__item:nth-child(2) { width: 310px; height: 500px; }
    .gallery_photo__row:nth-child(2) .gallery_photo__item:nth-child(3) { width: 375px; height: 500px; }

    .about_place {
        padding: 0 20px;
    }

    .rewiews_slider {
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .about_place {
        flex-direction: column;
        align-items: center;
    }
    .about_place_photo {
        width: 70%;
        height: 60%;
    }
    .about_place_photo img {
        width: 100%;
    }
    .about_place_block {
        width: 70%;
    }
    .gallery_photo__row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery_photo__item {
        width: 380px !important;
        height: 500px !important;
    }

    .gallery_photo {
        gap: 12px;
    }
}

@media (max-width: 1000px) {
    .about_place_name {
        font-size: 28px;
    }
    .header_title--inner {
        flex-direction: column;
        margin-top: 95px;
        align-items: center;
    }
    .title_text--inner {
        width: inherit;
    }

    .house6 {
        height: 560px;
    }
}

@media (max-width: 875px) {
    .nobr {
        display: block;
    }

    .title_text--inner::before {
        top: 16%;
        left: 0.7em;
    }
    .about_place_photo img {
        width: 100%;
    }
    .about_place_block {
        width: 100%;
    }

    .gallery_photo__item {
        width: 90% !important;
        height: 380px !important;
    }
    .gallery_photo {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    }

    .booking_fields--inner, .booking_form--inner {
        width: 100%;
    }

    h3 {
        text-align: center;
        width: 374px;
    }

    .about_place {
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .about_place_included_block {
        gap: 20px;
        flex-direction: column;
    }

    .about_place_photo {
        width: 320px;
        height: 380px;
    }

    .about_place_included_items {
        gap: 20px;
    }
}

@media (max-width: 470px) {
    .gallery_photo {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .gallery_photo__item {
        width: 155px !important;
        height: 240px !important;
    }

    .about_place_name {
        font-size: 20px;
    }

    .about_place_price, .about_place_included {
        font-size: 16px;
    }

    .about_place_btn {
        width: 100%;
    }

    .house6 {
        background-image: url("img/h6adaptiv.png");
        height: 640px;
    }
}

/* дом до 12 человек */

.house12 {
    background-image: url("img/h12.png");
    height: 550px;
}

@media (max-width: 1000px) {
    .house12 {
        height: 560px;
    }
}

@media (max-width: 470px) {
    .house12 {
        background-image: url("img/h12adaptiv.png");
        height: 640px;
    }
}

/* гостиничный дом */

.hotel {
    background-image: url("img/hotel.png");
    height: 550px;
}

@media (max-width: 1000px) {
    .hotel {
        height: 560px;
    }
}

@media (max-width: 470px) {
    .hotel {
        background-image: url("img/hoteladaptiv.png");
        height: 640px;
    }
}

.title_text_hotel--inner::before {
    top: 30%;
    left: 0.45em;
}

.title_text_hotel--inner::after {
    display: none;
}

@media (max-width: 875px) {
    h3 {
        text-align: center;
        width: fit-content;
    }

    .title_text_hotel--inner{
        width: fit-content;
        hyphens: auto;
    }

    .title_text_hotel--inner::before {
        display: none;
    }
}

/* беседки */
.besedki {
    background-image: url("img/besedki.png");
    height: 550px;
}

.title_text--inner2::before {
    display: none;
}

.title_text--inner2::after {
    display: none;
}

.about_place_opis {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
}

.about_place_jc {
    display: flex;
    justify-content: flex-start;
    gap: 110px;
}
.about_place_price--inner, .about_place_people {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary_text);
}

.about_place_people span {
    font-weight: 400;
}

@media (max-width: 1000px) {
    .besedki {
        height: 560px;
    }

    .about_place_opis {
        font-size: 14px;
    }

    .about_place_jc {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 470px) {
    .besedki {
        height: 640px;
    }
}

/* бассейн */

.bassein {
    background-image: url("img/bassein.png");
    height: 550px;
}

@media (max-width: 1000px) {
    .bassein {
        height: 560px;
    }
}

@media (max-width: 470px) {
    .bassein {
        height: 640px;
        background-image: url("img/basseinadaptiv.png");
    }
}

.about_place_video {
    width: 770px;
    height: 380px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about_place_video img {
    max-width: inherit;
}

.about_place_block.video {
    width: 39%;
    gap: 20px;
}

.about_place_jc.video {
    flex-direction: column;
    gap: 15px;
}

.about_place_opis_price {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about_place.video {
    margin-top: inherit;
}

@media (max-width: 1300px) {
    .gallery_photo__item.none {
        display: none;
    }
}

@media (max-width: 1200px) {
    .about_place_video {
        width: 370px;
        height: 380px;
        border-radius: 15px;
        overflow: hidden;
    }

    .about_place.video {
        flex-direction: row;
        justify-content: center;
    }

    .gallery_photo__item.none {
        display: block;
    }
}

@media (max-width: 875px) {
    .about_place.video {
        flex-direction: column;
    }

    .about_place_video {
        width: 100%;
    }

    .about_place_block.video {
        width: 100%;
        align-items: center;
    }

    .gallery_photo__row.video {
        display: none;
    }
}

/* ресторан */

.restoran {
    background-image: url("img/restoran.png");
    height: 550px;
}

@media (max-width: 470px) {
    .restoran {
        height: 640px;
        background-image: url("img/restoranadaptiv.png");
    }
}

.container.video {
    flex-direction: column;
    gap: 45px;
}

.news_slider_block.video {
    flex: 0 0 308px;
}

.news_slider_item.video {
    width: 90%;
}

.news_slider_item.video p {
    width: 100%;
}

.info_bron.video {
    width: 100%;
    height: fit-content;
    max-height: fit-content;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.info_bron_item_block.video {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info_bron_item.video {
    width: 420px;
}

@media (max-width: 1300px) {
    .info_bron_item.video {
        width: 300px;
    }

    .info_bron.video {
        padding: 0 20px;
    }
}

@media (max-width: 1000px) {
    .restoran {
        height: 560px;
    }

    .info_bron_item.video {
        width: 250px;
    }

    .news_slider_block.video {
        flex: 0 0 220px;
        height: 330px;
    }
}

@media (max-width: 875px) {
    .info_bron.video {
        height: 370px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .news_slider {
        height: fit-content;
    }
}

@media (max-width: 600px) {
    .info_bron.video {
        height: 100%;
        
    }

    .news_slider_block.video {
        flex: 0 0 155px;
        height: 240px;
    }
}

/* чан */

.chan {
    background-image: url("img/chan.png");
    height: 550px;
}

.title_text--inner2 {
    text-align: center;
}

.about_place_photo_block {
    height: 100%;
    max-height: 420px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.about_place_photo--inner {
    width: 420px;
    height: 420px;
    overflow: hidden;
    border-radius: 15px;
    margin-top: inherit;
    flex-wrap: nowrap;
    display: flex;
    justify-content: center;
    object-fit: fill;
}

.about_place_photo--inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about_place--inner {
    margin-top: inherit;
}

.about_place_block--inner {
    width: 32%;
}

@media (max-width: 1300px) {
    .about_place_photo--inner {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 1200px) {
    .about_place_block--inner {
        width: 910px;
    }
    .about_place_photo--inner {
        width: 445px;
        height: 420px;
    }
}

@media (max-width: 1000px) {
    .chan {
        height: 560px;
    }
}

@media (max-width: 920px)  {
    .about_place_block--inner {
        width: 100%;
    }
    .about_place_photo--inner {
        width: 360px;
        height: 320px;
    }
}

@media (max-width: 875px)  {
    .about_place_photo--inner {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 600px)  {
    .about_place_photo--inner {
        width: 220px;
        height: 240px;
    }
}

@media (max-width: 470px) {
    .chan {
        height: 640px;
        background-image: url("img/chanadaptiv.png");
    }

    .about_place_photo--inner {
        width: 155px;
        height: 240px;
    }
}

/* баня */

.banya {
    background-image: url("img/banya.png");
    height: 550px;
}

.about_place_photo--inner2 {
    width: 860px;
    height: 430px;
    display: flex;
    justify-content: center;
}

.about_place_photo--inner2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about_place_opis_price--inner {
    gap: 10px;
}

.about_place_block--inner2 {
    width: 34%;
}

.uslugi_bani {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.about_place_included_block--inner {
    width: 535px;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    height: 100px;
}

@media (max-width: 1300px) {
    .uslugi_bani {
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .about_place_block--inner2 {
        width: 100%;
    }

    .uslugi_bani {
        gap: 100px;
    }

    .about_place_included_block--inner {
        width: 100%;
        flex-direction: column;
        height: fit-content;
    }

    .about_place_photo--inner2 {
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .banya {
        height: 560px;
    }
}

@media (max-width: 600px) {
    .uslugi_bani {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

@media (max-width: 470px) {
    .banya {
        height: 640px;
        background-image: url("img/banyaadaptiv.png");
    }

    .about_place_photo--inner2 {
        width: 320px;
        height: 380px;
    }
}

/* фотогалерея */

.gallery {
    background: none;
    height: fit-content;
}

.header_nav_btn--inner {
    background-color: var(--back_grin);
}

.sortirovka {
    width: 100%;
    flex-grow: nowrap;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sortirovka_btn {
    width: fit-content;
    background-color: #3C1C841A;
    padding: 8px 18px;
    font-size: 16px;
    font-weight: 400;
    font-family: "Inter";
    color: var(--primary_text);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    white-space: nowrap;
}

.sortirovka_btn.active {
    background-color: var(--back_btn);
    color: var(--white);
}

.photogallery_grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 500px;
    gap: 20px;
}

.photogallery_grid_item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.photogallery_grid_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photogallery_grid_item:nth-child(8n+1) {grid-column: span 3;}
.photogallery_grid_item:nth-child(8n+2) {grid-column: span 4;}
.photogallery_grid_item:nth-child(8n+3) {grid-column: span 3;}
.photogallery_grid_item:nth-child(8n+4) {grid-column: span 2;}

.photogallery_grid_item:nth-child(8n+5) {grid-column: span 2;}
.photogallery_grid_item:nth-child(8n+6) {grid-column: span 3;}
.photogallery_grid_item:nth-child(8n+7) {grid-column: span 4;}
.photogallery_grid_item:nth-child(8n+8) {grid-column: span 3;}

@media (max-width: 1300px) {
    .sortirovka {
        padding: 0 20px;
    }
    
    .photogallery_grid {
        padding: 0 20px;
    }
}

@media (max-width: 1000px) {
    .photogallery_grid {
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: 385px;
        gap: 20px;
    }
    .photogallery_grid_item:nth-child(8n+1) {grid-column: span 4;}
    .photogallery_grid_item:nth-child(8n+2) {grid-column: span 5;}
    .photogallery_grid_item:nth-child(8n+3) {grid-column: span 3;}
    .photogallery_grid_item:nth-child(8n+4) {grid-column: span 3;}

    .photogallery_grid_item:nth-child(8n+5) {grid-column: span 5;}
    .photogallery_grid_item:nth-child(8n+6) {grid-column: span 4;}
    .photogallery_grid_item:nth-child(8n+7) {grid-column: span 5;}
    .photogallery_grid_item:nth-child(8n+8) {grid-column: span 7;}
}

@media (max-width: 470px) {
    .photogallery_grid {
        grid-template-columns: repeat(2, 155px);
        grid-auto-rows: 240px;
        gap: 10px;
    }

    .photogallery_grid_item:nth-child(8n+1) {grid-column: span 1;}
    .photogallery_grid_item:nth-child(8n+2) {grid-column: span 1;}
    .photogallery_grid_item:nth-child(8n+3) {grid-column: span 1;}
    .photogallery_grid_item:nth-child(8n+4) {grid-column: span 1;}

    .photogallery_grid_item:nth-child(8n+5) {grid-column: span 1;}
    .photogallery_grid_item:nth-child(8n+6) {grid-column: span 1;}
    .photogallery_grid_item:nth-child(8n+7) {grid-column: span 1;}
    .photogallery_grid_item:nth-child(8n+8) {grid-column: span 1;}

    .sortirovka_btn {
        font-size: 14px;
    }
}