/* ═══════════════════════════════════════════
   INDEX.CSS — Главная: stats, about, projects
   ═══════════════════════════════════════════ */

/* ── STATS STRIP ─────────────────────────── */
.stats-strip {
    background: var(--purple);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.pattern-bg {
    position: relative;
    border-radius: 22px;
}

.pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpolygon points='20,4 30,14 20,10 10,14' fill='%235D58F5' opacity='0.15'/%3E%3Cpolygon points='20,24 30,34 20,30 10,34' fill='%235D58F5' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.stat-num--accent {
    color: #F9C6B0;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stats-strip {
        padding: 48px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .stat-num {
        font-size: clamp(36px, 8vw, 56px);
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .stats-strip {
        padding: 36px 0;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-num {
        font-size: 32px;
    }

    .stat-label {
        font-size: 11px;
    }
}

/* ── ABOUT / SECTION-GRID ────────────────── */
.section-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.section-text h2,
.projects h2 {
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #24242d;
    margin-bottom: 10px;
    max-width: 530px;
}

.section-visuals {
    display: grid;
    align-self: center;
    grid-template-columns: 1fr 0.65fr;
    gap: 18px;
    margin-bottom: 18px;
}

.placeholder-card {
    min-height: 232px;
    border-radius: 22px;
    background: linear-gradient(180deg, #d6d7ff, #c8caf8);
}

.placeholder-card img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── PROJECTS ────────────────────────────── */
.projects {
    margin-top: 56px;
}

.section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.project-list {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-content: start;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card__image {
    height: 300px;
    border-radius: 22px;
    background: linear-gradient(180deg, #d7d8ff, #c7c9f7);
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.project-card h3 {
    margin-top: 16px;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 800;
}

.project-card p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #3b3b45;
    min-height: 94px;
}

.project-card .btn {
    align-self: flex-end;
    margin-top: 10px;
}

/* ── INDEX-SPECIFIC RESPONSIVE ───────────── */
@media (max-width: 1180px) {
    .section-grid {
        grid-template-columns: 1fr;
    }

    .section-text {
        order: 1;
    }

    .section-visuals {
        order: 2;
    }

    .project-list {
        grid-template-columns: repeat(2, 1fr);
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .project-list {
        grid-template-columns: 1fr;
    }
}
