.d24-stats {
    --d24-stats-accent: #0e8fb0;
    --d24-stats-accent-dark: #087694;
    --d24-stats-today: #f97316;
    --d24-stats-text: #0f172a;
    --d24-stats-muted: #64748b;
    --d24-stats-line: #dbe2e8;
    --d24-stats-track: #eef2f5;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1200px;
    margin: 52px auto;
    padding: 32px 0 0;
    border-top: 2px solid var(--d24-stats-accent);
    border-bottom: 1px solid var(--d24-stats-line);
    background: #fff;
    color: var(--d24-stats-text);
    font-family: inherit;
}

.d24-stats *,
.d24-stats *::before,
.d24-stats *::after {
    box-sizing: border-box;
}

.d24-stats a {
    color: inherit;
}

.d24-stats__header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--d24-stats-line);
}

.d24-stats__brand-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    color: var(--d24-stats-accent);
}

.d24-stats__title {
    margin: 0;
    color: var(--d24-stats-text);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-transform: none;
}

.d24-stats__subtitle {
    margin: 9px 0 0;
    color: var(--d24-stats-muted);
    font-size: 17px;
    line-height: 1.5;
}

.d24-stats__body {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    min-height: 430px;
}

.d24-stats__total {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    align-self: center;
    width: 280px;
    height: 280px;
    margin: 24px auto;
    color: var(--d24-stats-text);
    text-align: center;
    text-decoration: none;
}

.d24-stats__arc,
.d24-stats__arc::after {
    position: absolute;
    inset: 0;
    border: 12px solid #e8f5f9;
    border-radius: 50%;
    content: "";
}

.d24-stats__arc::after {
    inset: -12px;
    border-color: var(--d24-stats-accent) var(--d24-stats-accent) transparent transparent;
    transform: rotate(-35deg);
}

.d24-stats__total-value {
    position: relative;
    z-index: 1;
    color: var(--d24-stats-accent-dark);
    font-size: clamp(68px, 7vw, 92px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.d24-stats__total-label {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding-bottom: 16px;
    color: var(--d24-stats-text);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.15;
}

.d24-stats__total-label::after {
    position: absolute;
    right: 24%;
    bottom: 0;
    left: 24%;
    height: 2px;
    background: var(--d24-stats-accent);
    content: "";
}

.d24-stats__content {
    min-width: 0;
    border-left: 1px solid var(--d24-stats-line);
}

.d24-stats__time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--d24-stats-line);
}

.d24-stats__time {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 174px;
    padding: 28px 30px 25px;
    border-right: 1px solid var(--d24-stats-line);
    color: var(--d24-stats-accent-dark);
    text-decoration: none;
}

.d24-stats__time:last-child {
    border-right: 0;
}

.d24-stats__time-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: var(--d24-stats-accent-dark);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
}

.d24-stats__time-label svg {
    flex: 0 0 26px;
}

.d24-stats__time-value {
    align-self: end;
    margin-top: 16px;
    color: var(--d24-stats-text);
    font-size: 47px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.045em;
}

.d24-stats__time-line {
    position: absolute;
    right: 48px;
    bottom: 23px;
    left: 30px;
    height: 2px;
    background: currentColor;
    opacity: 0.9;
}

.d24-stats__time--today,
.d24-stats__time--today .d24-stats__time-label {
    color: var(--d24-stats-today);
}

.d24-stats__arrow {
    position: absolute;
    right: 22px;
    bottom: 13px;
    display: inline-flex;
    color: currentColor;
}

.d24-stats__lower {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.d24-stats__group {
    min-width: 0;
    padding: 28px 28px 22px;
}

.d24-stats__group--areas {
    border-left: 1px solid var(--d24-stats-line);
}

.d24-stats__group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px;
    color: var(--d24-stats-text);
    font-size: 20px;
    font-weight: 850;
    line-height: 1.2;
}

.d24-stats__group-title svg {
    flex: 0 0 28px;
    color: var(--d24-stats-accent);
}

