/* Dacha building cards: option switcher and order block in the dark info column, sections under the gallery. */

.dacha-variants {
    margin: 2px 0 12px;
}

.dacha-variants__label {
    display: block;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dacha-variants__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 5px;
}

.dacha-variant {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.dacha-variant b {
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.dacha-variant small {
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    white-space: nowrap;
}

.dacha-variant:hover {
    border-color: rgba(244, 123, 32, .6);
}

.dacha-variant.is-active {
    border-color: #f47b20;
    background: rgba(244, 123, 32, .14);
}

.dacha-variant.is-active small {
    color: #ffb37a;
}

.project-detail-page--t10 .dacha-pack .t10-packs {
    margin-bottom: 10px;
}

.project-detail-page--t10 .t10-packs strong.is-included {
    color: #8fdc9a;
}

.dacha-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    text-decoration: none;
}

.dacha-plan:hover {
    border-color: rgba(244, 123, 32, .6);
    color: #fff;
}

.dacha-plan img {
    width: 72px;
    height: 54px;
    flex: 0 0 72px;
    border-radius: 7px;
    background: #fff;
    object-fit: cover;
}

.dacha-plan span {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    line-height: 1.35;
}

.dacha-plan b {
    color: #fff;
    font-size: 12px;
}

.project-detail-page--dacha-card .project-page__title {
    overflow-wrap: anywhere;
    hyphens: auto;
}

@media (min-width: 1200px) {
    .project-detail-page--dacha-card .project-page__title {
        font-size: 38px;
        line-height: 1.08;
    }
}

.dacha-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 4px 0 6px;
}

.dacha-cta__order {
    grid-column: 1 / -1;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #ff5900;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    transition: background .15s ease;
}

.dacha-cta__order:hover {
    background: #ff7124;
}

.dacha-cta__call {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
}

.dacha-cta__call small {
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    font-weight: 600;
}

.dacha-cta__call:hover {
    border-color: #f47b20;
    color: #fff;
}

/* Portrait photos are shown whole over a blurred copy instead of being cut to 4:3. */
.project-detail-page--dacha-card #product-page__gallery .f-carousel__slide.f-carousel__slide--portrait {
    position: relative;
    overflow: hidden;
    background: #1b1917;
}

.project-detail-page--dacha-card #product-page__gallery .f-carousel__slide.f-carousel__slide--portrait::before {
    position: absolute;
    inset: -30px;
    content: "";
    background: var(--slide-bg) center / cover no-repeat;
    filter: blur(24px) brightness(.6);
    transform: scale(1.08);
}

.project-detail-page--dacha-card #product-page__gallery .f-carousel__slide.f-carousel__slide--portrait > picture {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

.project-detail-page--dacha-card.project-detail-page--t10 #product-page__gallery .f-carousel__slide.f-carousel__slide--portrait > picture > img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

.project-detail-page--dacha-card.project-detail-page--t10 #product-page__gallery .f-carousel__slide[data-fancybox] {
    cursor: zoom-in;
}

/* Sections under the gallery */
.dacha-sec,
.project-detail-page--dacha-card .dacha-reviews {
    padding: 28px 0 6px;
}

.project-detail-page--dacha-card .dacha-reviews__title {
    margin: 0 0 14px;
    color: #242424;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.dacha-sec__title {
    margin: 0 0 14px;
    color: #242424;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.dacha-sec__note {
    margin: 10px 0 0;
    color: #6e6761;
    font-size: 14px;
    line-height: 1.5;
}

.dacha-sec__note a {
    color: #ff5900;
    font-weight: 700;
    text-decoration: none;
}

.dacha-overview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.dacha-about p {
    margin: 0 0 12px;
    color: #3d3833;
    font-size: 16px;
    line-height: 1.6;
}

.dacha-more summary {
    display: inline-flex;
    margin: 0 0 10px;
    color: #ff5900;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.dacha-more summary::-webkit-details-marker {
    display: none;
}

.dacha-more[open] .dacha-more__open,
.dacha-more:not([open]) .dacha-more__close {
    display: none;
}

.dacha-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.dacha-table th,
.dacha-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1ebe4;
    color: #242424;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    vertical-align: top;
}

.dacha-table--specs {
    overflow: hidden;
    border: 1px solid #eee7df;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
}

.dacha-table--specs th {
    width: 34%;
    color: #8a8580;
    font-weight: 600;
}

