﻿
.home-stats {
    width: 100%;
    padding: 55px 25px;
    margin: 35px 0;
    border-radius: 24px;
    font-family: inherit;
    box-sizing: border-box;
}

.home-stats-header {
    text-align: center;
    margin-bottom: 40px;
}

    .home-stats-header h2 {
        font-size: 25px;
        font-weight: 800;
        margin: 0 0 12px;
    }

    .home-stats-header p {
        font-size: 14px;
        margin: 0;
    }

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 260px));
    justify-content: center;
    gap: 22px;
    width: 100%;
    margin: auto;
}

.home-stat-card {
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 28px 18px;
    text-align: center;
    transition: all .3s ease;
    overflow: hidden;
}

    .home-stat-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 3px;
        background: #2563eb;
        transition: width .35s ease;
    }

    .home-stat-card:hover {
        transform: translateY(-7px);
        border-color: #cbdaf5;
        box-shadow: 0 15px 35px rgba(15, 35, 75, .08);
    }

        .home-stat-card:hover::before {
            width: 100%;
        }

.home-stat-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 15px;
    font-size: 21px;
}

.home-stat-number {
    direction: ltr;
    color: #172554;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

    .home-stat-number .counter {
        color: #2563eb;
        font-size: 25px;
    }

.home-stat-card h3 {
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
}

.home-stat-card p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 2;
    margin: 0;
}

/* Tablet */
@media (max-width: 850px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 260px));
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .home-stats {
        padding: 35px 15px;
        border-radius: 18px;
    }

    .home-stats-header {
        margin-bottom: 28px;
    }

        .home-stats-header h2 {
            font-size: 20px;
        }

        .home-stats-header p {
            font-size: 12px;
            line-height: 2;
        }

    .home-stats-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
        gap: 12px;
    }

    .home-stat-card {
        width: 100%;
        padding: 22px 15px;
    }

    .home-stat-number {
        font-size: 30px;
    }

    .home-stat-card h3 {
        font-size: 13px;
    }

    .home-stat-card p {
        font-size: 11px;
    }
}
