/* Home page sections, in the order they appear in front-page.php. */

/* =============================================================
   Hero
   ============================================================= */
/* --- HERO SECTION: FULL WIDTH HACK --- */
.hero-section {
    position: relative;
    width: 100vw; 
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    
    min-height: 600px;
    display: flex;
    justify-content: center;
    padding-top: 100px; 
    padding-bottom: 100px; 
    font-family: 'Helvetica', 'Arial', sans-serif;
    box-sizing: border-box;
}

/* Фон на всю ширину */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Затемнення */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: static;
}

/* --- ТЕКСТОВА ЧАСТИНА --- */
.hero-content {
    color: #fff;
    max-width: 800px;
    margin-bottom: 50px;
}

.hero-badge {
    background-color: #f37021;
    color: #fff;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.hero-sub {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

/* --- КАРТКИ (OVERLAP EFFECT) --- */
.info-cards-wrapper {
    display: flex;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 10;
}

.info-card {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
}

/* Білі картки */
.white-card {
    background: #fff;
    border-right: 1px solid #f0f0f0;
}

/* Помаранчева картка */
.orange-card {
    background: #f37021;
    color: #fff;
}

.white-card .card-text h3 { color: #333; }
.white-card .card-text p { color: #666; }
.orange-card .card-text h3 { color: #fff; }
.orange-card .card-text p { color: #fff; opacity: 0.9; }

/* Іконки */
.card-icon {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.white-card .card-icon {
    border: 2px solid #f37021;
    color: #f37021;
    border-radius: 4px;
}

.orange-card .card-icon {
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50%;
}

.card-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.card-text p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* YouTube відео як фон */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;

    /* Заглушка, поки вантажиться відео. Раніше тут стояв hero-bg.jpg, якого
       на сервері немає — кожен показ головної давав 404. Поки не з'явиться
       реальний кадр, лишаємо суцільний темний фон. */
    background: #1a1a1a;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
}

@media (max-width: 900px) {
    .hero-section {
        padding-top: 60px;
        padding-bottom: 40px;
        min-height: auto;          /* більше не тягнемо на весь екран */
        background: #fff;          /* світлий фон замість сірого відео */
    }

    /* Ховаємо відео разом із його сірим фоном-заглушкою */
    .hero-video {
        display: none;
    }

    /* Затемнення більше не потрібне — фон тепер світлий */
    .hero-overlay {
        display: none;
    }

    /* Робимо текст темним, щоб не зливався з білим фоном */
    .hero-content {
        color: #1a1a1a;
    }

    .hero-content h1 {
        font-size: 32px;
        color: #1a1a1a;
    }

    .hero-sub {
        color: #444;
        opacity: 1;
    }

    /* Картки — як було */
    .info-cards-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }

    .white-card {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* =============================================================
   Intro — Who We Are
   ============================================================= */
/* --- СЕКЦІЯ (Без змін) --- */
.intro-section {
    position: relative;
    background-color: #fff;
    padding-top: 180px; /* Компенсація карток зверху */
    padding-bottom: 100px;
    overflow: hidden; /* ВАЖЛИВО: Додано hidden, щоб при анімації з боків не з'являлася горизонтальна прокрутка */
}

/* --- СІТКА (GRID) (Без змін) --- */
.intro-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* --- ТЕКСТОВА ЧАСТИНА (Без змін) --- */
.intro-content {
    flex: 1;
    max-width: 500px;
}

.intro-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.intro-title {
    color: #333333;
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.intro-text p {
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- КАРТИНКА (Без змін) --- */
.intro-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Важливо для анімації правої частини */
    transform-origin: center right;
}

.intro-orange-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80%;
    height: 90%;
    background-color: var(--brand-orange);
    z-index: 1;
}

.intro-img-box {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.intro-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .intro-grid {
        flex-direction: column;
        gap: 50px;
    }
    .intro-content { max-width: 100%; text-align: left; }
    .intro-orange-bg { width: 100%; top: -20px; right: -20px; }
    .intro-section { padding-top: 100px; }
    
    }

/* =============================================================
   Intro — CTA button
   ============================================================= */
.intro-cta-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 34px;
    background-color: var(--brand-orange);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: filter .25s ease, transform .25s ease;
}
.intro-cta-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* =============================================================
   Services — collage + accordion
   ============================================================= */
/* --- СЕКЦІЯ --- */
.services-section {
    padding: 100px 0;
    background-color: #fffaf7; 
    overflow: hidden;
}

.services-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* --- ЛІВА КОЛОНКА (КОЛАЖ) --- */
.services-images-wrapper {
    flex: 1;
    position: relative;
    /* Збільшили мінімальну висоту, бо фото стали вищими */
    min-height: 850px; 
}

.collage-container {
    position: relative;
    width: 100%;
    /* Цей відступ опускає весь колаж вниз, щоб він був по центру відносно тексту */
    margin-top: 50px; 
}

/* Спільні стилі для картинок */
.collage-img {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background: #fff;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важливо: фото не розтягується, а обрізається по центру */
    display: block;
}

/* --- ТОЧНІ РОЗМІРИ ТА ПОЗИЦІЇ (Як на скріншоті) --- */

/* 1. Верхня ліва (Вертикальна - Люди з планом) */
.img-1 {
    width: 44%; /* ~265px */
    height: 472px; /* ТОЧНИЙ РОЗМІР З ВАШОГО СКРІНУ */
    top: 0;
    left: 0;
    z-index: 3; 
}

/* 2. Верхня права (Рівень) */
.img-2 {
    width: 48%;
    height: 320px; /* Пропорційно менша */
    top: 120px; /* Опустили нижче, щоб була "сходинка" відносно першої */
    right: 0;
    z-index: 2;
}

/* 3. Нижня (Фундамент) */
.img-3 {
    width: 60%;
    height: 280px;
    /* Позиція відносно верху контейнера: 472px (висота першої) - трохи накладення */
    top: 420px; 
    left: 20px;
    z-index: 4; /* Найвищий пріоритет, перекриває інші */
}

/* Помаранчевий квадрат (Фон) */
.collage-orange-box {
    position: absolute;
    width: 45%;
    height: 350px;
    background-color: var(--brand-orange);
    top: 300px; /* По центру композиції */
    right: 10%;
    z-index: 1; /* На задньому плані */
}

/* --- ПРАВА КОЛОНКА --- */
.services-content-wrapper {
    flex: 1;
    padding-top: 40px; /* Трохи опустили текст, щоб він починався гарно відносно фото */
}

.services-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 24px;
    line-height: 1.1;
}

.services-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 50px;
}

/* --- АКОРДЕОН --- */
.services-accordion {
    border-top: 1px solid #eaeaea;
}

.accordion-item {
    border-bottom: 1px solid #eaeaea;
}

.accordion-header {
    padding: 24px 0;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--maine-black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.accordion-header::-webkit-details-marker { display: none; }

.arrow-icon {
    font-size: 14px;
    color: var(--maine-black);
    transition: transform 0.3s ease;
}

details[open] .arrow-icon {
    transform: rotate(180deg);
}

.accordion-body {
    padding-bottom: 30px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ПУНКТИ --- */
.service-point {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.point-icon i {
    color: var(--brand-orange);
    font-size: 20px;
    margin-top: 2px;
}
.point-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--maine-black);
    margin: 0 0 8px 0;
}
.point-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .services-grid {
        flex-direction: column-reverse; 
        gap: 40px;
    }
    
    .services-images-wrapper {
        min-height: 700px;
    }
    
    .collage-container { margin-top: 0; }
    
    /* Адаптація розмірів для менших екранів */
    .img-1 { width: 45%; height: 350px; }
    .img-2 { width: 48%; height: 250px; top: 80px; }
    .img-3 { width: 65%; height: 220px; top: 300px; left: 0; }
    .collage-orange-box { width: 50%; height: 250px; top: 200px; right: 5%; }
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */

/* Планшети і горизонтальні телефони (до 991px) */
@media (max-width: 991px) {
    .services-grid {
        flex-direction: column-reverse; /* Спочатку текст, потім картинки знизу */
        gap: 40px;
    }
    
    .services-images-wrapper {
        width: 100%;
        /* Зменшили висоту контейнера, щоб не було дірки знизу */
        min-height: 550px; 
    }
    
    .collage-container { 
        margin-top: 0; 
    }
    
    /* Адаптація картинок */
    .img-1 { 
        width: 42%; 
        height: 380px; 
    }
    
    .img-2 { 
        width: 50%; 
        height: 280px; 
        top: 60px; 
    }
    
    .img-3 { 
        width: 60%; 
        height: 240px; 
        top: 280px; /* Підтягнули третю картинку вище */
        left: 0; 
    }
    
    .collage-orange-box { 
        width: 50%; 
        height: 250px; 
        top: 200px; 
        right: 0; 
    }
}

/* Мобільні телефони вертикально (до 479px) */
@media (max-width: 479px) {
    .services-images-wrapper {
        /* Ще менша висота для телефонів */
        min-height: 420px; 
    }

    .img-1 { 
        width: 45%; 
        height: 280px; /* Робимо картинки меншими */
    }
    
    .img-2 { 
        width: 50%; 
        height: 200px; 
        top: 40px; 
    }
    
    .img-3 { 
        width: 65%; 
        height: 180px; 
        top: 210px; /* Ще вище підтягуємо низ */
        left: 0; 
    }

    .collage-orange-box {
        top: 150px;
        height: 200px;
    }
    
    .services-title {
        font-size: 32px; /* Трохи менший шрифт заголовка */
    }
}

/* =============================================================
   Services — CTA button
   ============================================================= */
/* --- КНОПКА REQUEST A QUOTE --- */
.services-cta-btn {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 34px;
    background-color: var(--brand-orange);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: filter .25s ease, transform .25s ease;
}
.services-cta-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* =============================================================
   Process
   ============================================================= */
/* --- СЕКЦІЯ --- */
.process-section {
    padding: 100px 0;
    background-color: #fffaf7; /* Такий самий фон, як у Services, щоб зливалося */
    overflow: hidden;
}

.process-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* --- ЛІВА КОЛОНКА (ТЕКСТ) --- */
.process-content-wrapper {
    flex: 1;
    padding-top: 20px;
}

.process-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.process-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 24px;
    line-height: 1.1;
}

.process-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Використовуємо стилі акордеона з попередньої секції, 
   але якщо потрібно щось змінити, додаємо класи сюди */
.process-accordion {
    border-top: 1px solid #eaeaea;
}

/* --- ПРАВА КОЛОНКА (ФОТО) --- */
.process-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center; /* Центруємо композицію в колонці */
    padding-top: 40px; /* Трохи опускаємо вниз */
}

.process-img-container {
    position: relative;
    width: 400px; /* Фіксуємо ширину композиції */
    height: 550px;
}

/* Основне фото */
.process-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    z-index: 2; /* Поверх квадрата */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.process-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Помаранчевий квадрат */
.process-orange-box {
    position: absolute;
    width: 100%; /* Ширина як у картинки */
    height: 100%;
    background-color: var(--brand-orange);
    top: 50px;   /* Зсув вниз */
    left: 50px;  /* Зсув вправо */
    z-index: 1;  /* Позаду фото */
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .process-grid {
        flex-direction: column; /* Текст зверху, фото знизу */
        gap: 60px;
    }
    
    .process-image-wrapper {
        width: 100%;
        justify-content: flex-start; /* Вирівнювання вліво на мобільному */
        padding-top: 0;
    }
    
    .process-img-container {
        width: 80%; /* На мобільному займає 80% ширини */
        height: auto;
        aspect-ratio: 3/4; /* Пропорція */
    }
    
    .process-img {
        height: 100%;
        position: relative; /* Щоб висота рахувалася автоматично */
    }
    
    .process-orange-box {
        top: 30px;
        left: 30px;
    }
    
    .process-title { font-size: 32px; }
}

/* =============================================================
   Process — CTA button
   ============================================================= */
/* --- КНОПКА REQUEST A QUOTE --- */
.process-cta-btn {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 34px;
    background-color: var(--brand-orange);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: filter .25s ease, transform .25s ease;
}
.process-cta-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* =============================================================
   Why choose CoreExec
   ============================================================= */
/* --- СЕКЦІЯ --- */
.why-choose-section {
    padding: 100px 0;
    background-color: #fff; /* Білий фон */
    overflow: hidden;
}

.why-grid {
    display: flex;
    gap: 80px;
    align-items: center; /* Центрування по вертикалі */
}

/* --- ЛІВА КОЛОНКА (КОНТЕНТ) --- */
.why-content {
    flex: 1;
}

.why-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.why-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 40px;
}

/* Список переваг */
.why-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Іконка галочки */
.why-icon {
    min-width: 24px;
    height: 24px;
    background-color: var(--brand-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    margin-top: 4px; /* Вирівнювання з заголовком */
}

.why-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: #555; /* Трохи сірий заголовок, як на скріні */
    margin: 0 0 8px 0;
}

.why-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* --- ПРАВА КОЛОНКА (КАРТКИ) --- */
.why-stats-wrapper {
    flex: 1;
    position: relative;
    height: 500px; /* Фіксована висота контейнера для карток */
}

.stats-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Загальний стиль картки */
.stat-card {
    position: absolute;
    background: linear-gradient(135deg, #ff9d4d 0%, #f37021 100%); /* Градієнт */
    color: #fff;
    padding: 35px 30px;
    width: 260px; /* Фіксована ширина картки */
    box-shadow: 0 20px 40px rgba(243, 112, 33, 0.25); /* Помаранчева тінь */
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px); /* Ефект підняття при наведенні */
}

.stat-card h3 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 600; /* Трохи тонший, як на скріні */
    margin: 0 0 10px 0;
    color: #fff;
}