.dacha-table--specs tr:last-child th,
.dacha-table--specs tr:last-child td,
.dacha-table--prices tbody tr:last-child th,
.dacha-table--prices tbody tr:last-child td {
    border-bottom: 0;
}

.dacha-table-wrap {
    overflow: hidden;
    border: 1px solid #eee7df;
    border-radius: 16px;
}

.dacha-table--prices thead th {
    background: #faf7f3;
    color: #6e6761;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dacha-table--prices tbody th {
    font-size: 15px;
    font-weight: 800;
}

.dacha-table--prices tbody th small {
    display: block;
    color: #8a8580;
    font-size: 12px;
    font-weight: 500;
}

.dacha-table--prices td {
    font-size: 15px;
    white-space: nowrap;
}

.dacha-table .dacha-table__price {
    color: #ff5900;
    font-weight: 800;
}

.dacha-steps__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dacha-steps__list li {
    padding: 16px;
    border: 1px solid #eee7df;
    border-radius: 16px;
    background: #fff;
}

.dacha-steps__num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 89, 0, .1);
    color: #ff5900;
    font-size: 14px;
    font-weight: 800;
}

.dacha-steps__list b {
    display: block;
    margin-bottom: 4px;
    color: #242424;
    font-size: 15px;
}

.dacha-steps__list p {
    margin: 0;
    color: #6e6761;
    font-size: 13px;
    line-height: 1.45;
}

.dacha-faq__list {
    display: grid;
    gap: 8px;
}

.dacha-faq__item {
    border: 1px solid #eee7df;
    border-radius: 14px;
    background: #fff;
}

.dacha-faq__item summary {
    position: relative;
    padding: 14px 44px 14px 16px;
    color: #242424;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.dacha-faq__item summary::-webkit-details-marker {
    display: none;
}

.dacha-faq__item summary::after {
    position: absolute;
    top: 50%;
    right: 16px;
    content: "+";
    color: #ff5900;
    font-size: 22px;
    font-weight: 400;
    transform: translateY(-50%);
}

.dacha-faq__item[open] summary::after {
    content: "−";
}

.dacha-faq__item p {
    margin: 0;
    padding: 0 16px 14px;
    color: #4a4540;
    font-size: 14px;
    line-height: 1.55;
}

.dacha-related {
    padding-bottom: 32px;
}

.dacha-related__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
}

.dacha-related__head a {
    color: #ff5900;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dacha-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dacha-related__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee7df;
    border-radius: 16px;
    background: #fff;
    color: #242424;
    text-decoration: none;
    transition: border-color .15s ease;
}

.dacha-related__card:hover {
    border-color: #ff5900;
    color: #242424;
}

.dacha-related__img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee7df;
}

.dacha-related__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dacha-related__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px 14px;
}

.dacha-related__body b {
    font-size: 16px;
}

.dacha-related__body span {
    color: #8a8580;
    font-size: 13px;
}

.dacha-related__body strong {
    margin-top: 4px;
    color: #ff5900;
    font-size: 16px;
}

@media (max-width: 991.98px) {
    .dacha-overview__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dacha-steps__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dacha-table--prices thead {
        display: none;
    }

    .dacha-table--prices tr {
        display: block;
        padding: 10px 14px;
        border-bottom: 1px solid #f1ebe4;
    }

    .dacha-table--prices tbody tr:last-child {
        border-bottom: 0;
    }

    .dacha-table--prices th,
    .dacha-table--prices td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 3px 0;
        border: 0;
    }

    .dacha-table--prices tbody th {
        display: block;
        padding-bottom: 6px;
        font-size: 16px;
    }

    .dacha-table--prices td::before {
        content: attr(data-label);
        color: #8a8580;
        font-size: 13px;
        font-weight: 500;
    }
}

@media (max-width: 575.98px) {
    .dacha-cta__call {
        min-height: 42px;
    }

    .dacha-sec {
        padding: 20px 0 4px;
    }

    .dacha-sec__title,
    .project-detail-page--dacha-card .dacha-reviews__title {
        font-size: 20px;
    }

    .dacha-about p {
        font-size: 15px;
    }

    .dacha-table--specs th {
        width: 40%;
    }

    .dacha-steps__list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dacha-related__grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .dacha-related__grid::-webkit-scrollbar {
        display: none;
    }

    .dacha-related__card {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }
}
