@charset "UTF-8";

/**
 * Блок "Масштаб работы Encar Russia в реальных цифрах" на главной.
 *
 * Самодостаточный компонент: все токены объявлены локально,
 * внешние стили темы не наследуются.
 */

.scale_stats {
    --scale_stats__red: #c8102e;
    --scale_stats__red_dark: #b00d27;
    --scale_stats__green: #157f3b;
    --scale_stats__dark: #16191e;
    --scale_stats__dark_border: #262b34;
    --scale_stats__light_border: #e2e5e9;
    --scale_stats__light_border_hover: #b8c0cc;
    --scale_stats__text: #0f1115;
    --scale_stats__muted: #6b7280;
    --scale_stats__radius: 12px;

    width: 100%;
    padding: 48px 0;
}

/* ------------------------------------------------------------------ */
/* Шапка секции                                                       */
/* ------------------------------------------------------------------ */

.scale_stats_header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 24px;
}

.scale_stats_head_text {
    min-width: 0;
}

.scale_stats_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--scale_stats__red);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.scale_stats_eyebrow_dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--scale_stats__red);
}

/*
Типографика заголовка не переопределяется: используется общий h2 темы,
как и на прочих экранах главной. Здесь только отступ от надзаголовка.
*/
.scale_stats_head_text h2 {
    margin: 4px 0 0;
}

