.history-nav-wrapper {
    position: relative;
    margin-top: 71px;
    margin-bottom: 60px;
}

.history-nav-wrapper::before,
.history-nav-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    pointer-events: none;
    z-index: 2;
}

.history-nav-wrapper::before {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.history-nav-wrapper::after {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.history-nav {
    overflow: hidden;
    position: relative;
    padding: 9px 0 0;
}

.history-nav::before {
    content: "";
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    top: 25px;
    left: 0;
    position: absolute;
}

.history-nav-container {
    display: flex;
    touch-action: pan-y pinch-zoom;
    gap: 51px;
    position: relative;
}

.year-slide.timeline .time-step {
    width: calc(100% + 121px);
    height: 4px;
    background: var(--color-blue);
    top: 16px;
    left: 22px;
    position: absolute;
}

.year-slide .time-step {
    width: calc(100% + 100px);
    height: 4px;
    background: #e2e8f0;
    top: 16px;
    left: 50%;
    position: absolute;
}

.year-slide:last-child .time-step {
    display: none;
}

.year-slide {
    font-size: 24px;
    color: var(--color-black);
    position: relative;
    padding: 35px 0 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.year-slide::before {
    content: "";
    width: 21px;
    height: 21px;
    border-radius: 31px;
    background: #b6cbe6;
    position: absolute;
    top: 7px;
    left: 50%;
    margin-left: -10.5px;
    z-index: 1;
    transition: all 0.3s ease;
}

.year-slide:hover {
    color: #333;
}

.year-slide.is-active {
    padding: 41px 0 0;
    /* font-size: 32px; */
}

.year-slide .time-year {
    transform: scale(1);
}

.year-slide.is-active .time-year {
    color: var(--color-blue);
    font-weight: bold;
    transform: scale(1.1);
}

.year-slide.timeline::before {
    background: var(--color-blue);
}

.year-slide.is-active::before {
    top: 0;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    background: var(--color-blue);
}

.year-slide.is-active::after {
    content: "";
    border-radius: 31px;
    width: 10px;
    height: 10px;
    top: 12px;
    left: 50%;
    margin-left: -5px;
    background: #ffffff;
    position: absolute;
    z-index: 1;
    transition: all 0.3s ease;
}

.year-slide.timeline {
}

.buttonYearNav {
    position: absolute;
    z-index: 10;
    top: 50%;
    margin-top: -41px;
    width: 48px;
    height: 48px;
    border-radius: 50px;
    background-color: var(--color-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buttonYearNav:hover {
    background-color: var(--color-grey-dark);
}

.buttonYearNav .arrow {
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #ffffff;
}

.prev.buttonYearNav .arrow {
    transform: rotate(180deg);
}

.prev.buttonYearNav {
    left: 0;
}

.next.buttonYearNav {
    right: 0;
}

/* Контент истории */
.history-content-wrapper {
    position: relative;
}

.history-content {
    overflow: hidden;
}

.history-content-container {
    display: flex;
    touch-action: pan-y pinch-zoom;
}

.content-slide {
    flex: 0 0 100%;
}

.content-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.content-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.content-image {
    width: 50%;
    height: 501px;
    border-radius: 20px;
    float: left;
    margin: 0 35px 14px 0;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопки навигации */
.history-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: 30px;
}

.nav-button-year {
    color: var(--color-white);
}

.nav-button:hover:not(:disabled) {
    background: var(--color-grey-dark);
}

.nav-button:disabled {
    opacity: 0;
}

.nav-button.prev {
}

.nav-button.next {
}

.nav-button-arrow {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #ffffff;
}

.prev .nav-button-arrow {
    transform: rotate(180deg);
}

.nav-button-text {
    display: flex;
    flex-direction: column;
}

/* Индикаторы для навигации */
.history-nav-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.nav-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-indicator.is-active {
    background: #2c3e50;
    transform: scale(1.2);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-slide {
    animation: fadeIn 0.5s ease;
}


@media (max-width: 1024px) {
    .year-slide{
        font-size: 18px;
    }
    .year-slide.is-active{
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .content-image {
        width: 100%;
        float: unset;
        margin: 0 0 20px;
    }
}

@media (max-width: 576px) {
    .history-nav-container {
        gap: 28px;
    }
    .content-image {
        height: 410px;
    }
}