/* === ts-article-before-after widget === */
.ts-article-before-after .ts-article-before-after__intro {
    margin-bottom: 60px;
}
.ts-article-before-after .ts-article-before-after__intro h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #242424;
}

/* Case card */
.ts-baf-card {
    background: #f3f7f8;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Основной блок: фото + текст */
.ts-baf-card__main {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

/* Фото */
.ts-baf-card__photo-wrap {
    flex-shrink: 0;
    width: 326px;
    align-self: stretch;
    border-radius: 20px;
    overflow: hidden;
}

.ts-baf-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Текстовый блок */
.ts-baf-card__content {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Заголовок с номером */
.ts-baf-card__header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ts-baf-card__num {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(90deg, #ef4343 -0.19%, #ff6262 99.95%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}

.ts-baf-card__title {
    font-size: 26px;
    font-weight: 700;
    color: #242424;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
}

/* Секции: Было / Установили / Общие затраты */
.ts-baf-card__sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ts-baf-card__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-baf-card__section-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #242424;
    margin: 0;
}

/* Красные точки для списков внутри карточки */
.ts-baf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-baf-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #242424;
    padding: 0;
    position: relative;
}

.ts-baf-list li::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background-image: url(../img/blocks/window-model-profile/point-red.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 7px;
}

/* Белый блок результатов */
.ts-baf-card__results {
    background: #fff;
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.ts-baf-card__results-col {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-baf-card__results-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #242424;
    margin: 0;
}

/* Цитата */
.ts-baf-card__quote {
    border: 1px solid rgba(58, 173, 129, 0.3);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ts-baf-card__quote-text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: #242424;
    margin: 0;
}

.ts-baf-card__quote-author {
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
    color: #242424;
    margin: 0;
}

/* Summary */
.ts-article-before-after__summary h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #242424;
}

/* Green bullet points in intro_html */
.ts-article-before-after .ts-article-before-after__intro ul {
    list-style-type: none;
    display: flow-root;
    margin-bottom: 20px;
}
.ts-article-before-after .ts-article-before-after__intro ul li {
    padding-left: 20px;
    position: relative;
}
.ts-article-before-after .ts-article-before-after__intro ul li:before {
    position: absolute;
    left: 0;
    top: 9px;
    content: "";
    background-image: url(../img/blocks/window-model-profile/point.svg);
    background-position: left center;
    background-repeat: no-repeat;
    width: 9px;
    height: 9px;
}

/* === Адаптив === */
@media (max-width: 992px) {
    .ts-baf-card__photo-wrap {
        width: 260px;
    }
    .ts-baf-card__title {
        white-space: normal;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .ts-baf-card {
        padding: 24px 20px;
        border-radius: 20px;
        gap: 24px;
    }
    .ts-baf-card__main {
        flex-direction: column;
    }
    .ts-baf-card__main--img-left {
        flex-direction: column-reverse;
    }
    .ts-baf-card__photo-wrap {
        width: 100%;
        height: 220px;
        align-self: auto;
    }
    .ts-baf-card__title {
        font-size: 18px;
        white-space: normal;
    }
    .ts-baf-card__results {
        flex-direction: column;
        padding: 16px 20px;
        gap: 20px;
    }
    .ts-baf-card__quote {
        padding: 20px;
    }
    .ts-baf-card__num {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }
}
