

/* Start:/company/history/style.css?17809354475832*/
.history-section {
    max-width: 1280px;
    margin: 0 auto;
}

/* Заголовок секции */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2c7da0;
    background: #e0f2fe;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f2b3a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: #4a627a;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========= TIMELINE - ВСЕ КАРТОЧКИ СПРАВА ========= */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Вертикальная линия СЛЕВА (не посередине) */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #cbd5e1, #2c7da0, #cbd5e1);
    border-radius: 3px;
}

/* Каждый элемент таймлайна - все выравниваем вправо */
.timeline-item {
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 3.5rem;
    width: 100%;
}

/* Все карточки контента - справа, на всю доступную ширину */
.timeline-content {
    width: 100%;
    background: white;
    border-radius: 24px;
    padding: 1.6rem 2rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eef2f8;
    position: relative;
    margin-left: 60px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    border-color: #cbdde9;
}

/* Год */
.year {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f6e8c, #2c7da0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f2b3a;
}

.timeline-content p {
    color: #334e68;
    line-height: 1.55;
    font-size: 0.95rem;
}

/* Кружок-маркер на линии - теперь у всех ОДИНАКОВО слева */
.timeline-dot {
    position: absolute;
    top: 30px;
    left: 22px;
    /* Отступ от левого края */
    width: 16px;
    height: 16px;
    background: #2c7da0;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #e2e8f0;
    z-index: 2;
}

/* Убираем старые стили для чётных/нечётных */
.timeline-item:nth-child(odd) .timeline-dot,
.timeline-item:nth-child(even) .timeline-dot {
    left: 22px;
    right: auto;
    transform: none;
}

/* Убираем разное выравнивание для чётных элементов */
.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

/* Декоративная иконка */
.timeline-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Адаптив для планшетов и мобильных */
@media (max-width: 800px) {
    
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-end;
        padding-left: 0;
        margin-bottom: 2rem;
    }

    .timeline-content {
        width: 100%;
        padding: 1.2rem 1.5rem;
    }

    .timeline-dot {
        left: 12px;
        top: 24px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .year {
        font-size: 1.4rem;
    }
}

/* Для очень больших экранов — центрируем блок истории */
@media (min-width: 1400px) {
    .history-section {
        max-width: 1400px;
    }
    
    .timeline-content {
        width: 100%;
    }
}

/* Декоративные элементы */
.quote-block {
    margin-top: 4rem;
    background: linear-gradient(120deg, #eef2ff, #ffffff);
    border-radius: 32px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #e2edf7;
}

.quote-block p {
    font-size: 1.25rem;
    font-style: italic;
    color: #1f4e6e;
    font-weight: 450;
    max-width: 750px;
    margin: 0 auto 1rem;
}

.quote-author {
    font-weight: 600;
    color: #2c7da0;
}

hr {
    margin: 3rem 0 1rem;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}

/* Анимация появления */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
/* End */
/* /company/history/style.css?17809354475832 */
