/* Header */

.header {
    top: 0px;
    width: 100%;
    z-index: 100;
    position: fixed;
    z-index: 100;
    transition: 0.2s all;
}

.header__bg {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--color-blur);
}

.header.header_fixed {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.header__content {
    padding: 33px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.header__logo {
    height: 56px;
    width: 225px;
}

.header__list {
    gap: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-default);
    transition: 0.2s all;
}

.header__link:hover {
    color: var(--color-link);
}

.header__link--active {
	position: relative;
}

body:has(.hero) .header:not(.header_fixed):not(.header_open) .header__link--active:after,
body:has(.hero) .header:not(.header_fixed):not(.header_open) .header__link--active:before {
	background: var(--color-white);
}


.header__link--active:after, 
.header__link--active:before {
	background: var(--color-default);
    bottom: -5px;
    content: "";
    height: 3px;
    position: absolute;
}

.header__link--active:after {
	right: 0;
    width: 15%;
}

.header__link--active:before {
    left: 0;
    width: 75%;
}

.header__social {
    gap: 20px;
    display: flex;
    align-items: center;
}

.header__social .header__link {
    font-size: 20px;
}

.header__icon_phone {
    width: 16px;
    aspect-ratio: 2/3;
}

.header__icon_whatsapp {
    width: 32px;
    aspect-ratio: 1;
}

.header__button {
    font-weight: 600;
    line-height: 163%;
    text-align: center;
    font-size: 16px;
    padding: 15px 34px;
    text-transform: none;
}

.header__gamburger {
    display: none;
}

.header .header__close {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 20px;
    height: auto;
    aspect-ratio: 1;
}

body:has(.hero) .header:not(.header_fixed):not(.header_open) .header__logo svg * {
    fill: #FFF;
}


body:has(.hero) .header:not(.header_fixed) .icon_gamburger svg *  {
    stroke: #FFF;
}

body:has(.hero) .header:not(.header_fixed):not(.header_open) .header__link {
    color: #FFF;
}

.header.header_open {
    display: none;
}


/* Breadcrumbs */

.breadcrumbs.container {
    padding: 0px 20px;
}

.breadcrumbs__list {
    gap: 5px;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs__item {
    font-size: 14px;
}

.breadcrumbs__item:not(:last-child)::after {
    content: '-';
    margin-left: 5px;
}

.breadcrumbs__item:not(:last-child) .breadcrumbs__link {
    font-weight: 700;
}

.breadcrumbs__link {
    color: var(--color-default);
}

.breadcrumbs {
    margin-bottom: calc(-1 * var(--section-gap) + 10px);
}


/* Hero */

main:has(.hero) {
    margin-top: -95px;
}

.hero {
    height: 854px;;
    display: flex;
    position: relative;
    align-items: center;
    margin-bottom: -20px;
    max-height: 100vh;
}

.hero .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero.hero_slider .hero__content {
    align-items: center;
}


.hero.hero_slider .hero__desc {
    max-width: 790px;
    margin: 0 auto;
    font-weight: 600;
    font-size: 24px;
    line-height: 104%;
    text-align: center;
    padding: 0px 60px;
}

.hero.hero_slider .title {
    text-align: center;
}

.hero__slider.swiper {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    border-radius: 0px;
}

.hero__slider.swiper .slider__actions > .button {
    position: absolute;
}

.hero__slider.swiper .slider__actions > .button.swiper-button-prev {
    left: 30px;
	z-index: 2;
}

.hero__slider.swiper .slider__actions > .button.swiper-button-next {
    right: 30px;
	z-index: 2;
}
.hero__content .button,
.hero__content a.link-button {
    width: 100%;
    max-width: 285px;
}
    
.hero__content {
    width: 100%;
    gap: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: start;
    z-index: 2;
    color: var(--color-white);
}
    
.hero:not(.hero_slider) .hero__content .title {
    max-width: 650px;
}

.hero:not(.hero_slider) .hero__desc {
    max-width: 735px;
}
    
.hero__bg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(6, 6, 6, 0) 0%, #1f334c 100%);
    z-index: 1;
    opacity: 0.7;
}


.hero .breadcrumbs__link {
    color: var(--color-white);
}

.hero .breadcrumbs {
    position: static;
    margin-bottom: 0px;
}

.hero + .services .services__header,
.hero + .bg__gradient + .services .services__header {
    display: none;
}

.hero + .services,
.hero + .bg__gradient + .services {
    margin-top: calc(-1 * var(--section-gap) - 100px);
    z-index: 2;
}

.hero + .bg__gradient + .services {
    z-index: 4;
}


/* Footer */


.footer {
    padding-top: 45px;
    position: relative;
    overflow: hidden;
}

.footer__content {
    position: relative;
    z-index: 2;
}

.footer__header {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
    margin-bottom: 93px;
}

.footer-header__list {
    display: flex;
    gap: 20px 40px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-header__link,
.footer .header__link-text {
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-white);
}

.footer__logo {
    height: 56px;
    width: 225px;
}

.footer__header-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer__header-group .header__link-text {
    font-size: 20px;
    font-weight: 600;
}

.footer__info {
    margin-bottom: 75px;
}

.footer__nav {
    gap: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer__nav-group {
    gap: 35px;
    display: flex;
    flex-direction: column;
}

.footer__nav-subgroup {
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.footer__nav-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 144%;
    color: #a1a1a1;
}


.footer__nav-list {
    gap: 0px;
    display: flex;
    flex-direction: column;
}
.footer__nav-item {
    list-style: none;
}

.footer__nav-link {
    font-weight: 600;
    font-size: 22px;
    line-height: 182%;
    color: #fff;
}




.footer__bg {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 0;
}

.footer__bg::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 2;
    background: rgba(30, 50, 75, 0.93);
}


.footer__bg img {
    object-position: center -150px;
    object-fit: cover;
}

.under-footer {
    position: relative;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-white);
    padding: 31px 0px 17px;
}

