/* Главная: блок «Почему КЛЕН» (chunk features_new.tpl) */
.kf-section .section__head { text-align: left; max-width: 62ch; margin-left: 0; margin-right: auto; }
.kf-section .section__eyebrow { text-align: left; color: var(--color-accent); }
.kf-section .section__lead { margin-inline: 0; }

.kf-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.6vw, 1.35rem);
}

.kf-card {
    position: relative;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: clamp(1.4rem, 2.4vw, 2rem);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.kf-card::after {
    content: "";
    position: absolute;
    left: clamp(1.4rem, 2.4vw, 2rem);
    right: clamp(1.4rem, 2.4vw, 2rem);
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), rgba(227, 30, 36, 0));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.kf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(28, 25, 23, 0.1);
    border-color: transparent;
}

.kf-card:hover::after { opacity: 1; }

.kf-card--wide { grid-column: span 3; }

.kf-card__index {
    position: absolute;
    top: clamp(1.1rem, 2vw, 1.5rem);
    right: clamp(1.2rem, 2.2vw, 1.75rem);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #d6d3d1;
}

.kf-card__icon {
    width: 54px;
    height: 54px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(20, 83, 45, 0.07);
    color: var(--color-primary);
}

.kf-card__icon svg { width: 26px; height: 26px; }

.kf-card__body { display: flex; flex-direction: column; gap: 0.5rem; }

.kf-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--color-text);
    text-wrap: balance;
}

.kf-card p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Акцентная карточка завода */
.kf-card--accent {
    background: linear-gradient(140deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #17603a 100%);
    border-color: transparent;
    color: #fff;
}

.kf-card--accent::before {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.kf-card--accent .kf-card__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.kf-card--accent h3 { color: #fff; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.kf-card--accent .kf-card__index { color: rgba(255, 255, 255, 0.45); }
.kf-card--accent .kf-card__note {
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
}
.kf-card--accent::after { background: linear-gradient(90deg, #fca5a5, rgba(252, 165, 165, 0)); }

@media (max-width: 1100px) {
    .kf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kf-card { grid-column: span 2; }
    .kf-card--wide { grid-column: span 2; }
    .kf-card--accent { grid-column: span 4; }
}

@media (max-width: 720px) {
    .kf-grid { grid-template-columns: 1fr; }
    .kf-card,
    .kf-card--wide,
    .kf-card--accent { grid-column: span 1; }
    .kf-card { flex-direction: row; align-items: flex-start; gap: 0.9rem; }
    .kf-card__icon { width: 46px; height: 46px; border-radius: 13px; }
    .kf-card__icon svg { width: 22px; height: 22px; }
    .kf-card__index { display: none; }
}
