/* --- СОВРЕМЕННЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ АУДИТА СКЛАДА --- */

/* Введение и типографика */
.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}
.accent-text {
    color: #fca311;
    font-weight: 700;
}

/* Карточки решений (Soft UI) */
.audit-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}
.audit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(57, 46, 201, 0.15);
}
.audit-card-img {
    height: 220px;
    overflow: hidden;
}
.audit-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.audit-card:hover .audit-card-img img {
    transform: scale(1.08);
}
.audit-card-body {
    padding: 30px 25px;
    text-align: center;
}
.audit-card-title {
    color: #392ec9;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Современные списки (вместо стандартных точек) */
.modern-list {
    list-style: none;
    padding-left: 0;
}
.modern-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}
.modern-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: #e8eaf6;
    color: #392ec9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Анимированные счетчики (Блок Результаты) */
.counter-box {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    height: 100%;
}
.counter-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}
.counter-number {
    font-size: 4rem;
    font-weight: 800;
    color: #fca311;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}
.counter-prefix {
    font-size: 2rem;
    margin-right: 5px;
    color: #fff;
}
.counter-symbol {
    font-size: 2.5rem;
    margin-left: 5px;
    color: #fff;
}
.counter-text {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    margin: 0;
}

/* CTA Секция внизу */
.cta-overlay {
    background: linear-gradient(rgba(20, 33, 61, 0.85), rgba(20, 33, 61, 0.85)), url('../images/3PL.jpg') center/cover no-repeat;
    padding: 100px 0;
}
.btn-modern {
    background: #fca311;
    color: #fff;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(252, 163, 17, 0.3);
}
.btn-modern:hover {
    background: #e08e0b;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(252, 163, 17, 0.4);
    color: #fff;
}
/* =========================================
   СТИЛІ ДЛЯ СТОРІНКИ АУДИТУ (B2B ДИЗАЙН)
   ========================================= */

.hero-b2b {
    position: relative;
    padding: 120px 0 80px;
}
.hero-b2b::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(20, 33, 61, 0.9) 0%, rgba(57, 46, 201, 0.7) 100%);
    z-index: 1;
}
.hero-b2b .container { position: relative; z-index: 2; }

.b2b-metrics-section {
    background-color: #14213d;
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 5;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.metric-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}
.metric-card:hover { transform: translateY(-5px); }
.metric-icon {
    font-size: 40px;
    color: #fca311;
    margin-bottom: 15px;
}
.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}
.metric-title {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card-b2b {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    border-top: 4px solid #392ec9;
    transition: box-shadow 0.3s;
}
.info-card-b2b:hover { box-shadow: 0 15px 40px rgba(57,46,201,0.1); }
.info-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #444;
    font-size: 15px;
}
.info-list li::before {
    content: '\e5ca'; /* Якщо немає іконки check у icomoon, використовуй стандартну з бібліотеки або ✔ */
    font-family: 'icomoon';
    position: absolute;
    left: 0;
    top: 2px;
    color: #fca311;
    font-size: 18px;
}

.timeline-b2b {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 50px 0;
}
.timeline-b2b::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}
.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}
.step-number {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 3px solid #392ec9;
    color: #392ec9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(57, 46, 201, 0.2);
}
.timeline-step:hover .step-number {
    background: #392ec9;
    color: #ffffff;
    transform: scale(1.1);
}
.step-title { font-weight: 700; color: #14213d; margin-bottom: 10px; font-size: 18px; }
.step-desc { color: #666; font-size: 14px; line-height: 1.6; }

@media (max-width: 768px) {
    .timeline-b2b { flex-direction: column; }
    .timeline-b2b::before { display: none; }
    .timeline-step { margin-bottom: 40px; }
}

/* Impact Cards (Замість таблиці) */
.impact-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #fca311;
    height: 100%;
}
.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(57, 46, 201, 0.1);
}
.impact-number {
    font-size: 40px;
    font-weight: 900;
    color: rgba(57, 46, 201, 0.15);
    margin-right: 20px;
    line-height: 1;
}
.impact-text {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    flex-grow: 1;
    padding-right: 15px;
}
.impact-value {
    font-size: 24px;
    font-weight: 700;
    color: #392ec9;
    white-space: nowrap;
}

