/* Базовые стили (актуальны ДО 768px) */
.image-history {
    max-width: 100%;
    height: 100%;
    border-radius: 10px;
}

.history-main {
    border: 1px solid white;
    border-radius: 10px;
    margin-top: 24px;
}

.columns-container {
    display: flex;
    align-items: stretch;
    gap: 24px;
    flex-direction: column; /* Для мобильной версии колонки вертикально */
}

.history-column,
.history-column-test,
.history-column-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F4F3EF;
    border-radius: 10px;
    order: 2;
}

/* Изменение порядка: сначала картинка, потом текст */
.history-column-image {
    order: 1; /* Картинка первой */
}

.history-column-test {
    padding: 15px;
}

.text-content {
    color: #6F6F6F;
    margin-bottom: 15px;
}

/* buttons */
.content-slide__buttons-group {
    display: flex;
    height: auto;
    align-items: center;
    margin-top: auto;
}

.content-slide__button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-slide__button:not(:disabled) {
    --content-slide-icon-arrow-color: #222;
}

.content-slide__button-icon-slot {
    border-radius: 100px;
    padding: 5px;
    transition: background-color 0.15s ease-in-out;
}

.content-slide__button--left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.content-slide__button--right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.content-slide__buttons-group--light-yellow .content-slide__button {
    background-color: #FFFFFF;
}

.content-slide__buttons-group--light-yellow .content-slide__button:not(:disabled):hover .content-slide__button-icon-slot {
    background-color: #F4F3EF;
}

.content-slide__button svg {
    width: 32px;
    height: 32px;
}

/* Timeline */
.timeline-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
    -ms-touch-action: pan-x;
}

.timeline-container::-webkit-scrollbar {
    display: none;
}

.timeline {
    list-style: none;
    padding: 0;
    margin-top: -110px;
    justify-content: space-between;
    align-items: center;
    position: relative;
    display: flex;
    width: max-content;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 0;
    width: 5000px;
    height: 1px;
    background-color: #B9B9B9;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.timeline-item {
    flex-shrink: 0;
    width: auto !important;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 25px;
    text-align: center;
    white-space: nowrap;
    position: relative;
    z-index: 3;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0px;
}

.point {
    width: 20px;
    height: 20px;
    background-color: #B9B9B9;
    border-radius: 50%;
    margin-bottom: 40px;
    position: relative;
    top: 35px;
    z-index: 4;
    pointer-events: auto;
    margin-left: 52px;
}

.year {
    font-size: 40px;
    color: #B9B9B9;
    font-weight: normal;
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.timeline-item.active .point {
    background-color: #000;
}

.timeline-item.active .year {
    color: #539E53;
}

.buttons-wrapper-history {
    display: flex;
    background: white;
    border-radius: 38px;
    padding: 5px;
}

.content-slide__button--left {
    margin-right: 2px;
}

.content-slide__button--right {
    margin-left: 2px;
}

.content-slide__buttons-group--light-yellow .content-slide__button:not(:disabled):hover {
    background-color: #F4F3EF;
}

.content-slide__buttons-group--light-yellow .content-slide__button:not(:disabled):hover .content-slide__button-icon-slot {
    background-color: transparent;
}

.content-slide__button.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 576px) {
    .year {
        font-size: 50px;
    }

    .point {
        margin-left: 50px;
    }
}

@media (min-width: 768px) {
    .year {
        font-size: 60px;
    }

    .point {
        margin-left: 62px;
    }
}
/* Medium devices (планшеты, ≥ 768px) */
@media (min-width: 994px) {
    .history-column-test {
        padding: 30px;
    }

    .text-content {
        margin-bottom: 20px;
    }

    .year {
        font-size: 74px;
    }

    .point {
        margin-left: 77px;
    }

    .columns-container {
        flex-direction: row;
        gap: 24px;
    }

    /* Сбрасываем порядок для десктопной версии */
    .history-column-image,
    .history-column-test,
    .history-column {
        order: 0; /* Возвращаем исходный порядок */
    }
}


/* X-Large devices (большие десктопы, ≥ 1200px) */
@media (min-width: 1200px) {

}

/* XX-Large devices (≥ 1400px) - БАЗОВЫЕ СТИЛИ */
@media (min-width: 1400px) {
    .year {
        font-size: 84px;
    }

    .point {
        margin-left: 87px;
    }
}
