.house-constructive {
    padding-block: 60px;
    color: #1e1e1e;
    background: #fff;
    font: 400 16px/1.7 "Montserrat", sans-serif;
}

.house-constructive *,
.house-constructive *::before,
.house-constructive *::after {
    box-sizing: border-box;
}

.house-constructive h2,
.house-constructive h3,
.house-constructive p {
    margin: 0;
}

.house-constructive__container,
.house-constructive__heading {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-inline: 0;
}

.house-constructive__heading {
    gap: 15px;
}

.house-constructive .house-constructive__title {
    font: 600 36px/1.2 "Montserrat", sans-serif;
}

.house-constructive__subtitle {
    color: #6a6a6a;
    font-size: 18px;
    line-height: 1.2;
}

.house-constructive__grid {
    display: grid;
    grid-template-columns: minmax(0, 458fr) minmax(0, 468fr) minmax(0, 458fr);
    grid-template-rows: minmax(456px, auto) minmax(435px, auto) auto;
    grid-template-areas:
        "foundation foundation layout"
        "engineering walls walls"
        "engineering roof roof";
    gap: 30px;
}

.house-constructive__layout { grid-area: layout; }
.house-constructive__engineering { grid-area: engineering; }

.house-constructive__promo {
    position: relative;
    min-inline-size: 0;
    border-radius: 16px;
    background: #eaeaea;
    overflow: clip;
}

.house-constructive__promo-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 50px;
}

.house-constructive__promo-heading {
    display: flex;
    align-items: center;
    gap: 26px;
}

.house-constructive__promo-heading img {
    display: block;
    flex: 0 0 50px;
}

.house-constructive .house-constructive__promo-heading h3 {
    font: 600 26px/1.45 "Montserrat", sans-serif;
}

.house-constructive .house-constructive__engineering h3 {
    font-size: 24px;
    line-height: 1.1;
}

.house-constructive__layout p {
    font-weight: 500;
}

.house-constructive__layout-image,
.house-constructive__engineering-image {
    position: absolute;
    display: block;
    block-size: auto;
    max-inline-size: none;
    pointer-events: none;
}

.house-constructive__layout-image {
    inset-block-start: 218px;
    inset-inline-start: 10.917%;
    inline-size: 102.183%;
}

.house-constructive__engineering-image {
    inset-block-end: -113px;
    inset-inline-start: -31.004%;
    inline-size: 124.673%;
}

.house-constructive__engineering-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.house-constructive__engineering ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 500;
}

.house-constructive__engineering li {
    display: flex;
    gap: 10px;
}

.house-constructive__engineering li::before {
    content: "✓";
}

.house-building-stages-section {
    padding-block: 60px;
    background: #fafafa;
}

.house-building-stages-section #building-stages.house-building-stages {
    margin-block: 0;
    padding: 0;
    overflow: visible;
}

.house-building-stages-section .building-stages__wrap {
    background: #fff;
}

.page-house-detail .house-constructive #select-foundation,
.page-house-detail .house-constructive #warm-walls,
.page-house-detail .house-constructive #roof {
    inline-size: auto;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
}

.page-house-detail .house-constructive #select-foundation {
    grid-area: foundation;
}

.page-house-detail .house-constructive #warm-walls {
    grid-area: walls;
}

.page-house-detail .house-constructive #roof {
    grid-area: roof;
}

.page-house-detail .house-constructive #select-foundation .select-foundation-section-top,
.page-house-detail .house-constructive #roof .constructive-section-title {
    padding: 13px 50px;
    border-radius: 16px;
    background: #eaeaea;
}

.page-house-detail .house-constructive #select-foundation .constructive-section-title,
.page-house-detail .house-constructive #warm-walls .constructive-section-title,
.page-house-detail .house-constructive #roof .constructive-section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    min-block-size: 76px;
}

.page-house-detail .house-constructive #select-foundation .constructive-section-title {
    min-block-size: 50px;
}

.page-house-detail .house-constructive #select-foundation .constructive-sub-title__icon,
.page-house-detail .house-constructive #warm-walls .constructive-sub-title__icon,
.page-house-detail .house-constructive #roof .constructive-sub-title__icon {
    display: grid;
    flex: 0 0 50px;
    place-items: center;
    inline-size: 50px;
    block-size: 50px;
    padding: 0;
    border-radius: 10px;
    background: #1e1e1e;
}