.stat-card p {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
}

/* --- ПОЗИЦІОНУВАННЯ КАРТОК (Як на фото) --- */

/* 1. Верхня ліва (20+ Years) */
.card-1 {
    top: 20px;
    left: 0;
    z-index: 2;
}

/* 2. Права (1 Million+) - Зсунута вниз і вправо */
.card-2 {
    top: 130px;
    right: 0;
    z-index: 1;
}

/* 3. Нижня (500K+) - Зсунута ще нижче і ближче до центру */
.card-3 {
    bottom: 40px;
    left: 60px;
    z-index: 3;
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .why-grid {
        flex-direction: column;
        gap: 60px;
    }

    .why-stats-wrapper {
        width: 100%;
        height: auto; /* Висота по контенту */
    }

    .stats-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center; /* Центруємо картки */
    }

    /* Скидаємо абсолютне позиціонування для мобільного */
    .stat-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%; /* На всю ширину */
        max-width: 350px;
    }
}

/* =============================================================
   Meet the team
   ============================================================= */
/* --- СЕКЦІЯ --- */
.team-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: left;
}
/* --- ЗАГОЛОВОК --- */
.team-header {
    margin-bottom: 60px;
}
.team-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}
.team-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}
.team-name a,
.team-name a:visited,
.team-name a:hover,
.team-name a:active {
    color: var(--maine-black);
    text-decoration: none;
}
/* --- СІТКА (GRID) --- */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.team-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}
/* --- КАРТКА УЧАСНИКА --- */
.team-card {
    flex: 0 1 240px;
    text-align: center;
}
/* Фото */
.team-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
}
.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}
/* Інформація */
.team-role {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.team-name {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 600;
    color: var(--maine-black);
    margin: 0 0 15px 0;
}
/* Іконка пошти */
.team-email-icon {
    display: inline-flex;
    color: #999;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 4px;
    width: 40px;
    height: 30px;
    align-items: center;
    justify-content: center;
}
.team-email-icon:hover {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}
/* Анімація появи (.fade-up / @keyframes fadeInUp) — у base.css. */
/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .team-row {
        flex-direction: column;
        gap: 50px;
    }
    .team-card {
        flex: 1 1 100%;
    }
    .team-img-wrapper {
        height: 350px;
    }
}

