﻿/* --- FEATURES SECTION --- */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--b700);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.feature-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

/* ИСПРАВЛЕНО: Добавлен красивый hover-эффект для десктопов */
@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }
}

.feature-card > div:last-child {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background-color: var(--p100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--p700);
}

    .icon-wrapper img,
    .icon-wrapper svg {
        /* ИСПРАВЛЕНО: Убрали жесткие 24px. Теперь иконка занимает 65% от голубого квадрата (48px) */
        width: 65%;
        height: 65%;
        display: block;
        object-fit: contain;
    }

.feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--b700);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 2.8em;
    overflow-wrap: break-word;
    hyphens: auto;
}

.feature-desc {
    font-size: 14px;
    color: var(--b600);
    line-height: 1.5;
}

.features-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Специфичные стили для языков с длинными словами */
:lang(hy) .feature-title,
:lang(ru) .feature-title {
    font-size: 16px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .features-section {
        padding: 40px 0;
    }

    .features-header {
        margin-bottom: 32px;
        text-align: left;
    }

    .features-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }

    .icon-wrapper {
        margin-bottom: 0;
    }

    .feature-title {
        margin-bottom: 4px;
        font-size: 16px;
        min-height: auto;
    }

    .feature-desc {
        font-size: 13px;
    }

    .features-footer {
        flex-direction: row;
        gap: 12px;
    }

        .features-footer .btn-blue-large,
        .features-footer .btn-dark {
            flex: 1;
            padding: 12px;
            justify-content: center;
        }
}
