/* ===== ABOUT HISTORY PAGE STYLES ===== */

/* История компании - Основные стили */
.template-abouthistorypage {
    font-family: var(--font-family-primary), sans-serif;
    line-height: 1.6;
}

/* Баннер секция */
.history-banner {
    background: #f1f0ef;
    padding: 80px 20px 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.history-banner-content {
    background: #f1f0ef;
    border: none;
    padding: 0;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    border-radius: 0px 20px 0px 20px;
    border-style: solid;
    border-color: #d6c2b0;
    border-width: 1px;
}

.history-title {
    color: #000000;
    font-family: 'Mulish-SemiBold', sans-serif;
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    padding: 20px;
}

/* Контейнер временной шкалы */
.history-timeline-container {
    background: #f1f0ef;
    position: relative;
    padding: 0 0;
    min-height: auto;
}

/* Центральная линия временной шкалы */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #886c63;
    /* z-index: 1; */
}

/* Элементы временной шкалы */
.timeline-items {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

.timeline-cols {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-col {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 480px;
}

.timeline-col.left {
    align-items: flex-end;
}

.timeline-col.right {
    align-items: flex-start;
}

/* Элементы истории */
.timeline-item {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    margin-bottom: 40px;
    width: 100%;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item-content {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
}

.timeline-item-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Точки на временной линии */
.timeline-point {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #886c63;
    border: 4px solid white;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-item.left .timeline-point {
    right: -38px;
}

.timeline-item.right .timeline-point {
    left: -38px;
}

/* Иконки часов */
.timeline-clock {
    position: absolute;
    top: 15px;
    width: 34px;
    height: 34px;
    background: #886c63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.timeline-item.left .timeline-clock {
    right: -47px;
}

.timeline-item.right .timeline-clock {
    left: -47px;
}

.timeline-clock:hover {
    transform: scale(1.1);
}

.timeline-clock i {
    color: white;
    font-size: 16px;
}

/* Заголовки с годом */
.timeline-year {
    background: #886c63;
    color: white;
    padding: 15px 20px;
    font-family: var(--font-family-primary), sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    border-radius: 8px 8px 0 0;
    position: relative;
}

/* Изображения временной шкалы */
.timeline-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-item-content:hover .timeline-image {
    transform: scale(1.05);
}

/* Текстовый контент */
.timeline-text {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.timeline-title {
    color: #333;
    font-family: var(--font-family-primary), sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.timeline-description {
    color: #666;
    font-family: var(--font-family-primary), sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}



/* Нижний блок */
.history-bottom {
    background: #f1f0ef;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.history-bottom-content {
    background: #f1f0ef;
    border: none;
    padding: 0;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.history-bottom-title {
    color: #000000;
    font-family: var(--font-family-primary), sans-serif;
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 30px;
    line-height: 1.3;
}

.history-bottom-description {
    font-family: var(--font-family-primary), sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    color: #333;
}

.history-bottom-description strong {
    color: #70554e;
    font-weight: 700;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Планшеты */
@media (max-width: 1200px) {
    .timeline-cols {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
    
    .timeline-col {
        width: 100%;
        align-items: center;
        max-width: 600px;
    }
    
    .timeline-line {
        left: 30px;
        transform: none;
    }
    
    .timeline-point {
        display: none;
    }
    
    .timeline-item.left .timeline-clock,
    .timeline-item.right .timeline-clock {
        left: 13px;
        right: auto;
    }
    

}

/* Мобильные устройства */
@media (max-width: 768px) {
    .history-banner {
        padding: 50px 20px 30px 20px;
        min-height: 200px;
    }
    
    .history-title {
        font-size: 28px;
    }
    
    .history-timeline-container {
        padding: 50px 0;
    }
    
    .timeline-line {
        left: 25px;
        width: 3px;
    }
    
    .timeline-items {
        padding: 0 15px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        padding: 0 15px 30px 50px;
        margin-bottom: 20px;
    }
    
    .timeline-item-content {
        width: calc(100vw - 80px);
        max-width: calc(100vw - 80px);
    }
    
    .timeline-clock {
        left: -6px !important;
        top: 8px;
        width: 34px;
        height: 34px;
    }
    

    
    .timeline-year {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .timeline-image {
        height: 200px;
    }
    
    .timeline-title {
        font-size: 20px;
    }
    
    .timeline-description {
        font-size: 14px;
    }
    
    .history-bottom {
        padding: 50px 20px;
    }
    
    .history-bottom-title {
        font-size: 28px;
    }
    
    .history-bottom-description {
        font-size: 16px;
    }
    
    .timeline-col {
        gap: 0px !important;
    }
    
    .timeline-cols {
        display: none !important;
    }
    .timeline-mobile-list {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .timeline-mobile-list {
        display: none !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
    .timeline-item.left,
    .timeline-item.right {
        padding: 0 10px 30px 45px;
    }
    
    .timeline-item-content {
        width: calc(100vw - 65px);
        max-width: calc(100vw - 65px);
    }
    
    .timeline-image {
        height: 180px;
    }
    
    .history-banner-content,
    .history-bottom-content {
        max-width: calc(100vw - 40px);
    }
    
    .timeline-clock {
        left: -22px !important;
    }
    
    .history-title {
        font-size: 24px;
    }
    
    .history-bottom-title {
        font-size: 24px;
    }
}

/* Анимации */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Точки сверху и снизу временной линии */
.timeline-dot-top,
.timeline-dot-bottom {
    position: absolute;
    background-color: #ffffff;
    width: 16px;
    height: 16px;
    left: calc(50% - 8px);
    z-index: 8;
    border: 4px solid #886c63;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-dot-top {
    top: -8px;
}

.timeline-dot-bottom {
    bottom: -8px;
}

@media (max-width: 768px) {
    .timeline-dot-top {
        left: 26px !important;
        transform: translateX(-50%) !important;
        width: 12px !important;
        height: 12px !important;
        background-color: #ffffff !important;
        border: 3px solid #886c63 !important;
        display: block !important;
    }
    
    .timeline-dot-bottom {
        left: 26px !important;
        transform: translateX(-50%) !important;
        width: 12px !important;
        height: 12px !important;
        background-color: #ffffff !important;
        border: 3px solid #886c63 !important;
        display: block !important;
    }
}

@media (min-width: 769px) {
  .timeline-col.right .timeline-item.right:first-child {
    margin-top: 100px;
  }
} 