/* =============================================================
   CTA banner
   ============================================================= */
/* --- ОБГОРТКА --- */
.cta-section-wrapper {
    width: 100%;
    padding: 80px 0; /* Відступи зверху і знизу для простору анімації */
    display: flex;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

/* --- БАНЕР (Що анімується) --- */
.cta-banner {
    width: 100%;
    max-width: 100%; /* Спочатку він може бути меншим через JS */
    /* ГРАДІЄНТ: Темно-сірий -> Помаранчевий */
    background: linear-gradient(90deg, #2a2a2a 0%, #2a2a2a 30%, #a64d16 60%, #e0691e 100%);
    padding: 80px 10%; /* Внутрішні відступи */
    
    /* Початковий стан (змінюється скриптом) */
    transform: scale(0.92); 
    border-radius: 20px;
    transition: transform 0.1s linear, border-radius 0.1s linear; /* Плавність для скрипта */
}

.cta-inner-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- ТЕКСТ --- */
.cta-content {
    flex: 1;
    color: #fff;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.cta-desc {
    font-size: 16px;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.5;
    margin: 0;
}

/* --- ПРАВА ЧАСТИНА (КНОПКИ) --- */
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Стиль "Glassmorphism" для кнопок */
.cta-box {
    display: block;
    background: rgba(255, 255, 255, 0.1); /* Напівпрозорий білий */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонка рамка */
    padding: 20px 30px;
    min-width: 280px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px); /* Ефект розмиття фону під кнопкою */
}

.cta-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px); /* Легкий зсув вліво */
}

