/* ===== СТАТИСТИКА ===== */
.stats-container {
    margin: 60px 0;
    width: 100%;
}

/* Основной ряд - два столбца */
.stats-row {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

/* Левый основной столбец (2/3) */
.stats-col-main {
    flex: 2.6;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Правый боковой столбец (1/3) */
.stats-col-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Контент левой колонки */
.stats-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* Контент правой колонки */
.stats-side-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* Внутренний ряд для верхней части левой колонки */
.stats-row-inner {
    display: flex;
    gap: 20px;
    width: 100%;
    flex: 1;
    flex-wrap: wrap;
}

/* Маленькая колонка (1/2 от верхней части) */
.stats-col-small {
    flex: 1.2;
    min-width: 200px;
    display: flex;
}

/* Большая колонка (1/2 от верхней части) */
.stats-col-large {
    flex: 1;
    min-width: 200px;
    display: flex;
}

/* Вертикальная группа для двух карточек в правой части */
.stats-vertical-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    width: 100%;
}

/* Элемент вертикальной группы */
.stats-vertical-item {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* Полноширинный ряд для нижней карточки */
.stats-row-full {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stats-row-full .stat-card {
    flex: 1;
    min-width: 200px;
}

/* Карточка статистики */
.stat-card {
    background: white;
    border-radius: 25px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(164, 60, 207, 0.15);
}

/* Стили для карточки с фоновым изображением */
.stat-card.has-background {
    color: #433f45;
    position: relative;
    z-index: 1;
}

.stat-card.has-background .stat-description {
    color: #7B777D;
    position: relative;
    z-index: 3;
}

/* Фоновое изображение на всю карточку */
.stat-background-img {
    position: absolute;
    padding: 20px;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

/* Число в карточке - делаем фиолетовым */
.stat-card.has-background .stat-number {
    color: #a43ccf;
    position: relative;
    z-index: 3;
}

/* Плюс - тоже фиолетовый */
.stat-card.has-background .stat-plus {
    color: #a43ccf;
    font-size: 48px;
    font-family: 'Roboto', sans-serif;
    margin-left: 5px;
    line-height: 1;
}

/* Фиолетовая карточка */
.stat-card-purple {
    background: #a43ccf;
    color: white;
    height: 100%;
    min-height: 100%;
    position: relative;
    z-index: 1;
}

.stat-card-purple .stat-number {
    color: white;
}

.stat-card-purple .stat-plus {
    color: white;
    opacity: 1;
}

/* Кнопка в фиолетовой карточке */
.stat-card-button {
    margin-top: 20px;
    z-index: 3;
    position: relative;
}

.stat-card-button .btn-small {
    display: inline-block;
    background: white;
    color: #a43ccf;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.stat-card-button .btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 206, 212, 0.6);
}

/* Число в карточке */
.stat-number {
    font-size: 56px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    line-height: 1;
    position: relative;
    z-index: 3;
    word-break: break-word;
}

.stat-card:not(.stat-card-purple):not(.has-background) .stat-number {
    color: #a43ccf;
}

/* Плюс в числе */
.stat-plus {
    font-size: 48px;
    font-family: 'Roboto', sans-serif;
    color: #a43ccf;
    margin-left: 5px;
    line-height: 1;
}

/* Описание - всегда внизу */
.stat-description {
    font-size: 16px;
    color: #7B777D;
    line-height: 1.4;
    margin-top: auto;
    padding-top: 30px;
    position: relative;
    z-index: 3;
}

.stat-card-purple .stat-description {
    color: #ffffff;
}

/* ===== АДАПТИВ СТАТИСТИКИ ===== */
@media (max-width: 992px) {
    .stats-row {
        flex-direction: column;
    }

    .stats-col-main,
    .stats-col-side {
        flex: 1;
        width: 100%;
    }

    .stats-row-inner {
        flex-direction: column;
    }

    .stats-col-small,
    .stats-col-large {
        flex: 1;
        width: 100%;
    }

    .stats-vertical-group {
        flex-direction: row;
        gap: 20px;
    }

    .stats-vertical-item {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 40px;
    }

    .stat-plus {
        font-size: 32px;
    }

    .stat-description {
        font-size: 14px;
        padding-top: 20px;
    }

    .stat-card-button .btn-small {
        padding: 12px 30px;
        font-size: 14px;
    }

    .stats-vertical-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 32px;
    }

    .stat-plus {
        font-size: 28px;
    }

    .stat-card {
        padding: 20px;
        border-radius: 20px;
    }

    .stat-description {
        font-size: 13px;
    }
}