.glaf_blok {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 20px;
}

.stats-block {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.stats-title {
    color: #42794c;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 600;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stats-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #459353;
    margin: 10px auto 0;
    border-radius: 2px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    padding: 10px;
    animation: countUp 0.8s ease-out forwards;
    opacity: 0;
    position: relative;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #459353;
    margin-bottom: 10px;
    line-height: 1;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    min-width: 80px;
}

/* Для первого элемента (с 2018) добавляем специальный стиль */
.stat-item:nth-child(1) .stat-number {
    position: relative;
    padding-left: 30px;
}

.stat-item:nth-child(1) .stat-number::before {
    content: 'с';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color:  #459353;
    font-weight: 700;
    opacity: 1;
}

.stat-label {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-description {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.5;
}

.history-note {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #ddd;
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

/* Анимация счётчика */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация появления блока */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация пульсации после завершения счёта */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Анимация фона при завершении счёта */
@keyframes highlight {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(69, 147, 83, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

/* Анимация прогресс-бара */
@keyframes progressBar {
    from {
        width: 0;
    }
    to {
        width: 80%;
    }
}

/* Добавляем эффект при наведении */
.stat-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    animation: pulse 0.5s ease;
    color: #2e7d32;
}

/* Добавляем подчёркивание к цифрам */
.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #459353;
    transition: width 0.3s ease;
}

.stat-item:hover .stat-number::after {
    width: 80%;
}

/* Добавляем прогресс-бар под цифрами */
.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #459353, #2e7d32);
    border-radius: 3px;
    transition: width 1.5s ease;
}

.stat-item.animated::after {
    animation: progressBar 2s ease-out forwards;
}

/* Классы для анимации */
.stat-number.highlight {
    animation: highlight 1s ease;
}

/* Планшеты (горизонтальная ориентация) */
@media (max-width: 1024px) {
    .stats-block {
        padding: 40px 30px;
        max-width: 900px;
    }
    
    .stats-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .stat-number {
        font-size: 44px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-item:nth-child(1) .stat-number {
        padding-left: 35px;
    }
}

/* Планшеты (вертикальная ориентация) и большие смартфоны */
@media (max-width: 768px) {
    .stats-block {
        padding: 35px 25px;
        border-radius: 14px;
    }
    
    .stats-title {
        font-size: 28px;
        margin-bottom: 35px;
    }
    
    .stats-title::after {
        width: 60px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 40px;
        min-width: 70px;
    }
    
    .stat-item:nth-child(1) .stat-number {
        padding-left: 33px;
    }
    
    .stat-item:nth-child(1) .stat-number::before {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 17px;
    }
    
    .stat-description {
        font-size: 14px;
    }
    
    .history-note {
        margin-top: 40px;
        padding-top: 25px;
        font-size: 16px;
    }
}

/* Средние смартфоны */
@media (max-width: 600px) {
    .stats-block {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .stats-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stat-item {
        padding: 20px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 42px;
        min-width: 60px;
    }
    
    .stat-item:nth-child(1) .stat-number {
        padding-left: 30px;
    }
    
    .history-note {
        margin-top: 35px;
        padding-top: 20px;
        font-size: 15px;
    }
}

/* Маленькие смартфоны */
@media (max-width: 375px) {
    .stats-block {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    body {
        padding: 15px;
    }
    
    .stats-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .stats-container {
        gap: 25px;
    }
    
    .stat-number {
        font-size: 38px;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    .stat-description {
        font-size: 13.5px;
    }
    
    .history-note {
        margin-top: 30px;
        font-size: 14px;
        padding-top: 20px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .glaf_blok {
        padding: 10px;
    }
    
    .stats-block {
        padding: 25px 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-description {
        font-size: 13px;
    }
}

/* Очень широкие мониторы */
@media (min-width: 1600px) {
    .stats-block {
        max-width: 1400px;
        padding: 60px 50px;
    }
    
    .stats-title {
        font-size: 42px;
        margin-bottom: 60px;
    }
    
    .stats-title::after {
        width: 100px;
        height: 5px;
    }
    
    .stat-number {
        font-size: 56px;
        min-width: 100px;
    }
    
    .stat-item:nth-child(1) .stat-number {
        padding-left: 35px;
    }
    
    .stat-item:nth-child(1) .stat-number::before {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 20px;
    }
    
    .stat-description {
        font-size: 16px;
    }
    
    .history-note {
        font-size: 18px;
        margin-top: 60px;
        padding-top: 35px;
    }
}

/* Высокие экраны */
@media (min-height: 1000px) {
    .stats-block {
        padding: 70px 50px;
    }
    
    .stats-container {
        gap: 50px;
    }
    
    .stat-item {
        padding: 20px;
    }
}