.cta-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.cta-value {
    display: block;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px; /* Відступ підкреслення */
    text-decoration-thickness: 1px;
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .cta-banner {
        transform: none !important; /* Вимикаємо анімацію масштабу на мобільних */
        border-radius: 0 !important;
        padding: 60px 20px;
        background: linear-gradient(180deg, #2a2a2a 0%, #e0691e 100%); /* Градієнт зверху вниз */
    }

    .cta-inner-grid {
        flex-direction: column;
        gap: 40px;
        text-align: left;
    }

    .cta-title {
        font-size: 36px;
    }
    
    .cta-actions {
        width: 100%;
    }
    
    .cta-box {
        width: 100%;
    }
}

/* =============================================================
   CTA banner — button
   ============================================================= */
/* --- КНОПКА REQUEST A QUOTE --- */
.cta-request-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 15px 38px;
    background-color: #fff;
    color: var(--brand-orange);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cta-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* =============================================================
   Featured projects
   ============================================================= */
/* --- СЕКЦІЯ --- */
.projects-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

/* --- ЗАГОЛОВОК --- */
.projects-header {
    margin-bottom: 40px;
}

.projects-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.projects-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

/* --- СЛАЙДЕР (КОНТЕЙНЕР) --- */
.projects-slider {
    /* Усі чотири проєкти в один ряд. */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Приховуємо скролбар для Chrome/Safari */
.projects-slider::-webkit-scrollbar {
    display: none;
}

/* --- КАРТКА ПРОЄКТУ --- */
.project-card {
    position: relative;
    height: 380px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

/* Картинка фону */
.project-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.project-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ефект зуму при наведенні */
.project-card:hover .project-bg {
    transform: scale(1.05);
}

/* Затемнення знизу (Градієнт) */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Затемнюємо тільки нижню частину */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* Контент */
.project-content {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
    text-align: center;
}

.project-category {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.project-name {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .projects-slider {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .projects-slider::-webkit-scrollbar {
        display: none;
    }

    .project-card {
        flex: 0 0 280px;
        height: 400px;
        scroll-snap-align: start;
    }
}

/* =============================================================
   Results
   ============================================================= */
/* --- СЕКЦІЯ --- */
.results-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

/* --- ЗАГОЛОВОК --- */
.results-header {
    margin-bottom: 60px;
}

.results-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.results-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.2;
}

/* --- WRAPPER (Контейнер для накладання) --- */
.results-wrapper {
    position: relative;
    width: 100%;
    min-height: 550px; /* Висота композиції */
    display: flex;
    align-items: center; /* Центруємо картку по вертикалі відносно фото */
}

/* --- ФОТО (Зліва) --- */
.results-image-box {
    width: 65%; /* Займає 65% ширини контейнера */
    height: 550px;
    position: relative;
    overflow: hidden;
    /* Тінь для фото */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
}

.results-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- КАРТКА (Справа, накладається) --- */
.results-card {
    position: absolute;
    right: 0; /* Притиснута до правого краю */
    width: 45%; /* Ширина картки */
    background-color: #fffaf7; /* Кремовий фон, як на макеті */
    padding: 50px;
    box-shadow: -10px 20px 50px rgba(0,0,0,0.05); /* Легка тінь */
    z-index: 2; /* Поверх фото */
}

.card-heading {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

/* --- СТАТИСТИКА (Grid) --- */
.results-stats-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-orange);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Розділювач */
.divider-line {
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
    margin-bottom: 40px;
}

/* --- ПРОГРЕС БАРИ --- */
.progress-bars-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.progress-item {
    width: 100%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-orange);
}

.progress-track {
    width: 100%;
    height: 2px; /* Тонка лінія, як на макеті */
    background-color: #ddd;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: #666; /* Темно-сірий заповнювач */
    position: absolute;
    top: 0;
    left: 0;
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .results-wrapper {
        flex-direction: column; /* Вертикальне розташування */
        min-height: auto;
    }

    .results-image-box {
        width: 100%;
        height: 300px;
        margin-bottom: -50px; /* Картка трохи наїде на фото знизу */
        z-index: 1;
    }

    .results-card {
        position: relative;
        width: 90%; /* Ширина картки на мобільному */
        right: auto;
        padding: 30px;
        z-index: 2;
        /* Вирівнюємо по центру */
        margin: 0 auto; 
    }

    .results-stats-grid {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number { font-size: 28px; }
}

/* =============================================================
   Contact
   ============================================================= */
/* --- СЕКЦІЯ --- */
.contact-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.contact-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* --- ЛІВА КОЛОНКА --- */
.contact-info-col {
    flex: 1;
    max-width: 450px;
}

.contact-subtitle {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.contact-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
}

.contact-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Контактні методи (Телефон, Email) */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.c-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--brand-orange); /* Помаранчевий квадрат */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    border-radius: 2px; /* Легке заокруглення */
}

.c-details {
    display: flex;
    flex-direction: column;
}

.c-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--maine-black);
    margin-bottom: 4px;
}