/* CTA Banner */
.cta-banner-b2b {
    background: linear-gradient(135deg, #392ec9 0%, #14213d 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(57, 46, 201, 0.3);
    margin: 60px 0;
}
.cta-btn-b2b {
    background: #fca311;
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(252, 163, 17, 0.3);
    margin-top: 20px;
}
.cta-btn-b2b:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(252, 163, 17, 0.4);
    background: #e5930f;
}

/* =========================================
   НОВІ СЕКЦІЇ ТА АНІМАЦІЇ АУДИТУ (B2B)
   ========================================= */

/* Карточки "Что мы предлагаем" */
.service-card-b2b {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    border-top: 4px solid #392ec9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card-b2b:hover { 
    box-shadow: 0 15px 40px rgba(57,46,201,0.15); 
    transform: translateY(-5px);
}
.img-zoom-wrapper {
    overflow: hidden;
    border-radius: 8px;
}
.img-zoom-wrapper img {
    transition: transform 0.5s ease;
}
.service-card-b2b:hover .img-zoom-wrapper img {
    transform: scale(1.05);
}

/* Стилизация списков с чекбоксами */
.info-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}
.info-list li::before {
    content: '\e5ca'; /* Иконка галочки из icomoon */
    font-family: 'icomoon';
    position: absolute;
    left: 0;
    top: 2px;
    color: #fca311;
    font-size: 16px;
}

/* =========================================
   ДИНАМИЧЕСКИЕ CSS АНИМАЦИИ (ЛЕВИТАЦИЯ)
   ========================================= */

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes float-reverse {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating-img {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.floating-img-reverse {
    animation: float-reverse 7s ease-in-out infinite;
    will-change: transform;
}
/* =========================================
   DYNAMIC HERO BLOCK (GLASSMORPHISM)
   ========================================= */
.dynamic-hero {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Можно изменить высоту по желанию */
    display: flex;
    align-items: center;
    background-color: #14213d; /* Резервный цвет, если картинка не загрузится */
    overflow: hidden;
}

.dynamic-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    /* Если хочешь добавить легкий параллакс, можно раскомментировать: */
    /* background-attachment: fixed; */ 
}

.dynamic-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Градиент, чтобы текст читался лучше */
    background: linear-gradient(135deg, rgba(20, 33, 61, 0.9) 0%, rgba(57, 46, 201, 0.5) 100%);
    z-index: 2;
}

.dynamic-hero-content {
    position: relative;
    z-index: 3; /* Поверх оверлея и картинки */
}

/* Glassmorphism Cards */
.glass-stats-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end; /* Выравнивание карточек по правому краю */
}

.glass-card {
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный белый */
    backdrop-filter: blur(10px); /* Размытие фона */
    -webkit-backdrop-filter: blur(10px); /* Для Safari */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая рамка */
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateX(-10px); /* Анимация при наведении */
    background: rgba(255, 255, 255, 0.15);
}

.glass-number {
    font-size: 48px;
    font-weight: 900;
    color: #fca311;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(252, 163, 17, 0.4);
}

.glass-text {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Адаптив для Glass Cards на мобильных */
@media (max-width: 991px) {
    .glass-stats-wrapper {
        align-items: center; /* На мобильных по центру */
        margin-top: 40px;
    }
    .glass-card {
        max-width: 100%; /* Карточки на всю ширину на мобильных */
        text-align: center; /* Центруем текст */
    }
}

/* =========================================
   FAQ ACCORDION - B2B PREMIUM STYLE
   ========================================= */
.b2b-faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Відстань між картками */
}

.b2b-faq-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 4px solid #392ec9; /* Корпоративний синій */
    overflow: hidden;
    transition: all 0.3s ease;
}

.b2b-faq-item:hover {
    box-shadow: 0 10px 30px rgba(57, 46, 201, 0.08);
    border-left-color: #fca311; /* Зміна на корпоративний помаранчевий */
    transform: translateY(-2px);
}

.b2b-faq-item.active {
    border-left-color: #fca311;
    box-shadow: 0 10px 30px rgba(252, 163, 17, 0.08);
    transform: translateY(0);
}

.b2b-faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.faq-q-text {
    font-size: 18px;
    font-weight: 600;
    color: #14213d;
    transition: color 0.3s ease;
    padding-right: 20px;
}