.under-footer::after {
    content: '';
    position: absolute;
    top: 0px;
    left: -4vw;
    width: calc(100% + 8vw);
    height: 1px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.25);
}



/* Block content */
.block-content {
}

.block-content__content {
    gap: 45px;
    display: grid;
    grid-template-columns: 740px 1fr
}
.block-content__slider {
    width: 100%;
    height: 615px;
}

.block-content__slider .swiper-slide__image {
    height: 615px;
    overflow: hidden;
    border-radius: 12px;
}


.block-content__info {
    gap: 0px;
    display: flex;
    margin-top: -10px;
    flex-direction: column;
}

.home .block-content_slider .block-content__info {
    justify-content: space-between;
}

.block-content__info .title {
    margin-bottom: 25px;
}

.block-content__info button {
	
}

.block-content__link-button {
    width: 100%;
    display: flex;
    margin-top: 35px;
    justify-content: center;
	max-width: 297px;
}

.block-content__link-button button {
    width: 100%;
    max-width: 297px;
}

.block-content__content .slider__actions > .button {
    position: absolute;
}

.block-content + .bg__gradient + .categories .categories__bg-item,
.block-content + .categories .categories__bg-item  {
    bottom: -40rem;
    top: auto;
}




/* Feedbacks */



/* Feedback */