.c-link {
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.c-link:hover {
    color: var(--brand-orange);
}

/* Соцмережі */
.social-icons-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-circle:hover {
    transform: translateY(-3px);
}

.social-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    max-width: 300px;
}

/* --- ПРАВА КОЛОНКА (ФОРМА) --- */
.contact-form-col {
    flex: 1;
    position: relative;
}

.form-wrapper-outer {
    position: relative;
    padding-top: 30px; /* Місце для виступу фону */
}

/* Помаранчевий фон позаду */
.form-orange-bg {
    position: absolute;
    top: 0;
    right: -50px; /* Виступає вправо */
    width: 100%;
    height: 90%;
    background-color: var(--brand-orange);
    z-index: 1;
}

/* Біла коробка форми */
.form-box-inner {
    position: relative;
    background: #fff;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 2; /* Поверх помаранчевого */
    margin-right: 30px; /* Відступ від правого краю помаранчевого */
}

/* Стилі полів */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #333;
    background: #fff;
    border-radius: 0; /* Гострі кути як на скріні */
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
}

/* Кнопка */
.submit-btn {
    background-color: #ffad5c; /* Світліший помаранчевий */
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: var(--brand-orange);
}

/* Контейнер форми */
.custom-cf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

/* Рядок з двома колонками */
.form-row-flex {
    display: flex;
    gap: 25px; /* Відстань між колонками */
    width: 100%;
    justify-content: space-between;
}

