* {
    box-sizing: border-box;
}

html,
body {
    position: relative;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
}

p {
    color: #000227;
}

.only-desktop {
    display: none !important;
}

.only-desktop_flex {
    display: none !important;
}

@media (min-width: 922px) {
    .only-mobile {
        display: none !important;
    }

    .only-mobile_flex {
        display: none !important;
    }

    .only-desktop {
        display: block !important;
    }

    .only-desktop_flex {
        display: flex !important;
    }
}

/* HEADER */
@media (max-width: 921px) {
    body::before {
        content: '';
        display: block;
        height: 80px;
    }

    body.body_show-menu {
        overflow: hidden;
    }
}

header {
    background-color: #000227;
    color: #ffffff;
    display: flex;
    height: 120px;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    flex-wrap: wrap;
}

header a {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 921px) {
    header {
        height: 80px;
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
        right: 0;
    }

    .header_mini {
        justify-content: start;
    }

    .header-menu {
        position: fixed;
        z-index: 10;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #000227;
        padding: 0 15px;
        height: 0;
        overflow: hidden;
        transition: height 300ms ease-in-out;
    }

    .body_show-menu .header-menu {
        height: calc(100vh - 80px);
    }

    .header-menu a {
        display: block;
        margin-bottom: 12px;
        text-align: right;
    }

    .header-menu-button {
        border-top: 4px solid #435EBB;
        border-bottom: 4px solid #435EBB;
        height: 16px;
        position: absolute;
        right: 15px;
        top: 26px;
        width: 50px;
    }

    .header-menu-button::before {
        content: '';
        display: block;
        height: 4px;
        width: 30px;
        background-color: #435EBB;
        position: absolute;
        top: 20px;
        right: 0;
    }
}