.feedbacks__header {
    gap: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.feedbacks__header > .title {
    margin-bottom: 0px;
}

.feedbacks__accent {
    width: 100%;
    max-width: 851px;
    gap: 17px;
    display: flex;
    align-items: center;
}

.feedbacks__accent > * {
    gap: 12px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: var(--button-fill);
    width: 100%;
    max-width: 417px;
    justify-content: space-between;
}

.feedbacks__socials {
    padding: 12px 30px;
}

.feedbacks__social-icon img {
    height: 31px;
    position: static;
    object-fit: contain;
}


.feedbacks__statistic {
    padding: 12px 30px;
    color: var(--color-white);
}

.feedbacks-statistic__value {
    font-size: 40px;
    font-weight: 700;
}

.feedbacks-statistic__text {
    font-weight: 600;
    font-size: 14px;
}

.feedbacks__slider  {
    margin-bottom: 38px;
}

.feedbacks__item {
	min-height: 220px;
    border-radius: 12px;
    padding: 22px 22px 27px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.feedbacks__actions {
    gap: 40px;
    display: flex;
    align-items: center;
	position: relative;
	z-index: 2;
    justify-content: space-between;
}

.feedbacks__actions .swiper-button-next, 
.feedbacks__actions .swiper-button-prev {
    margin: 0px !important;
}

.feedbacks__actions:not(:has(.feedbacks__button-link)) {
    justify-content: end;
}

.feedback.feedbacks__item {
    gap: 16px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.feedback__header {
    gap: 20px;
    display: flex;
    align-items: center;
}

.feedback__avatar {
    width: 63px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
}

.feedback__name {
    font-weight: 600;
    font-size: 16px;
    line-height: 163%;
    color: #20344d;
}

.feedback__text,
.feedback__group-text > p {
    font-weight: 400;
    font-size: 15px;
    line-height: 114%;
    color: #939393;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedback__group-text {
    gap: 16px;
    display: flex;
    flex-direction: column;
    margin-bottom: -2px;
}


.feedback__footer {
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback__link {
    font-weight: 600;
    font-size: 15px;
    line-height: 114%;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #20344d;
}

.feedback__link:hover {
    text-decoration: none;
}

.feedback__link-logo {
    height: 25px;
    margin-right: -7px;
    aspect-ratio: 39 / 10;
}

.feedback__link-logo img {
    object-fit: contain;
}

.feedbacks__button-link {
    display: block;
    width: 100%;
    max-width: 365px;
}

.feedbacks__button-link .button {
    width: 100%;
}

.feedbacks + .categories .categories__bg-item {
    top: -33.6rem;
}

.breadcrumbs + .feedbacks + .categories .categories__bg-item {
	top: -26rem;
    aspect-ratio: 20 / 5;
}



/* Article */


/* Article text */
.article .article__text ul, 
.article .article__text ol {
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.article .article__text li::before {
    content: '·';
    font-weight: 700;
    margin-right: 5px;
}

.article h2.title {
    margin-bottom: 26px;
}

article h1 {
	margin: 20px 0px 40px;
}


/* Services */


.services__header {
    gap: 30px;
    display: flex;
    margin-bottom: 52px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.services__header .link-button,
.link-button_mobile.link-button {
    width: 100%;
    max-width: 295px;
}


.link-button_mobile {
    display: none;
}

.link-button_mobile .button {
    width: 100%;
}

.services__header h2.title {
    margin-bottom: 0px;
}

.services__header-group {
    display: flex;
    flex-direction: column;
}

.services__header .button {
    max-width: 295px;
    width: 100%;
}

.services__list {
    gap: 17px 19px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.services__item {
    padding: 10px 14px 28px; 
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.service {
    background: var(--color-white);
}

.service__link {
    gap: 28px;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
}

.service__info {
    gap: 4px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.service .button {
    margin-top: 7px;
    max-width: 196px;
    margin: 20px auto 0;
    width: 100%;
    font-weight: 600;
    font-size: 18px;
    line-height: 144%;
    padding: 14px 20px 14px 20px;
}

.service__preview {
    aspect-ratio: 2.13/1;
    width: 100%;
}

.service__title {
    text-align: center;
    text-transform: uppercase;
}
.service__desc {
    line-height: 95%;
    text-align: center;
}

.services + .categories .categories__bg-item {
    top: -850px;
}





/* Advantages */

.advantages {
    padding: 95px 0px 0px;
    position: relative;
}

.advantages__content {
    position: relative;
    z-index: 2;
}

.advantages__content h2.title {
    margin-bottom: 48px;
}

.advantages__list *,
.advantages .title {
    color: var(--color-white);
}

.advantages__list {
    gap: 42px;
    display: grid;
    padding: 0px 24px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 120px;
}

.advantages__content .categories {
    border-top: 1px solid #4B5A6D;
    padding: 75px 0px;
}

.advantage {
    gap: 18px;
    display: grid;
    justify-items: center;
    grid-template-rows: auto 1fr;
}

.advantage__icon {
    aspect-ratio: 1;
    width: 131px;
}

.advantage__info {
    gap: 13px;
    display: flex;
    flex-direction: column;
}

.advantage__title {
    font-weight: 700;
    line-height: 105%;
    text-transform: uppercase;
    text-align: center;
}

.advantage__desc {
    line-height: 95%;
    text-align: center;
}

.advantages__bg {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 0;
}

.advantages__bg::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 2;
    background: rgba(30, 50, 75, 0.93);
}



/* Gallery */


.gallery {
    position: relative;
    overflow-x: visible;
    overflow-y: hidden;
}

.gallery__content {
    overflow-x: visible;
    position: relative;
}

.gallery__header > .title {
    margin-bottom: 0px;
}

.gallery__header {
    gap: 20px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    min-height: 55px;
}


.gallery__slider {
    position: relative;
}

.swiper-slide__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1.6/1;
}

.gallery__slider .swiper-slide__image {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}
  
.gallery__slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* Rooms */

.rooms {

}

.rooms__content {

}

.rooms__list {
    gap: 4px;
    display: grid;
    overflow: hidden;
    border-radius: 15px;
    grid-template-columns: 1fr 403px;
}


.rooms__row {
    gap: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.rooms__row:nth-child(1) {
    grid-template-columns: 1.3fr 1fr;
}

.rooms__row:nth-child(2) {
    grid-template-columns: 1fr 1.1fr;
}

.rooms__row:nth-child(2) .rooms__item:nth-child(2) {
	border-radius: 0px 0px 15px 0px;
	overflow: hidden;
}

.rooms__column {
    grid-column: 2/3;
    grid-row: 1/3;
    gap: 4px;
    display: grid;
    grid-template-rows: 1fr auto;
}

.rooms__item {
    position: relative;
    min-height: 322px;
}

.rooms__item::after {
    transition: 0.2s all;
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: #00000020;
    opacity: 0;
    pointer-events: none;
}

.rooms__item:hover::after {
    opacity: 1;
}

.room__image {
    width: 100%;
    height: 100%;
}

.room__link-button {
    background: var(--color-white);
    padding: 9px 0px 0px 9px;
    margin-top: 0px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.rooms__column .rooms__item {
	border-radius: 0px 0px 15px 15px;
	overflow: hidden;
}

.room__link-button .button {
    width: 100%;
	border-radius: 16px;
}


/* Contacts */

.contacts__content {
    gap: 49px;
    display: grid;
    grid-template-columns: 1fr 390px;
}

.contacts__content .title {
    grid-column: 1/3;
}

.contacts__map {
    width: 100%;
    height: 427px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.contacts__map iframe {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.contacts__group {
    gap: 30px;
    display: flex;
    flex-direction: column;
}

.contacts__group .button {
    max-width: 297px;
}

.contacts__list {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.contacts__link {
    gap: 12px;
    display: flex;
    align-items: start;
}

.contacts__icon {
    aspect-ratio: 1;
    width: 26px;
    min-width: 26px;
}

.contacts__icon img {
    object-fit: contain;
}


/* Categories */

.categories:has(.categories__bg) {
    padding: 65px 0px;
    position: relative;
}

.categories__content {
    display: flex;
    align-items: center;
    position: relative;
    padding: 18px 90px;
    max-width: 1200px;
    margin: 0px auto;
    z-index: 5;
}

.categories__content::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3.4px);
    background: #131c26;
    border-radius: 12px;
    z-index: 2;
}

.categories:has(.categories__bg) .categories__content::after {
    background: rgba(0, 0, 0, 0.49);
}

.categories__content * {
    position: relative;
    z-index: 5;
}

.categories__tabs {
    width: 100%;
    border-radius: 7px;
    background: var(--color-white);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    z-index: 6;
}

.categories__tab {
    padding: 10px;
}

.categories__tab:has(input[type="date"]):not(:first-child) {
    border-left: 1px solid #E0E0E0;
}

.categories__button {
    width: 184px;
    font-weight: 600;
    font-size: 18px;
    line-height: 83%;
    color: #fff;
    padding: 20px;
    justify-content: end;
    height: 57px;
    margin-left: -50px;
}

.categories__bg {
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    position: absolute;
}

.categories__bg::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 2;
    background: rgba(30, 50, 75, 0.93);
}

.categories__bg-item {
    position: absolute;
    top: 0px;
    left: 0px;
    width: calc(100vw - 15px);
    aspect-ratio: 21/5;
    z-index: 0;
    pointer-events: none;
}





/* apartments */

.categories + .apartments {
    margin-top: calc(-1 * var(--section-gap));
}

.apartments__categories {
    gap: 37px;
    display: flex;
    align-items: center;
    margin: 0px auto 37px;
    max-width: 1024px;
}

.apartments-category {
    color: #828282;
    cursor: pointer;
}

.apartments-category_active {
    color: #404040;
    border-bottom: 1px solid #404040;
}

.apartments__list {
    gap: 15px;
    display: flex;
    margin: 0px auto;
    max-width: 1024px;
    flex-direction: column;
}

.apartments__item {
    display: grid;
    overflow: hidden;
    border-radius: 20px;
    grid-template-columns: 305px 1fr;
    border: 1px solid #D9D9D9;
    background: var(--color-white);
    position: relative;
    z-index: 3;
}


.apartments + .categories .categories__bg-item {
    top: -850px;
}

.apartments + .categories,
main:has(.bg__gradient) .apartments + .categories {
    position: relative;
    z-index: 2;
}

.bg__gradient {
    margin-top: -50px;
    position: relative;
    margin: calc(-1 * var(--section-gap)) 0px 0px;
}

main:has(.bg__gradient) > *:not(.bg__gradient) {
    position: relative;
    z-index: 3; 
}


.bg__gradient::before,
.bg__gradient::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 40vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.bg__gradient::after {
    transform: rotate(180deg);
}


.bg__gradient::before {
    top: -40vh;
}

main:has(.bg__gradient) .feedbacks + .categories {
    z-index: 2;
}

@media (max-width: 1750px) {
    .feedbacks + .categories .categories__bg-item {
        top: -28rem;
    }
}

@media (max-width: 1450px) {
    .header__content {
        box-sizing: border-box;
    }
}

@media (max-width: 1730px) {
    .footer__bg img {
        object-position: center 0px;
    }
}

@media (max-width: 1320px) {
    .block-content__content {
        grid-template-columns: 560px 1fr;
    }
}

@media (max-width: 1280px) {
    .footer__header {
        gap: 50px 30px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-header__nav {
        grid-row: 2;
        grid-column: 1/3;
    }

    .footer__header-group {
        justify-content: end;
    }
}

@media (max-width: 1250px) {
    
    .header__nav {
        margin-left: 0px;
    }

    .header .header__social,
    .header .button {
        display: none;
    }

    .header .header__content {
        box-sizing: border-box;
    }

    .header:not(.header_open) .header__gamburger {
        display: block;
    }
    

    .header.header_open.header_fixed {
        background: none;
    }

    .header.header_open {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        overflow: auto;
        z-index: 100;
        display: flex;
        justify-content: end;
    }

    .header .header__content {
        z-index: 3;
    }

    .header.header_open .header__close,
    .header.header_open .header__bg {
        display: block;
    }

    .header.header_open .container {
        background: var(--color-background);
        max-width: 350px;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        align-items: start;
        margin: 0px;
        max-height: 100vh;
        overflow: auto;
        justify-self: end;
        position: absolute;
        height: 100%;
    }

    .header.header_open .header__logo-link {
        display: flex;
        justify-content: center;
    }

    .header.header_open .header__list {
        flex-direction: column;
        align-items: start;
        margin-top: 40px;
    }

    .header.header_open .header__social,
    .header.header_open .header__button {
        display: flex;
    }

    .header.header_open .header__social {
        justify-content: space-between;
        margin-left: 0px;
    }

    .header.header_open .header__nav {
        display: flex;
    }

    .header.header_open .header__button {
        justify-content: center;
        width: 100%;
    }

    .header.header_open .header__social {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 1200px) {
    .service__desc {
        font-size: calc(var(--font-size-default) - 1px);
    }
    
    .service .button {
        font-size: calc(var(--font-size-default) - 4px);
    }
}

@media (max-width: 1150px) {
    .block-content__content {
        grid-template-columns: 500px 1fr;
    }
}

@media (max-width: 1100px) {
    .feedbacks__header {
        align-items: start;
        flex-direction: column;
    }

    .advantages__list {
        gap: 72px 42px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1050px) {
    .contacts__content {
        grid-template-columns: 1fr;
    }

    .contacts__map {
        grid-row: 2;
    }

    .services__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .service__info {
        gap: 15px;
    }

    .service .button {
        margin-top: 15px;
    }

    .rooms__list {
        grid-template-columns: 1fr;
    }

    .rooms__column {
        grid-column: 1;
        grid-row: 3;
    }

    .rooms__column .rooms__item {
        overflow: hidden;
        border-radius: 0px 0px 15px 15px;
    }

    .room__link-button {
        padding: 10px 0px 0px;
    }

    .categories__bg-item {
        width: 100vw;
    }
}

@media (max-width: 990px) {
    .block-content__content {
        gap: 30px;
    }

    .advantages__list {
        gap: 42px;
        grid-template-columns: repeat(4, 1fr);
    }

    .advantage__icon {
        width: 110px;
    }

    .service__desc,
    .service__title,
    .service .button {
        font-size: calc(var(--font-size-default) + 2px);
    }

    .swiper-button-next.button, 
    .swiper-button-prev.button {
        width: 50px;
    }
}

@media (max-width: 960px) {
    .header__nav {
        display: none;
    }
}

@media (max-width: 920px) {
    .block-content__content {
        grid-template-columns: 400px 1fr;
    }

    .block-content__slider,
    .block-content__slider .swiper-slide__image  {
        height: 415px;
    }

    .advantages__list {
        gap: 32px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .categories__content {
        padding: 18px 40px;
    }

    .categories__tab:has(input[type="date"]):not(:first-child) {
        border-left: none;
        border-top: 1px solid #E0E0E0;
    }
    
    .advantages__list {
        margin-bottom: 100px;
    }
}


@media (max-width: 840px) {
    .feedbacks__accent {
        align-items: start;
        flex-direction: column;
    }

    .feedbacks__accent > * {
        max-width: none;
        min-height: 55px;
    }
}

@media (max-width: 820px) {
    .block-content__content {
        grid-template-columns: 1fr;
    }

    .block-content__info {
        grid-row: 1;
    }

    body p {
        line-height: 140%;
    }
}

@media (max-width: 800px) {
    .categories__tabs {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 750px) {
    .footer__header {
        gap: 50px;
        display: flex;
        flex-direction: column;
        margin-bottom: 60px;
    }

    .footer__header-group {
        justify-content: start;
    }

    .feedbacks__item {
        padding: 15px 20px 15px;
    }

    .footer__nav,
    .footer__nav-group {
        gap: 30px;
    }

    .link-button.link-button_mobile {
        display: flex;
        margin: 30px auto 0px;
    }

    .link-button.link-button_desktop {
        display: none;
    }
}

@media (max-width: 700px) {
    .advantages__list {
        margin-bottom: 30px;
        gap: 32px;
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages {
        padding: 60px 0px;
    }

    .advantages .title {
        text-align: center;
    }

    .hero {
        margin-bottom: 0px;
        max-height: 65vh;
        min-height: 760px;
    }

    .service__desc,
    .service__title,
    .service .button {
        font-size: calc(var(--font-size-default));
    }

    .swiper-button-next.button, 
    .swiper-button-prev.button {
        width: 45px;
    }

    .button {
        font-size: calc(var(--font-size-default) + 2px);
    }
}

@media (max-width: 580px) {
    .services__list {
        grid-template-columns: 1fr;
    }

    .service__link {
        gap: 20px;
    }

    .hero.hero_slider .hero__desc {
        font-size: 18px;
        padding: 0px 70px;
    }

    .footer__nav-link {
        line-height: 140%;
    }

    .footer__nav-group,
    .footer__nav {
        gap: 30px;
    }

    .breadcrumbs + .feedbacks + .categories .categories__bg-item,
    .feedbacks + .categories .categories__bg-item {
        top: -20rem;
    }

    .categories:has(.categories__bg) {
        padding: 30px 0px;
    }
}

@media (max-width: 490px) {
    .header.header_open .container {
        max-width: none;
    }

    .feedbacks-statistic__value {
        font-size: 30px;
    }

    .advantage__icon {
        width: 90px;
    }

    .advantages__list {
        padding: 0px;
    }

    .categories__button {
        width: 100%;
        margin-left: 0px;
        justify-content: center;
    }

    .categories__content {
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    .categories__content {
        padding: 20px;
    }

    .rooms__item {
        min-height: 280px;
    }
}



@media (max-width: 420px) {
    .footer__header-group .header__social {
        gap: 30px;
        flex-direction: column;
        align-items: start;
    }

    .footer__header-group {
        width: 100%;
    }

    .feedbacks__actions {
        gap: 10px;
    }

    .footer__nav-link {
        line-height: 130%;
    }
}


@media (max-width: 400px) {
    .advantage__icon {
        width: 70px;
    }

    .advantages__list {
        gap: 40px 12px;
        /* grid-template-columns: 1fr; */
    }

    .advantage__title {
        font-size: 13px;
    }

    .advantage__desc {
        font-size: 14px;
    }

    .rooms__item {
        min-height: 240px;
    }

    .services__desc {
        line-height: 120%;
        margin-top: 10px;
    }
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal_open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal__content {
    position: relative;
    z-index: 1;
    background: var(--color-white, #fff);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

.modal__close svg {
    width: 24px;
    height: 24px;
}

.modal__content_fullscreen {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}

.modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal__content_fullscreen .modal__close {
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal__content {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .modal__content_fullscreen {
        padding: 0;
        border-radius: 0;
    }
}

/* Datepicker fix — datepicker должен плавать поверх формы */

.categories__tab .form__item-content {
    position: relative;
}

.categories__tab .qs-datepicker-container {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    z-index: 100;
}

#hr-widget {
    width: 100%;
}

.hero > .container {
	pointer-events: none;
}
.hero > .container button, .hero > .container h1 {
	pointer-events: all;
}
@media(max-width: 1200px) and(min-width: 1024px) {
	.block-content_slider .container {
    padding: 20px 60px;
}
}
@media(max-width: 768px) {
	.block-content + .bg__gradient + .categories .categories__bg-item, .block-content + .categories .categories__bg-item {
    bottom: -26rem;
    top: auto;
}
}

.page_apartments .categories .categories__bg-item {
	display: none !important;
}




.dialog {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 100;
    display: grid;
    place-items: center;
    background: none;
    display: none;
}

.dialog.dialog_open {
    display: grid;
}


.dialog__bg {
    position: absolute;
    z-index: 1;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: hsla(0, 0%, 0%, 0.64);
}

.dialog__form-wrapper {
	display: flex;
    gap: 32px;
    flex-direction: column;
}

.dialog__content {
    background: #FFF;
    position: relative;
    z-index: 2;
    max-width: 460px;
    padding: 48px 60px 55px;
    border-radius: 20px;
    background-image: url('../images/bg.svg');
}


.dialog__content::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    transform: rotate(180deg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
    border-radius: 0px 0px 20px 20px;
}



.dialog__title.title {
    z-index: 2;
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 0px;
    text-align: center;
	color: var(--color-default);
}

.dialog__close {
    aspect-ratio: 1;
    position: absolute;
    top: -40px;
    right: -32px;
    width: 32px;
    cursor: pointer;
}

.dialog__close svg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.dialog__form {
    position: relative;
    z-index: 3;
    gap: 13px;
    display: flex;
    flex-direction: column;
}

.dialog__form .form__input {
    font-size: 16px;
}

.form__item_checkbox {
    margin-top: 5px;
}

.dialog__form .button.button_fill {
    font-weight: 600;
    font-size: 16px;
    line-height: 163%;
    text-align: center;
}


.page-id-838 main .container {
	width: 100%;
}


.page-id-838 main .container ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.page-id-838 main .container ul ul {
	margin-left: 30px;
}


.page-id-838 main .container ul ul li:first-child {
	margin-top: 10px;
}

.page-id-838 main .container ul li * {
	font-weight: 400;
}

#hr-widget:not(:has(.main-page)) {
	color: #39582D;
    position: relative;
    height: 100px;
    width: 100px;
    top: 0px;
    left: 0px;
    z-index: 222;
}

#hr-widget:not(:has(.main-page)):after {
	animation: loaderAnimate 1s ease infinite;
	border: 4px solid #39582D;
	border-radius: 50%;
	border-top-color: #fff;
	bottom: 0;
	content: "";
	left: 0;
	margin: auto;
	position: absolute;
	right: 0;
	top: 0;
	width: 60px;
	aspect-ratio: 1;
}

.booking-list:not(:has(.main-page)) .container {
	position: relative;
    display: grid;
    place-items: center;
}

.categories__content:not(:has(.main-page)) {
	justify-content: center;
}

.categories__content #hr-widget:not(:has(.main-page)):after {
	width: 40px;
	border: 3px solid #FFF;
	border-top-color: rgba(0, 0, 0, 0);
}


.categories__content #hr-widget:not(:has(.main-page)) {
	color: #FFF;
	height: 70px;
    width: 70px;
}
	
.widget-loader {
	display: none;
}

@keyframes loaderAnimate {
	from {
	transform: rotate(0turn);
	}

	to {
	transform: rotate(1turn);
	}
}
