.cg-home-stats {
    position: relative;
    padding: 34px 24px;
    background: #ffffff;
}

.cg-home-stats__grid {
    --stats-count: 4;
    display: grid;
    grid-template-columns: repeat(var(--stats-count), minmax(0, 1fr));
    gap: 18px;
    width: min(1180px, 100%);
    margin-inline: auto;
}

.cg-home-stats__grid[data-count="1"] {
    --stats-count: 1;
    max-width: 260px;
}

.cg-home-stats__grid[data-count="2"] {
    --stats-count: 2;
    max-width: 560px;
}

.cg-home-stats__grid[data-count="3"] {
    --stats-count: 3;
    max-width: 850px;
}

.cg-home-stats__grid[data-count="4"] {
    --stats-count: 4;
    max-width: 1180px;
}

.cg-home-stat {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-width: 0;
    min-height: 112px;
    padding: 20px 22px;
    border: 1px solid rgba(8, 43, 99, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 12px 30px rgba(15, 23, 42, 0.06);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.cg-home-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 90, 169, 0.18);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 18px 38px rgba(15, 23, 42, 0.10);
}

.cg-home-stat__icon {
    position: relative;
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #fff9dc 0%, #fff1b8 100%);
    color: #005aa9;
    box-shadow:
        inset 0 0 0 1px rgba(217, 154, 0, 0.10),
        0 8px 18px rgba(217, 154, 0, 0.08);
    line-height: 0;
}

.cg-home-stat__icon .cg-lucide-icon,
.cg-home-stat__icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    stroke-width: 2.15;
    overflow: visible;
}

.cg-home-stat__text {
    min-width: 0;
}

.cg-home-stat__text span {
    display: block;
    color: #082b63;
    font-size: clamp(28px, 2.4vw, 38px);
    font-weight: 850;
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.cg-home-stat__text small {
    display: block;
    margin-top: 9px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.cg-section-appearance .cg-home-stat__text span,
.cg-section-appearance .cg-home-stat__text small {
    color: var(--cg-section-text-color, inherit);
}

@media (max-width: 900px) {
    .cg-home-stats__grid,
    .cg-home-stats__grid[data-count="3"],
    .cg-home-stats__grid[data-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 680px;
    }
}

@media (max-width: 560px) {
    .cg-home-stats {
        padding: 24px 16px;
    }

    .cg-home-stats__grid,
    .cg-home-stats__grid[data-count="1"],
    .cg-home-stats__grid[data-count="2"],
    .cg-home-stats__grid[data-count="3"],
    .cg-home-stats__grid[data-count="4"] {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .cg-home-stat {
        min-height: 104px;
        padding: 18px 20px;
    }

    .cg-home-stat__icon {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .cg-home-stat__icon .cg-lucide-icon,
    .cg-home-stat__icon svg {
        width: 31px;
        height: 31px;
    }
}