/* Публичная статистика /stat */
.stat-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.16);
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 197, 94, 0.22), transparent 32%),
        radial-gradient(circle at 86% 0%, rgba(147, 197, 253, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 25, 0.98));
    border-radius: 18px;
}
.stat-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -35% 38%;
    height: 230px;
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.18), rgba(34, 197, 94, 0.18));
    filter: blur(55px);
    transform: rotate(-8deg);
}
.stat-hero-content {
    position: relative;
    z-index: 1;
}
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}
.stat-kpi {
    height: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.78));
    border-radius: 16px;
}
.stat-kpi-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(147, 197, 253, 0.12);
    color: var(--brand-blue-light);
}
.stat-kpi-value {
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}
.stat-growth {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.76rem;
    font-weight: 700;
}
.stat-growth.up {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.stat-growth.down {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.stat-chart-card,
.stat-info-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(17, 24, 39, 0.82);
    border-radius: 16px;
}
.stat-chart-wrap {
    position: relative;
    min-height: 330px;
}
.stat-chart-wrap.tall {
    min-height: 410px;
}
.stat-period-link {
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.stat-period-link.active,
.stat-period-link:hover {
    color: #0b0f19;
    background: linear-gradient(90deg, var(--brand-blue-light), var(--brand-green));
    border-color: transparent;
}
.stat-tabs-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.stat-service-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.36);
}
.stat-service-tabs .nav-link {
    min-width: 0;
    padding: 5px 9px;
    color: #94a3b8;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}
.stat-all-services-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
}
.stat-all-services-btn-text {
    display: none;
}
@media (min-width: 1400px), (min-width: 576px) and (max-width: 1199.98px) {
    .stat-all-services-btn-text {
        display: inline;
    }
}
.stat-service-tabs .nav-link.active {
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.22);
}
.stat-service-tabs .nav-link:hover {
    color: #e2e8f0;
}
.stat-service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-service-row:last-child {
    border-bottom: 0;
}
.stat-service-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}
.stat-service-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-blue-light), var(--brand-green));
}
.stat-service-link {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.18s ease;
}
.stat-service-link:hover {
    color: var(--brand-green);
}
.stat-service-metrics {
    text-align: right;
}
.stat-cta {
    border: 1px solid rgba(34, 197, 94, 0.18);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(147, 197, 253, 0.08)),
        rgba(17, 24, 39, 0.92);
    border-radius: 18px;
}
.stat-modal {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.99), rgba(11, 15, 25, 0.99));
    border: 1px solid rgba(147, 197, 253, 0.16);
    border-radius: 18px;
    color: var(--text-main);
}
.stat-modal .btn-close {
    filter: invert(1) grayscale(100%);
}
.stat-all-services-table th {
    white-space: nowrap;
}
.stat-mobile-service-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 575.98px) {
    .stat-kpi-row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    .stat-hero,
    .stat-cta {
        padding: 1rem !important;
        border-radius: 14px;
    }
    .stat-hero::after {
        height: 120px;
        filter: blur(36px);
    }
    .stat-hero-content {
        --bs-gutter-y: 0.85rem;
    }
    .stat-badge {
        gap: 5px;
        padding: 4px 8px;
        font-size: 0.66rem;
    }
    .stat-hero h1,
    .stat-cta h2 {
        font-size: 1.35rem;
        line-height: 1.15;
        margin-bottom: 0.55rem !important;
    }
    .stat-hero .lead,
    .stat-cta .lead {
        font-size: 0.86rem;
        line-height: 1.35;
    }
    .stat-hero .card,
    .stat-cta .card {
        padding: 0.85rem !important;
        border-radius: 12px;
    }
    .stat-hero .small,
    .stat-cta .small {
        font-size: 0.72rem;
        line-height: 1.3;
    }
    .stat-cta .row.g-3 {
        --bs-gutter-y: 0.45rem;
    }
    .stat-cta .d-flex.gap-2 {
        gap: 0.35rem !important;
        font-size: 0.82rem;
        line-height: 1.25;
    }
    .stat-cta .display-6 {
        font-size: 1.55rem;
    }
    .stat-cta .btn {
        padding: 0.36rem 0.65rem;
        font-size: 0.82rem;
    }
    .stat-kpi {
        padding: 10px;
        border-radius: 12px;
    }
    .stat-kpi .mb-3 {
        margin-bottom: 0.35rem !important;
    }
    .stat-kpi-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.78rem;
    }
    .stat-kpi-value {
        font-size: 1.18rem;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }
    .stat-kpi .text-muted {
        font-size: 0.68rem;
        line-height: 1.15;
    }
    .stat-growth {
        padding: 2px 5px;
        font-size: 0.6rem;
    }
    .stat-chart-wrap,
    .stat-chart-wrap.tall {
        min-height: 270px;
    }
    .stat-service-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .stat-service-tabs::-webkit-scrollbar {
        display: none;
    }
    .stat-service-tabs .nav-link {
        padding: 5px 7px;
        font-size: 0.72rem;
    }
    .stat-service-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 9px 0;
    }
    .stat-service-row .badge {
        font-size: 0.62rem;
        padding: 0.25em 0.45em;
    }
    .stat-service-row .d-flex.mb-2 {
        margin-bottom: 0.35rem !important;
    }
    .stat-service-bar {
        height: 5px;
    }
    .stat-service-metrics {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 0.76rem;
        line-height: 1.15;
        text-align: left;
    }
    .stat-service-views {
        order: 1;
    }
    .stat-service-clicks {
        order: 2;
        text-align: right;
    }
    .stat-modal {
        border-radius: 14px;
    }
}