/* Половина ширини для поля */
.form-col-half {
    width: 50%;
    flex: 1; /* Розтягується рівномірно */
}

/* На мобільних робимо в одну колонку */
@media (max-width: 767px) {
    .form-row-flex {
        flex-direction: column;
        gap: 20px;
    }
    .form-col-half {
        width: 100%;
    }
}

/* Стилізація лейблів */
.custom-cf7-form label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Стилізація полів вводу */
.wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0; /* Гострі кути */
    background: #fff;
    font-size: 14px;
    color: #333;
    box-sizing: border-box; /* Щоб відступи не ламали ширину */
    outline: none;
    transition: border-color 0.3s;
}

/* Активне поле (фокус) */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #f37021; /* Помаранчевий бордюр */
}

/* Кнопка */
.wpcf7-submit {
    background-color: #ffad5c;
    color: white;
    border: none;
    padding: 15px 35px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 10px;
    transition: 0.3s;
}

.wpcf7-submit:hover {
    background-color: #f37021;
}

/* Виправлення багу, коли CF7 додає зайві відступи */
.custom-cf7-form p {
    margin: 0;
    padding: 0;
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 991px) {
    .contact-grid {
        flex-direction: column;
        gap: 60px;
    }

    .form-orange-bg {
        width: 100%;
        right: 0;
        top: 20px;
        height: 100%;
    }

    .form-box-inner {
        margin-right: 0;
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* =============================================================
   Contact — 4-step quiz
   ============================================================= */
.quiz-wrapper {
    padding: 10px 0;
}
.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00, #f37021);
    border-radius: 10px;
    width: 25%;
    transition: width 0.4s ease;
}
.quiz-step-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.quiz-step {
    display: none;
}
.quiz-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}
.quiz-question {
    font-size: 20px;
    font-weight: 700;
    color: #002e5d;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.quiz-hint {
    font-size: 13px;
    color: #999;
    margin: 0 0 16px 0;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.quiz-option:hover {
    border-color: #f37021;
    background: #fff8f4;
}
.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    accent-color: #f37021;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.quiz-option:has(input:checked) {
    border-color: #f37021;
    background: #fff8f4;
}
.quiz-inputs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.quiz-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.quiz-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.quiz-input-group .req {
    color: #f37021;
}
.quiz-input-group input {
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-primary, sans-serif);
    width: 100%;
    box-sizing: border-box;
}
.quiz-input-group input:focus {
    border-color: #f37021;
}
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.quiz-btn-next,
.quiz-btn-submit {
    background: linear-gradient(90deg, #ff8c00, #f37021);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: opacity 0.2s;
    font-family: var(--font-primary, sans-serif);
}
.quiz-btn-next:hover,
.quiz-btn-submit:hover {
    opacity: 0.88;
}
.quiz-btn-back {
    background: none;
    border: 2px solid #ddd;
    color: #777;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: var(--font-primary, sans-serif);
}
.quiz-btn-back:hover {
    border-color: #f37021;
    color: #f37021;
}
.quiz-success {
    text-align: center;
    padding: 40px 20px;
}
.quiz-success-icon {
    font-size: 64px;
    color: #f37021;
    margin-bottom: 20px;
}
.quiz-success h3 {
    font-size: 28px;
    font-weight: 700;
    color: #002e5d;
    margin: 0 0 12px 0;
}
.quiz-success p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* =============================================================
   Testimonials
   ============================================================= */
.ce-rev{
  /* ===== НАЛАШТУВАННЯ (під CoreExec) ===== */
  --accent:#f37021;
  --heading:#1a1a1a;
  --text:#666666;
  --star:#fbbc04;
  --border:#ececec;
  /* ====================================== */
  font-family:'Helvetica','Arial',sans-serif;
  color:var(--text);max-width:1200px;margin:0 auto;padding:10px 0;
}
.ce-rev *{box-sizing:border-box}

.ce-rev__head{text-align:center;margin-bottom:45px}
.ce-rev__eyebrow{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-bottom:12px}
.ce-rev__title{font-size:clamp(30px,4vw,48px);font-weight:700;line-height:1.1;color:var(--heading);margin:0 0 26px}
.ce-rev__summary{display:inline-flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:center;padding:14px 16px 14px 22px;background:#fff;border:1px solid var(--border);box-shadow:0 10px 40px rgba(0,0,0,.08)}
.ce-rev__glogo{width:34px;height:34px;flex-shrink:0}
.ce-rev__summary-meta{display:flex;flex-direction:column;text-align:left}
.ce-rev__summary-rate{display:flex;align-items:center;gap:8px}
.ce-rev__summary-rate strong{font-size:24px;line-height:1;color:#1a1a1a;font-weight:700}
.ce-rev__summary-count{font-size:13px;color:#999}
.ce-rev__stars{position:relative;display:inline-block;font-size:18px;letter-spacing:2px;line-height:1;color:#dadce0}
.ce-rev__stars::before{content:"★★★★★";position:absolute;left:0;top:0;overflow:hidden;color:var(--star);width:calc(var(--rate)/5*100%)}
.ce-rev__btn{display:inline-block;padding:14px 26px;background:var(--accent);color:#fff;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;transition:.2s;white-space:nowrap;border:0;cursor:pointer}
.ce-rev__btn:hover{background:#d95f15}

/* СІТКА: 3 рівні колонки, однакова висота */
.ce-rev__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:stretch}
@media (max-width:980px){.ce-rev__grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.ce-rev__grid{grid-template-columns:1fr}}

/* КАРТКА */
.ce-rev__card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--border);box-shadow:0 10px 40px rgba(0,0,0,.06);padding:26px;cursor:pointer;transition:.2s;outline:none}
.ce-rev__card:hover,.ce-rev__card:focus-visible{box-shadow:0 14px 44px rgba(0,0,0,.13);border-color:var(--accent);transform:translateY(-3px)}
.ce-rev__top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.ce-rev__avatar{width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--c,#3949ab);color:#fff;border-radius:50%;font-size:19px;font-weight:600;text-transform:uppercase}
.ce-rev__id{display:flex;flex-direction:column;flex:1;min-width:0}
.ce-rev__name{font-weight:700;font-size:15px;color:#1a1a1a;display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.25}
.ce-rev__meta{font-size:12px;color:#999;margin-top:2px}
.ce-rev__card-g{width:22px;height:22px;flex-shrink:0;align-self:flex-start}
.ce-rev__badge{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:var(--accent);padding:2px 7px;line-height:1.4}
.ce-rev__row{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.ce-rev__rstars{color:var(--star);font-size:15px;letter-spacing:1px}
.ce-rev__time{font-size:12px;color:#999}
.ce-rev__text{font-size:14px;line-height:1.7;color:var(--text);margin:0;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.ce-rev__full{display:none}
.ce-rev__readmore{margin-top:auto;padding-top:16px;color:var(--accent);font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}

/* МОДАЛКА */
.ce-rev__modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:20px;font-family:'Helvetica','Arial',sans-serif}
.ce-rev__modal.is-open{display:flex}
.ce-rev__modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.ce-rev__modal-box{position:relative;background:#fff;max-width:600px;width:100%;max-height:85vh;overflow-y:auto;padding:34px;box-shadow:0 20px 60px rgba(0,0,0,.35);animation:ceRevIn .2s ease}
@keyframes ceRevIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.ce-rev__modal-x{position:absolute;top:14px;right:16px;background:none;border:0;font-size:30px;line-height:1;color:#999;cursor:pointer;padding:0}
.ce-rev__modal-x:hover{color:#1a1a1a}
.ce-rev__modal-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;padding-right:30px}
.ce-rev__modal-text{font-size:15px;line-height:1.75;color:#444;margin:6px 0 24px}
.ce-rev__modal-btn{display:inline-block}

@media (max-width:640px){
  .ce-rev__summary{width:100%;justify-content:space-between}
  .ce-rev__modal-box{padding:26px 22px}
}

/* =============================================================
   Section spacing
   ============================================================= */
/* Vertical rhythm between sections.
   Elementor put a 20px gap between widgets plus a couple of negative
   container margins; these rules reproduce that spacing verbatim. */
.ce-home > section,
.ce-home > .ce-rev {
    margin-block-end: 20px;
}

.ce-home > .hero-section {
    margin-block-start: -3%;
}

.ce-home > .process-section {
    margin-block-start: -2%;
}

.ce-home > .ce-rev {
    margin-block-start: 4%;
}

.ce-home > :last-child {
    margin-block-end: 0;
}

/* =============================================================
   Вертикальні кліпи з майданчика (9:16)
   ============================================================= */

.ce-reels {
    padding: 90px 0;
    background-color: #fff;
}

.ce-reels__head {
    max-width: 720px;
    margin-bottom: 50px;
}

.ce-reels__eyebrow {
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
}

.ce-reels__title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin: 0 0 18px;
}

.ce-reels__lead {
    font-size: 17px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Horizontal strip: three tiles in view plus a sliver of the fourth, so it is
   obvious the row scrolls. Native scroll with snap points — works with touch,
   trackpad and the arrows below. */
.ce-reels__grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: #d9d9d9 transparent;
}

.ce-reels__grid::-webkit-scrollbar {
    height: 6px;
}

.ce-reels__grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.ce-reels__grid::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.ce-reels__grid::-webkit-scrollbar-thumb:hover {
    background: var(--brand-orange);
}

/* Fixed tile width, not a share of the container. A flex item defaults to
   min-width:auto, so the video's own 720px intrinsic width was pushing the
   tiles far wider than the basis asked for. A set width plus min-width:0
   removes that floor and keeps the strip identical on every screen. */
.ce-reel {
    flex: 0 0 auto;
    width: 300px;
    min-width: 0;
    scroll-snap-align: start;
    margin: 0;
}

@media (max-width: 991px) {
    .ce-reel {
        width: 260px;
    }
}

@media (max-width: 700px) {
    .ce-reels__grid {
        gap: 16px;
    }

    .ce-reel {
        width: 240px;
    }
}

/* The frame holds the 9:16 shape, so the row keeps its height before any
   media loads and never reflows. */
.ce-reel__frame {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 14px;
    background: #1a1a1a;
    box-shadow: 0 18px 45px rgba(0, 46, 93, .16);
}

.ce-reel__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Once the native controls appear, cropping the edges would hide them. */
.ce-reel.is-playing .ce-reel__video[controls] {
    object-fit: contain;
    background: #000;
}

.ce-reel__label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.ce-reel__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    cursor: pointer;
    transition: background .25s ease, opacity .25s ease;
}

.ce-reel__play::before {
    content: "";
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 8px 26px rgba(243, 112, 33, .45);
    transition: transform .25s ease;
}

.ce-reel__play svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.ce-reel__play:hover {
    background: rgba(0, 0, 0, .3);
}

.ce-reel__play:hover::before {
    transform: scale(1.08);
}

.ce-reel__play:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 3px;
}

/* The button steps aside once playback starts. */
.ce-reel.is-playing .ce-reel__play {
    opacity: 0;
    visibility: hidden;
}

.ce-reel__caption {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Arrows: only useful where there is a pointer. */
.ce-reels__nav {
    display: flex;
    gap: 10px;
}

.ce-reels__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    background: #fff;
    color: var(--maine-black);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.ce-reels__arrow svg {
    width: 18px;
    height: 18px;
}

.ce-reels__arrow:hover:not(:disabled) {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.ce-reels__arrow:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
}

.ce-reels__arrow:disabled {
    opacity: .35;
    cursor: default;
}

.ce-reels__topline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.ce-reels__head {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .ce-reels__topline {
        margin-bottom: 34px;
    }

    .ce-reels__nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .ce-reels {
        padding: 60px 0;
    }

    .ce-reels__title {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ce-reel__play,
    .ce-reel__play::before {
        transition: none;
    }
}
