.site-stats {
    --stats-separator: #3c4b5c;
    width: calc(100% - 32px);
    max-width: 1088px;
    margin: 14px auto 0;
    overflow: hidden;
    scroll-margin-top: 120px;
    border: 1px solid #324559;
    border-radius: 9px;
    background: linear-gradient(105deg, #172636, #233a50);
}

.site-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.18fr);
    margin: 0;
}

.site-stat {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    min-height: 70px;
    padding: 10px 10px 10px 39px;
}

.site-stat + .site-stat::before {
    position: absolute;
    inset: 16px auto 16px 0;
    width: 1px;
    background: var(--stats-separator);
    content: "";
}

.site-stat-label {
    margin: 0;
    color: #bbc9d8;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.site-stat-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    translate: 0 -50%;
    color: #9aafca;
    font-size: 17px;
    line-height: 1;
}

.site-stat-value {
    max-width: 100%;
    margin: 0;
    color: #f5f8fc;
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.site-stat--total .site-stat-icon,
.site-stat--total .site-stat-value {
    color: #87e4d0;
}

@media (max-width: 899px) {
    .site-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .site-stat:nth-child(n + 5) {
        border-top: 1px solid var(--stats-separator);
    }

    .site-stat:nth-child(5)::before {
        display: none;
    }

    .site-stat--total {
        grid-column: span 2;
    }
}

@media (max-width: 559px) {
    .site-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-stat {
        min-height: 56px;
        align-items: center;
        padding: 8px 5px;
    }

    .site-stat-label {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .site-stat-icon {
        position: static;
        translate: none;
        font-size: 13px;
    }

    .site-stat-value {
        font-size: 20px;
    }

    .site-stat:nth-child(n + 4) {
        border-top: 1px solid var(--stats-separator);
    }

    .site-stat:nth-child(5)::before {
        display: block;
    }

    .site-stat:nth-child(3n + 1)::before {
        display: none;
    }

    .site-stat--total {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        min-height: 44px;
        padding-inline: 14px;
    }

    .site-stat--total .site-stat-value {
        text-align: right;
    }
}

@media (max-width: 768px) {
    .site-stats {
        width: calc(100% - 16px);
        margin-top: 12px;
    }
}