.d24-stats__rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.d24-stats__rows li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--d24-stats-line);
}

.d24-stats__rows li:last-child {
    border-bottom: 0;
}

.d24-stats__row {
    display: grid;
    min-height: 47px;
    align-items: center;
    gap: 9px;
    color: var(--d24-stats-accent-dark);
    text-decoration: none;
}

.d24-stats__rows--types .d24-stats__row {
    grid-template-columns: minmax(115px, 1.1fr) 24px minmax(70px, 1fr) 34px;
}

.d24-stats__rows--areas .d24-stats__row {
    grid-template-columns: 22px minmax(92px, 0.8fr) 24px minmax(72px, 1.25fr) 34px;
}

.d24-stats__row-label {
    min-width: 0;
    color: var(--d24-stats-accent-dark);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: underline;
    text-decoration-color: rgba(14, 143, 176, 0.55);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.d24-stats__row-arrow {
    display: inline-flex;
    justify-content: center;
    color: var(--d24-stats-accent);
}

.d24-stats__rank {
    color: var(--d24-stats-text);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.d24-stats__bar {
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--d24-stats-track);
}

.d24-stats__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--d24-stats-accent);
}

.d24-stats__row-value {
    justify-self: end;
    color: var(--d24-stats-text);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.d24-stats__footer {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 8px;
    border-top: 1px solid var(--d24-stats-line);
}

.d24-stats__freshness,
.d24-stats__all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.d24-stats__freshness {
    color: var(--d24-stats-muted);
    font-size: 14px;
}

.d24-stats__freshness svg,
.d24-stats__all-link svg {
    color: var(--d24-stats-accent);
    flex: 0 0 auto;
}

.d24-stats__all-link {
    min-height: 44px;
    color: var(--d24-stats-accent-dark);
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
}

.d24-stats a:hover .d24-stats__row-label,
.d24-stats__all-link:hover {
    color: var(--d24-stats-text);
}

.d24-stats a:focus-visible {
    outline: 3px solid var(--d24-stats-accent);
    outline-offset: 4px;
}

.d24-stats-page {
    width: calc(100% - 32px);
    max-width: 1200px;
    margin: 34px auto 64px;
    color: #0f172a;
}

.d24-stats-page__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

.d24-stats-page__breadcrumbs a {
    color: #087694;
}

.d24-stats-page__hero {
    position: static;
    z-index: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    padding: 34px 0 30px;
    border-top: 2px solid #0e8fb0;
    border-bottom: 1px solid #dbe2e8;
    background: #fff;
}

.d24-stats-page__hero h1 {
    max-width: 920px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-transform: none;
}

.d24-stats-page__hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.65;
}

.d24-stats-page__count {
    display: inline-block;
    margin-top: 22px;
    color: #087694;
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.d24-stats-page__empty {
    margin: 42px 0;
    padding: 28px 0;
    border-top: 1px solid #dbe2e8;
    border-bottom: 1px solid #dbe2e8;
    color: #475569;
    font-size: 17px;
}

.d24-stats-page__empty a {
    color: #087694;
    font-weight: 750;
}

.d24-stats-page__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 36px 0 0;
}

.d24-stats-page__pagination a,
.d24-stats-page__pagination span {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #087694;
    font-weight: 750;
    text-decoration: none;
}

.d24-stats-page__pagination span {
    color: #475569;
    font-weight: 600;
}

