:root {
    --accent-color: #E76828;
    --text-main: #252B42;
    --shadow: 0 13px 19px rgba(0,0,0,0.07);
}

.history { 
    padding: 40px 0; 
}

/* Навигация: кнопки на всю ширину с переносом */
.history__nav { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-bottom: 30px; 
    width: 100%;
	padding-top: 20px;
}

.history__year {
    flex: 1;
    min-width: 100px;
    padding: 12px 10px;
    border: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--text-main);
}

.history__year.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.history__year:hover:not(.active) {
    background-color: #f5f5f5;
    border-color: var(--accent-color);
}

/* Основной блок контента */
.history__content {
    position: relative; /* Для позиционирования кнопки */
    display: flex;
    gap: 30px;
    align-items: center; /* КАРТИНКА ТЕПЕРЬ ВСЕГДА ПО ЦЕНТРУ ТЕКСТА */
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 40px 38px;
    box-shadow: var(--shadow);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Стили кнопки паузы */
.history__control {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.history__control:hover {
    transform: scale(1.1);
}

.history__control svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: all 0.3s ease;
}

/* Адаптив: на мобилках картинка сверху, текст снизу */
@media (max-width: 992px) {
    .history__content {
        flex-direction: column; /* Картинка сверху для баланса */
        align-items: center;
        padding: 25px;
    }
    .history__image-wrapper {
        width: 100%;
        max-width: 500px;
    }
}


/* Состояние при переключении (скрыто) */
.history__content.changing {
    opacity: 0;
    transform: translateY(10px);
}

.history__info { 
    flex: 1.2; 
}

.history__info-title { 
    font-size: 36px; 
    margin-bottom: 15px; 
    color: var(--accent-color); 
}

.history__info-text {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
    min-height: 80px; /* Подберите значение под ваш шрифт */
}

.history__info-list { 
    list-style: none; 
    padding: 0; 
    margin-bottom: 30px; 
}

.history__info-list li { 
    position: relative; 
    padding-left: 20px; 
    margin-bottom: 12px; 
    font-size: 15px; 
    color: #555;
}

.history__info-list li::before { 
    content: "•"; 
    color: var(--accent-color); 
    position: absolute; 
    left: 0; 
    font-weight: bold; 
    font-size: 18px;
}

.history__more {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #004a80;
    color: #004a80;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.history__more:hover {
    background: #004a80;
    color: #fff;
}

/* Блок с изображением и эффектом увеличения */
.history__image-wrapper {
    flex: 1;
    height: 300px;
    border-radius: 15px;
    overflow: hidden; 
    background: #eee;
    position: relative;
    box-shadow: var(--shadow);
}

.history__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history__image-wrapper:hover .history__img {
    transform: scale(1.15); /* Увеличение фото */
}

/* --- АДАПТИВ --- */

@media (max-width: 992px) {
    .history__content { 
        flex-direction: column-reverse; 
        padding: 20px;
    }
    
    .history__image-wrapper { 
        width: 100%;
        height: 300px; 
    }

}

@media (max-width: 768px) {
    .history__year { 
        min-width: calc(33.33% - 10px); /* По 3 в ряд */
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .history__year { 
        min-width: calc(50% - 10px); /* По 2 в ряд */
    }
    
    .history__info-title {
        font-size: 28px;
    }
}
.news__progress {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px; /* Отступ от блока контента */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.news__progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    /* Убираем стандартный transition, будем управлять им через JS для точности */
}