@media (min-width: 922px) {
    header {
        flex-wrap: nowrap;
    }

    .header-menu {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-menu a {
        display: block;
        margin: 0 6px;
        padding: 6px 0;
        position: relative;
        font-size: 14px;
        white-space: nowrap;
    }

    .header-menu a::before {
        content: '';
        display: block;
        position: absolute;
        bottom: -4px;
        height: 1px;
        width: 0;
        left: 50%;
        transition: all 250ms ease-in;
        background-color: #ffffff;
    }

    .header-menu a:hover::before {
        left: 0;
        width: 100%;
    }

    .header-contacts {
        font-size: 18px;
        font-weight: 700;
        white-space: nowrap;
    }
}

@media (min-width: 1320px) {
    .header-menu a {
        font-size: 16px;
        margin: 0 8px;
    }

    .header-contacts {
        font-size: 21px;
        font-weight: 700;
        white-space: nowrap;
    }
}

/* HEADER */

/* FOOTER */
footer {
    background-color: #000227;
    color: #ffffff;
    padding: 32px 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer__logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.footer__item {
    margin-bottom: 24px;
}

.footer__item-title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 300;
}

.footer__item-value {
    font-size: 18px;
    line-height: 28px;
}

.footer__copyright {
    font-size: 14px;
    line-height: 24px;
    color: #435EBB;
}

.footer__social_vk {
    display: inline-block;
    width: 32px;
    height: 32px;
	margin-right: 6px;
    background-image: url(../images/vk-mini.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.footer__social_tg {
    display: inline-block;
    width: 32px;
    height: 32px;
	margin-right: 6px;
    background-image: url(../images/tg-mini.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.footer__social_insta {
    display: inline-block;
    width: 32px;
    height: 32px;
	margin-right: 6px;
    background-image: url(../images/insta-mini.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.footer__social_max {
    display: inline-block;
    width: 32px;
    height: 32px;
	margin-right: 6px;
    background-image: url(../images/max-mini.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

@media (min-width: 922px) {
    .footer__list {
        display: flex;
    }

    .footer__logo-wrapper {
        justify-content: flex-start;
    }

    .footer__item {
        flex-basis: 30%;
        margin-right: 32px;
    }

    .footer__social-links {
        flex-basis: 10%;
        margin-right: 0;
    }
}

/* FOOTER */

.l-wrapper {
    max-width: 1230px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.wrapper-top {
    padding-top: 60px;
}

.wrapper-bottom {
    padding-bottom: 60px;
}

@media (min-width: 922px) {
    .l-wrapper {
        padding-left: 30px;
        padding-right: 30px;
    }

    .wrapper-top {
        padding-top: 50px;
    }

    .wrapper-bottom {
        padding-bottom: 50px;
    }
}

.center {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 53px;
    padding-left: 70px;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    background-image: url(../images/logo.png);
    background-position: 0 50%;
    background-repeat: no-repeat;
    text-decoration: none;
    white-space: nowrap;
}


.block-description {
    font-size: 18px;
    font-weight: 300;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 922px) {
    .block-description {
        font-size: 20px;
    }
}

/* FRONT */
.block-front {
    background-image: url(../images/big2.png);
    background-position: 50% 0;
    background-size: cover;
}

.front__wrapper {
    background-color: rgba(11, 14, 63, 0.43);
    min-height: calc(100vh - 80px);
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
}

.front__wrapper_mini {
    min-height: 100% !important;
    padding-top: 32px;
    padding-bottom: 32px;
}

.front__container {
    max-width: 1530px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    color: #ffffff;
}

.front__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    height: 80px;
    font-size: 14px;
    padding: 0 38px 0 80px;
    background: linear-gradient(45deg, #345de3 0%, #23a3df 100%);
    text-align: right;
    border-radius: 40px;
    font-weight: 700;
    max-width: 300px;
    margin: 0 auto;
}

.front__button::before {
    content: '';
    display: block;
    width: 37px;
    height: 80px;
    position: absolute;
    left: 32px;
    top: 0;
    background-image: url(../images/podbor.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;
}

@media (max-width: 921px) {
    .front__content {
        text-align: center;
    }

    .front__text-1 {
        font-size: 28px;
        line-height: 28px;
        margin-bottom: 15px;
    }

    .front__text-2 {
        font-size: 64px;
        font-weight: 900;
        line-height: 82px;
        margin-bottom: 60px;
    }

    .front__text-3 {
        font-size: 22px;
        line-height: 22px;
        margin-bottom: 42px;
    }

    .front__text-4 {
        font-size: 32px;
        line-height: 36px;
        font-weight: 700;
        margin-bottom: 60px;
    }
}

@media (min-width: 922px) {
    .front__wrapper {
        min-height: 720px;
    }

    .front__wrapper_mini {
        min-height: 100% !important;
        padding-top: 32px;
        padding-bottom: 0;
    }

    .block-description {
        font-size: 20px;
    }

    .front__container {
        width: 100%;
        padding: 0 48px;
    }

    .front__content_mini {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .front__text-1 {
        font-size: 28px;
        line-height: 28px;
        font-weight: 400;
        margin-bottom: 16px;
    }

    .front__text-2 {
        font-size: 96px;
        line-height: 96px;
        font-weight: 900;
        margin-bottom: 16px;
    }

    .front__text-3 {
        font-size: 32px;
        line-height: 32px;
        font-weight: 700;
        margin-bottom: 24px;
    }

    .front__text-4 {
        font-size: 24px;
        line-height: 24px;
        font-weight: 400;
        margin-bottom: 64px;
    }

    .front__button {
        margin: 0;
    }
}

/* FRONT */

.block-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
}

@media (min-width: 922px) {
    .block-title {
        font-size: 36px;
        margin-bottom: 42px;
    }
}

@media (min-width: 922px) {
    .build-plan {
        margin-bottom: 32px;
    }

    .build-plan__title {
        color: #18379c;
        font-size: 42px;
        font-weight: bold;
        margin-bottom: 32px;
    }

    .build-plan__content {
        display: flex;
        align-items: center;
    }

    .build-plan_flat {
        margin-right: 24px;
        font-size: 24px;
    }

    .build-plan__item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        font-size: 24px;
        cursor: pointer;
        border-radius: 50%;
        margin-right: 8px;
    }

    .build-plan__item:hover,
    .build-plan__item.item_current {
        background: #345de3;
        background: linear-gradient(45deg, #345de3 0%, #23a3df 100%);
        color: #ffffff;
    }
}

/* QUALITY */
.block-quality {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.quality-item {
    flex-basis: 100%;
    text-align: center;
    padding: 36px 12px;
}

.quality-item__img {
    text-align: center;
    margin-bottom: 36px;
}

.quality-item__title {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 20px;
}

.quality-item__description {
    font-size: 16px;
    color: #777777;
}

@media (min-width: 922px) {
    .quality-item {
        flex-basis: 27%;
    }
}

/* QUALITY */

/* BANNER MANAGER */
.banner-manager__wrapper {
    background-color: #161950;
    color: #ffffff;
}

.banner-manager {
    position: relative;
    padding-top: 48px;
    padding-bottom: 48px;
}

.banner-manager::before {
    content: '';
    display: block;
    position: absolute;
    width: 305px;
    height: 224px;
    background-image: url(../images/banner-manager.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    right: 24px;
    bottom: 0;
    z-index: 1;
}

.banner-manager__content {
    position: relative;
    z-index: 10;
}

.banner-manager__title {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 16px;
}

.banner-manager__value {
    font-size: 24px;
    font-weight: 900;
}

.banner-manager__link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    ;
    color: #ffffff;
    height: 42px;
    font-size: 14px;
    padding: 0 24px;
    background: linear-gradient(45deg, #345de3 0%, #23a3df 100%);
    border-radius: 40px;
    font-weight: 700;
    max-width: 300px;
    white-space: nowrap;
    cursor: pointer;
    line-height: 14px;
}

@media (max-width: 1179px) {
    .banner-manager__left {
        margin-bottom: 24px;
    }
}

@media (min-width: 1180px) {
    .banner-manager::before {
        left: 50%;
        right: auto;
    }

    .banner-manager__content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .banner-manager__value {
        font-size: 42px;
    }

    .banner-manager__link {
        height: 60px;
        font-size: 16px;
        line-height: 16px;
        padding: 0 32px;
    }
}

/* BANNER MANAGER */

/* КВАРТИРА */
@media (max-width: 921px) {
    .flat-schema {
        height: 80vw;
        background-position: 50% 100%;
        background-size: contain;
        background-repeat: no-repeat;
        margin-bottom: 32px;
    }

    .flat__title {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .flat-square__title {
        display: none;
    }

    .flat-square__list {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-column-gap: 8px;
        margin-bottom: 16px;
    }

    .flat-square__item-title {
        font-size: 14px;
        color: #777777;
        margin-bottom: 4px;
    }

    .flat-square__item-value {
        font-size: 18px;
        font-weight: 700;
    }

    .flat-price__title {
        font-size: 14px;
        color: #777777;
        margin-bottom: 4px;
    }

    .flat-price__value {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .flat-price__item {
        display: flex;
        align-items: flex-end;
        margin-bottom: 4px;
    }

    .flat-price__item-title {
        font-size: 14px;
        color: #777777;
        white-space: nowrap;
        margin-right: 8px;
    }

    .flat-price__dop {
        margin-bottom: 24px;
    }

    .flat-request-button {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        text-transform: uppercase;
        border: none;
        ;
        color: #ffffff;
        height: 56px;
        font-size: 14px;
        padding: 0 24px;
        background: linear-gradient(45deg, #345de3 0%, #23a3df 100%);
        border-radius: 40px;
        font-weight: 700;
        max-width: 300px;
        white-space: nowrap;
        cursor: pointer;
    }

    .flat-request-button:disabled {
        cursor: default;
        background: #cdcdcd;
    }

    .flat-parking {
        margin-top: 48px;
        display: flex;
        height: 68px;
        align-items: center;
        background-image: url(../images/parking.png);
        background-position: 0 50%;
        background-repeat: no-repeat;
        padding-left: 92px;
    }

    .flat-parking__desc {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .flat-parking__link {
        font-size: 18px;
        color: #18379c;
        text-decoration: none;
    }
}

@media (min-width: 922px) {
    .flat {
        display: flex;
        justify-content: space-between;
    }

    .flat-wrapper {
        border-bottom: 1px solid #cdcdcd;
        overflow-x: auto;
    }

    .flat-schema {
        flex-basis: calc(45% - 32px);
        max-width: calc(45% - 32px);
        background-position: 50% 0;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .flat-info {
        flex-basis: 55%;
        max-width: 55%;
    }

    .flat__title {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 64px;
    }

    .flat-square {
        border-bottom: 1px solid #cdcdcd;
        padding-bottom: 48px;
        margin-bottom: 24px;
    }

    .flat-square__title {
        color: #18379c;
        font-weight: 700;
        font-size: 24px;
        margin-bottom: 24px;
    }

    .flat-square__list {
        display: flex;
    }

    .flat-square__item {
        flex-basis: 33%;
        padding-right: 48px;
    }

    .flat-square__item-title {
        color: #000227;
        font-size: 16px;
        font-weight: 300;
        margin-bottom: 12px;
    }

    .flat-square__item-value {
        color: #000227;
        font-size: 36px;
        font-weight: 700;
        white-space: nowrap;
    }

    .flat-price__title {
        color: #18379c;
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .flat-price {
        display: flex;
        margin-bottom: 48px;
    }

    .flat-price__value {
        flex-basis: 50%;
        color: #000227;
        font-size: 36px;
        font-weight: 700;
        white-space: nowrap;
    }

    .flat-price__dop {
        flex-basis: 50%;
    }
	
	.flat-price__bot {
        margin-bottom: 24px;
    }

    .flat-price__item {
        display: flex;
        margin-bottom: 16px;
    }

    .flat-price__item-title {
        flex-basis: 50%;
        font-size: 16px;
        font-weight: 300;
        color: #000227;
    }

    .flat-price__item-value {
        flex-basis: 50%;
        font-size: 16px;
        font-weight: 400;
        color: #000227;
        white-space: nowrap;
    }

    .flat-request-button {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        text-transform: uppercase;
        border: none;
        ;
        color: #ffffff;
        height: 80px;
        font-size: 16px;
        padding: 0 42px;
        background: linear-gradient(45deg, #345de3 0%, #23a3df 100%);
        border-radius: 40px;
        font-weight: 700;
        max-width: 300px;
        white-space: nowrap;
        cursor: pointer;
    }

    .flat-request-button:disabled {
        cursor: default;
        background: #cdcdcd;
    }

    .flat-parking {
        margin-top: 48px;
        display: flex;
        height: 68px;
        align-items: center;
        background-image: url(../images/parking.png);
        background-position: 0 50%;
        background-repeat: no-repeat;
        padding-left: 92px;
    }

    .flat-parking__desc {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .flat-parking__link {
        font-size: 24px;
        color: #18379c;
        text-decoration: none;
    }

    .flat-parking__link:hover {
        text-decoration: underline;
    }
}

/* КВАРТИРА */

/* ШАХМАТКА */
.sh-title {
    text-align: center;
    margin-bottom: 84px;
}

.sh-title__value {
    font-size: 42px;
    margin-bottom: 8px;
}

.sh-title__desc {
    font-size: 18px;
}

.sh-map-room {
    cursor: pointer;
}

.sh-map-room_1:hover>path,
.sh-map-room_1.sh-map-room__current>path {
    fill: #477eff;
}

.sh-map-room_2:hover>path,
.sh-map-room_2.sh-map-room__current>path {
    fill: #9df765;
}

.sh-map-room_3:hover>path,
.sh-map-room_3.sh-map-room__current>path {
    fill: #ffec46;
}

.sh-map-room_buisy {
    cursor: auto !important;
}

.sh-map-room_buisy>path,
.sh-map-room_buisy:hover>path {
    fill: #efefef !important;
}

.sh-wrapper {
    /* display: none; */
    display: block;
    background-color: #efefef;
    padding: 15px 20px;
    overflow-x: auto;
}

@media (min-width: 922px) {
    .sh-wrapper {
        display: block;
    }

    .sh-wrapper__title {
        text-align: center;
        font-size: 24px;
        margin-bottom: 12px;
    }
}

.sh-row {
    display: flex;
    align-items: center;
}

.sh-floor {
    white-space: nowrap;
    margin-right: 15px;
    flex-basis: 50px;
    min-width: 50px;
    font-size: 14px;
    color: #9d9d9d;
}

.sh-room {
    padding: 10px;
    flex-basis: 100%;
    text-align: center;
    border: 1px solid #efefef;
    font-size: 13px;
    color: #9d9d9d;
    white-space: nowrap;
}

.sh-room__name {
    font-size: 16px;
    font-weight: bold;
    color: #121212;
}

.sh-room_status-free {
    background-color: #ffffff;
}

.sh-room_status-free:hover {
    background-color: #b4c6f8;
    color: #ffffff;
    cursor: pointer;
}

.sh-room_status-busy {
    background-color: #183286;
    color: #ffffff;
}

.sh-room_status-busy .sh-room__name {
    color: #ffffff;
}

.sh-room_status-booked {
    background-color: #f8c845;
    color: #121212;
    cursor: auto;
}

.sh-room_status-booked .sh-room__name {
    color: #121212;
}

.sh-statuses {
    display: flex;
    justify-content: space-around;
    padding-top: 32px;
    flex-wrap: wrap;
}

.sh-statuses__item {
    display: flex;
    white-space: noerap;
    align-items: center;
    margin-bottom: 8px;
}

.sh-statuses__item::before {
    content: '';
    display: block;
    width: 32px;
    height: 24px;
    border: 2px solid #b4c6f8;
    margin-right: 12px;
}

.sh-statuses__item_free::before {
    background-color: #ffffff;
}

.sh-statuses__item_busy::before {
    background-color: #183286;
}

.sh-statuses__item_booked::before {
    background-color: #f8c845;
}

/* ШАХМАТКА */

/* КОНСТРУКТИВ */
.constructiv {
    background-color: #161950;
    color: #ffffff;
    overflow-x: hidden;
}

@media (max-width: 921px) {
    .constructiv__title {
        font-size: 42px;
        font-weight: 900;
        margin-bottom: 32px;
    }

    .constructiv__desk {
        font-size: 18px;
        margin-bottom: 42px;
    }

    .constructiv__link {
        display: none;
    }

    .constructiv__row {
        display: flex;
        flex-wrap: wrap;
    }

    .constructiv__col {
        margin-bottom: 32px;
        max-width: 320px;
        flex-basis: 100%;
    }

    .constructiv__col-title {
        display: inline-block;
        font-size: 21px;
        padding-bottom: 8px;
        border-bottom: 2px solid #ffffff;
        margin-bottom: 24px;
    }

    .constructiv__col-desc {
        font-size: 16px;
        font-weight: 300;
    }
}

@media (min-width: 922px) {
    .constructiv-wrapper {
        width: 60%;
        padding-right: 24px;
        position: relative;
    }

    .constructiv-wrapper::after {
        content: '';
        display: block;
        position: absolute;
        left: 100%;
        top: -100px;
        bottom: -100px;
        width: 100vw;
        background-color: #ffffff;
        background-image: url(../images/razrez.png);
        background-repeat: no-repeat;
        background-position: 0 50%;
        background-size: contain;
    }

    .constructiv__title {
        font-size: 56px;
        font-weight: 900;
        margin-bottom: 42px;
    }

    .constructiv__desk {
        font-size: 20px;
        margin-bottom: 64px;
    }

    .constructiv__link-wrapper {
        display: flex;
        align-items: center;
        margin-bottom: 64px;
        width: calc(100% + 24px);
    }

    .constructiv__link-wrapper::after {
        content: '';
        display: block;
        height: 2px;
        width: 100%;
        background-color: #ffffff;
    }

    .constructiv__link {
        font-size: 24px;
        color: #ffffff;
        white-space: nowrap;
        margin-right: 24px;
    }

    .constructiv__row {
        display: flex;
    }

    .constructiv__col {
        flex-basis: 50%;
        padding-right: 42px;
    }

    .constructiv__col-title {
        display: inline-block;
        font-size: 24px;
        padding-bottom: 8px;
        border-bottom: 2px solid #ffffff;
        margin-bottom: 24px;
    }

    .constructiv__col-desc {
        font-size: 18px;
        font-weight: 300;
    }
}

/* КОНСТРУКТИВ */

/* ППРЕИМУЩЕСТВА */

/* Белый фон для картинок */
.image-block {
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    max-height: 543px;
    min-height: 400px;
    position: relative;
}

/* Стили для изображений */
.full-width-image {
    position: absolute;
    top: 0;
    width: 120%; /* Увеличено до 120%, чтобы выходить за края */
    height: 100%;
    max-height: 543px;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Для строки где описание слева - картинка справа выходит за правый край */
.chess-row--image-right .full-width-image {
    left: 0;
    background-position: left center;
    background-size: cover;
}

/* Для строки где описание справа - картинка слева выходит за левый край */
.chess-row--image-left .full-width-image {
    right: 0;
    background-position: right center;
    background-size: cover;
}

/* Шахматная сетка без отступов */
.chess-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.chess-row {
    display: flex;
    width: 100%;
    background-color: #161950;
    color: #ffffff;
    position: relative;
    overflow-x: clip; /* Предотвращает горизонтальный скролл, но позволяет картинкам выходить за пределы */
}

/* Обертка для контента внутри строки */
.chess-row .l-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Соотношение 35% / 65% */
.chess-block--description {
    flex: 0 0 35%;
    background-color: #161950;
    padding: 30px 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2; /* Текст всегда поверх картинок */
}

.chess-block--image {
    flex: 0 0 65%;
    background-color: #ffffff;
    position: relative;
    overflow: visible; /* Позволяем контенту выходить за пределы */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Стили для контента внутри description */
.description-content {
    max-width: 350px;
    width: 100%;
}

/* Для строки где описание слева - прижимаем текст к ПРАВОМУ краю (к картинке) */
.chess-row--image-right .description-content {
    margin-left: auto; /* Автоотступ слева прижимает контент к правому краю */
    margin-right: 0;
    text-align: left; /* Текст выравниваем влево */
	padding-right: 20px;
}

/* Для строки где описание справа - прижимаем текст к ЛЕВОМУ краю (к картинке) */
.chess-row--image-left .description-content {
    margin-right: auto; /* Автоотступ справа прижимает контент к левому краю */
    margin-left: 0;
    text-align: left; /* Текст выравниваем влево */
	padding-left: 20px;
}

/* Стили для текстовых элементов */
.title {
    font-size: 18зx;
    font-weight: 900;
    margin-bottom: 22px;
}

.desk {
    font-size: 13px;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Десктопная версия */
@media (min-width: 922px) {
    .title {
        font-size: 18px;
        margin-bottom: 22px;
    }

    .desk {
        font-size: 13px;
        margin-bottom: 22px;
    }
}

/* Мобильная версия */
@media (max-width: 921px) {
    .title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .desk {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    /* Сбрасываем все десктопные стили для мобильных */
    .chess-row {
        display: flex;
        flex-direction: column !important; /* Принудительно колонка */
        width: 100%;
        max-width: 100vw; /* Ограничиваем шириной экрана */
        overflow: hidden; /* Скрываем всё лишнее */
        margin: 0;
        padding: 0;
    }

    /* Переопределяем wrapper */
    .chess-row .l-wrapper {
        display: flex;
        flex-direction: column !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Для обоих типов строк - картинка сверху, описание снизу */
    .chess-row--image-right,
    .chess-row--image-left {
        flex-direction: column !important;
    }

    /* Блок с картинкой - первый */
    .chess-block--image {
        order: -1 !important; /* Принудительно делаем первым */
        flex: 0 0 auto;
        width: 100%;
        max-width: 100vw;
        height: auto;
        max-height: 300px;
        overflow: hidden;
        position: relative;
        margin: 0;
        padding: 0;
    }

    /* Блок с описанием - второй */
    .chess-block--description {
        order: 1 !important;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100vw;
        padding: 20px 0;
        box-sizing: border-box;
    }

    /* Контейнер картинки */
    .image-block {
        width: 100%;
        max-width: 100vw;
        height: 300px;
        max-height: 300px;
        min-height: 250px;
        position: relative;
        overflow: hidden;
        background-color: #ffffff;
        margin: 0;
        padding: 0;
    }

    /* Сама картинка - переопределяем все десктопные стили */
    .full-width-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        background-position: center !important;
        background-size: cover !important;
        background-repeat: no-repeat;
        transform: none !important; /* Сбрасываем возможные трансформации */
    }

    /* Полностью сбрасываем специфичные для десктопа правила */
    .chess-row--image-right .full-width-image,
    .chess-row--image-left .full-width-image {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-position: center !important;
    }

    /* Контейнер с текстом */
    .description-content {
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        margin: 0 !important;
    }

    /* Сбрасываем все марджины для текста */
    .chess-row--image-right .description-content,
    .chess-row--image-left .description-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Для очень больших экранов - уменьшаем выступление, чтобы не уходить слишком далеко */
@media (min-width: 1920px) {
    .full-width-image {
        width: 115%; /* Немного уменьшаем выступление на очень широких экранах */
    }
}

/* ПРЕИМУЩЕСТВА */

/* ДОКУМЕНТЫ */
.documents a {
    font-size: 16px;
    color: #274eb4;
}

.documents__title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
}

.documents__list {
    line-height: 28px;
}

/* ДОКУМЕНТЫ */

/* ПРОЦЕСС */
.process__title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
}

.process__desc {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 42px;
}

.l-tabs {
    display: flex;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.l-tabs__item {
    display: block;
    font-size: 24px;
    color: #777777;
    text-decoration: underline;
    margin-right: 24px;
}

.l-tabs__item_current {
    text-decoration: none;
    color: #274eb4;
    font-weight: 900;
}

/* ПРОЦЕСС */

/* MODAL */
body.show-modal {
    overflow: hidden;
}

.modal {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
    z-index: -1;
    background-color: #ffffff;
    padding: 60px 16px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
}

.modal_show {
    z-index: 100;
    opacity: 1;
    transition: opacity ease-in-out 480ms;
}

.modal_custom {
    background-color: rgba(0, 0, 0, .6);
}

.modal__content {
    background-color: #ffffff;
}

.modal__content_custom {
    position: relative;
    padding: 42px 24px;
}

@media (max-width: 921px) {
    .modal__close-button {
        position: absolute;
        top: 16px;
        right: 12px;
        width: 32px;
        height: 32px;
        cursor: pointer;
    }

    .modal__close-button:before,
    .modal__close-button:after {
        content: '';
        width: 1px;
        height: 44px;
        transform: rotate(-45deg);
        position: absolute;
        background-color: #777777;
        left: 15px;
        top: -6px;
    }

    .modal__close-button:after {
        transform: rotate(45deg);
    }
}

@media (min-width: 922px) {
    .modal {
        padding: 80px;
    }

    .modal__content_custom {
        position: relative;
        padding: 64px 48px 84px 32px;
        max-width: 800px;
        margin: 0 auto;
    }

    .modal__close-button {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        cursor: pointer;
    }

    .modal__close-button:before,
    .modal__close-button:after {
        content: '';
        width: 2px;
        height: 64px;
        transform: rotate(-45deg);
        position: absolute;
        background-color: #777777;
        transition: background-color ease-in-out 320ms;
        left: 26px;
        top: -6px;
    }

    .modal__close-button:after {
        transform: rotate(45deg);
    }

    .modal__close-button:hover:before,
    .modal__close-button:hover:after {
        background-color: #121212;
    }
}

/* MODAL */

/* ПОДБОР КВАРТИРЫ MOBILE */
.flats-mobile__title {
    font-size: 32px;
    font-weight: 700;
    color: #18379c;
    margin-bottom: 8px;
    text-align: center;
}

.flats-mobile__title-desc {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 24px;
    text-align: center;
}

.flats-mobile__flats-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
}

.flats-mobile__flats-list {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.flats-mobile__flats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    margin-right: 4px;
}

.flats-mobile__flats-item.item_current {
    background: #345de3;
    background: linear-gradient(45deg, #345de3 0%, #23a3df 100%);
    color: #ffffff;
}

.flats-mobile__name {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 24px;
    text-align: center;
}

.flats-mobile__item {
    background-color: #ffffff;
    border: 1px solid #dedede;
    padding: 0 15px;
    margin-bottom: 16px;
    border-radius: 4px;
    display: flex;
    height: 100px;
    align-items: center;
}

.flats-mobile__item_busy,
.flats-mobile__item_booked {
    opacity: .6;
}

.flats-mobile__item-image {
    min-width: 60px;
    height: 70px;
    margin-right: 16px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
}

.flats-mobile__item-content {
    flex-basis: 100%;
}

.flats-mobile__item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.flats-mobile__item-name {
    font-weight: 700;
}

.flats-mobile__item-price {
    font-size: 18px;
    font-weight: 700;
}

/* ПОДБОР КВАРТИРЫ MOBILE */

/* ИНТЕРАКТИВ */
.interactiv-flat {
    opacity: 0;
    cursor: pointer;
}

.interactiv-flat:hover {
    opacity: 1;
}

/* ИНТЕРАКТИВ */

/* INPUTS */
button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    ;
    color: #ffffff;
    height: 42px;
    font-size: 14px;
    padding: 0 24px;
    background: linear-gradient(45deg, #345de3 0%, #23a3df 100%);
    border-radius: 40px;
    font-weight: 700;
    max-width: 300px;
    white-space: nowrap;
    cursor: pointer;
}

.button:disabled {
    cursor: default;
    background: #cdcdcd;
}

.input {
    border: 0;
    border-bottom: 1px solid #ced5e1;
    height: 42px;
    outline: none;
    font-size: 16px;
    color: #112668;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    display: block;
    width: 100%;
}

@media screen and (min-width: 921px) {
    .button {
        height: 56px;
    }

    .input {
        height: 56px;
        font-size: 18px;
    }
}

/* INPUTS */

/* FORMS */
.form-title {
    font-size: 32px;
    font-weight: 600;
    color: #112668;
    margin-bottom: 16px;
}

.form-inputs-container {
    margin-bottom: 24px;
}

.form-input__wrapper {
    margin-bottom: 12px;
}

.form-confirmation {
    font-size: 13px;
    color: #9d9d9d;
    margin-top: 32px;
}

@media screen and (min-width: 921px) {
    .form-title {
        font-size: 48px;
    }

    .form-inputs-container {
        display: flex;
    }

    .form-inputs-container>* {
        flex-basis: 50%;
        margin-right: 12px;
    }
}

/* FORMS */

/* SLIDER */
.main-slider {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.main-slider__container {
    display: flex;
}

.main-slider__container img {
    opacity: .6;
    transition: opacity ease-in 240ms;
    cursor: pointer;
}

.main-slider__container img:hover {
    opacity: 1;
}

/* SLIDER */

/* GALLERY */
.modal__content_gallery {
    height: 100%;
}

.gallery-image {
    position: relative;
    height: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
}

.gallery-button-prev,
.gallery-button-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    cursor: pointer;
}

.gallery-button-prev:hover,
.gallery-button-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.gallery-button-prev {
    left: 0;
}

.gallery-button-next {
    right: 0;
}

/* GALLERY */

/* PROCESS */
.process-slider {
    display: none;
    flex-wrap: wrap;
}

.process-slider>* {
    margin: 0 10px 16px 0;
}

.process-slider_current {
    display: flex;
}

/* PROCESS */

/* VID */
.vid-flat {
    opacity: 0;
    cursor: pointer;
}

.vid-flat:hover {
    opacity: 1;
}

.vid-flat_buisy {
    display: none;
}

.vid-wrapper {
    position: relative;
}

.vid-rotate-button {
    position: absolute;
    line-height: 32px;
    height: 40px;
    padding: 4px 12px 4px 54px;
    background-color: rgba(255, 255, 255, .6);
    background-image: url(../images/rotate-arrow.png);
    background-repeat: no-repeat;
    background-position: 12px 50%;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    top: 10px;
    left: 20px;
}

/* VID */

/* VIDEOS */
.videos-wrapper {
    padding-top: 20px;
}

.videos-wrapper__title {
    margin-bottom: 20px;
}

.videos-list-wrapper {
    position: relative;
    overflow-x: auto;
}

.videos-list-wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
    visibility: hidden;
}

.videos-list-wrapper::-webkit-scrollbar-track {
    background: orange;
    /* цвет дорожки */
}

.videos-list-wrapper::-webkit-scrollbar-thumb {
    background-color: blue;
    /* цвет плашки */
    border-radius: 20px;
    /* закругления плашки */
    border: 3px solid orange;
    /* padding вокруг плашки */
}

.videos-list {
    display: flex;
    gap: 24px;
}

.videos-item {
    min-width: calc(50% - 12px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}

@media screen and (min-width: 681px) {
    .videos-item {
        min-width: calc(33.33% - 16px);
    }
}

@media screen and (min-width: 961px) {
    .videos-item {
        min-width: calc(25% - 18px);
    }
}

.videos-item__image {
    padding-bottom: 178%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.videos-item__image::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url(../images/video-arrow.png);
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    margin-left: -25px;
    top: 50%;
    margin-top: -25px;
}

.videos-item__title {
    text-align: center;
    color: #777777;
}

.videos-item__date {
    text-align: center;
    color: #777777;
}

.video-iframe-wrapper {
    position: absolute;
    left: 50%;
    bottom: 24px;
    top: 60px;
    width: calc((100vh - 84px) / 1.78);
    transform: translateX(calc((100vh - 84px) / -1.78 / 2));
}

@media (min-width: 922px) {
    .video-iframe-wrapper {
        left: 50%;
        bottom: 8px;
        top: 8px;
        width: calc(100vh / 1.78);
        transform: translateX(calc(100vh / -1.78 / 2));
    }

    .video-prev {
        width: 64px;
        height: 64px;
        background-image: url(../images/btn-prev.png);
        background-position: 50% 50%;
        background-size: cover;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        margin-top: -32px;
        left: -32px;
        cursor: pointer;
    }

    .video-next {
        width: 64px;
        height: 64px;
        background-image: url(../images/btn-next.png);
        background-position: 50% 50%;
        background-size: cover;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        margin-top: -32px;
        right: -32px;
        cursor: pointer;
    }

    .video-prev:hover,
    .video-next:hover {
        background-color: #fff;
    }
}

@media (min-width: 1200px) {
    .video-prev {
        left: -48px;
    }

    .video-next {
        right: -48px;
    }
}

.video-iframe {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
}

/* VIDEOS */

.process-slider__item {
    position: relative;
    display: inline-block;
    margin: 0 8px 12px;
}

.process-slider__badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}