/* =========================================
   СТРАНИЦА "О КОМПАНИИ" (ИСТОРИЯ И ОБОРУДОВАНИЕ)
   Адаптировано под стиль side_menu.css
========================================= */
.history-page {
    font-family: var(--font-base);
    padding-bottom: 80px;
    min-height: 100vh;
    background-color: #ffffff; 
}

/* Секция Таймлайна */
.timeline-section {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

/* Центральная линия */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #e5e5e5; 
    transform: translateX(-50%);
}

/* Контейнеры карточек */
.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 40px;
}

/* Центральные точки */
.timeline-dot {
    position: absolute;
    top: 24px;
    width: 16px;
    height: 16px;
    background-color: #9a599c; 
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #e5e5e5;
    z-index: 4;
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

/* Карточка истории */
.timeline-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: #ffffff;
    border: 1px solid #ebdbe9;
    border-radius: 14px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
    overflow: hidden !important;
}

.timeline-card:hover {
    box-shadow: 0 10px 28px rgba(147, 96, 152, 0.12);
    border-color: #df1b53;
}

.timeline-item.left .timeline-card {
    margin-right: 0;
}

.timeline-item.right .timeline-card {
    margin-left: 0;
}

/* ========================================================
   ФРЕЙМ ГОДА: ПОЛНОЕ БЕСШОВНОЕ ЗАПОЛНЕНИЕ ПАТТЕРНОМ НА ВСЮ ШИРИНУ
   ======================================================== */
.timeline-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 18px 24px !important;
    cursor: pointer;
    user-select: none;
    background-color: #fff9fa !important;
    position: relative !important;
    z-index: 2;
    transition: background-color 0.25s ease;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Стилизованный паттерн заполняет абсолютно 100% ширины фрейма */
.timeline-header::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('/assets/img/logo_watermark.svg') !important;
    background-repeat: repeat !important;
    background-size: 75px !important;
    background-position: center !important;
    opacity: 0.85 !important;
    mix-blend-mode: multiply !important;
    z-index: 1 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease;
}

/* Активное состояние и ховер карточки */
.timeline-card:hover .timeline-header,
.timeline-card.active .timeline-header {
    background-color: #fff0f3 !important; 
}

.timeline-card:hover .timeline-header::after,
.timeline-card.active .timeline-header::after {
    opacity: 1 !important; 
}

/* Заголовок года расположен слева */
.timeline-year {
    font-family: var(--font-title) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #df1b53 !important; 
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    background: transparent !important;
    transition: color 0.2s ease;
    position: relative !important;
    z-index: 2 !important;
    display: inline-block !important;
}

.timeline-card:hover .timeline-year,
.timeline-card.active .timeline-year {
    color: #fb5a6c !important;
}

/* Стрелочка шеврона расположена строго справа */
.timeline-chevron {
    color: #df1b53 !important; 
    transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important; 
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.timeline-card:hover .timeline-chevron,
.timeline-card.active .timeline-chevron {
    background-color: #df1b53 !important;
    color: #ffffff !important;
}

/* Тело аккордеона (скрытый контент) */
.timeline-body {
    width: 100% !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #ffffff !important; 
    position: relative;
    z-index: 2;
    box-sizing: border-box !important;
}

.timeline-content {
    padding: 16px 25px 25px 25px !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: #333333 !important;
    border-top: 1px dashed #ebdbe9 !important;
    box-sizing: border-box !important;
}

.timeline-card.active .timeline-chevron {
    transform: rotate(180deg) !important;
}

/* ========================================================
   СЕКЦИЯ "ФАБРИКА ПОЛНОГО ЦИКЛА": ВЫКЛЮЧКА ТЕКСТА ПО ЛЕВОЙ СТОРОНЕ
   ======================================================== */
.equipment-section {
    max-width: 1200px;
    margin: 80px auto 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.equipment-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.equipment-header h2 {
    font-family: var(--font-title);
    font-size: 36px;
    color: #4a3c5a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.equipment-header p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Карточки цехов: строгая выключка по левой стороне */
.equipment-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 35px 28px;
    text-align: left !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    box-sizing: border-box;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(147, 96, 152, 0.08);
    background-color: #fffbfe; 
    border-color: #f8e1e5;
}

/* Анимированные векторные иконки цехов */
.equipment-card .icon-svg-wrapper {
    width: 120px;
    height: 120px;
    position: relative;
    cursor: pointer;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.equipment-card .icon-svg-wrapper svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.equipment-card .thread-path {
    stroke: #955A94;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round; 
    stroke-linejoin: round; 
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawThreadContinuousAbout 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: filter 0.3s ease, stroke 0.3s ease;
}

.equipment-card .accent-sparkle {
    fill: #bca0ba;
    animation: floatSparkleAbout 4s ease-in-out infinite; 
    transition: all 0.3s ease;
}

.equipment-card .sparkle-top-left {
    transform-origin: 15px 23px; 
}

.equipment-card .sparkle-bottom-right {
    transform-origin: 95px 85px;
    animation-delay: 1.5s;
}

.equipment-card .sparkle-top-right {
    transform-origin: 92px 18px; 
}

.equipment-card .sparkle-bottom-left {
    transform-origin: 18px 85px;
    animation-delay: 1.5s;
}

/* Реакция на наведение (Hover) */
.equipment-card:hover .icon-svg-wrapper,
.equipment-card .icon-svg-wrapper:hover {
    transform: scale(1.08) translateY(-3px);
}

.equipment-card:hover .thread-path,
.equipment-card .icon-svg-wrapper:hover .thread-path {
    stroke: #df1b53;
    filter: drop-shadow(0 0 6px rgba(223, 27, 83, 0.5));
}

.equipment-card:hover .accent-sparkle,
.equipment-card .icon-svg-wrapper:hover .accent-sparkle {
    fill: #df1b53;
    animation: spinSparkleAbout 1s linear infinite;
}

/* Ключевые кадры анимаций иконок */
@keyframes drawThreadContinuousAbout {
    0% { stroke-dashoffset: 800; opacity: 0; }
    5% { opacity: 1; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    60% { stroke-dashoffset: 0; opacity: 1; }
    95% { opacity: 1; }
    100% { stroke-dashoffset: -800; opacity: 0; }
}

@keyframes floatSparkleAbout {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-4px) scale(1.1); }
}

@keyframes spinSparkleAbout {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(180deg) scale(1.2); }
}

.equipment-card h3 {
    font-family: var(--font-title);
    font-size: 22px;
    color: #4a3c5a;
    margin: 0 0 12px 0;
    text-align: left !important;
    width: 100%;
}

.equipment-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #555555;
    margin: 0;
    text-align: left !important;
    width: 100%;
}

/* Адаптивность для планшетов и смартфонов */
@media screen and (max-width: 992px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item.left, 
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
        right: auto;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }
}