.page-house-detail .house-constructive #select-foundation .constructive-sub-title__icon img,
.page-house-detail .house-constructive #warm-walls .constructive-sub-title__icon img,
.page-house-detail .house-constructive #roof .constructive-sub-title__icon img {
    display: block;
}

.page-house-detail .house-constructive #select-foundation .constructive-section-title__text,
.page-house-detail .house-constructive #warm-walls .constructive-section-title__text,
.page-house-detail .house-constructive #roof .constructive-section-title__text {
    margin: 0;
    font: 600 24px/1.2 "Montserrat", sans-serif;
    color: #1e1e1e;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__wrap {
    padding: 35px 50px 55px;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    background: #fff;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__scroll {
    inline-size: 100%;
    max-inline-size: 100%;
    overflow-x: auto;
    padding-block-end: 12px;
    margin-block-end: -12px;
    scroll-snap-type: inline proximity;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__selectors {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
    inline-size: 100%;
    min-inline-size: max-content;
    margin: 0;
    padding: 0;
    border-block-end: 1px solid #d9d9d9;
    list-style: none;
    overflow: visible;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__selectors::before {
    content: none;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__selector {
    position: relative;
    flex: 0 0 auto;
    min-block-size: 39px;
    margin: 0;
    padding: 0 0 12px;
    border: 0;
    background: transparent;
    color: #1e1e1e;
    font: 400 16px/20px "Montserrat", sans-serif;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__selector--active {
    font-weight: 600;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__selector button {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    white-space: inherit;
    cursor: pointer;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__selector--active::before {
    content: "";
    position: absolute;
    inset: auto 0 -3px;
    inline-size: 100%;
    block-size: 0;
    border-block-end: 5px solid #a7f0c3;
    border-radius: 2px;
    background: none;
    transform: none;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__contens {
    display: flex;
    flex-direction: column;
    gap: 40px;
    inline-size: 100%;
    padding-block-start: 40px;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__top {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    gap: 60px;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__pic-wrap {
    display: flex;
    flex: 0 0 180px;
    align-items: center;
    justify-content: start;
    block-size: 120px;
    margin: 0 0 0 30px;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__picture {
    display: block;
    inline-size: auto;
    max-inline-size: 100%;
    block-size: 120px;
    object-fit: contain;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__info {
    flex: 1 1 0;
    min-inline-size: 0;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__dscr {
    margin: 0;
    font: 400 16px/1.7 "Montserrat", sans-serif;
    color: #1e1e1e;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 40px;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__details-wrap {
    position: relative;
    flex: 0 0 111px;
    inset: auto;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__details {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13.5px 0;
    color: #b6b6b6;
    font: 500 14px/17px "Montserrat", sans-serif;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__price {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: .5em;
    margin: 0 0 0 118px;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__price-from,
.page-house-detail .house-constructive #select-foundation .select-foundation__price-amount {
    color: #1e1e1e;
    font: 600 20px/32px "Montserrat", sans-serif;
    white-space: nowrap;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__actions {
    flex: 0 1 227px;
    min-inline-size: 0;
    margin: 0;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__order {
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 100%;
    min-block-size: 48px;
    padding: 12px 16px;
    border: 1px solid #1e1e1e;
    border-radius: 58px;
    font: 600 18px/22px "Montserrat", sans-serif;
    text-transform: none;
}

.page-house-detail .house-constructive #warm-walls {
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    background: #fff;
    overflow: visible;
}

.page-house-detail .house-constructive #warm-walls .constructive-section-title {
    padding: 12px 49px 13px;
    border-block-end: 1px solid #d9d9d9;
}

.page-house-detail .house-constructive #warm-walls .constructive-section-title__text {
    font-size: 26.087px;
}

.page-house-detail .house-constructive #warm-walls .block-text-inner {
    display: flex;
    align-items: start;
    flex-direction: row;
    justify-content: space-between;
    gap: 70px;
    padding: 26px 49px 31px;
}

.page-house-detail .house-constructive #warm-walls .block-text-content {
    flex: 1 1 0;
    min-inline-size: 0;
    padding-block-start: 22px;
}

.page-house-detail .house-constructive #warm-walls .block-text__rounds {
    margin: 0 0 40px;
}

.page-house-detail .house-constructive #warm-walls .block-text__rounds-title {
    margin: 0;
    font: 600 16px/20px "Montserrat", sans-serif;
    color: #1e1e1e;
}

.page-house-detail .house-constructive #warm-walls .block-text__rounds-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    inline-size: min(100%, 377px);
    margin: 20px 0 0;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 25px;
    list-style: none;
}

.page-house-detail .house-constructive #warm-walls .block-text__rounds-list li,
.page-house-detail .house-constructive #warm-walls .block-text__rounds-list li.center {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: #1e1e1e;
    font: 500 16px/20px "Montserrat", sans-serif;
    white-space: nowrap;
}

.page-house-detail .house-constructive #warm-walls .block-text__rounds-list label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 100%;
    margin: 0;
    padding: 9px 0;
    border: 0;
    border-radius: 25px;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.page-house-detail .house-constructive #warm-walls .block-text__rounds-list input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    overflow: hidden;
}

.page-house-detail .house-constructive #warm-walls .block-text__rounds-list label:has(input:checked)::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid #d9dde0;
    border-radius: 25px;
    pointer-events: none;
}

.page-house-detail .house-constructive #warm-walls .block-text__rounds-list label:has(input:focus-visible) {
    outline: 2px solid #1e1e1e;
    outline-offset: 3px;
}

.page-house-detail .house-constructive #warm-walls .block-text__text {
    margin: 0;
    color: #1e1e1e;
    font: 400 16px/1.7 "Montserrat", sans-serif;
}

.page-house-detail .house-constructive #warm-walls .block-text-image {
    flex: 0 1 365px;
    min-inline-size: 0;
}

.page-house-detail .house-constructive #warm-walls .block-text-image svg {
    display: block;
    inline-size: 365px;
    max-inline-size: 100%;
    block-size: auto;
}

