/* Страница «Материалы» — вёрстка по Figma (узлы 164:15950 / 164:15150 / 164:15551) */

body.materials-page {
    background: #F5F5F5;
}

/* ---- Хиро ---- */

.materials-hero-block {
    margin-bottom: 99px;
}

.materials-hero {
    width: 100%;
    background: var(--Surface-White, #FFFFFF);
    border-radius: 4px;
    overflow: hidden;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 34px;
    align-items: center;
}

.materials-hero__header {
    max-width: 1070px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.materials-hero__title {
    margin: 0;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--Text-Primary, #1E2433);
}

.materials-hero__lead {
    margin: 0;
    max-width: 976px;
    font-size: 16px;
    font-weight: 400;
    color: var(--Text-Primary, #1E2433);
}

.materials-hero__strip {
    width: 100%;
    height: 288px;
    display: flex;
    gap: 12px;
}

.materials-hero__strip img {
    flex: 1;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    display: block;
}

.materials-hero__strip img:first-child {
    border-top-right-radius: 4px;
}

.materials-hero__strip img:nth-child(2) {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.materials-hero__strip img:last-child {
    border-top-left-radius: 4px;
}

/* ---- Разделы материалов ---- */

.materials-sections-block {
    margin-bottom: 90px;
}

.materials-sections {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.material-section {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.material-section__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.material-section__head-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.material-section__title {
    margin: 0;
    max-width: 436px;
    line-height: 1.1;
    color: var(--Text-Primary, #1E2433);
}

.material-section__intro {
    margin: 0;
    width: 620px;
    font-size: 16px;
    font-weight: 400;
    color: var(--Text-Primary, #1E2433);
}

.material-section__photo {
    width: 620px;
    border-radius: 4px;
    overflow: hidden;
}

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

.material-section__cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.material-card {
    background: var(--Surface-White, #FFFFFF);
    border-radius: 4px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.material-card__heading {
    margin: 0;
    width: 100%;
    font-size: 30px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
    color: var(--Text-Primary, #1E2433);
}

.material-card__heading span {
    color: #B89A54;
}

.material-card__list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.material-card__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #E4E4E4;
}

.material-card__row:last-child {
    border-bottom: none;
}

.material-card__icon {
    flex-shrink: 0;
    width: 33px;
    height: 33px;
    display: block;
}

.material-card__text {
    width: 588px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.material-card__row-title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    color: var(--Text-Primary, #1E2433);
}

.material-card__row-body {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--Text-Secondary, #8B8B8B);
}

/* ---- Сравнительная таблица ---- */

.materials-table-block {
    margin-bottom: 90px;
}

.materials-table__title {
    margin: 0 0 31px;
    width: 100%;
    line-height: 1.1;
    text-align: center;
    color: var(--Text-Primary, #1E2433);
}

.materials-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.materials-table {
    width: 100%;
    min-width: 688px;
    background: var(--Surface-White, #FFFFFF);
    border: 1px solid var(--Border-Light, #DBDBDB);
    border-radius: 20px;
    overflow: hidden;
}

.materials-table__row {
    display: flex;
    height: 72px;
    border-bottom: 1px solid var(--Border-Light, #DBDBDB);
    background: var(--Surface-White, #FFFFFF);
}

.materials-table__row:nth-child(odd):not(.materials-table__row--head) {
    background: var(--Gray-50, #F4F4F4);
}

.materials-table__row:last-child {
    border-bottom: none;
}

.materials-table__row--head {
    height: 80px;
    background: var(--Surface-White, #FFFFFF);
}

.materials-table__param {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    padding-left: 24px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    background: inherit;
}

.materials-table__row--head .materials-table__param {
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}

.materials-table__head-cell {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: var(--Brand-Secondary, #454452);
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
    color: #FFFFFF;
}

.materials-table__head-cell--light {
    background: var(--Gray-400, #565563);
}

.materials-table__cell {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    border-left: 1px solid var(--Border-Light, #DBDBDB);
}

.materials-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 54px;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

.materials-badge--green {
    background: #E6FCDC;
    color: #236516;
}

.materials-badge--yellow {
    background: #FEF9C3;
    color: #854D0E;
}

.materials-badge--blue {
    background: #E0F0FF;
    color: #30425B;
}

/* ---- Что выбрать ---- */

.materials-choice-block {
    margin-bottom: 91px;
}

.materials-choice__title {
    margin: 0 0 22px;
    width: 100%;
    line-height: 1.1;
    color: var(--Text-Primary, #1E2433);
}

.materials-choice {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.choice-card {
    width: 400px;
    height: 320px;
    box-sizing: border-box;
    border: 1px solid var(--Border-Light, #DBDBDB);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.choice-card--gazobeton { background: #E9EBEF; }
.choice-card--porotherm { background: #EEEEEE; }
.choice-card--brus { background: var(--Beige-100, #F4F2ED); }

.choice-card__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.choice-card__eyebrow {
    background: var(--Surface-White, #FFFFFF);
    border: 1px solid var(--Border-Light, #DBDBDB);
    border-radius: 999px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 0.7;
    text-transform: uppercase;
    color: var(--Text-Secondary, #8B8B8B);
    white-space: nowrap;
}

.choice-card__need {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--Text-Primary, #1E2433);
}

.choice-card__recommendation {
    width: 100%;
    box-sizing: border-box;
    background: var(--Surface-White, #FFFFFF);
    border: 1px solid var(--Border-Light, #DBDBDB);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.choice-card__rec-label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: var(--Text-Secondary, #8B8B8B);
}

.choice-card__rec-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.choice-card__rec-name {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    color: var(--Text-Primary, #1E2433);
}

/* ---- FAQ ---- */

.materials-faq-block {
    margin-bottom: 90px;
}

.materials-faq {
    width: 100%;
    background: var(--Surface-White, #FFFFFF);
    border-radius: 12px;
    padding: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.materials-faq__title {
    margin: 0;
    line-height: 1.1;
    color: var(--Text-Primary, #1E2433);
}

.materials-faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card {
    border: 1px solid var(--Border-Light, #DBDBDB);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-card__q {
    display: flex;
    gap: 12px;
    align-items: center;
}

.faq-card__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: var(--Beige-100, #F4F2ED);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--Brand-Primary, #D5A944);
}

.faq-card__question {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 24px;
    color: var(--Text-Primary, #1E2433);
}

.faq-card__answer {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--Text-Secondary, #8B8B8B);
}

/* ---- Заключение ---- */

.materials-conclusion-block {
    margin-bottom: 30px;
}

.materials-conclusion__title {
    margin: 0 0 24px;
    width: 100%;
    font-size: var(--font-section-title, 30px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--Text-Primary, #1E2433);
}

.materials-conclusion__text {
    margin: 0;
    width: 100%;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--Text-Secondary, #8B8B8B);
}

.materials-conclusion__text strong {
    font-weight: 600;
}

/* ---- Laptop (Figma-фрейм 990) ---- */

@media (max-width: 1279px) {
    .materials-hero-block {
        margin-bottom: 110px;
    }

    .materials-hero__title {
        font-size: 36px;
    }

    .materials-hero__strip {
        height: 209px;
    }

    .material-section__intro,
    .material-section__photo {
        width: 55%;
    }

    .material-card__text {
        width: calc(100% - 63px);
    }

    .choice-card {
        width: 32%;
        height: auto;
        min-height: 320px;
    }
}

/* ---- Mobile (Figma-фрейм 360) ---- */

@media (max-width: 768px) {
    .materials-hero-block {
        margin-bottom: 72px;
    }

    .materials-hero {
        border-radius: 0;
        margin: 0 -20px;
        width: calc(100% + 40px);
    }

    .materials-hero__title {
        font-size: 26px;
    }

    .materials-hero__strip {
        height: 180px;
        gap: 8px;
    }

    .materials-sections {
        gap: 72px;
    }

    .material-section {
        gap: 40px;
    }

    .material-section__head-row {
        flex-direction: column;
        gap: 16px;
    }

    .material-section__intro,
    .material-section__photo {
        width: 100%;
    }

    .material-section__photo {
        height: 220px !important;
    }

    .material-card {
        padding: 16px;
    }

    .material-card__heading {
        font-size: 24px;
        line-height: 32px;
    }

    .material-card__row {
        gap: 12px;
        justify-content: flex-start;
    }

    .material-card__text {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .material-card__row-title {
        font-size: 18px;
        line-height: 24px;
    }

    .materials-table__param {
        flex: 0 0 160px;
        position: sticky;
        left: 0;
        z-index: 2;
    }

    .materials-table__head-cell,
    .materials-table__cell {
        flex: 0 0 176px;
    }

    .materials-choice {
        flex-direction: column;
        gap: 12px;
    }

    .choice-card {
        width: 100%;
        height: auto;
        min-height: 0;
        gap: 24px;
    }

    .materials-faq {
        padding: 16px;
    }

    .faq-card__question {
        font-size: 18px;
        line-height: 22px;
    }
}
