/* ФИЧИ (Feature/Item) — перенос 1-в-1 из Figma (node 141:3161) */
.features-section {
    width: 100%;
    background: var(--Gray-50, #F4F4F4);
    padding: 30px 0;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 10px;
    background: transparent;
    min-width: 0;
}

/* Чипы 1, 2, 5 (Заводская, Проверенные, Ипотека) — тянутся; 3, 4 — фиксированные */
.features-item--flex {
    flex: 1 0 0;
}

.features-item--w232 {
    flex: 0 0 232px;
    width: 232px;
}

.features-item--w286 {
    flex: 0 0 286px;
    width: 286px;
}

.features-icon {
    width: 80px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
}

.features-label {
    flex: 1 0 0;
    min-width: 0;
    color: var(--Text-Primary, #1E2433);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

/* О ПРОЕКТЕ — перенос 1-в-1 с эталона ВЗ, цвета/радиус под палитру sk-dinastiya */
.about-section {
    width: 100%;
    background: #F4F4F4;
    padding: 30px 0 40px;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-card {
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.about-title {
    font-weight: 500;
    font-size: 30px;
    line-height: 38px;
    color: #000000;
    text-align: center;
    margin: 0;
    padding: 30px 30px 20px;
}

.about-body {
    /* Правка по фидбеку: 30px снизу, чтобы текст не прилипал к кнопке «Подробнее о проекте». */
    padding: 0 30px 30px;
    position: relative;
    max-height: 160px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: max-height;
}

.about-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.about-body.expanded::after {
    opacity: 0;
}

.about-columns {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.about-columns > div {
    flex: 1 0 0;
}

.about-col p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin: 0 0 16px;
}

.about-col p:last-child {
    margin-bottom: 0;
}

.about-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    background: var(--Brand-Primary, #D5A944);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: #FFFFFF;
    transition: background 0.25s;
    margin-top: 0;
    flex-shrink: 0;
}

.about-more-btn:hover {
    background: var(--Brand-Primary-muted, #B89A54);
}

.about-more-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.about-more-btn.open .about-more-arrow {
    transform: rotate(180deg);
}

@media (max-width: 1000px) {
    .about-title {
        font-size: 26px;
    }

    .about-columns {
        gap: 20px;
    }

    .about-col p {
        font-size: 15px;
        line-height: 22px;
    }
}

@media (max-width: 989px) {
    .features-section {
        padding: 20px 0;
    }

    .features-grid {
        flex-wrap: wrap;
        gap: 8px;
    }

    .features-item,
    .features-item--flex,
    .features-item--w232,
    .features-item--w286 {
        flex: 1 1 calc(50% - 4px);
        width: auto;
    }

    /* По макету (Card_Phone) на мобильном 4 чипа 2×2 — пятый («Ипотека 6% эскроу») скрыт. */
    .features-item:nth-child(5) {
        display: none;
    }

    .features-icon {
        width: 60px;
        height: 46px;
    }

    .features-label {
        font-size: 14px;
    }

    .about-section {
        display: none;
    }
}
