/* ============================================================================ */
/* ZEMEX TIMELINE - Точно по дизайну Figma */
/* ============================================================================ */

/* СЕКЦИЯ 1: БАЗОВАЯ СТРУКТУРА */
.zemex-timeline-section {
    position: relative;
}

.zemex-timeline-container {
    /* max-width: 1296px; */
    margin: 0 auto;
    padding: 0 64px;
    position: relative;
}

/* СЕКЦИЯ 2: ЗАГОЛОВОК */
.zemex-timeline-title {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #030813;
    text-align: left;
    margin: 0 0 80px 0;
}

/* СЕКЦИЯ 3: LAYOUT СОБЫТИЙ */
.zemex-timeline-events {
    position: relative;
    display: grid;
    grid-template-columns: 700px 48px 2px 48px auto;
    grid-template-areas: "events gap line gap-right image";
    gap: 0;
    align-items: start;
}

.zemex-timeline-events-list {
    grid-area: events;
    display: flex;
    flex-direction: column;
}

.zemex-timeline-event {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    margin-bottom: 100px;
}

.zemex-timeline-event:last-child {
    margin-bottom: 0;
}

/* СЕКЦИЯ 4: КОНТЕНТ СЛЕВА */
.zemex-timeline-content {
    position: relative;
}

.zemex-timeline-content-wrapper {
    max-width: 690px;
    width: 100%;
}

.zemex-timeline-event-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 24px;
    position: relative;
}