.b2b-faq-item:hover .faq-q-text,
.b2b-faq-item.active .faq-q-text {
    color: #392ec9;
}

.faq-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #392ec9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.b2b-faq-item:hover .faq-icon-wrap {
    background: #fca311;
    color: #ffffff;
}

.b2b-faq-item.active .faq-icon-wrap {
    background: #fca311;
    color: #ffffff;
    transform: rotate(135deg); /* Плавне перетворення плюса на хрестик */
}

.b2b-faq-answer {
    max-height: 0;
    opacity: 0;
    padding: 0 30px;
    transition: all 0.4s ease-in-out;
}

.b2b-faq-item.active .b2b-faq-answer {
    padding-bottom: 25px;
    opacity: 1;
}

.b2b-faq-answer p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Елегантний розділювач */
    padding-top: 20px;
}

/* =========================================
   PREMIUM INTRO BLOCK
   ========================================= */
.b2b-premium-intro {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 30px;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.b2b-premium-intro:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

/* Градієнтна лінія зліва */
.b2b-premium-intro::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(180deg, #392ec9 0%, #fca311 100%);
}

.intro-icon-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(57, 46, 201, 0.06);
    color: #392ec9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.intro-title {
    color: #14213d;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.intro-highlight {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 3px solid #fca311;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    line-height: 1.6;
}

