
/* =======================================================
   ГЛОБАЛЬНИЙ ПАТЧ ВІД ТРЕМТІННЯ ЕКРАНУ (ANTI-JITTER)
   ======================================================= */

/* 1. Плавний скрол та заборона "гумового" відскоку на iOS (Rubber-banding) */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    overscroll-behavior-y: none; /* Забороняє екрану "відтягуватися" за межі контенту */
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Примусове апаратне прискорення (GPU) для всіх важких або фіксованих елементів.
   Це усуває мерехтіння при скролі на слабких моніторах і телефонах. */
.site-navbar, 
.side-menu, 
.custom-mobile-menu,
.dynamic-hero,
.bg-fixed-parallax {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* 3. Вирішення проблеми мобільного стрибка (Dynamic Viewport).
   Замість 100vh, який стрибає при скролі на iPhone/Android, використовуємо dvh. */
.custom-mobile-menu {
    height: 100dvh; 
    min-height: -webkit-fill-available;
}

/* 4. Вимкнення сірого спалаху при тапі по екрану на мобільних */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 5. Жорстке відключення parallax-фонів на сенсорних пристроях 
   (найчастіша причина епілепсії сайту на iPhone) */
@media (hover: none) and (pointer: coarse) {
    .bg-fixed-parallax,
    .dynamic-hero-bg {
        background-attachment: scroll !important;
        /* Вимикаємо анімацію фону на мобільних для збереження батареї та плавності */
        animation: none !important; 
        transform: translateZ(0) !important;
    }
}

.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

/* --- СКЛЯНА БОКОВА ПАНЕЛЬ --- */
.side-menu-item {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important; 
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}
.side-menu-item:hover {
    background: rgba(252, 163, 17, 0.9) !important; 
    border-color: rgba(252, 163, 17, 1) !important;
    transform: scale(1.1) !important; 
}
.side-menu-item-icon i, .side-menu-item-icon svg { transition: all 0.3s ease; }
.side-menu-item:hover .side-menu-item-icon i, 
.side-menu-item:hover .side-menu-item-icon svg { color: #fff !important; fill: #fff !important; }

/* --- СЕКЦІЯ "ЩО МИ ПРОПОНУЄМО" --- */
.services-section-wrapper { padding: 90px 0; background-color: #ffffff; }
.h-entry {
    background: #fff;
    padding: 30px; 
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}
.h-entry:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(252, 163, 17, 0.3);
}
.h-entry img {
    border-radius: 10px; margin-bottom: 25px; width: 100%; height: 220px; 
    object-fit: cover;
}

/* ЛАКОНІЧНІ КНОПКИ */
.btn-sleek {
    background: transparent !important;
    color: #fca311 !important;
    border: 1px solid #fca311 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    border-radius: 6px !important;
    padding: 12px 25px !important;
    transition: all 0.3s ease !important;
}
.btn-sleek:hover, .btn-sleek:active, .btn-sleek:focus {
    background: #fca311 !important;
    color: #ffffff !important;
    border-color: #fca311 !important;
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.3) !important;
}

/* =======================================================
   НОВЕ ПОВНОЕКРАННЕ МОБІЛЬНЕ МЕНЮ (БУРГЕР)
   ======================================================= */
.mobile-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: 9998;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.mobile-backdrop.active { opacity: 1; visibility: visible; }

.custom-mobile-menu {
    position: fixed; top: 0; right: -100%; 
    width: 100%; 
    height: 100vh;
    min-height: 100vh; 
    background-color: #2b333e; 
    z-index: 9999; display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}
.custom-mobile-menu.active { right: 0; }

.cmm-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 30px; background: transparent; 
}
.cmm-logo { font-size: 22px; font-weight: bold; color: #fff; text-decoration: none; display: flex; align-items: center; }
.cmm-logo svg { margin-right: 10px; }

.cmm-close { 
    background: rgba(255,255,255,0.1); color: #fff; border: none; font-size: 24px;
    width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.cmm-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.cmm-nav { list-style: none; padding: 0; margin: 0 0 30px 0; }
.cmm-nav li { margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.cmm-nav a { color: #fff; font-size: 20px; text-decoration: none; font-weight: 500; display: flex; justify-content: space-between; }
.cmm-nav .cmm-dropdown { list-style: none; padding-left: 20px; margin-top: 15px; display: none; }
.cmm-nav .cmm-dropdown a { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.cmm-nav li.expanded .cmm-dropdown { display: block; }

.cmm-lang { display: flex; gap: 15px; margin-bottom: 40px; }
.cmm-lang a { padding: 8px 20px; border-radius: 8px; font-size: 16px; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); text-decoration: none;}
.cmm-lang a.active { background: #fca311; border-color: #fca311; color: #fff; font-weight: bold; }

.cmm-contacts { margin-top: auto; padding-top: 20px; }
.cmm-contacts p { margin-bottom: 15px; color: #fff; font-size: 18px; display: flex; align-items: center; }
.cmm-contacts p i { margin-right: 15px; font-size: 20px; color: #fca311; }
.cmm-contacts a { color: #fff; text-decoration: none; }

.cmm-socials { display: flex; gap: 15px; margin-top: 25px; }
.cmm-socials a {
    width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s;
}
.cmm-socials a svg { width: 24px; height: 24px; fill: #fff; }
.cmm-socials a i { font-size: 24px; color: #fff; }
.cmm-socials a.tg:hover { background: #0088cc; }
.cmm-socials a.vb:hover { background: #7360f2; }

/* =======================================================
   БЛОК "РЕЗУЛЬТАТИ" ТА КОНСАЛТИНГ
   ======================================================= */
.results-section { background-color: #fcfcfc; padding: 100px 0; }
.modern-title-clean { font-size: calc(2rem + 1vw) !important; font-weight: 800; color: #392ec9 !important; margin-bottom: 0 !important; }
.brush-highlight { background-color: #d32f2f; color: #ffffff !important; padding: 2px 15px 6px 15px; display: inline-block; border-radius: 4px 12px 6px 15px; transform: rotate(-2deg); }
.modern-result-card { background: #ffffff; padding: 30px; border-radius: 16px; box-shadow: 0 5px 25px rgba(0,0,0,0.04); height: 100%; border: 1px solid rgba(0,0,0,0.02); }
.glass-icon-wrapper { width: 70px; height: 70px; background: rgba(57, 46, 201, 0.05); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-right: 25px; flex-shrink: 0; }
.result-svg-icon { width: 34px; height: 34px; fill: #392ec9 !important; }
.counter-number-blue { font-size: 40px !important; font-weight: 800 !important; color: #392ec9 !important; line-height: 1 !important; margin-bottom: 5px !important;}

.premium-consulting-section { padding: 100px 0 !important; }
.premium-consulting-card { background: #ffffff; padding: 60px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
@media (min-width: 1200px) { .overlapping-text-card { margin-left: -120px; z-index: 10; position: relative; } }
.check-icon-wrapper-red { width: 26px; height: 26px; background: #d32f2f; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0; }
.check-icon-wrapper-red i { color: #fff; font-size: 12px; }

/* =======================================================
   ДИЗАЙН НОВОГО БІЗНЕС-МОДАЛЬНОГО ВІКНА (ВИПРАВЛЕНО)
   ======================================================= */
.business-modal {
    max-width: 800px !important; 
    width: 95% !important;
}

.business-input {
    background-color: #f4f7f9 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    height: 50px !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
    color: #333333 !important;
    transition: all 0.3s ease !important;
    -webkit-appearance: none;
    appearance: none;
}

.business-input:focus {
    background-color: #ffffff !important;
    border-color: #392ec9 !important;
    box-shadow: 0 0 0 4px rgba(57, 46, 201, 0.1) !important;
    outline: none !important;
}

.business-submit-btn {
    transition: all 0.3s ease !important;
}

.business-submit-btn:hover {
    background-color: #e08e0b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(252, 163, 17, 0.4) !important;
}

/* Округлене значення для уникнення помилок парсера */
@media screen and (max-width: 767px) {
    .business-modal { 
        max-width: 400px !important; 
    }
}
/* --- СТИЛІ ДЛЯ ВІКНА ЕКСПРЕС-ДІАГНОСТИКИ --- */
.glass-express-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 340px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 25px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-express-popup.show-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.express-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.express-close:hover {
    color: #fca311;
}

.express-header {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #392ec9;
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.express-title {
    font-weight: 800;
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
}

.express-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.express-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border 0.3s;
    margin-bottom: 15px; /* Додав відступ для полів */
}
.express-input:focus {
    border-color: #fca311;
}

.express-btn {
    width: 100%;
    background: #fca311;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3);
    transition: background 0.3s, transform 0.2s;
}
.express-btn:hover {
    background: #e5930c;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .glass-express-popup {
        left: 15px;
        right: 15px;
        bottom: 15px;
        width: auto;
    }
}
/* ======================================================
   КОМПАКТНЕ МОБІЛЬНЕ МЕНЮ (ЩОБ ВМІЩАЛОСЯ БЕЗ СКРОЛУ)
   Діє для мобільних екранів
   ====================================================== */
@media (max-width: 576px) {
    /* Зменшуємо відступи між основними пунктами меню */
    .business-nav li a {
        padding: 10px 0 !important; /* Було більше, робимо компактніше */
        font-size: 16px !important;
    }
    
    /* Ущільнюємо випадаючий список "Послуги" */
    .cmm-dropdown {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    .cmm-dropdown li a {
        padding: 6px 0 !important;
        font-size: 14px !important;
    }

    /* Зменшуємо простір навколо перемикача мов (Ua/Ru) */
    .cmm-lang {
        margin-bottom: 15px !important;
    }

    /* Стискаємо нижній блок із контактами */
    .cmm-bottom-contacts {
        padding-top: 15px !important;
        margin-top: 10px !important;
    }
    
    /* Менші відступи між іконками соцмереж */
    .cmm-socials-grid {
        margin-bottom: 10px !important;
    }
    
    /* Робимо телефони трохи меншими та ближчими один до одного */
    .cmm-phones a {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }
    
    .cmm-email a {
        font-size: 14px !important;
    }

    /* Зменшуємо загальні внутрішні відступи самого вікна меню */
    .cmm-body {
        padding: 15px 20px 20px 20px !important;
    }
    .cmm-header {
        padding: 15px 20px !important;
    }
}

/* Спеціальне правило для дуже коротких екранів (наприклад, старих iPhone) */
@media (max-height: 700px) {
    .business-nav li a { padding: 7px 0 !important; }
    .cmm-socials-grid { display: flex; gap: 10px; justify-content: center; }
    .cmm-phones a { font-size: 15px !important; }
}
/* ======================================================
   РОЗПОДІЛ ПРОСТОРУ В МОБІЛЬНОМУ МЕНЮ (ПРИТИСКАННЯ ДО НИЗУ)
   ====================================================== */
.cmm-body {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 70px); /* Висота екрану мінус шапка з логотипом */
}

.cmm-bottom-contacts {
    margin-top: auto !important; /* МАГІЯ: Відштовхує контакти від меню і притискає до самого низу */
    padding-bottom: 30px !important;
    width: 100%;
}
/* ==========================================
   ВИПРАВЛЕННЯ МОБІЛЬНОГО МЕНЮ (СКРОЛІНГ)
   ========================================== */
.custom-mobile-menu {
    /* Дозволяємо скролити вміст меню, якщо він не влазить */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important; /* Плавний скрол на iOS */
}

/* Додамо відступ знизу, щоб контакти не прилипали до низу */
.cmm-bottom-contacts {
    padding-bottom: 40px !important;
}
/* ==========================================
   АДАПТАЦІЯ ТЕКСТУ КНОПКИ У МЕНЮ
   ========================================== */
@media (max-width: 576px) {
    .cmm-cta-wrap .btn {
        /* Дозволяємо тексту переноситися на другий рядок */
        white-space: normal !important; 
        
        /* Зменшуємо розмір шрифту спеціально для мобільних */
        font-size: 14px !important; 
        
        /* Збільшуємо відступи всередині, щоб текст не тулився до країв */
        padding: 15px 10px !important; 
    }
}
/* ======================================================
   АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ (ШИРИНА ТА ЛІЧИЛЬНИК)
   ====================================================== */
@media (max-width: 767px) {
    /* 1. Приховуємо лічильник часу на мобільних телефонах */
    #siteTimer, .site-time-indicator {
        display: none !important;
    }

    /* 2. Зменшуємо порожні відступи по боках екрану */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }

    /* 3. Зменшуємо "паразитні" відступи між колонками сітки Bootstrap */
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 4. Розширюємо самі картки та блоки (щоб вони не були стиснутими) */
    .card, .bg-white.shadow, .modern-form, .contact-info-block, .promo-block {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important; /* Робимо внутрішні відступи меншими */
        padding-right: 20px !important;
        border-radius: 12px !important; /* Трохи акуратніший радіус для мобілок */
    }
    
    /* Якщо великі відступи прописані через класи p-4 або p-5, зменшуємо їх */
    .p-4, .p-5 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}
/* ======================================================
   РОЗШИРЕННЯ КАРТОК "ЩО МИ ПРОПОНУЄМО" (ТІЛЬКИ МОБІЛЬНІ)
   ====================================================== */
@media (max-width: 767px) {
    /* 1. Розширюємо контейнер саме для цієї секції (прибираємо сірі боки) */
    .services-section-wrapper .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* 2. Прибираємо зайві відступи колонок Bootstrap навколо карток */
    .services-section-wrapper .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .services-section-wrapper [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* 3. Зменшуємо внутрішні відступи в картках (перебиваємо inline-стилі) */
    .services-section-wrapper .h-entry h2,
    .services-section-wrapper .h-entry p,
    .services-section-wrapper .h-entry .mt-4 {
        padding-left: 12px !important; /* Було 20px, робимо компактніше */
        padding-right: 12px !important;
    }
    
    /* 4. Трохи зменшуємо "повітря" між самими картками по вертикалі */
    .services-section-wrapper .mb-5 {
        margin-bottom: 25px !important;
    }
}
/* ======================================================
   ТОЧКОВА АДАПТАЦІЯ ДЛЯ СЕКЦІЇ КОНСАЛТИНГУ
   ====================================================== */

/* 1. Глобальні налаштування для Desktop/Tablet (від 992px) */
@media (min-width: 992px) {
    /* Робимо картинку на 15% більшою */
    .consulting-img {
        transform: scale(1.15) !important;
        transform-origin: center center;
    }

    /* Збільшуємо відступ вниз від заголовка на 10%. (BS mb-4 = 1.5rem. Робимо 1.65rem) */
    .consulting-title-creative {
        margin-bottom: 1.65rem !important;
    }
}

/* 2. Налаштування для Mobile/Tablet (менше 992px) */
@media (max-width: 991px) {
    /* Приховуємо блок з картинкою повністю */
    .consulting-image-wrapper {
        display: none !important;
    }
}

/* 3. Зменшення висоти всього блоку (відступів Зверху/Знизу) на 10% - Hierarchical target */
/* Цей селектор цілить у будь-яку секцію, що містить consulting-container.
   Ми припускаємо стандартний відступ site-section близько 100px. Зменшуємо на 10% (до 90px).
   Якщо використовуються rem equivalents BS py-5 (3rem), зменшуємо до 2.7rem */
section > .consulting-container {
    /* Hierarchy target for section containing the container */
    padding-top: 6.3rem !important; /* Наприклад, якщо Site-Section Default 7rem */
    padding-bottom: 6.3rem !important;
}

/* *НАЙБЕЗПЕЧНІШИЙ метод vertical padding reduction*: цілити безпосередньо в контейнер.
   Ми припускаємо, що 3rem ( py-5 ) є default і робимо 2.7rem. */
.consulting-container {
    padding-top: 2.7rem !important;
    padding-bottom: 2.7rem !important;
}
/* ======================================================
   ТОЧКОВА АДАПТАЦІЯ ДЛЯ СЕКЦІЇ КОНСАЛТИНГУ (ВЕРСІЯ 2.0)
   Додаємо нові та виправлені правила.
   Старий код для мобільного ховання картинки вже працює.
   ====================================================== */

/* 1. Глобальні налаштування для Desktop (від 992px) */
@media (min-width: 992px) {
    /* РОБИМО КАРТИНКУ НА 15% БІЛЬШОЮ */
    .consulting-img {
        transform: scale(1.15) !important;
        transform-origin: center center;
        z-index: 2; /* Щоб картинка була поверх інших елементів */
    }
    
    /* ГАРАНТУЄМО, ЩО БАТЬКИ НЕ ОБРІЗАЮТЬ КАРТИНКУ (Overflow hidden) */
    .premium-image-card,
    .consulting-image-wrapper {
        overflow: visible !important;
    }

    /* ЗБІЛЬШУЄМО ВІДСТУП ВНИЗ ВІД ЗАГОЛОВКА НА 10% (відстань text-consulting) */
    .consulting-title-creative {
        margin-bottom: 1.65rem !important; /* Трохи збільшили rem */
    }
}

/* 2. ЗМЕНШЕННЯ ВИСОТИ СЕКЦІЇ НА 10% (Зверху/Знизу) */
/* Цей селектор цілить у батьківську секцію, що містить контейнер.
   Ми припускаємо, що default Site-Section Padding-Top/Bottom ~100px. Робимо ~90px.
   Якщо rem equivalents 3rem ( py-5 ), робимо 2.7rem. */
section:has(.consulting-container) {
    padding-top: 2.7rem !important;
    padding-bottom: 2.7rem !important;
}

/* Fallback: Якщо `:has` не підтримується, спробуємо цілити безпосередньо в контейнер.
   Це безпечно і нічого не зламає в інших секціях. */
div.consulting-container {
    padding-top: 2.7rem !important;
    padding-bottom: 2.7rem !important;
}
/* B2B FAQ Accordion Styles */
.b2b-faq-accordion .faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}
.b2b-faq-accordion .faq-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #14213d;
    font-weight: 600;
    font-size: 18px;
    padding: 20px 0;
    transition: color 0.3s;
}
.b2b-faq-accordion .faq-link:hover {
    color: #fca311;
}
.b2b-faq-accordion .faq-icon {
    color: #fca311;
    font-size: 20px;
    transition: transform 0.3s ease;
}
.b2b-faq-accordion .faq-link[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}
.b2b-faq-accordion .faq-body {
    padding: 0 0 25px 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
}
.b2b-faq-accordion .faq-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}
.b2b-faq-accordion .faq-body ul li {
    margin-bottom: 8px;
}

/* B2B CTA Box */
.b2b-cta-box {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    padding: 50px 30px;
    text-align: center;
}

/* Hover ефект для карток B2B */
.b2b-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-bottom-color: #fca311 !important;
}

/* Стилізація B2B Вкладок (Tabs) */
.b2b-tabs .nav-link {
    color: #555;
    background: #fff;
    transition: all 0.3s ease;
}
.b2b-tabs .nav-link:hover {
    color: #392ec9;
    background: #f8f9fa;
}
.b2b-tabs .nav-link.active {
    color: #fff !important;
    background: #fca311 !important;
    box-shadow: 0 8px 20px rgba(252, 163, 17, 0.4) !important;
}

/* Округлення блоків всередині табів */
.rounded-lg {
    border-radius: 16px !important;
}
    
        /* B2B Premium Cards */
        .b2b-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 40px 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            transition: all 0.4s ease;
            border: 1px solid rgba(0,0,0,0.03);
            position: relative;
            overflow: hidden;
            z-index: 1;
            height: 100%;
        }
        .b2b-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 0;
            background: linear-gradient(135deg, #392ec9 0%, #7360f2 100%);
            transition: all 0.4s ease;
            z-index: -1;
        }
        .b2b-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(57, 46, 201, 0.2);
        }
        .b2b-card:hover::before {
            height: 100%;
        }
        .b2b-card:hover h3, 
        .b2b-card:hover p, 
        .b2b-card:hover .icon-wrap span {
            color: #ffffff !important;
        }
        .b2b-card .icon-wrap {
            width: 70px; height: 70px;
            background: rgba(57, 46, 201, 0.08);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 25px;
            transition: all 0.4s ease;
        }
        .b2b-card:hover .icon-wrap {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }
        .b2b-card h3 { font-size: 20px; color: #222; transition: color 0.4s ease; }
        .b2b-card p { font-size: 15px; color: #666; transition: color 0.4s ease; line-height: 1.6; }

        /* Tabs */
        .b2b-tabs .nav-link {
            color: #555; font-weight: 700; font-size: 16px;
            background: #fff; border-radius: 50px;
            padding: 15px 35px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: all 0.3s; border: 2px solid transparent;
        }
        .b2b-tabs .nav-link:hover { color: #392ec9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
        .b2b-tabs .nav-link.active {
            color: #fff !important; background: linear-gradient(135deg, #fca311 0%, #ffbe4d 100%) !important;
            box-shadow: 0 10px 25px rgba(252, 163, 17, 0.4) !important; border-color: transparent;
        }
        .rounded-lg { border-radius: 16px !important; }
        
        /* Glass Hero Stats Panels */
        .glass-stat-panel {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 25px 30px;
            margin-bottom: 20px;
            transition: transform 0.3s ease, background 0.3s ease;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        .glass-stat-panel:hover {
            transform: translateX(-10px);
            background: rgba(255, 255, 255, 0.15);
        }
        .glass-stat-panel h3 { color: #fca311; font-weight: 800; font-size: 36px; margin-bottom: 5px; }
        .glass-stat-panel p { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0; font-weight: 500; }

        /* FAQ Accordion Styles */
        .custom-accordion .card {
            border: none;
            margin-bottom: 15px;
            border-radius: 12px !important;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            overflow: hidden;
        }
        .custom-accordion .card-header {
            background: #fff;
            border-bottom: none;
            padding: 0;
        }
        .custom-accordion .btn-link {
            width: 100%;
            text-align: left;
            padding: 20px 25px;
            color: #333;
            font-weight: 700;
            font-size: 16px;
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .custom-accordion .btn-link:hover { color: #392ec9; }
        .custom-accordion .btn-link::after {
            content: '\e313';
            font-family: 'icomoon';
            font-size: 20px;
            color: #fca311;
            transition: transform 0.3s;
        }
        .custom-accordion .btn-link[aria-expanded="true"]::after { transform: rotate(180deg); }
        .custom-accordion .card-body {
            padding: 0 25px 25px;
            color: #666;
            line-height: 1.7;
            background: #fff;
        }
        
        /* SEO Content Styles */
        .seo-content h2, .seo-content h3 { color: #222; font-weight: 700; margin-bottom: 20px; }
        .seo-content p { color: #555; line-height: 1.8; margin-bottom: 20px; }
        .seo-content ul { padding-left: 20px; margin-bottom: 20px; }
        .seo-content ul li { color: #555; margin-bottom: 10px; line-height: 1.6; }

        
        /* B2B Premium Cards */
        .b2b-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 40px 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            transition: all 0.4s ease;
            border: 1px solid rgba(0,0,0,0.03);
            position: relative;
            overflow: hidden;
            z-index: 1;
            height: 100%;
        }
        .b2b-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 0;
            background: linear-gradient(135deg, #392ec9 0%, #7360f2 100%);
            transition: all 0.4s ease;
            z-index: -1;
        }
        .b2b-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(57, 46, 201, 0.2);
        }
        .b2b-card:hover::before {
            height: 100%;
        }
        .b2b-card:hover h3, 
        .b2b-card:hover p, 
        .b2b-card:hover .icon-wrap span {
            color: #ffffff !important;
        }
        .b2b-card .icon-wrap {
            width: 70px; height: 70px;
            background: rgba(57, 46, 201, 0.08);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 25px;
            transition: all 0.4s ease;
        }
        .b2b-card:hover .icon-wrap {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }
        .b2b-card h3 { font-size: 20px; color: #222; transition: color 0.4s ease; }
        .b2b-card p { font-size: 15px; color: #666; transition: color 0.4s ease; line-height: 1.6; }

        /* Tabs */
        .b2b-tabs .nav-link {
            color: #555; font-weight: 700; font-size: 16px;
            background: #fff; border-radius: 50px;
            padding: 15px 35px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: all 0.3s; border: 2px solid transparent;
        }
        .b2b-tabs .nav-link:hover { color: #392ec9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
        .b2b-tabs .nav-link.active {
            color: #fff !important; background: linear-gradient(135deg, #fca311 0%, #ffbe4d 100%) !important;
            box-shadow: 0 10px 25px rgba(252, 163, 17, 0.4) !important; border-color: transparent;
        }
        .rounded-lg { border-radius: 16px !important; }
        
        /* ЗМЕНШЕНІ скляні панелі зі статистикою */
        .glass-stat-panel {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 20px 25px;
            margin-bottom: 20px;
            transition: transform 0.3s ease, background 0.3s ease;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            max-width: 330px; 
            margin-left: auto; 
        }
        .glass-stat-panel:hover {
            transform: translateX(-10px);
            background: rgba(255, 255, 255, 0.15);
        }
        .glass-stat-panel h3 { 
            color: #fca311; 
            font-weight: 800; 
            font-size: 34px; 
            margin-bottom: 0; 
            margin-right: 20px;
            line-height: 1;
            min-width: 75px;
            text-align: right;
        }
        .glass-stat-panel p { 
            color: #fff; 
            font-size: 13px; 
            text-transform: uppercase; 
            letter-spacing: 1px; 
            margin: 0; 
            font-weight: 500;
            line-height: 1.4;
        }

        /* FAQ Accordion Styles - ОНОВЛЕНО */
        .custom-accordion .card {
            border: none;
            margin-bottom: 15px;
            border-radius: 12px !important;
            box-shadow: 0 5px 20px rgba(0,0,0,0.03);
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.04);
            background: #fff;
        }
        .custom-accordion .card-header {
            background: #fff;
            border-bottom: none;
            padding: 0;
        }
        .custom-accordion .btn-link {
            width: 100%;
            text-align: left;
            padding: 22px 25px;
            color: #333;
            font-weight: 700;
            font-size: 16px;
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }
        .custom-accordion .btn-link:hover { color: #392ec9; background: #f8f9fa; }
        .custom-accordion .btn-link[aria-expanded="true"] { color: #392ec9; }
        .custom-accordion .btn-link::after {
            content: '\e313';
            font-family: 'icomoon';
            font-size: 20px;
            color: #fca311;
            transition: transform 0.3s ease;
            margin-left: 15px;
        }
        .custom-accordion .btn-link[aria-expanded="true"]::after { transform: rotate(180deg); }
        .custom-accordion .card-body {
            padding: 0 25px 25px;
            color: #555;
            line-height: 1.8;
            background: #fff;
            border-top: 1px solid rgba(0,0,0,0.03);
            margin-top: -5px;
            padding-top: 15px;
        }
        
        /* SEO Content Styles */
        .seo-card {
            background: #fff;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
            border: 1px solid rgba(0,0,0,0.04);
            height: 100%;
            transition: transform 0.3s ease;
        }
        .seo-card:hover { transform: translateY(-5px); }
        .seo-card .icon-box {
            width: 50px; height: 50px;
            background: rgba(252, 163, 17, 0.1);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            color: #fca311; font-size: 24px;
            margin-bottom: 20px;
        }
    
/* Анімація для головного фону (Ken Burns Effect) */
  @keyframes kenBurns {
      0% { transform: scale(1); }
      100% { transform: scale(1.1); }
  }
  .dynamic-hero {
      position: relative;
      overflow: hidden;
      min-height: 60vh;
      display: flex;
      align-items: center;
  }
  .dynamic-hero-bg {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background-size: cover;
      background-position: center;
      /* Додаємо плавне збільшення фону */
      animation: kenBurns 20s ease-out infinite alternate;
      z-index: -2;
  }
  .dynamic-hero-overlay {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      /* Робимо градієнт більш глибоким (B2B стиль) */
      background: linear-gradient(135deg, rgba(57, 46, 201, 0.85) 0%, rgba(20, 20, 20, 0.7) 100%);
      z-index: -1;
  }

  /* --- Виправлений блок "Що далі?" --- */
  .trust-widget {
      background: #4A47E5; /* Точний колір з вашого макета */
      border-radius: 20px;
      padding: 35px 30px;
      color: #fff;
      position: relative;
      /* Забираємо overflow: hidden, щоб текст не різався, або робимо його безпечним */
      box-shadow: 0 15px 35px rgba(74, 71, 229, 0.2);
      flex-shrink: 0; /* Забороняємо стискати цей блок */
  }
  .trust-widget-step {
      display: flex;
      align-items: flex-start;
      margin-bottom: 20px;
  }
  .trust-widget-step:last-child {
      margin-bottom: 5px; /* Даємо простір знизу, щоб не обрізало */
  }
  .trust-widget-circle {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: 14px;
      margin-right: 15px; flex-shrink: 0;
      transition: all 0.3s ease;
  }
  .trust-widget-step.active .trust-widget-circle {
      background: #fca311;
      color: #fff;
      box-shadow: 0 0 15px rgba(252, 163, 17, 0.5);
      /* Пульсація для фінального кроку */
      animation: pulseStep 2s infinite;
  }
  @keyframes pulseStep {
      0% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(252, 163, 17, 0); }
      100% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0); }
  }
     
  /* Примусове апаратне прискорення для фіксованих елементів */
  .site-navbar, 
  .side-menu, 
  .side-menu-hover {
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      will-change: transform, opacity;
  }

  /* Для бокового меню додатково згладжуємо переходи */
  .side-menu-item {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
  }

  /* --- НОВІ СТИЛІ ДЛЯ СТОРІНКИ КОНТАКТІВ --- */
  .contact-widget-card {
      background: #fff;
      border-radius: 16px;
      padding: 35px 25px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0,0,0,0.04);
      border: 1px solid rgba(0,0,0,0.03);
      transition: all 0.4s ease;
      height: 100%;
      position: relative;
      overflow: hidden;
  }
  .contact-widget-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(57, 46, 201, 0.1);
  }
  .contact-widget-card .icon-wrap {
      width: 70px;
      height: 70px;
      background: rgba(252, 163, 17, 0.1);
      color: #fca311;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      margin: 0 auto 20px;
      transition: all 0.4s ease;
  }
  .contact-widget-card:hover .icon-wrap {
      background: #fca311;
      color: #fff;
      transform: scale(1.1);
  }
  .contact-widget-card h4 {
      font-size: 18px;
      font-weight: 700;
      color: #333;
      margin-bottom: 15px;
  }
  .contact-widget-card p, .contact-widget-card a {
      color: #666;
      font-size: 15px;
      text-decoration: none;
      transition: color 0.3s;
  }
  .contact-widget-card a:hover {
      color: #392ec9;
  }

  /* Стилі сучасної форми */
  .premium-contact-form {
      background: #fff;
      border-radius: 20px;
      padding: 50px;
      box-shadow: 0 15px 50px rgba(0,0,0,0.05);
      border: 1px solid rgba(0,0,0,0.03);
  }
  .premium-contact-form .form-control {
      background: #f8f9fa;
      border: 1px solid #edf0f5;
      border-radius: 10px;
      padding: 15px 20px;
      height: auto;
      font-size: 15px;
      color: #333;
      transition: all 0.3s ease;
  }
  .premium-contact-form .form-control:focus {
      background: #fff;
      border-color: #392ec9;
      box-shadow: 0 0 0 4px rgba(57, 46, 201, 0.1);
  }
  .premium-contact-form label {
      font-weight: 600;
      font-size: 13px;
      color: #555;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
  }
  
  /* Блок довіри біля карти */
  .trust-widget {
      background: linear-gradient(135deg, #392ec9 0%, #7360f2 100%);
      border-radius: 20px;
      padding: 40px;
      color: #fff;
      position: relative;
      overflow: hidden;
  }
  .trust-widget::after {
      content: '';
      position: absolute;
      top: -50%; right: -50%;
      width: 100%; height: 100%;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  }
  .map-wrapper {
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 15px 40px rgba(0,0,0,0.08);
      height: 100%;
      min-height: 400px;
      border: 1px solid rgba(0,0,0,0.05);
  }

  /* --- Основні налаштування --- */
.premium-timeline-section {
  background-color: #0b192c; /* Темно-синій преміальний фон */
  color: #ffffff;
  padding: 80px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pt-container {
  max-width: 800px; /* Зробили вужче для кращого читання тексту */
  margin: 0 auto;
}

/* --- Заголовок --- */
.pt-header {
  text-align: center;
  margin-bottom: 60px;
}

.pt-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.pt-header h2 span {
  color: #d4af37; /* Золотий акцент */
}

.pt-header p {
  color: #a0aec0;
  font-size: 1.1rem;
}

/* --- Контейнер лінії часу --- */
.pt-timeline {
  position: relative;
  padding-left: 40px; /* Відступ зліва для лінії */
}

/* Сама вертикальна лінія */
.pt-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 19px; /* Вирівнювання лінії по центру точок */
  height: 100%;
  width: 2px;
  background: rgba(212, 175, 55, 0.3); /* Напівпрозора золота лінія */
}

/* --- Окремий блок (рік) --- */
.pt-item {
  position: relative;
  margin-bottom: 50px;
}

/* Золота точка на лінії */
.pt-dot {
  position: absolute;
  left: -40px; /* Виносимо точку на лінію */
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: #d4af37;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  transition: all 0.3s ease;
}

/* --- Контентна картка --- */
.pt-content {
  background: rgba(255, 255, 255, 0.03); /* Дуже легкий прозорий фон */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Ефект при наведенні мишки */
.pt-item:hover .pt-content {
  transform: translateX(10px); /* Картка трохи їде вправо */
  background: rgba(255, 255, 255, 0.08);
  border-color: #d4af37;
}

.pt-item:hover .pt-dot {
  transform: scale(1.3); /* Точка збільшується */
  box-shadow: 0 0 20px #d4af37;
}

/* Текст всередині картки */
.pt-year {
  display: inline-block;
  color: #d4af37;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.pt-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.pt-content p {
  color: #a0aec0;
  line-height: 1.6;
}

/* --- Акцент на 2026 рік --- */
.pt-highlight .pt-content {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
}

.pt-highlight .pt-dot {
  width: 22px;
  height: 22px;
  left: -43px;
  background-color: #ffffff;
  border: 4px solid #d4af37;
}

/* --- Загальні стилі нових секцій --- */
.custom-page-content {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
}

.section-heading {
  font-weight: 700;
  color: #0b192c;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* --- Секція 1: Hero --- */
.new-hero-section {
  background: linear-gradient(135deg, #0b192c 0%, #1a365d 100%);
  padding: 150px 0 100px;
  color: white;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Анімація появи тексту знизу вгору */
.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Кнопки */
.btn-custom-primary {
  background-color: #fca311;
  color: #fff;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}
.btn-custom-primary:hover {
  background-color: #e08b00;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(252, 163, 17, 0.3);
}

.btn-custom-secondary {
  background-color: transparent;
  color: #fca311;
  border: 2px solid #fca311;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}
.btn-custom-secondary:hover {
  background-color: #fca311;
  color: #fff;
}

/* --- Секція 2: Послуги --- */
.new-services-section {
  padding: 80px 0;
}

.service-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0b192c;
  margin-bottom: 15px;
}

/* --- Секція 3: Тест (Скляний ефект) --- */
.new-test-section {
  background: url('../images/railway_station.jpg') center/cover fixed; /* Використовуємо вашу картинку як фон */
  padding: 100px 0;
  position: relative;
}

.new-test-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 25, 44, 0.8); /* Темне затемнення */
}

.test-wrapper {
  position: relative;
  z-index: 2;
}

.quiz-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
}

.quiz-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-quiz {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  color: #0b192c;
  cursor: pointer;
  transition: 0.3s;
}

.btn-quiz:hover {
  background: #fca311;
  color: white;
}

/* --- Секція 4: Статистика --- */
.new-stats-section {
  padding: 80px 0;
  background: #fff;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fca311;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-text {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 600;
}

/* --- Секція 5: CTA --- */
.new-cta-section {
  background: linear-gradient(45deg, #0b192c, #392ec9);
  padding: 80px 0;
  margin: 40px 20px; /* Відступи по боках для ефекту "картки" */
  border-radius: 20px;
}

/* --- Секція із заворожуючим ефектом --- */
.b2b-mesmerizing-section {
  padding: 100px 0;
  background-color: #f8f9fa;
  overflow: hidden; /* Щоб анімації не створювали скрол */
}

/* Динамічна поява заголовків */
.dynamic-title, .dynamic-subtitle {
  opacity: 0;
  animation: appearUp 1s ease-out forwards;
}
.dynamic-subtitle {
  animation-delay: 0.2s;
}

/* Обгортка для послідовної появи карток */
.mesmerize-wrapper {
  opacity: 0;
  animation: appearUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Затримки для появи, щоб блоки виходили по черзі */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes appearUp {
  0% { opacity: 0; transform: translateY(70px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Сама картка --- */
.mesmerizing-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px); /* Легкий скляний ефект */
  border: 3px dotted #cbd5e1; /* Точкова лінія, про яку ви просили */
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  position: relative;
  transition: all 0.5s ease;
  
  /* Безперервна анімація паріння */
  animation: levitate 6s ease-in-out infinite;
}

/* Робимо так, щоб картки парили в різному темпі (асинхронно) */
.delay-1 .mesmerizing-card { animation-delay: 0s; }
.delay-2 .mesmerizing-card { animation-delay: -2s; }
.delay-3 .mesmerizing-card { animation-delay: -4s; }

/* Анімація левітації (паріння) */
@keyframes levitate {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); } /* Картка підіймається */
  100% { transform: translateY(0px); }
}

/* Центральна картка трохи виділяється */
.mesmerizing-card.accent-card {
  border-color: rgba(252, 163, 17, 0.4);
}

/* --- Ефекти при наведенні мишки --- */
.mesmerizing-card:hover {
  /* Зупиняємо паріння і фіксуємо картку вгорі */
  animation-play-state: paused;
  transform: translateY(-20px) scale(1.03);
  
  /* Лінія стає яскраво-помаранчевою і світиться */
  border-color: #fca311;
  border-style: solid; /* Змінюємо точки на суцільну лінію для контрасту */
  box-shadow: 0 25px 50px rgba(252, 163, 17, 0.15), inset 0 0 20px rgba(252, 163, 17, 0.05);
  background: #ffffff;
}

/* Сфера для іконки */
.icon-orb {
  width: 75px;
  height: 75px;
  background: #0b192c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 25px auto;
  box-shadow: 0 10px 20px rgba(11, 25, 44, 0.2);
  transition: all 0.4s ease;
}

.mesmerizing-card:hover .icon-orb {
  background: #fca311;
  box-shadow: 0 15px 30px rgba(252, 163, 17, 0.4);
  transform: rotateY(180deg); /* 3D переворот іконки при наведенні */
}

/* Тексти */
.mesmerizing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b192c;
  margin-bottom: 15px;
  text-align: center;
}

.mesmerizing-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 0;
}


    /* Основні стилі для секції "Наш досвід" */
    .experience-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
        background-color: #f8f9fa; /* Світло-сірий фон */
    }

    .modern-b2b-label {
        display: inline-block;
        color: #fca311;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-size: 13px;
    }

    .section-heading {
        color: #fca311; /* Золотий/Помаранчевий як на макеті */
        font-weight: 700;
        text-transform: uppercase;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .section-subheading {
        color: #a0aec0;
        font-size: 14px;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-weight: 500;
    }

    /* Картки */
    .modern-glass-widget {
        background: #ffffff;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .modern-glass-widget:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 20px 25px rgba(0, 0, 0, 0.05);
    }

    /* Іконки */
    .modern-widget-icon-box {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-right: 1.2rem;
    }

    .bg-primary-light { background: #f0f2fb; color: #392ec9; }
    .bg-secondary-light { background: #fff5e6; color: #fca311; }

    /* Текст */
    .modern-widget-number {
        font-size: 28px;
        font-weight: 800;
        color: #1a202c;
        margin-bottom: 0.2rem;
    }

    .modern-widget-title {
        font-size: 12px;
        line-height: 1.4;
        color: #a0aec0;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-weight: 600;
    }

    /* --- ГРАФІКИ (Тепер 100% видимі) --- */
    .widget-graphics-area {
        height: 70px;
        margin-top: 1.5rem;
        display: flex;
        align-items: flex-end;
    }

    /* Анімація для крапок */
    .pulse-point {
        animation: pulseAnimation 2s infinite;
    }
    @keyframes pulseAnimation {
        0% { transform: scale(0.9); opacity: 0.7; }
        50% { transform: scale(1.2); opacity: 1; }
        100% { transform: scale(0.9); opacity: 0.7; }
    }


  /* --- Стилі для нової підкладки з формулами --- */
  .formula-bg-underlay {
    position: relative;
    background-color: #0b192c; /* Темно-синій преміальний фон */
    overflow: hidden;
    color: #ffffff; /* Робимо весь текст у секції білим за замовчуванням */
  }

  /* Шар із напівпрозорими формулами */
  .formula-bg-underlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(rgba(11, 25, 44, 0.95), rgba(11, 25, 44, 0.95)), /* Затемнення */
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="10" y="30" fill="rgba(255,255,255,0.03)" font-family="monospace" font-size="12">EOQ=√(2DS/H)</text><text x="50" y="60" fill="rgba(255,255,255,0.03)" font-family="monospace" font-size="12">ROI=(NP/I)*100</text><text x="10" y="90" fill="rgba(255,255,255,0.03)" font-family="monospace" font-size="12">LT=T_o+T_t+T_r</text></svg>');
    background-repeat: repeat;
    opacity: 0.2; /* Робимо фон ледь помітним */
    z-index: 1;
  }

  /* Шар із анімованими розрахунками */
  .animated-calculations {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: rgba(252, 163, 17, 0.4); /* Напівпрозорий помаранчевий колір */
    z-index: 2;
    text-align: right;
  }

  .calc-line {
    overflow: hidden; /* Приховуємо текст, що не помістився */
    white-space: nowrap; /* Забороняємо перенос рядка */
    margin: 0;
    letter-spacing: .15em; /* Відступ між літерами */
    opacity: 0;
    animation: typing 3s steps(40, end) forwards, fadeIn 0.5s forwards;
  }

  /* Затримки для появи рядків один за одним */
  .calc-line-1 { animation-delay: 1s, 1s; }
  .calc-line-2 { animation-delay: 5s, 5s; }
  .calc-line-3 { animation-delay: 9s, 9s; }

  /* Анімація друку */
  @keyframes typing {
    from { width: 0; opacity: 1; }
    to { width: 100%; opacity: 1; }
  }

  /* Анімація появи */
  @keyframes fadeIn {
    to { opacity: 1; }
  }

  /* --- Виправлення стилів тексту для темного фону --- */
  .formula-bg-underlay .text-justify {
    color: rgba(255, 255, 255, 0.8) !important; /* Трохи тьмяніший білий для параграфів */
  }

  .formula-bg-underlay .crisis-features-list li {
    color: #ffffff !important;
  }


  .hero-terminal-bg {
    position: relative;
    background-color: #0b192c; /* Глибокий синій фон */
    overflow: hidden;
  }
  
  /* Технічна сітка на фоні */
  .hero-terminal-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
      linear-gradient(rgba(11, 25, 44, 0.85), rgba(11, 25, 44, 0.95)),
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M0,20 L40,20 M20,0 L20,40" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    z-index: 1;
  }

  /* Текст терміналу (розміщуємо праворуч, щоб балансувати з головним текстом) */
  .hero-scenario {
    position: absolute;
    top: 20%;
    right: 2%;
    width: 45%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 2;
    color: rgba(252, 163, 17, 0.35); /* Помаранчевий з прозорістю */
    z-index: 2;
    text-align: left;
    pointer-events: none;
  }

  /* Адаптація терміналу під мобільні */
  @media (max-width: 991px) {
    .hero-scenario {
      width: 90%;
      left: 5%;
      top: 10%;
      opacity: 0.2; /* Робимо дуже прозорим, щоб не зливалося з головним текстом */
    }
  }

  /* Анімація рядків */
  .h-line {
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    width: 0;
    border-right: 2px solid transparent;
    animation: typingHero 2s steps(50, end) forwards;
  }

  .hl-1 { animation-delay: 0.5s; }
  .hl-2 { animation-delay: 2.5s; }
  .hl-3 { animation-delay: 4.5s; }
  .hl-4 { animation-delay: 6.5s; }
  .hl-5 { animation-delay: 8.5s; }
  .hl-6 { 
    animation-delay: 10.5s; 
    border-right-color: rgba(252, 163, 17, 0.5); 
    animation: typingHero 2s steps(50, end) forwards 10.5s, blinkHeroCursor 0.8s step-end infinite 12.5s; 
  }

  @keyframes typingHero { from { width: 0; } to { width: 100%; } }
  @keyframes blinkHeroCursor { from, to { border-color: transparent; } 50% { border-color: rgba(252, 163, 17, 0.5); } }

  /* Щоб контент був поверх фону */
  .new-hero-section .container { position: relative; z-index: 10; }
  .new-hero-section h1, .new-hero-section p { text-shadow: 0 4px 10px rgba(0,0,0,0.5); }


  .hero-terminal-bg {
    position: relative;
    background-color: #0b192c; /* Глибокий синій фон */
    overflow: hidden;
  }
  
  /* Технічна сітка на фоні */
  .hero-terminal-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
      linear-gradient(rgba(11, 25, 44, 0.85), rgba(11, 25, 44, 0.95)),
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M0,20 L40,20 M20,0 L20,40" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    z-index: 1;
  }

  /* Текст терміналу */
  .hero-scenario {
    position: absolute;
    top: 20%;
    right: 2%;
    width: 45%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 2;
    /* ЗРОБЛЕНО ЯСКРАВІШИМ: майже непрозорий помаранчевий */
    color: rgba(252, 163, 17, 0.9); 
    /* ДОДАНО СВІТІННЯ (Glow effect) */
    text-shadow: 0 0 8px rgba(252, 163, 17, 0.5); 
    z-index: 2;
    text-align: left;
    pointer-events: none;
  }

  /* Адаптація терміналу під мобільні */
  @media (max-width: 991px) {
    .hero-scenario {
      width: 90%;
      left: 5%;
      top: 10%;
      opacity: 0.6; /* Зроблено світлішим на мобільних екранах (було 0.2) */
    }
  }

  /* Анімація рядків */
  .h-line {
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    width: 0;
    border-right: 2px solid transparent;
    animation: typingHero 2s steps(50, end) forwards;
  }

  .hl-1 { animation-delay: 0.5s; }
  .hl-2 { animation-delay: 2.5s; }
  .hl-3 { animation-delay: 4.5s; }
  .hl-4 { animation-delay: 6.5s; }
  .hl-5 { animation-delay: 8.5s; }
  .hl-6 { 
    animation-delay: 10.5s; 
    border-right-color: rgba(252, 163, 17, 0.8); 
    animation: typingHero 2s steps(50, end) forwards 10.5s, blinkHeroCursor 0.8s step-end infinite 12.5s; 
  }

  @keyframes typingHero { from { width: 0; } to { width: 100%; } }
  @keyframes blinkHeroCursor { from, to { border-color: transparent; } 50% { border-color: rgba(252, 163, 17, 0.8); } }

  /* Щоб контент був поверх фону */
  .new-hero-section .container { position: relative; z-index: 10; }
  .new-hero-section h1, .new-hero-section p { text-shadow: 0 4px 10px rgba(0,0,0,0.6); }

  
  /* Легкий ефект при наведенні на саму картку (щоб показати інтерактивність) */
  .mesmerizing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .mesmerize-wrapper:hover .mesmerizing-card {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 25, 44, 0.15);
  }

  /* СТИЛІ ГЛОБАЛЬНОГО ВІКНА ЧИТАННЯ (Оверлея) */
  .reading-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 25, 44, 0.85); /* Темний фон */
    backdrop-filter: blur(5px);
    z-index: 999999; /* Поверх усього сайту */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* Коли вікно активне */
  .reading-modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Контейнер для збільшеної картки */
  .reading-modal-content {
    width: 90%;
    max-width: 850px; /* Великий розмір для зручного читання */
    max-height: 85vh;
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    overflow-y: auto; /* Скрол, якщо тексту дуже багато */
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  }

  .reading-modal-overlay.active .reading-modal-content {
    transform: scale(1);
  }

  /* Кнопка закриття */
  .close-reading-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    line-height: 1;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
  }
  .close-reading-btn:hover { color: #fca311; }

  /* Адаптація тексту всередині вікна */
  .reading-modal-content h3 {
    font-size: 32px !important;
    margin-bottom: 20px;
    color: #0b192c !important;
  }
  .reading-modal-content p {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #444 !important;
  }
  .reading-modal-content .icon-orb {
    transform: scale(1.3);
    margin-bottom: 30px;
  }

  /* Мобільна адаптація вікна */
  @media (max-width: 767px) {
    .reading-modal-content { padding: 40px 20px; width: 95%; }
    .reading-modal-content h3 { font-size: 24px !important; }
    .reading-modal-content p { font-size: 16px !important; }
  }

    
  .b2b-cases-section {
    background-color: #f8f9fa; /* Світло-сірий фон для контрасту з білими картками */
    padding: 80px 0;
    font-family: 'Poppins', 'Inter', sans-serif; /* Сучасний B2B шрифт */
  }

  .b2b-cases-section .section-title {
    color: #0b192c;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
  }

  .b2b-cases-section .section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
  }

  /* Дизайн картки */
  .b2b-case-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 25, 44, 0.06);
    border: 1px solid rgba(11, 25, 44, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .b2b-case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 25, 44, 0.12);
  }

  /* Блок із зображенням */
  .b2b-case-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
  }

  .b2b-case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }

  .b2b-case-card:hover .b2b-case-img-wrap img {
    transform: scale(1.08); /* Плавне збільшення фото */
  }

  /* Темний градієнт поверх фото для преміальності */
  .b2b-case-img-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(11,25,44,0) 60%, rgba(11,25,44,0.6) 100%);
    pointer-events: none;
  }

  /* Контентна частина */
  .b2b-case-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  /* Категорійний тег */
  .b2b-case-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fca311;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  /* Заголовок кейсу */
  .b2b-case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b192c;
    line-height: 1.4;
    margin-bottom: 20px;
    transition: color 0.3s;
  }

  .b2b-case-card:hover .b2b-case-title {
    color: #fca311;
  }

  /* Кнопка-посилання */
  .b2b-case-link {
    margin-top: auto; /* Притискає посилання до низу картки */
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0b192c;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
  }

  .b2b-case-link svg {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    fill: #fca311;
    transition: transform 0.3s ease;
  }

  .b2b-case-card:hover .b2b-case-link {
    color: #fca311;
  }

  .b2b-case-card:hover .b2b-case-link svg {
    transform: translateX(6px); /* Стрілочка рухається вправо */
  }