@media (max-width: 980px) {
    .d24-stats__body {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .d24-stats__total {
        width: 220px;
        height: 220px;
    }

    .d24-stats__time {
        padding-right: 22px;
        padding-left: 22px;
    }

    .d24-stats__time-line {
        left: 22px;
    }

    .d24-stats__lower {
        grid-template-columns: 1fr;
    }

    .d24-stats__group--areas {
        border-top: 1px solid var(--d24-stats-line);
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .d24-stats {
        width: calc(100% - 24px);
        margin: 34px auto;
        padding-top: 22px;
    }

    .d24-stats__header {
        align-items: flex-start;
        gap: 14px;
        padding-bottom: 22px;
    }

    .d24-stats__brand-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .d24-stats__title {
        font-size: clamp(27px, 8.5vw, 35px);
    }

    .d24-stats__subtitle {
        margin-top: 6px;
        font-size: 15px;
    }

    .d24-stats__body {
        display: block;
        min-height: 0;
    }

    .d24-stats__total {
        width: 250px;
        height: 250px;
        margin: 28px auto;
    }

    .d24-stats__arc,
    .d24-stats__arc::after {
        border-width: 10px;
    }

    .d24-stats__arc::after {
        inset: -10px;
    }

    .d24-stats__total-value {
        font-size: 76px;
    }

    .d24-stats__total-label {
        font-size: 21px;
    }

    .d24-stats__content {
        border-top: 1px solid var(--d24-stats-line);
        border-left: 0;
    }

    .d24-stats__time-grid {
        display: block;
    }

    .d24-stats__time {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 24px;
        min-height: 82px;
        align-items: center;
        padding: 14px 4px;
        border-right: 0;
        border-bottom: 1px solid var(--d24-stats-line);
    }

    .d24-stats__time:last-child {
        border-bottom: 0;
    }

    .d24-stats__time-label {
        gap: 10px;
        font-size: 15px;
    }

    .d24-stats__time-value {
        align-self: center;
        margin: 0;
        font-size: 30px;
    }

    .d24-stats__time-line {
        display: none;
    }

    .d24-stats__arrow {
        position: static;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .d24-stats__lower {
        display: block;
    }

    .d24-stats__group {
        padding: 26px 4px 18px;
        border-top: 1px solid var(--d24-stats-line);
    }

    .d24-stats__group-title {
        margin-bottom: 12px;
        font-size: 20px;
    }

    .d24-stats__rows--types .d24-stats__row {
        grid-template-columns: minmax(112px, 1.15fr) 24px minmax(68px, 1fr) 34px;
    }

    .d24-stats__rows--areas .d24-stats__row {
        grid-template-columns: 20px minmax(86px, 0.9fr) 22px minmax(65px, 1.15fr) 32px;
    }

    .d24-stats__row {
        min-height: 52px;
        gap: 6px;
    }

    .d24-stats__row-label,
    .d24-stats__rank {
        font-size: 13px;
    }

    .d24-stats__row-arrow svg {
        width: 19px;
        height: 19px;
    }

    .d24-stats__footer {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 18px 4px 14px;
    }

    .d24-stats__all-link {
        width: 100%;
        justify-content: space-between;
    }

    .d24-stats-page {
        width: calc(100% - 24px);
        margin-top: 24px;
    }

    .d24-stats-page__hero {
        padding: 26px 0 24px;
    }

    .d24-stats-page__hero h1 {
        font-size: clamp(29px, 9vw, 40px);
    }

    .d24-stats-page__count {
        font-size: 52px;
    }
}

@media (max-width: 380px) {
    .d24-stats__brand-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .d24-stats__title {
        font-size: 25px;
    }

    .d24-stats__subtitle {
        font-size: 14px;
    }

    .d24-stats__total {
        width: 226px;
        height: 226px;
    }

    .d24-stats__total-value {
        font-size: 68px;
    }

    .d24-stats__time-label {
        font-size: 14px;
    }

    .d24-stats__time-label svg {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    .d24-stats__rows--types .d24-stats__row {
        grid-template-columns: minmax(105px, 1.2fr) 20px minmax(55px, 0.9fr) 30px;
    }

    .d24-stats__rows--areas .d24-stats__row {
        grid-template-columns: 18px minmax(82px, 1fr) 18px minmax(48px, 0.9fr) 28px;
    }

    .d24-stats__bar {
        height: 7px;
    }

    .d24-stats__row-value {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .d24-stats * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