/* Адаптація для мобільних телефонів */
@media (max-width: 768px) {
    .b2b-premium-intro {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
    .intro-title {
        font-size: 22px;
    }
}

/* =========================================
   SVG WAREHOUSE VERTICAL ANIMATION (SMOOTH & OFF-SCREEN)
   ========================================= */
.animated-warehouse-scene {
    width: 100%;
}

/* Збільшили цикл до 16 секунд для плавності */
.anim-agv-vertical {
    animation: moveTruckVertical 16s infinite ease-in-out;
}
.anim-carriage-vertical {
    animation: liftCarriage 16s infinite ease-in-out;
}
.anim-box-shelf {
    animation: shelfBox 16s infinite;
}
.anim-box-forks {
    animation: forksBox 16s infinite;
}
.anim-beacon {
    animation: flashBeacon 0.8s infinite alternate;
}

/* 1. Навантажувач реалістично їздить туди-сюди ЗА МЕЖІ екрана */
@keyframes moveTruckVertical {
    0% { transform: translateX(-900px); }     /* Старт глибоко зліва за екраном */
    15%, 35% { transform: translateX(0); }    /* Під'їхав і стоїть (забирає вантаж) */
    50% { transform: translateX(-900px); }    /* Поїхав з вантажем за екран */
    65%, 85% { transform: translateX(0); }    /* Повернувся з вантажем і стоїть */
    100% { transform: translateX(-900px); }   /* Поїхав пустим */
}

/* 2. Підйомний механізм (чітко синхронізовано із зупинкою) */
@keyframes liftCarriage {
    0%, 15% { transform: translateY(0); }           /* Вила внизу */
    20%, 30% { transform: translateY(-260px); }     /* Вила вгорі біля полиці */
    35%, 65% { transform: translateY(0); }          /* Вила опущені */
    70%, 80% { transform: translateY(-260px); }     /* Вила знову вгорі */
    85%, 100% { transform: translateY(0); }         /* Вила опущені */
}

/* 3. Логіка появи/зникнення вантажу (створює ефект завантаження) */
@keyframes shelfBox {
    0%, 25% { opacity: 1; }         /* Коробка стоїть на полиці */
    25.01%, 75% { opacity: 0; }     /* Коробку забрали (її немає на полиці) */
    75.01%, 100% { opacity: 1; }    /* Коробку повернули на полицю */
}

@keyframes forksBox {
    0%, 25% { opacity: 0; }         /* Вила пусті */
    25.01%, 75% { opacity: 1; }     /* Вантаж на вилах (везе) */
    75.01%, 100% { opacity: 0; }    /* Вила знову пусті */
}

/* 4. Пульсація мигалки */
@keyframes flashBeacon {
    0% { fill: #fca311; opacity: 0.7; }
    100% { fill: #ef4444; opacity: 1; }
}

/* =========================================
   FULL-WIDTH WAREHOUSE BLOCK (CSS)
   ========================================= */

/* Вирівнювання висоти та центрування (тільки для десктопів) */
@media (min-width: 768px) {
    .row-eq-height {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        flex-wrap: wrap;
        /* Зменшуємо мінімальну висоту ряду на 30% */
        min-height: 280px; /* БУЛО 400px */
    }
    
    .row-eq-height > [class*='col-'] {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Графічний блок займає нову фіксовану висоту */
    .animated-warehouse-scene-full {
        width: 100%;
        /* Зменшуємо висоту самої картинки на 30% */
        height: 280px; /* БУЛО 400px */
        overflow: visible; 
    }
    .animated-warehouse-svg {
        height: 100% !important; 
        width: 100% !important;
        display: block;
    }
}

/* Прибираємо внутрішній відступ зліва для колонки з графікою */
.no-gutters-left {
    padding-left: 0 !important;
}

/* На мобільних пристроях повертаємо стандартні відступи */
@media (max-width: 767px) {
    .no-gutters-left {
        padding-left: 15px !important;
    }
    /* Вимикаємо вирівнювання висоти на мобільних */
    .row-eq-height {
        display: block;
    }
}

/* =========================================
   FULL-WIDTH WAREHOUSE BLOCK (CSS) - FIXED HEIGHT
   ========================================= */

/* Вирівнювання висоти та центрування (тільки для десктопів) */
@media (min-width: 768px) {
    .row-eq-height {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        flex-wrap: wrap;
        /* Фіксуємо висоту всього ряду, щоб він не розтягувався */
        min-height: 400px; /* Приблизно NATURAL HEIGHT нашої картинки */
    }
    
    .row-eq-height > [class*='col-'] {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Центруємо вміст кожної колонки по вертикалі */
    }
    
    /* Графічний блок займає фіксовану висоту (400px) */
    .animated-warehouse-scene-full {
        width: 100%;
        height: 400px; /* <--- ЦЕЙ РЯДОК ЗМЕНШУЄ І ФІКСУЄ ВИСОТУ КАРТИНКИ */
        overflow: visible; /* Дозволяє виїзд за межі */
    }
    .animated-warehouse-svg {
        height: 100% !important; /* SVG займає всю висоту батька (400px) */
        width: 100% !important;
        display: block;
        /* preventAspectRatio: slice, щоб картинка не стискалася */
    }
}

/* Прибираємо внутрішній відступ зліва для колонки з графікою */
.no-gutters-left {
    padding-left: 0 !important;
}

/* На мобільних пристроях повертаємо стандартні відступи */
@media (max-width: 767px) {
    .no-gutters-left {
        padding-left: 15px !important;
    }
    /* Вимикаємо вирівнювання висоти та фіксовану висоту на мобільних */
    .row-eq-height {
        display: block;
        min-height: auto;
    }
    .animated-warehouse-scene-full {
        height: auto;
    }
}


/* =========================================
   SVG ANIMATION (UPDATED FOR FULL-WIDTH)
   ========================================= */

/* Оновлені класи анімації */
.anim-agv-vertical-full {
    animation: moveTruckVerticalFull 16s infinite ease-in-out;
}
.anim-carriage-vertical-full {
    animation: liftCarriageFull 16s infinite ease-in-out;
}

/* Мигалка та коробки залишаються зі старими анімаціями */
.anim-beacon {
    animation: flashBeacon 0.8s infinite alternate;
}
.anim-box-shelf {
    animation: shelfBox 16s infinite;
}
.anim-box-forks {
    animation: forksBox 16s infinite;
}


/* 1. Навантажувач від'їжджає ДАЛЕКО за лівий край монітора */
@keyframes moveTruckVerticalFull {
    0% { transform: translateX(-1200px); }    /* Глибоко за лівим краєм монітора */
    15%, 35% { transform: translateX(0); }    /* Під'їхав до стелажа */
    50% { transform: translateX(-1200px); }    /* Поїхав геть (за екран) */
    65%, 85% { transform: translateX(0); }    /* Повернувся до стелажа */
    100% { transform: translateX(-1200px); }   /* Знову поїхав */
}

/* 2. Вертикальний підйом вил (без змін) */
@keyframes liftCarriageFull {
    0%, 15% { transform: translateY(0); }        /* Внизу */
    20%, 30% { transform: translateY(-260px); }  /* Піднялись на 3-й ярус */
    35%, 65% { transform: translateY(0); }       /* Опустились */
    70%, 80% { transform: translateY(-260px); }  /* Знову піднялись */
    85%, 100% { transform: translateY(0); }      /* Опустились */
}

/* Ефект появи/зникнення коробок (без змін) */
@keyframes shelfBox {
    0%, 25% { opacity: 1; }
    25.01%, 75% { opacity: 0; }
    75.01%, 100% { opacity: 1; }
}
@keyframes forksBox {
    0%, 25% { opacity: 0; }
    25.01%, 75% { opacity: 1; }
    75.01%, 100% { opacity: 0; }
}

/* Пульсація мигалки (без змін) */
@keyframes flashBeacon {
    0% { fill: #fca311; opacity: 0.7; }
    100% { fill: #ef4444; opacity: 1; }
}


    .process-b2b-section {
        background-color: #14213d; /* Глибокий синій/чорний колір бренду */
        position: relative;
        overflow: hidden;
    }
    .process-b2b-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 40px 30px;
        height: 100%;
        position: relative;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .process-b2b-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.06);
        border-color: #fca311;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(252, 163, 17, 0.05);
    }
    .process-b2b-num {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 80px;
        font-weight: 900;
        color: rgba(255, 255, 255, 0.04);
        line-height: 1;
        transition: color 0.4s ease;
        z-index: -1;
    }
    .process-b2b-card:hover .process-b2b-num {
        color: rgba(252, 163, 17, 0.15);
    }
    .process-b2b-icon {
        width: 65px;
        height: 65px;
        background: rgba(57, 46, 201, 0.3);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 25px;
        font-size: 28px;
        color: #fca311;
        transition: all 0.4s ease;
        border: 1px solid rgba(252, 163, 17, 0.2);
    }
    .process-b2b-card:hover .process-b2b-icon {
        background: #fca311;
        color: #14213d;
        transform: scale(1.1) rotate(5deg);
        border-color: #fca311;
    }
    .process-b2b-card h3 {
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }
    .process-b2b-card p {
        color: #94a3b8;
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 0;
    }
    /* Горизонтальна лінія з'єднання для десктопів */
    @media (min-width: 992px) {
        .process-timeline-wrap { position: relative; }
        .process-timeline-wrap::before {
            content: '';
            position: absolute;
            top: 72px;
            left: 12%;
            right: 12%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(252, 163, 17, 0.3), transparent);
            z-index: 0;
            border-top: 2px dashed rgba(255,255,255,0.1);
        }
    }

    /* Віджети GPS на карті Транспортної логістики */
.gps-status-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #14213d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.gps-counter-box {
    position: absolute;
    bottom: 25px;
    background: #14213d;
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 140px;
    z-index: 10;
}

.gps-counter-box.left { 
    left: 25px; 
    border-bottom: 4px solid #fca311; 
}

.gps-counter-box.right { 
    right: 25px; 
    border-bottom: 4px solid #392ec9; 
}

.gps-label { 
    font-size: 11px; 
    color: #94a3b8; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-bottom: 3px; 
}

.gps-value { 
    font-size: 22px; 
    font-weight: 800; 
    color: #fff; 
}

.gps-value span {
    color: #fca311;
}

    
        /* Анимация самой ленты конвейера */
        .moving-belt {
            stroke-dasharray: 20 20; /* длина штриха и пробела */
            animation: slideBelt 1s linear infinite;
        }
        @keyframes slideBelt {
            from { stroke-dashoffset: 40; }
            to { stroke-dashoffset: 0; }
        }

        /* Пульсирующая зеленая точка статуса */
        .pulse-dot-active {
            display: inline-block;
            width: 10px;
            height: 10px;
            background: #22c55e;
            border-radius: 50%;
            margin-right: 8px;
            animation: greenPulse 1.5s infinite;
        }
        @keyframes greenPulse {
            0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
            70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }
    
/* --- Секція детального антикризового управління --- */
.crisis-detailed-section {
  padding: 100px 0;
  background-color: #ffffff; /* Чистий білий фон для корпоративного стилю */
  overflow: hidden; /* Важливо для анімацій виїзду з-за меж екрану */
}

/* Вирівнювання тексту по ширині для строгості */
.text-justify {
  text-align: justify;
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
}

/* Стилізація маркованого списку */
.crisis-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.crisis-features-list li {
  font-size: 1.05rem;
  color: #0b192c;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  font-weight: 500;
}

.check-icon {
  color: #fca311;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 15px;
  background: rgba(252, 163, 17, 0.1);
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Анімації появи блоків (Синхронно назустріч один одному) --- */
.crisis-text-box {
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.3s forwards;
}

.crisis-svg-box {
  opacity: 0;
  animation: slideInRight 1s ease-out 0.3s forwards;
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-80px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(80px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* --- Магія SVG (Блок-схема) --- */
.animated-flowchart {
  width: 100%;
  max-width: 450px; /* Оптимальний розмір для правої колонки */
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.05)); /* М'яка тінь для всього графіка */
}

/* Ефект малювання пунктирних ліній */
.flow-line {
  stroke-dasharray: 15;
  animation: drawDashedLine 2s linear infinite;
}

@keyframes drawDashedLine {
  0% { stroke-dashoffset: 30; }
  100% { stroke-dashoffset: 0; }
}

/* Пульсація центрального вузла (Ромба) */
.pulse-node {
  transform-origin: center;
  animation: pulseSvg 3s ease-in-out infinite;
}

@keyframes pulseSvg {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(252, 163, 17, 0)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(252, 163, 17, 0.6)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(252, 163, 17, 0)); }
}

/* Легке паріння нижніх блоків-рішень */
.float-node-1 { animation: floatSvg 4s ease-in-out infinite; }
.float-node-2 { animation: floatSvg 4s ease-in-out infinite 2s; } /* Затримка для асинхронності */

@keyframes floatSvg {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* =========================================================
   СЕКЦІЯ: ВИБІР ПОСТАЧАЛЬНИКА (Темний корпоративний фон)
   ========================================================= */

.provider-selection-section {
  padding: 100px 0;
  background: #0b192c !important; /* Примусово ставимо темно-синій фон */
  background-color: #0b192c !important;
  color: #ffffff !important;
  overflow: hidden;
}

/* Текст та списки всередині темної секції */
.provider-text-justify {
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #a0aec0; /* Світло-сірий колір тексту для кращої читабельності на темному фоні */
}

.provider-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.provider-features-list li {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  font-weight: 500;
}

/* Анімації появи блоків */
.provider-svg-box {
  opacity: 0;
  animation: providerSlideInLeft 1s ease-out 0.3s forwards;
}

.provider-text-box {
  opacity: 0;
  animation: providerSlideInRight 1s ease-out 0.3s forwards;
}

@keyframes providerSlideInLeft {
  0% { opacity: 0; transform: translateX(-80px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes providerSlideInRight {
  0% { opacity: 0; transform: translateX(80px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* --- Магія SVG (Схема воронки) --- */
.animated-funnel {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.funnel-line {
  stroke-dasharray: 15;
  animation: providerDrawLine 2s linear infinite;
}

@keyframes providerDrawLine {
  0% { stroke-dashoffset: 30; }
  100% { stroke-dashoffset: 0; }
}

/* Анімації паріння для вузлів */
.funnel-node.float-node-1 { animation: providerFloat 4s ease-in-out infinite; }
.funnel-node.float-node-2 { animation: providerFloat 4s ease-in-out infinite 1s; }
.funnel-node.float-node-3 { animation: providerFloat 4s ease-in-out infinite 2s; }
.funnel-node.pulse-node { animation: providerPulse 3s ease-in-out infinite; transform-origin: center; }

@keyframes providerFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes providerPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* --- Специфічні стилі для сучасної B2B панелі керування "Досвід" --- */

/* Новий Скляний Віджет-Картка */
.modern-b2b-widget {
    background: rgba(255, 255, 255, 0.7) !important; /* Напівпрозорий білий */
    border: 1px solid rgba(255, 255, 255, 0.5) !important; /* Біла тонка рамка */
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important; /* Легка тінь глибини */
    backdrop-filter: blur(8px); /* Ефект матового скла (frosted glass) */
    transition: all 0.3s ease;
    overflow: hidden; /* Щоб діаграми не виходили за межі */
    position: relative; /* Для фонових елементів */
}

/* Ефекти при наведенні */
.modern-b2b-widget:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px); /* Легке підняття */
}

/* Акцентні рамки при hover */
.modern-b2b-widget.accent-primary:hover {
    border: 1px solid rgba(57, 46, 201, 0.3) !important; /* Синя рамка при hover */
}

.modern-b2b-widget.accent-secondary:hover {
    border: 1px solid rgba(252, 163, 17, 0.3) !important; /* Помаранчева рамка при hover */
}

/* Модулі віджета */
.widget-head {
    position: relative;
    z-index: 2; /* Щоб текст був над фоном */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03); /* Дуже субтильна роздільна лінія */
    padding-bottom: 15px;
}

/* Коробка для Іконки */
.modern-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-primary-light { background: rgba(57, 46, 201, 0.06) !important; }
.bg-secondary-light { background: rgba(252, 163, 17, 0.06) !important; }

/* Цифри та Заголовки */
.widget-number {
    font-size: 28px !important; /* Чітка, велика цифра */
    color: #333;
}

.widget-title {
    font-size: 14px !important;
    line-height: 1.4;
}

/* --- СУБТИЛЬНІ ФОНОВІ ВІЗЕРУНКИ (CSS Плейсхолдери для діаграм) --- */
.flex-grow-1 { flex-grow: 1; } /* Для вирівнювання placeholders */

/* Проекти: Легка Лінійна Діаграма */
.subtle-background-line {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1; /* Під текстом */
    opacity: 0.15; /* ДУЖЕ НИЗЬКА НЕПРОЗОРІСТЬ — майже невидима */
}

.chart-line-bg {
    fill: none;
    stroke: rgba(57, 46, 201, 0.2); /* Легкий синій */
    stroke-width: 2;
}

.chart-point-accent {
    fill: #392ec9; /* Синій акцентний вузол */
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
}

/* Автоматизація: Інфографіка Потоку */
.subtle-flowchart-placeholder {
    opacity: 0.15; /* Також низька непрозорість */
}

.flow-gate {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(57, 46, 201, 0.1);
}

.gate-initial { background: rgba(57, 46, 201, 0.1); }
.gate-automation-core { background: rgba(57, 46, 201, 0.3); border-radius: 50%; } /* Основний вузол */
.gate-result { background: rgba(57, 46, 201, 0.1); }

.flow-connector {
    height: 2px;
    background: rgba(57, 46, 201, 0.1);
}

.connector-solid { width: 15%; }
.connector-dashed {
    width: 15%;
    border-top: 2px dashed rgba(57, 46, 201, 0.1);
    background: none;
}

/* Години: Карта/Хронологія */
.subtle-background-map {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1; /* Під текстом */
    opacity: 0.15; /* Низька непрозорість */
}

.map-point-accent {
    fill: #fca311; /* Помаранчева точка Замовника */
}

/* Анімоване пульсування для точок карти */
.active-accent-pulse {
    animation: accentPointPulse 3s infinite ease-in-out;
}

@keyframes accentPointPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* =========================================
   СЕКЦІЯ: Планування (Стабільний B2B Дизайн)
   ========================================= */

.b2b-planning-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f4f7fa; /* Легкий контрастний фон для виділення білих карток */
}

/* Заголовок блоками */
.b2b-heading-blocks {
    font-size: 30px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-heading-blocks .block-dark {
    background-color: #1a202c;
    color: #ffffff;
    padding: 4px 14px;
    display: inline-block;
    margin-bottom: 8px;
    border-radius: 4px;
}

.b2b-heading-blocks .block-light {
    color: #1a202c;
    padding: 4px 0;
    display: inline-block;
}

/* Текст зліва */
.b2b-text-main {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* Блок гарантії */
.b2b-guarantee-card {
    background-color: #eab308; /* Акцентний золотий/помаранчевий */
    color: #ffffff;
    padding: 24px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.3);
}

.guarantee-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.guarantee-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    opacity: 0.95;
}

/* --- КАРТКИ (Права колонка) --- */
.b2b-feature-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    height: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.b2b-feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Іконки всередині карток */
.icon-wrap {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.orange-icon { color: #eab308; }
.blue-icon { color: #392ec9; }

/* Текст всередині карток */
.box-title {
    color: #1e293b;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.box-text {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 0;
}