.page-house-detail .house-constructive #roof .constructive-section-title {
    margin-block-end: 17px;
}

.page-house-detail .house-constructive #roof .roof-types-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-house-detail .house-constructive #roof .roof-types-list li {
    inline-size: auto;
    min-inline-size: 0;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    background: #fff;
    overflow: clip;
}

.page-house-detail .house-constructive #roof .roof-types-list__image {
    display: block;
    block-size: auto;
    aspect-ratio: 224 / 254;
}

.page-house-detail .house-constructive #roof .roof-types-list__image img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.page-house-detail .house-constructive #roof .roof-types-list__title {
    margin: 0;
    padding: 10px 10px 0;
    color: #1e1e1e;
    font: 600 16px/20px "Montserrat", sans-serif;
    text-align: center;
}

.page-house-detail .house-constructive #roof .roof-types-list__description {
    margin: 0;
    padding: 5px 10px 10px;
    color: #6a6a6a;
    font: 400 13px/16px "Montserrat", sans-serif;
    text-align: center;
}

.page-house-detail .house-constructive #select-foundation .select-foundation__selector:focus-visible,
.page-house-detail .house-constructive #select-foundation .select-foundation__selector button:focus-visible,
.page-house-detail .house-constructive #select-foundation .select-foundation__details:focus-visible,
.page-house-detail .house-constructive #select-foundation .select-foundation__order:focus-visible {
    outline: 2px solid #1e1e1e;
    outline-offset: 3px;
}

@media (max-width: 1439px) {
    .house-constructive__promo-content {
        gap: 30px;
        padding: 30px;
    }

    .house-constructive__promo-heading { gap: 16px; }

    .page-house-detail .house-constructive #select-foundation .select-foundation__bottom {
        gap: 24px;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__price {
        margin-inline-start: 0;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__top {
        gap: 30px;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__pic-wrap {
        flex-basis: 155px;
        margin-inline-start: 0;
    }

    .page-house-detail .house-constructive #warm-walls .block-text-inner {
        gap: 30px;
    }

    .page-house-detail .house-constructive #warm-walls .block-text-image {
        flex-basis: 300px;
    }
}