/* Заголовок события - точно по Figma */
.zemex-timeline-event-title {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 600; /* DemiBold */
    font-size: 32px;
    line-height: 38px; /* 38.4px из Figma */
    letter-spacing: -0.32px;
    color: #030813;
    text-align: right;
    margin: 0;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Разделитель - точно по Figma */
.zemex-timeline-separator {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 600; /* DemiBold */
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.32px;
    color: #030813;
}

/* Год справа - точно по Figma */
.zemex-timeline-event-year {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 600; /* DemiBold */
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.32px;
    color: #030813;
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.zemex-timeline-event-description {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: #333333;
    text-align: right;
    margin: 0;
    max-width: 575px;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

/* СЕКЦИЯ 5: ЗЕЛЕНАЯ ЛИНИЯ ПОСЕРЕДИНЕ */
.zemex-timeline-line-container {
    grid-area: line;
    position: relative;
    width: 2px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 0;
}

.zemex-timeline-line-bg {
    width: 2px;
    height: 100%;
    min-height: 100%;
    background: #9CA3AF;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}


/* Контейнер для кружков - отдельный слой поверх линии */
.zemex-timeline-circles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.zemex-timeline-circle-wrapper {
    position: absolute;
    left: calc(700px + 48px + 2px + 48px / 2 - 58px); /* Позиционирование на линии */
    width: 66px;
    height: 520px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 100px;
}

.zemex-timeline-circle-wrapper[data-index="0"] {
    top: 0;
}

.zemex-timeline-circle-wrapper[data-index="1"] {
    top: 620px; /* 520px + 100px margin */
}

.zemex-timeline-circle-wrapper[data-index="2"] {
    top: 1240px; /* (520px + 100px) * 2 */
}

.zemex-timeline-circle-wrapper[data-index="3"] {
    top: 1860px; /* (520px + 100px) * 3 */
}

.zemex-timeline-circle-wrapper[data-index="4"] {
    top: 2480px; /* (520px + 100px) * 4 */
}

.zemex-timeline-circle-wrapper[data-index="5"] {
    top: 3100px; /* (520px + 100px) * 5 */
}

/* Невидимый маркер для продления линии */
.zemex-timeline-invisible-marker {
    position: absolute;
    left: calc(606px + 48px + 2px + 48px / 2 - 58px); /* Позиционирование на линии */
    width: 66px;
    height: 66px;
    top: 2500px; /* Оптимальная длина линии */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0; /* Полностью невидимый */
    z-index: -1; /* Под остальными элементами */
}

.zemex-timeline-number-circle.invisible {
    background: transparent !important;
    color: transparent !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Кружки с номерами 66x66 */
.zemex-timeline-number-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    background: #9CA3AF;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    position: relative;
    margin-top: -10px; /* Выравниваем с заголовком */
}

/* Первый кружок зеленый */
.zemex-timeline-number-circle.first-event {
    background: #00BF3F;
    color: #ffffff;
}

/* СЕКЦИЯ 6: ИЗОБРАЖЕНИЕ СПРАВА */
.zemex-timeline-image {
    grid-area: image;
    position: sticky;
    top: 40px;
    align-self: start;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
}

.zemex-timeline-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.zemex-timeline-image-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.zemex-timeline-image-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.zemex-timeline-image-slide.active .zemex-timeline-image-img {
    position: absolute;
}

.zemex-timeline-image-img.active {
    opacity: 1;
}

.zemex-timeline-image-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.zemex-timeline-image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.zemex-timeline-image-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* Хештег в левом верхнем углу */
.zemex-timeline-hashtag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6F737A;
    z-index: 3;
}

.zemex-timeline-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    /* background: rgba(255, 255, 255, 0.95); */
    /* backdrop-filter: blur(12px); */
    -webkit-backdrop-filter: blur(12px);
    /* padding: 16px 20px; */
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.zemex-timeline-image-label {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    max-width: 75%;
}

.zemex-timeline-image-date {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    display: block;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

/* СЕКЦИЯ 7: АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    .zemex-timeline-events {
        grid-template-columns: 1fr 48px 2px 48px auto;
    }
    
    .zemex-timeline-content-wrapper {
        max-width: 100%;
    }
    
    .zemex-timeline-circle-wrapper {
        left: calc(289px + 48px + 2px + 48px / 2 - 58px);
    }
    
    .zemex-timeline-number-circle {
        right: -70px; /* Уменьшаем отступ на планшетах */
    }
}

@media (max-width: 768px) {
    .zemex-timeline-section {
        padding: 60px 0;
    }
    
    .zemex-timeline-container {
        padding: 0;
    }
    
    .zemex-timeline-title {
        font-size: 32px;
        margin-bottom: 40px;
        padding: 0 16px;
    }
    
    .zemex-timeline-events {
        display: block;
        position: relative;
    }
    
    /* Горизонтальный скролл контейнер */
    .zemex-timeline-events-list {
        display: flex;
        flex-direction: row;
        gap: 32px;
        padding: 24px 16px 60px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .zemex-timeline-events-list::-webkit-scrollbar {
        display: none;
    }
    
    /* События в горизонтальном ряду */
    .zemex-timeline-event {
        flex: none;
        width: 280px;
        min-height: auto;
        margin-bottom: 0;
        scroll-snap-align: center;
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.06);
        position: relative;
    }
    
    .zemex-timeline-content {
        width: 100%;
    }
    
    .zemex-timeline-content-wrapper {
        max-width: 100%;
    }
    
    .zemex-timeline-event-header {
        justify-content: center;
        margin-bottom: 16px;
        position: relative;
    }
    
    .zemex-timeline-event-title {
        font-size: 20px;
        line-height: 26px;
        text-align: center;
        order: 1;
    }
    
    .zemex-timeline-separator {
        display: none; /* Убираем разделитель на мобиле */
    }
    
    .zemex-timeline-event-year {
        display: none; /* Скрываем год из заголовка - будет отображаться внизу */
    }
    
    .zemex-timeline-event-description {
        font-size: 13px;
        line-height: 18px;
        text-align: left;
        margin: 0;
    }
    
    /* Кружки с номерами - над карточками */
    .zemex-timeline-circles-container {
        display: none; /* Скрываем абсолютный контейнер на мобильных */
    }
    
    /* Кружки встраиваем прямо в карточки */
    .zemex-timeline-event::before {
        content: attr(data-number);
        position: absolute;
        top: -24px;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        background: #9CA3AF;
        font-variant-numeric: lining-nums tabular-nums;
        font-feature-settings: "lnum" 1, "tnum" 1;
        z-index: 10;
        transition: background-color 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .zemex-timeline-event[data-active="true"]::before {
        background: #00BF3F;
    }
    
    /* Год под карточкой с анимацией столкновения */
    .zemex-timeline-event::after {
        content: attr(data-year);
        position: absolute;
        bottom: -40px;
        left: 40%;
        transform: translateX(-50%);
        font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
        font-size: 24px;
        font-weight: 600;
        color: #9CA3AF;
        z-index: 15;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
        font-variant-numeric: lining-nums tabular-nums;
        font-feature-settings: "lnum" 1, "tnum" 1;
    }
    
    .zemex-timeline-event[data-active="true"]::after {
        color: #00BF3F;
        transform: translateY(-50%) scale(1.3);
    }
    
    /* Анимация столкновения - когда карточка приближается к следующей */
    .zemex-timeline-event.collision-approaching::after {
        transform: translateX(-50%) translateY(-10px) scale(1.05);
        color: #030813;
        font-weight: 700;
    }
    
    .zemex-timeline-event.collision-active::after {
        transform: translateX(-50%) translateY(-15px) scale(1.15);
        color: #00BF3F;
        text-shadow: 0 2px 8px rgba(0, 191, 63, 0.3);
    }
    
    .zemex-timeline-number-circle {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-top: 0;
        position: static;
        transform: none;
    }
    
    /* Горизонтальная прогресс линия */
    .zemex-timeline-line-container {
        position: absolute;
        bottom: 24px;
        left: 16px;
        right: 16px;
        height: 4px;
        width: auto;
        background: transparent;
        border-radius: 2px;
        z-index: 5;
        overflow: hidden;
    }
    
    .zemex-timeline-line-bg {
        width: 100%;
        height: 4px;
        background: #E5E7EB;
        border-radius: 2px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
    
    /* Изображение убираем на мобильных */
    .zemex-timeline-image {
        display: none;
    }
    
    /* Горизонтальная анимированная прогресс линия */
    .zemex-timeline-line-animated {
        position: absolute;
        width: 20%; /* Starting width - will be updated by JS */
        height: 4px;
        left: 0;
        top: 0;
        background: #00BF3F;
        border-radius: 2px;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10; /* Higher z-index to ensure visibility */
    }
}

@media (max-width: 480px) {
    .zemex-timeline-section {
        padding: 40px 0;
    }
    
    .zemex-timeline-title {
        font-size: 24px;
        margin-bottom: 30px;
        padding: 0 12px;
    }
    
    .zemex-timeline-events-list {
        gap: 24px;
        padding: 20px 12px 50px;
    }
    
    .zemex-timeline-event {
        width: 300px;
        padding: 20px;
        margin-bottom: 0;
    }
    
    .zemex-timeline-event-header {
        margin-bottom: 12px;
    }
    
    .zemex-timeline-event-title {
        font-size: 18px;
        line-height: 22px;
        margin-top: 20px;
    }
    
    .zemex-timeline-separator,
    .zemex-timeline-event-year {
        font-size: 18px;
        line-height: 22px;
    }
    
    .zemex-timeline-event-description {
        font-size: 14px;
        line-height: 24px;
    }
    
    /* Обновляем размер кружка для 480px */
    .zemex-timeline-event::before {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: -20px;
    }
    
    .zemex-timeline-line-container {
        bottom: 20px;
        left: 12px;
        right: 12px;
        height: 3px;
    }
    
    .zemex-timeline-line-animated {
        height: 3px !important;
    }
}

/* ============================================================================ */
/* FLIP ЭФФЕКТ ДЛЯ TIMELINE КАРТОЧЕК НА МОБИЛЕ */
/* ============================================================================ */

/* Контейнер для flip эффекта - базовые стили */
.timeline-flip-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 3D эффекты только для мобиле */
@media (max-width: 768px) {
    .timeline-flip-container {
        perspective: 1000px;
        transform-style: preserve-3d;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .timeline-flip-container.flipped {
        transform: rotateY(180deg);
    }
}

/* На desktop убираем 3D эффекты */
@media (min-width: 769px) {
    .timeline-flip-container {
        perspective: none;
        transform-style: flat;
        transition: none;
    }
    
    .timeline-flip-container.flipped {
        transform: none;
    }
}


/* Общие стили для передней и задней части - только на мобиле */
@media (max-width: 768px) {
    .timeline-flip-front,
    .timeline-flip-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 16px;
        overflow: hidden;
    }
}

/* На десктопе убираем абсолютное позиционирование */
@media (min-width: 769px) {
    .timeline-flip-front,
    .timeline-flip-back {
        position: static;
        width: auto;
        height: auto;
        backface-visibility: visible;
        border-radius: 0;
        overflow: visible;
        transform: none;
    }
}

/* Передняя часть карточки - базовые стили */
.timeline-flip-front {
    z-index: 2;
}

/* Задняя часть карточки (новость) - скрыта на desktop */
.timeline-flip-back {
    display: none;
}

/* Transform стили только для мобиле */
@media (max-width: 768px) {
    .timeline-flip-front {
        transform: rotateY(0deg);
    }

    .timeline-flip-back {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.06);
        min-height: 200px;
        transform: rotateY(180deg);
    }
}

/* Стили для новостной карточки */
.timeline-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.timeline-news-image-container {
    position: relative;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.timeline-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-news-hashtag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #6F737A;
    z-index: 3;
}

.timeline-news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.timeline-news-date {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #00BF3F;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    margin: 0;
}

.timeline-news-title {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #030813;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    overflow: hidden;
}

.timeline-news-description {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #6F737A;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.timeline-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-news-category {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #00BF3F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-news-read-time {
    font-family: 'TT Wellingtons', 'Gilroy', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #9CA3AF;
}

/* Стили только для мобильных устройств */
@media (max-width: 768px) {
    /* Добавляем курсор для кликабельных событий */
    .timeline-event-flippable {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
        opacity: 1 !important; /* Всегда видимые на мобиле */
        /* Убираем стандартные стили, так как они теперь применяются к flip-front */
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        min-height: 200px; /* Фиксированная высота для flip карточек */
        height: auto;
    }
    
    .timeline-event-flippable:active {
        transform: scale(0.98);
    }
    
    /* Отключаем анимацию столкновения для flip карточек */
    .timeline-event-flippable.collision-approaching,
    .timeline-event-flippable.collision-active {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    
    .timeline-event-flippable.collision-approaching::after,
    .timeline-event-flippable.collision-active::after {
        transform: translateX(-50%) !important;
        color: #9CA3AF !important;
        font-weight: 600 !important;
        text-shadow: none !important;
    }
    
    /* Стили для flip контейнера на мобиле */
    .timeline-event-flippable .timeline-flip-container {
        min-height: 400px;
        height: 100%;
    }
    
    /* Стили для передней части flip карточки на мобиле */
    .timeline-event-flippable .timeline-flip-front {
        background: #ffffff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.06);
        padding: 24px;
        min-height: 200px;
        display: flex;
        flex-direction: column;
    }
    
    /* Убираем внутренний padding у содержимого */
    .timeline-event-flippable .zemex-timeline-content {
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    /* Обертка содержимого должна занимать все доступное место */
    .timeline-event-flippable .zemex-timeline-content-wrapper {
        width: 100%;
        max-width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Заголовки событий в flip карточках */
    .timeline-event-flippable .zemex-timeline-event-header {
        margin-bottom: 16px;
        text-align: center;
    }
    
    .timeline-event-flippable .zemex-timeline-event-title {
        font-size: 20px;
        line-height: 1.3;
        text-align: center;
        color: #030813;
    }
    
    .timeline-event-flippable .zemex-timeline-event-description {
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
        color: #6F737A;
        margin: 0;
    }
    
    /* Дополнительные стили для desktop версии */
    @media (min-width: 769px) {
        /* Восстанавливаем стандартные стили для desktop */
        .timeline-event-flippable {
            padding: 24px !important;
            background: #ffffff !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            min-height: auto !important;
        }
        
        .timeline-event-flippable .timeline-flip-front {
            background: transparent;
            box-shadow: none;
            border: none;
            padding: 0;
            min-height: auto;
        }
        
        .timeline-event-flippable .zemex-timeline-content {
            padding: 0;
        }
        
        .timeline-event-flippable .zemex-timeline-content-wrapper {
            height: auto;
            justify-content: flex-start;
        }
        
        .timeline-event-flippable .zemex-timeline-event-header {
            justify-content: flex-end;
            text-align: right;
            margin-bottom: 24px;
        }
        
        .timeline-event-flippable .zemex-timeline-event-title {
            font-size: 32px;
            text-align: right;
            color: #030813;
        }
        
        .timeline-event-flippable .zemex-timeline-event-description {
            font-size: 13px;
            text-align: right;
            color: #6F737A;
            max-width: 575px;
        }
    }
}

/* Адаптации для очень маленьких экранов */
@media (max-width: 480px) {
    .timeline-news-image-container {
        height: 210px;
    }
    
    .timeline-news-content {
        padding: 12px;
        gap: 6px;
    }
    
    .timeline-news-title {
        font-size: 14px;
    }
    
    .timeline-news-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .timeline-news-hashtag {
        top: 8px;
        left: 8px;
        font-size: 9px;
        padding: 3px 6px;
    }
}