.scale_stats_disclaimer {
    flex: 0 0 auto;
    color: var(--scale_stats__muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Сетка карточек                                                     */
/* ------------------------------------------------------------------ */

.scale_stats_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.scale_stats_card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 212px;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: var(--scale_stats__radius);
}

/* Темы карточек */

.scale_stats_card__light {
    border-color: var(--scale_stats__light_border);
    background-color: #fff;
    color: var(--scale_stats__text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scale_stats_card__light:hover {
    border-color: var(--scale_stats__light_border_hover);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.scale_stats_card__dark {
    border-color: var(--scale_stats__dark_border);
    background-color: var(--scale_stats__dark);
    color: #fff;
}

.scale_stats_card__accent {
    border-color: var(--scale_stats__red_dark);
    background-color: var(--scale_stats__red);
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* Содержимое карточки                                                */
/* ------------------------------------------------------------------ */

.scale_stats_card_body {
    min-width: 0;
}

.scale_stats_card_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.scale_stats_card_number {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.scale_stats_card__light .scale_stats_card_number {
    color: #6b7280;
}

.scale_stats_card__dark .scale_stats_card_number {
    color: rgba(255, 255, 255, 0.6);
}

.scale_stats_card__accent .scale_stats_card_number {
    color: rgba(255, 255, 255, 0.8);
}

.scale_stats_badge {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.scale_stats_badge__success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.scale_stats_badge__neutral {
    background-color: #f3f4f6;
    color: #374151;
}

.scale_stats_badge__warn {
    background-color: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.scale_stats_badge__accent {
    background-color: #fef2f2;
    color: var(--scale_stats__red);
}

.scale_stats_badge__strong {
    background-color: rgba(0, 0, 0, 0.25);
    color: #fff;
}

/* Бейдж на насыщенном фоне карточки: белая плашка, зеленый текст */
.scale_stats_badge__solid {
    background-color: #fff;
    color: var(--scale_stats__green);
}

.scale_stats_card_value {
    color: var(--scale_stats__text);
    font-size: 30px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.scale_stats_card_value__highlight {
    color: #fbbf24;
}

.scale_stats_card__dark .scale_stats_card_value {
    color: #fff;
}

.scale_stats_card__dark .scale_stats_card_value__highlight {
    color: #fbbf24;
}

.scale_stats_card__accent .scale_stats_card_value {
    color: #fff;
}

.scale_stats_card_caption {
    margin-top: 6px;
    color: var(--scale_stats__text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.scale_stats_card__dark .scale_stats_card_caption {
    color: #e7e5e4;
}

/* Ссылка внутри подписи: наследует размер и вес текста, выделяется цветом */
.scale_stats_caption_link {
    color: var(--scale_stats__red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.scale_stats_caption_link:hover {
    color: var(--scale_stats__red_dark);
}

.scale_stats_card__dark .scale_stats_caption_link {
    color: #fb7185;
}

.scale_stats_card__dark .scale_stats_caption_link:hover {
    color: #fda4af;
}

.scale_stats_card__accent .scale_stats_caption_link {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

.scale_stats_card__accent .scale_stats_card_caption {
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* Подвал карточки                                                    */
/* ------------------------------------------------------------------ */

.scale_stats_card_footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--scale_stats__light_border);
    font-size: 12px;
    line-height: 1.4;
}

.scale_stats_card__dark .scale_stats_card_footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.scale_stats_card__accent .scale_stats_card_footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.scale_stats_card_footer__wave,
.scale_stats_card_footer__link,
.scale_stats_card_footer__action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.scale_stats_card_footer_text {
    min-width: 0;
    color: var(--scale_stats__muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.scale_stats_card__dark .scale_stats_card_footer_text {
    color: rgba(255, 255, 255, 0.65);
}

.scale_stats_card__accent .scale_stats_card_footer_text {
    color: rgba(255, 255, 255, 0.9);
}

/* Телеметрия */

.scale_stats_wave {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
}

.scale_stats_wave_bar {
    display: block;
    width: 6px;
    border-radius: 2px 2px 0 0;
    transform-origin: bottom;
    animation: scale_stats_telemetry 2s ease-in-out infinite;
}

.scale_stats_wave_bar__1 {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    animation-duration: 1.8s;
}

.scale_stats_wave_bar__2 {
    height: 16px;
    background-color: rgba(255, 255, 255, 0.5);
    animation-duration: 2.4s;
    animation-delay: 0.3s;
}

.scale_stats_wave_bar__3 {
    height: 20px;
    background-color: #fbbf24;
    animation-duration: 2.1s;
    animation-delay: 0.6s;
}

.scale_stats_wave_bar__4 {
    height: 24px;
    background-color: var(--scale_stats__red);
    animation-duration: 1.6s;
    animation-delay: 0.9s;
}

/* На красной карточке красный столбик теряется */
.scale_stats_card__accent .scale_stats_wave_bar__4 {
    background-color: #fff;
}

@keyframes scale_stats_telemetry {

    0%,
    100% {
        transform: scaleY(0.6);
    }

    50% {
        transform: scaleY(1.1);
    }
}

/* Ссылка */

.scale_stats_card_link {
    flex: 0 0 auto;
    color: var(--scale_stats__red);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.scale_stats_card_link:hover {
    text-decoration: underline;
}

/* Ссылка внутри текста подвала: идет потоком, как продолжение фразы */
.scale_stats_footer_link {
    color: var(--scale_stats__red);
    font-weight: 600;
    text-decoration: none;
}

.scale_stats_footer_link:hover {
    text-decoration: underline;
}

/* На темной карточке красный тускнеет, поэтому ссылка светлее */
.scale_stats_card__dark .scale_stats_footer_link {
    color: #fb7185;
}

/* Прогресс */

.scale_stats_card_footer__progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scale_stats_progress {
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.1);
}

.scale_stats_progress_bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background-color: #22c55e;
}

/* Чипы сроков */

.scale_stats_card_footer__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    font-size: 11px;
    text-align: center;
}

.scale_stats_chip {
    padding: 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.scale_stats_chip__light {
    background-color: #f3f4f6;
    color: var(--scale_stats__text);
}

.scale_stats_chip__dark {
    background-color: var(--scale_stats__dark);
    color: #fff;
}

/* Кнопка действия */

.scale_stats_action {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background-color: var(--scale_stats__red);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.scale_stats_action:hover {
    background-color: var(--scale_stats__red_dark);
}

/* ------------------------------------------------------------------ */
/* Адаптив                                                            */
/* ------------------------------------------------------------------ */

@media only screen and (max-width: 1023px) {
    .scale_stats_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .scale_stats {
        padding: 32px 0;
    }

    .scale_stats_header {
        flex-direction: column;
        align-items: flex-start;
    }

    .scale_stats_disclaimer {
        white-space: normal;
    }
}

@media only screen and (max-width: 639px) {
    .scale_stats_grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Уважение к настройке "меньше движения" */

@media (prefers-reduced-motion: reduce) {
    .scale_stats_wave_bar {
        animation: none;
    }
}