@media (max-width: 1199px) {
    .house-constructive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto 650px auto auto;
        grid-template-areas:
            "foundation foundation"
            "layout engineering"
            "walls walls"
            "roof roof";
    }

    .house-constructive__engineering-image {
        inset-inline-start: 0;
        inline-size: 100%;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation-section-top,
    .page-house-detail .house-constructive #roof .constructive-section-title {
        padding-inline: 24px;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__wrap {
        padding: 28px 24px 32px;
    }

    .page-house-detail .house-constructive #warm-walls .constructive-section-title {
        padding-inline: 23px;
    }

    .page-house-detail .house-constructive #warm-walls .block-text-inner {
        padding: 26px 23px 32px;
    }
}

@media (max-width: 991px) {
    .page-house-detail .house-constructive #select-foundation .select-foundation__top,
    .page-house-detail .house-constructive #warm-walls .block-text-inner {
        flex-direction: column;
        gap: 30px;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__pic-wrap {
        flex-basis: auto;
        inline-size: 155px;
        margin-inline: auto;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__contens {
        gap: 30px;
        padding-block-start: 30px;
    }

    .page-house-detail .house-constructive #warm-walls .block-text-content,
    .page-house-detail .house-constructive #warm-walls .block-text-image {
        flex-basis: auto;
        inline-size: 100%;
    }

    .page-house-detail .house-constructive #warm-walls .block-text-content {
        padding-block-start: 0;
    }

    .page-house-detail .house-constructive #warm-walls .block-text-image svg {
        margin-inline: auto;
    }
}

@media (max-width: 767px) {
    .house-constructive,
    .house-building-stages-section { padding-block: 40px; }

    .house-constructive__container { gap: 24px; }
    .house-constructive .house-constructive__title { font-size: 30px; }
    .house-constructive__subtitle { font-size: 16px; line-height: 1.5; }
    .house-constructive__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "foundation" "layout" "engineering" "walls" "roof";
        gap: 24px;
    }
    .house-constructive__layout { min-block-size: 456px; }
    .house-constructive__engineering { min-block-size: 650px; }
    .house-constructive__engineering-image {
        inset-inline-start: -31.004%;
        inline-size: 124.673%;
        opacity: 1;
    }
    .house-constructive__promo-content { padding: 24px; }

    .page-house-detail .house-constructive #select-foundation .constructive-section-title,
    .page-house-detail .house-constructive #warm-walls .constructive-section-title,
    .page-house-detail .house-constructive #roof .constructive-section-title {
        gap: 16px;
    }

    .page-house-detail .house-constructive #select-foundation .constructive-section-title__text,
    .page-house-detail .house-constructive #warm-walls .constructive-section-title__text,
    .page-house-detail .house-constructive #roof .constructive-section-title__text {
        font-size: 20px;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__bottom {
        flex-wrap: wrap;
        gap: 16px;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__price {
        margin-inline-start: auto;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__actions {
        flex-basis: 100%;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__details-wrap.active .house-types-additional__data {
        inset: auto auto calc(100% + 10px) 0;
        inline-size: min(560px, calc(100dvw - 64px));
        max-block-size: 60dvh;
        padding: 12px;
        overflow: auto;
    }

    .page-house-detail .house-constructive #roof .roof-types-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .house-constructive .house-constructive__title { font-size: 26px; }
    .house-constructive .house-constructive__promo-heading h3 { font-size: 22px; }

    .page-house-detail .house-constructive #select-foundation .select-foundation-section-top,
    .page-house-detail .house-constructive #roof .constructive-section-title {
        padding-inline: 16px;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__wrap {
        padding-inline: 16px;
    }

    .page-house-detail .house-constructive #warm-walls .constructive-section-title,
    .page-house-detail .house-constructive #warm-walls .block-text-inner {
        padding-inline: 15px;
    }

    .page-house-detail .house-constructive #select-foundation .select-foundation__price-from,
    .page-house-detail .house-constructive #select-foundation .select-foundation__price-amount {
        font-size: 18px;
    }

    .page-house-detail .house-constructive #roof .roof-types-list {
        gap: 12px;
    }

    .page-house-detail .house-constructive #roof .roof-types-list__title {
        padding-inline: 5px;
        font-size: 14px;
    }

    .page-house-detail .house-constructive #roof .roof-types-list__description {
        padding-inline: 5px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-house-detail .house-constructive #select-foundation .select-foundation__order {
        transition: none;
    }
}
