/* Обнуление стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Активируем плавный скролл для всего браузера */
html {
    /* scroll-behavior: smooth; */
    /* Отступ сверху при скролле, чтобы заголовок не прижимался вплотную к краю */
    /* scroll-padding-top: 30px;  */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #030514; /* Темный глубокий цвет фона из макета */
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

.container {
    width: auto;
    /* max-width: 1240px; */
    margin: 0 40px;
    /* padding: 0 20px; */
}

/* Секция Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}


/* Фоновое изображение */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: 1;
    pointer-events: none;
}

/* Фоновое видео */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заставляет видео вести себя как background-size: cover */
    z-index: 1; /* Держим видео на самом заднем плане, как это было с картинкой */
    pointer-events: none; /* Чтобы видео не перехватывало клики мышкой */
}



/* Огромный контурный текст "WEB DEVELOPER" */
.bg-watermark {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%; /* Растягивается ровно на всю ширину .hero-content-wrapper (1200px без паддингов) */
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    pointer-events: none;
    z-index: 2; /* Самый задний слой внутри контейнера */
}

.bg-watermark-mob {
    display: none;
}

/* Настройки адаптивности самого SVG внутри блока */
.bg-watermark img {
    width: 90%;
    height: auto;
    max-height: 100%; /* Чтобы буквы не вылезали по высоте за пределы первого экрана */
    object-fit: contain; /* Пропорции SVG сохраняются, пустые зоны не обрезаются */
}

/* Хедер */
.header {
    position: relative;
    z-index: 10;
    padding: 10px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================
   ІНТЕРАКТИВНИЙ ЛОГОТИП (GLOBE + ROLL TEXT)
========================================= */
.interactive-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 20;
}

/* --- 1. АНІМАЦІЯ ГЛОБУСА --- */
.earth-lang {
    width: 28px; 
    height: 28px;
    position: relative;
}

.globe {
    will-change: transform;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: auto;
    overflow: hidden;
}

.globe-wrap {
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    display: block;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(30deg);
    animation: globe-spin 5.4s cubic-bezier(0.35, 0, 0.65, 1) infinite;
    overflow: hidden;
    box-shadow: inset 0px 0px 0px 1.5px #ffffff; /* Повністю білий колір */
}

.globe .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: inset 1px 0px 0px 1px #ffffff;
    animation: globe-circle 2.7s linear infinite;
}

.globe .circle:nth-child(1) { animation-delay: -1.8s; }
.globe .circle:nth-child(2) { animation-delay: -0.9s; }

.globe .circle-hor {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    height: 55%;
    box-shadow: inset 0px 0px 0px 1.5px #ffffff;
}

.globe .circle-hor-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    transform: translate(-50%, -50%);
    height: 1.5px;
    background: #ffffff;
}

/* Ключові кадри Глобуса */
@keyframes globe-spin {
    0% { transform: translate(-50%, -50%) rotate(15deg); }
    50% { transform: translate(-50%, -50%) rotate(-15deg); }
    100% { transform: translate(-50%, -50%) rotate(15deg); }
}

@keyframes globe-circle {
    0% {
        border-radius: 50%;
        box-shadow: inset 0px 0px 0px 1.5px #ffffff;
        width: 100%;
    }
    49% {
        border-radius: 50%;
        box-shadow: inset 1.5px 0px 0px 0.5px #ffffff;
        background: transparent;
    }
    50% {
        border-radius: 0%;
        width: 1.5px;
        background: #ffffff;
    }
    51% {
        border-radius: 50%;
        box-shadow: inset -0.5px 0px 0px 1.5px #ffffff;
        background: transparent;
    }
    100% {
        border-radius: 50%;
        box-shadow: inset -1.5px 0px 0px 0px #ffffff;
        width: 100%;
    }
}

/* --- 2. АНІМАЦІЯ ТЕКСТУ (TEXT ROLL) --- */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

/* Маска для обрізки тексту */
.logo-line {
    display: block;
    overflow: hidden; 
    position: relative;
}

/* Типографіка логотипу */
.logo-title {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1; 
    letter-spacing: -0.02em;
    /* text-transform: uppercase; */
    color: #ffffff;
}

.logo-sub {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.75);
}

/* Блок, що рухається */
.logo-roll {
    display: block;
    position: relative;
    /* Трохи пришвидшив анімацію для ефекту "чіткого кліку", як на відео */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Нове слово, яке чекає ЗНИЗУ (а не зверху) */
.logo-roll::after {
    content: attr(data-text); 
    position: absolute;
    top: 100%; /* Стоїть ідеально рівно ПІД оригіналом */
    left: 0;
    width: 100%;
    height: 100%;
    color: inherit; /* Зберігає оригінальний колір, без синього */
}

/* Логіка наведення: Зміщуємо весь блок ВГОРУ */
.interactive-logo:hover .logo-roll {
    transform: translateY(-100%);
}

/* .logo img {
    height: 32px;
    display: block;
} */

.nav {
    display: flex;
    align-items: center;
    gap: 8px; /* Невелика відстань між пунктами */
}

/* Базовий стиль посилань */
.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7); /* Приглушенный цвет в обычном состоянии */
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.4s ease;
    display: inline-flex;
    align-items: center;
}

/* Световая аура (Ambient Glow) — свободно выходит за пределы букв */
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%) scale(0.5);
    filter: blur(10px); 
    opacity: 0;
    z-index: -1; /* Свечение строго под текстом */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.4s ease;
}

/* Локальная маска для текста (прячет вылетающие слова) */
.nav-text-mask {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden; /* Обрезает только текст внутри себя */
    position: relative;
}

/* Контейнер текста, который сдвигается по вертикали */
.nav-text-roll {
    display: block;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1); /* Премиальная кривая разгона */
}

/* Клон слова, который ждет своей очереди внизу стопроцентно под оригиналом */
.nav-text-roll::after {
    content: attr(data-text); /* Динамически подтягивает текст из HTML */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff; /* Делаем новое вылетающее слово чисто белым */
}

/* --- СИНХРОННЫЕ ХОВЕР-ЭФФЕКТЫ --- */

.nav-link:hover, 
.nav-link.active {
    color: #ffffff;
}

/* 1. Сдвигаем текстовый блок вверх ровно на 100% его высоты */
.nav-link:hover .nav-text-roll,
.nav-link.active .nav-text-roll {
    transform: translateY(-100%);
}

/* 2. Параллельно зажигаем и увеличиваем фоновое свечение */
.nav-link:hover::before, 
.nav-link.active::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
}

/* 3. Приглушаем остальные ссылки */
.nav:hover .nav-link:not(:hover) {
    color: rgba(255, 255, 255, 0.35);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

/* Базовые стили кнопок соцсетей */
.social-icon {
    position: relative; /* Родоначальник координат для ::before */
    overflow: hidden;   /* Обрезаем круг, когда он выходит за границы иконок */
    z-index: 1;         /* Создаем новый контекст наложения */
    
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Делаем изначальную белую рамку мягче */
    border-radius: 8px;
    
    /* Плавный переход для рамки и трансформации самой кнопки */
    transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.3s ease;
}

/* Сама «Капля», которая будет расширяться */
.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%; /* Радиус чуть больше кнопки, чтобы гарантированно заполнить углы */
    height: 140%;
    border-radius: 50%; /* Изначально это идеальный круг */
    
    /* Центрируем каплю и сжимаем её в точку (scale(0)) */
    transform: translate(-50%, -50%) scale(0);
    z-index: -1; /* Прячем её ПОД иконку SVG */
    
    /* Топовая кривая Безье для эффекта "взрывного", но мягкого расширения */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Анимация иконки внутри кнопки */
.social-icon svg {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- ХОВЕР ЭФФЕКТЫ ДЛЯ КАЖДОГО БРЕНДА --- */

/* 1. Настройки для Telegram */
.social-icon-telegram::before {
    background-color: #24A1DE; /* Официальный цвет ТГ */
}
.social-icon-telegram:hover {
    border-color: #24A1DE;
    transform: translateY(-2px); /* Легкое преміум-приподнятие кнопки */
}

/* 2. Настройки для WhatsApp */
.social-icon-whatsapp::before {
    background-color: #25D366; /* Официальный цвет ВА */
}
.social-icon-whatsapp:hover {
    border-color: #25D366;
    transform: translateY(-2px);
}

/* 2. Настройки для WhatsApp */
.social-icon-viber::before {
    background-color: #7360f2; /* Официальный цвет ВА */
}
.social-icon-viber:hover {
    border-color: #7360f2;
    transform: translateY(-2px);
}

/* --- ОБЩАЯ ЛОГИКА АКТИВАЦИИ ПРИ НАВЕДЕНИИ --- */
.social-icon:hover::before {
    transform: translate(-50%, -50%) scale(1); /* Капля мгновенно расширяется, превращаясь в квадрат из-за overflow:hidden */
}

.social-icon:hover svg {
    transform: scale(1.12) rotate(8deg); /* Микро-зум и едва заметный наклон иконки для "живого" вайба */
}

.languages {
    display: flex;
    gap: 10px;
}

.lang-item {
    width: 54px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 55px;
    text-transform: uppercase;
}

.languages .on {
    color: #fff;
    font-weight: 500;
}

.label-section {
    display: inline-flex;
    gap: 8px;
    border: 1px solid #000e2b33;
    /* justify-content: start; */
    align-items: center;
    padding: 8px 12px;
    border-radius: 55px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    color: #030514;
    width: fit-content;
}

.label-section-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.label-section svg {
    width: 18px;
    height: 18px;
}

.label-section svg path {
    fill: #030514;
}    

.label-section-light svg path {
    fill: #fff;
}

.label-section span {
    font-size: 14px;
}

/* Основной контент */
/* Контейнер-обертка для всего контента (уже есть в коде) */
.hero-content-wrapper {
    position: relative;
    z-index: 5;
    flex-grow: 1;
    display: flex;
    align-items: stretch; /* Растягиваем колонки по высоте на максимум */
    margin-top: 40px;
}

/* Обновленная левая колонка */
.hero-text-block {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 6;
    
    /* Магия разделения верха и низа */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Толкает top кверху, а bottom книзу */
}

/* Стили для заголовка (верх) */
.hero-title {
    font-family: 'Raleway', sans-serif;
    /* Плавно росте від 42px на мобільних до 75px на 4K моніторах */
    font-size: 4vw; 
    font-weight: 700;
    line-height: 1.10;
    letter-spacing: -0.04em;
    margin-bottom: 0; 
    margin-top: 20px;
}

.hero-title svg {
    width: 42px;
    height: 42px;
    display: inline-block;
    margin-left: 5px;
    vertical-align: top;
}

.hero-title svg path {
    /* stroke: #fff;
    stroke-width: 2; */
    fill: #fff;
}


/* Стили для нижней группы элементов */
.text-block-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
    gap: 40px;
}

.hero-description {
    /* Плавно росте від 15px до 20px */
    font-size: 1.1vw;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    max-width: 35vw; /* Опис не буде розтягуватися на всю ширину на великих екранах */
}

/* =========================================
   ИНТЕРАКТИВНАЯ КНОПКА CTA
========================================= */
.btn-cta {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    
    /* ВАЖНО: радиус и скрытие, чтобы вылетающие квадраты не торчали */
    border-radius: 14px;
    overflow: hidden; 
    position: relative;
}

/* Текстовая часть */
.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #030514;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    height: 54px;
    padding: 0 32px;
    border-radius: 14px; 
    transition: background-color 0.3s ease;
    
    position: relative;
    z-index: 2; /* Держим текст поверх квадратов */
}

.hero .btn-cta .btn-text {
    text-transform: uppercase;
}

/* Базовые стили для квадратов */
.btn-arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    background: #ffffff;
    color: #030514;
    border-radius: 14px;
    overflow: hidden; 
    
    /* Единая плавная анимация для всех свойств */
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                margin 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.3s ease,
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Запрещаем SVG-иконке сжиматься, когда ширина квадрата падает до нуля */
.btn-arrow-box svg {
    flex-shrink: 0;
}

.btn-border .btn-arrow-box, .btn-border .btn-text {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-border:hover .btn-arrow-box, .btn-border:hover .btn-text {
    border-color: rgba(255, 255, 255, 1);
}

.btn-dark .btn-arrow-box, .btn-dark .btn-text {
    background: #030514;
    color: #fff;
}

.btn-dark-border .btn-arrow-box, .btn-dark-border .btn-text {
    background: transparent;
    color: #030514;
    border: 2px solid #03051420;
    transition: all 0.3s ease;
}

.btn-dark-border:hover .btn-arrow-box, .btn-dark-border:hover .btn-text {
    border-color: #030514;
}

.txt-under-button {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- ИСХОДНОЕ СОСТОЯНИЕ --- */

/* Левый квадрат (Спрятан) */
.box-left {
    width: 0;
    margin-right: 0;
    opacity: 0;
    transform: translateX(-30px); /* Смещен влево */
}

/* Правый квадрат (Виден) */
.box-right {
    width: 54px;
    margin-left: 3px;
    opacity: 1;
    transform: translateX(0);
}

/* --- ЭФФЕКТ ХОВЕРА --- */
/* Левый квадрат вылетает, расширяется и появляется */
.btn-cta:hover .box-left {
    width: 54px;
    margin-right: 3px;
    opacity: 1;
    transform: translateX(0);
}

/* Правый квадрат сужается, улетает вправо и исчезает */
.btn-cta:hover .box-right {
    width: 0;
    margin-left: 0;
    opacity: 0;
    transform: translateX(30px);
}

.btn-blue .btn-arrow-box, .btn-blue .btn-text  {
    background: #3375F6;
    color: #fff;
}

/* Статистика */
.hero-stats {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    /* margin-top больше не нужен, отступ регулируется через .hero-cta */
}


.stat-item {
    max-width: 12vw;
}

.stat-number {
    font-size: 3vw;
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 600;
}
.stat-text {
    font-size: 0.9vw;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    align-self: center;
}

/* Блок фотографии человека */
.hero-image-block {
    position: absolute;
    bottom: 0; /* Динамічний відступ знизу */
    left: 50%;        
    transform: translate(-50%, 0); 
    width: 100%;
    /* Фото плавно масштабується від 300px до 850px на великих моніторах */
    max-width: 45vw; 
    z-index: 4;       
    pointer-events: none; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Сама картинка */
.main-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Заготовка под видео-виджет (Круглый видео-кружок в нижнем правом углу) */
.video-widget-container {
    position: absolute; /* Позволяет оставаться на месте при скролле, либо absolute для привязки к секции */
    bottom: 20px;
    right: 40px;
    z-index: 100;
}

.hero-portfolio-txt {
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    text-transform: lowercase;
}
.hero-portfolio-txt span {
    margin-right: 5px;
}

.video-widget {
    position: relative;
    /* Розмір віджета також плавно адаптується */
    width: 20vw; 
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-widget:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.widget-video-source {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000; /* Цвет до загрузки видео */
}

.video-play-indicator {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Адаптивность для мобильных экранов */
@media (max-width: 1024px) {
    .hero-image-block { position: relative; left: 0; transform: none; margin: 40px auto 0; }
    .video-widget-container { right: 20px; bottom: 20px; }
}

@media (max-width: 768px) {
    .nav { order: 3; width: 100%; justify-content: center; overflow-x: auto; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-divider { display: none; }
    .video-widget { width: 180px; height: 110px; }
}

.right-nav {
    display: flex;
    gap: 40px;
}



/* =========================================
   СЕКЦІЯ: ПОСЛУГИ ТА ВАРТІСТЬ
========================================= */
.services-section {
    background-color: #f4f7fb;
    color: #030514; /* Темний текст */
    padding: 100px 0;
}

/* Заголовок секції */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    /* display: flex;
    align-items: flex-startcenter;
    gap: 10px; */
    display: block;
    line-height: 1;
}

.section-title svg {
    width: 30px;
    height: 30px;
    display: inline-block; /* Теперь иконка ведет себя как часть текста (как буква или слово) */
    margin-left: 5px; /* Тот самый отступ от последнего слова */
    vertical-align: top;
}

/* Оновлений бейдж-опис в хедері секції */
.pricing-badge {
    display: flex;
    align-items: center; /* Центруємо по вертикалі відносно іконки */
    gap: 16px;
    /* Прибираємо старий фон, рамку та паддінги */
    background: transparent;
    border: none;
    padding: 0;
}

/* Новий квадратик для іконки */
.pricing-badge-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    background-color: #f4f6ff; /* Дуже м'який синьо-фіолетовий фон */
    color: #3375F6; /* Насичений колір самої іконки */
    border-radius: 12px;
    flex-shrink: 0; /* Щоб іконка не стискалась */
}

/* Оновлений текст */
.pricing-badge-text {
    font-size: 16px;
    line-height: 1.4;
    color: #334155; /* Темно-сірий колір тексту, як на макеті */
}

/* Лейбли колонок */
.services-labels {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1.5fr 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.label-col {
    font-size: 14px;
    color: #94a3b8;
    text-transform: lowercase;
}

.label-col span {
    color: #cbd5e1;
    margin-right: 5px;
}

/* Акордеон: загальний пункт */
.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 5px;
    /* Задаємо початкові нульові значення для плавного старту анімації */
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    /* border-radius: 10px;  */
}

/* ФІКС: Об'єднуємо анімацію ховеру (0.4s) та скрол-появи (0.8s) */
.accordion-item.reveal-fade-up {
    transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.4s ease, 
                border-color 0.4s ease,
                border-radius 0.4s ease,
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Ховер спрацьовує ТІЛЬКИ якщо елемент НЕ має класу .active */
.accordion-item:not(.active):hover {
    border-bottom-color: transparent; 
    padding-left: 30px;
    padding-right: 30px;
    background-color: #fff;
    border-radius: 20px;
}

/* Шапка акордеону */
.accordion-head {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1.5fr 60px;
    align-items: center;
    padding: 30px 0;
    cursor: pointer;
}

.acc-info {
    display: flex; 
    gap: 10px;
}

.acc-info .acc-num {
    padding-top: 4px;
    color: #94a3b8;
    font-size: 14px;
}

/* Ефект наведення на шапку */
.accordion-head:hover .acc-info h3 {
    color: #3375F6;
}

.accordion-head:hover .toggle-icon::before,
.accordion-head:hover .toggle-icon::after {
    background-color: #3375F6;
}

/* Інформація в шапці */
.acc-info h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.acc-info p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    max-width: 90%;
    font-weight: 500;
}

.acc-duration {
    font-size: 18px;
    font-weight: 600;
    color: #3375F6;
}

.acc-price {
    font-size: 22px;
    font-weight: 700;
}

/* Іконка плюс/мінус */
.acc-toggle {
    display: flex;
    justify-content: flex-end;
}

.toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #030514;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.toggle-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.toggle-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.accordion-item.active .toggle-icon::after {
    transform: rotate(90deg) scale(0);
}

/* Плавное раскрытие аккордеона через Grid */
.accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-item.active .accordion-body {
    grid-template-rows: 1fr;
}

/* Обёртка внутри body для правильного скрытия контента */
.accordion-content {
    overflow: hidden;
    /* Убираем прыжки марджинов */
    padding-bottom: 0; 
    transition: padding-bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-item.active .accordion-content {
    padding-bottom: 30px; /* Отступ снизу только когда открыто */
}

/* =========================================
   BENTO СІТКА ДЛЯ КОНТЕНТУ ПОСЛУГ
========================================= */
.service-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 10px;
    margin-bottom: 16px;
}

.service-card {
    background: #fff;
    /* border: 1px solid #e2e8f0; */
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.service-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #E3EDF6; /* Дуже світлий синій фон */
    color: #3375F6; /* Твій фірмовий синій */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.service-card-head h4 {
    font-size: 16px;
    font-weight: 700;
    color: #030514;
    margin: 0;
    line-height: 1.3;
}

/* Маркерований список (Галочки) */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    position: relative;
    padding-left: 16px;
}

/* Синя галочка через CSS (швидко і чисто) */
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px; /* Трохи опустили, щоб точка була чітко по центру першого рядка тексту */
    width: 4px; /* Ширина точки */
    height: 4px; /* Висота точки */
    border-radius: 50%; /* Робить квадрат ідеально круглим */
    background-color: #3375F6; /* Твій фірмовий синій колір */
}

/* Примітка внизу картки */
.service-card-note {
    font-size: 12px;
    color: #64748b;
    margin-top: auto; /* Притискаємо до низу */
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    line-height: 1.5;
}

/* Виділений інформаційний блок у 4-й картці */
.service-info-box {
    background: #E3EDF6;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-top: auto;
    align-items: flex-start;
    color: #1e3a8a; /* Темно-синій текст */
}

.service-info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.service-info-box span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* --- НИЖНІЙ БАНЕР ІЗ ЗАКЛИКОМ (CTA) --- */
.service-bottom-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border: 1px solid #e2e8f0; */
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    margin-bottom: 20px;
}

.s-cta-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.s-cta-info svg {
    flex-shrink: 0;
}

.s-cta-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: #030514;
    margin-bottom: 4px;
}

.s-cta-info p {
    font-size: 14px;
    color: #475569;
    margin: 0;
}

/* Адаптивність для сітки */
@media (max-width: 1200px) {
    .service-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-bento-grid {
        grid-template-columns: 1fr;
    }
    .service-bottom-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .btn-cta.btn-blue {
        width: 100%;
        display: flex;
    }
    .btn-cta.btn-blue .btn-text {
        flex-grow: 1;
    }
}


/* =========================================
   СЕКЦІЯ: ПОРТФОЛІО
========================================= */
.portfolio-section {
    background-color: #030514;
    color: #ffffff;
    padding: 100px 0;
}

.portfolio-header, .reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px; /* Трохи збільшили відступ, бо тексту стало більше */
}

.portfolio-title-wrapper, .reviews-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Відстань між заголовком і підзаголовком */
}

.section-title {
    margin-bottom: 0; /* Обнуляємо нижній відступ, бо тепер працює gap */
}

/* Стиль для нового підзаголовка */
.section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6); /* М'який сірий колір, щоб не сперечатися з H2 */
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .section-subtitle {
        font-size: 16px;
    }
}

/* Сітка */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 60px 30px; /* Великий відступ по вертикалі між рядами, стандартний по горизонталі */
}

/* Картка проєкту */
.portfolio-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;
    gap: 20px; /* Відстань між фото і текстом */
}

/* Приховуємо додаткові роботи в портфоліо до кліку "Дивитись ще" */
.hidden-portfolio-item {
    display: none;
}

/* Модифікатор для першого ряду (розтягується на 2 колонки) */
.portfolio-card.full-width {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.portfolio-card.full-width .media-wrapper {
    grid-column: 1 / -2;
}

/* Обгортка для зображення/відео: фіксуємо пропорції 16:9 */
.media-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px; /* Заокруглення як на макеті */
    overflow: hidden;
    background-color: #111116; /* Легкий фон під час завантаження */
    position: relative;
}

.media-wrapper img,
.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Легкий зум фотографії при наведенні (не чіпаємо відео) */
.portfolio-card:not(.placeholder-card):hover .card-img {
    transform: scale(1.03);
}

/* Інформація під обкладинкою */
.full-width .card-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: start;
}

.card-info {
    display: flex;
    justify-content: space-between;
}

.card-info-t-t {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    width: 60%;
}

.txt-white {
    color: #fff;
}

.full-width .card-desc {
    width: 100%;
}

.tag {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05); /* Темний напівпрозорий фон */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Картка-заглушка */
/* Оновлена картка-заглушка */
.placeholder-card {
    display: flex;
    align-items: center;
    justify-content: center;
    /* ВИДАЛИЛИ aspect-ratio: 16 / 9; */
    border: 2px dashed rgba(255, 255, 255, 0.15); 
    border-radius: 20px;
    height: 100%; /* Дозволяємо картці ідеально підлаштуватися під висоту сусідньої (Sofi) */
    min-height: 300px; /* Мінімальна висота для мобільних екранів, де вона буде в 1 колонку */
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.placeholder-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.placeholder-content span {
    font-size: 16px;
    font-weight: 500;
}

/* Оновлений футер з кнопкою (страховка від наїздів) */
.portfolio-footer {
    display: flex;
    justify-content: start;
    margin-top: 60px;
    position: relative; 
    z-index: 10; /* Гарантуємо, що кнопка завжди буде поверх будь-яких рамок */
    clear: both;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 32px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ffffff;
    color: #030514;
}

/* Адаптивність */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* Всі картки в 1 колонку */
        gap: 40px;
    }
    .portfolio-card.full-width {
        grid-column: 1; /* Скидаємо розтягування на 2 колонки */
    }
}

/* =========================================
   КАСТОМНИЙ КУРСОР (МАГНІТНИЙ ЕФЕКТ)
========================================= */
.custom-cursor {
    position: fixed;
    top: 0; 
    left: 0;
    /* Відступаємо на половину ширини і висоти, щоб мишка була рівно по центру круга */
    margin-top: -55px; 
    margin-left: -55px;
    width: 90px;
    height: 90px;
    background-color: #3375F6; /* Твій фірмовий синій */
    border-radius: 50%;
    pointer-events: none; /* Щоб не блокував кліки по самій картці! */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    
    /* Ховаємо за замовчуванням */
    /* opacity: 0; */
    transform: scale(0); 
    /* Анімація появи (збільшення і проявлення) */
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Внутрішній текст курсора для паралакс-ефекту */
.cursor-text {
    display: inline-block;
    pointer-events: none;
    /* transition тут не потрібен, бо плавність контролюватиме JS (requestAnimationFrame) */
}

/* Клас, який додаватиме JS при наведенні */
.custom-cursor.active {
    /* opacity: 1; */
    transform: scale(1);
}

/* Залишаємо стандартний курсор-ручку над зображенням/відео */
.portfolio-card:not(.placeholder-card) .media-wrapper {
    cursor: pointer;
}

/* =========================================
   СЕКЦІЯ: ВІДГУКИ (СВІТЛА ТЕМА)
========================================= */
.reviews-section {
    background-color: #f4f7fb;
    color: #030514; /* Темний текст */
    padding: 100px 0;
}

.reviews-header {
    margin-bottom: 60px;
}

.reviews-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Колір підзаголовка для світлого фону */
.reviews-section .section-subtitle, .services-section .section-subtitle, .faq-section .section-subtitle {
    color: #475569; 
}

/* Сетка Bento */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Базовая карточка з внутрішніми відступами */
.review-card {
    /* background: #ffffff;
    border: 1px solid #e2e8f0; */
    border-radius: 24px;
    /* padding: 12px; */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); */
}

.review-card:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); */
}

/* Видео-контейнер із заокругленнями */
.review-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #0d0f1d;
    border-radius: 16px; /* Заокруглення по всім кутам постера */
    overflow: hidden;
    cursor: pointer;
}

.review-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Градієнт для читабельності тексту поверх відео */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Текст автора поверх постера */
.review-author {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #ffffff;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
}

.author-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

/* Кнопка Play */
.review-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 64px;
    height: 64px;
    background-color: #3375F6; /* Фірмовий синій колір */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    pointer-events: none; /* Щоб клік проходив на wrapper */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, opacity 0.3s ease;
}

.review-play-btn svg {
    /* margin-left: 3px; */
}

.video-card:hover .review-video {
    transform: scale(1.03);
}

.video-card:hover .review-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #1d4ed8;
}

/* Стан при відтворенні відео */
.video-card.is-playing .review-play-btn,
.video-card.is-playing .video-overlay,
.video-card.is-playing .review-author {
    opacity: 0; /* Ховаємо елементи інтерфейсу, щоб дивитися відео чисто */
}

/* Текст цитати під відео */
.review-info {
    padding: 10px 8px 8px;
    display: flex;
    flex-grow: 1;
}

.review-quote {
    font-size: 15px;
    line-height: 1.5;
    color: #030514; /* Темний текст для світлого фону */
    font-weight: 500;
}

/* Заглушка (світла тема) */
.dynamic-placeholder {
    background: #F6F8FA; /* Дуже легкий сірий/блакитний фон */
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.dp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.dp-icon {
    position: relative;
    color: #3375F6; /* Синя іконка */
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decor-plus {
    position: absolute;
    font-size: 14px;
    color: #94a3b8;
    font-family: monospace;
    line-height: 1;
}
.top-left     { top: -10px; left: -10px; }
.top-right    { top: -10px; right: -10px; }
.bottom-left  { bottom: -10px; left: -10px; }
.bottom-right { bottom: -10px; right: -10px; }

.dynamic-placeholder h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: #030514;
}

.dynamic-placeholder p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 90%;
}

.btn-dark-review {
    background: #030514;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.btn-dark-review:hover {
    background-color: #111827;
    transform: translateY(-2px);
}

/* Адаптивність */
@media (max-width: 1150px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .reviews-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================
   СЕКЦІЯ: FAQ (СВІТЛА ТЕМА ТА ПЛАВНА АНІМАЦІЯ)
========================================= */
.faq-section {
    color: #030514; /* Темний текст */
    padding: 100px 0;
    background: #f4f7fb;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

/* Ліва колонка (Сайдбар) */
.faq-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #475569; /* Сірий колір тексту для світлого фону */
    margin-bottom: 20px;
}

/* Картка-заклик всередині сайдбару */
.faq-contact-card {
    background: #fff;
    /* border: 1px solid #e2e8f0; */
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-contact-card p {
    font-size: 15px;
    font-weight: 500;
    color: #030514;
}

/* Права колонка (Акордеон) */
.faq-item {
    border-bottom: 1px solid #e2e8f0; /* Світлі лінії між питаннями */
}

.faq-item:first-child {
    border-top: 1px solid #e2e8f0;
}

.faq-head {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.faq-head h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #030514; /* Темний заголовок */
    transition: color 0.3s ease;
    margin: 0;
}

.faq-head:hover h3 {
    color: #3375F6;
}

/* Кругла кнопка плюс/мінус */
.faq-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #cbd5e1; /* Сіра рамка */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #030514; /* Темна іконка */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Стан відкритого питання */
.faq-item.active .faq-toggle {
    background-color: #3375F6;
    border-color: #3375F6;
    color: #ffffff; /* Білий хрестик на синьому фоні */
    transform: rotate(45deg);
}

.faq-item.active .faq-head h3 {
    color: #3375F6;
}

/* --- ОНОВЛЕНА СУПЕР-ПЛАВНА АНІМАЦІЯ АКОРДЕОНУ --- */
.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    /* Дуже м'яка, кінематографічна крива для розгортання блоку */
    transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.faq-item.active .faq-body {
    grid-template-rows: 1fr;
}

/* Обгортка контенту всередині Grid */
.faq-content {
    overflow: hidden; 
    opacity: 0;
    transform: translateY(-15px);
    
    /* ВИПРАВЛЕННЯ: додаємо padding-bottom до transition */
    transition: opacity 0.3s ease, transform 0.3s ease, padding-bottom 0.3s ease;
    
    /* ВИПРАВЛЕННЯ: прибираємо відступ у закритому стані, щоб блок стискався рівно в 0px */
    padding-bottom: 0; 
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Стан відкритого контенту */
.faq-item.active .faq-content {
    opacity: 1;
    transform: translateY(0); 
    
    /* ВИПРАВЛЕННЯ: повертаємо відступ для тексту тільки коли блок розгорнуто */
    padding-bottom: 30px; 
    
    /* Синхронізуємо плавність появи */
    transition: opacity 0.6s ease 0.1s, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.1s, padding-bottom 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #475569; /* Сірий текст відповіді */
}

/* Оформлення списків всередині відповідей */
.faq-content ul {
    list-style: none;
    padding-left: 0;
    margin: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-content ul li {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    position: relative;
    padding-left: 20px;
}

/* Кастомний маркер (синя крапка) */
.faq-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: #3375F6;
    border-radius: 50%;
}

/* Адаптивність */
@media (max-width: 992px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .faq-sidebar {
        position: relative;
        top: 0;
    }
    .faq-content {
        padding-right: 0;
    }
    .faq-head h3 {
        font-size: 18px;
    }
}


/* =========================================
   БІГУЧИЙ РЯДОК (MARQUEE)
========================================= */
.marquee-section {
    background-color: #030514;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    padding: 40px 0;
    position: relative;
    z-index: 5;
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-text {
    /* font-family: 'Raleway', sans-serif; */
    font-size: 9vw; /* Величезний розмір тексту в стилі Bright Web */
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    /* -webkit-text-stroke: 1px rgba(255, 255, 255, 1); Контурний текст */
    display: flex;
    align-items: center;
    line-height: 1;
}

.marquee-text .separator {
    margin: 0 40px;
    color: #3375F6; /* Акцентна синя зірочка */
    font-size: 6vw;
    -webkit-text-stroke: 0; /* Прибираємо контур з іконки */
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Зміщуємо рівно на половину, де починається дублікат */
}

/* =========================================
   ФУТЕР
========================================= */
.site-footer {
    background-color: #030514;
    color: #ffffff;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

/* ВЕРХНІЙ РЯД */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #1a1a24;
    border-radius: 10px;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-messengers {
    display: flex;
    gap: 15px;
}

/* Кнопки месенджерів (Базові стилі) */
.msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.msg-text-wrapper {
    display: flex;
    align-items: center;
}

/* Анімація ширини тексту (Сучасний Grid трюк) */
.prefix {
    display: grid;
    grid-template-columns: 0fr; /* Згорнутий стан за замовчуванням */
    transition: grid-template-columns 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.prefix span {
    overflow: hidden;
    white-space: nowrap; /* Забороняємо тексту переноситися */
}

/* Логіка розкриття: 
   Якщо контейнер НЕ під мишкою - активна кнопка за замовчуванням.
   Якщо навели на будь-яку кнопку - розкривається саме вона. */
.footer-messengers:not(:has(.msg-btn:hover)) .msg-btn.active-default .prefix,
.msg-btn:hover .prefix {
    grid-template-columns: 1fr;
}

/* Індивідуальні кольори для Telegram (Адаптація під темну тему) */
.footer-messengers:not(:hover) .msg-btn.active-default.btn-telegram,
.msg-btn.btn-telegram:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: #60a5fa; /* Акцентний блакитний текст та іконка */
}

.popup-messengers:not(:hover) .msg-btn.active-default.btn-telegram {
    background: #fff;
    color: #60a5fa; /* Акцентний блакитний текст та іконка */
}

/* Індивідуальні кольори для WhatsApp (Адаптація під темну тему) */
.popup-messengers .msg-btn.btn-whatsapp:hover {
    background: #fff;
    color: #4ade80; /* Акцентний зелений текст та іконка */
}

/* Індивідуальні кольори для WhatsApp (Адаптація під темну тему) */
.msg-btn.btn-whatsapp:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80; /* Акцентний зелений текст та іконка */
}

/* СЕРЕДНІЙ РЯД */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Ліва колонка ширша, як на фотографії */
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.contacts-grid {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.contact-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    padding-top: 15px;
}

.contacts-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Величезний текст контактів як на відео */
.huge-contact {
    font-family: 'Raleway', sans-serif;
    font-size: 4vw; /* Адаптивний розмір */
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.huge-contact:hover {
    color: #3375F6; /* Фірмовий синій при наведенні */
}

.contact-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 450px;
    margin-left: 110px; /* Вирівнюємо текст по лінії email-адреси */
}

/* Велика кнопка CTA (розташування з макета, стиль преміум) */
.footer-massive-btn {
    width: 100%;
}

.footer-massive-btn .btn-text {
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    height: 90px;
    width: calc(100% - 90px);
}
.footer-massive-btn .btn-arrow-box {
    height: 90px;
}
.footer-massive-btn .box-right {
    width: 90px;
}

.footer-massive-btn:hover .box-left {
    width: 90px;
}

.footer-cta-col {
    display: flex;
    justify-content: start;
    position: relative;
    z-index: 10;
    clear: both;
 }

/* НИЖНІЙ РЯД */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.fb-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ffffff;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.pay-chip {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
}

/* АДАПТИВНІСТЬ ДЛЯ ФУТЕРА */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 0;
    }
    .footer-cta-col {
        order: -1; /* На мобільних/планшетах кнопка підніметься вгору */
    }
    .contact-desc {
        margin-left: 0;
        margin-top: 20px;
    }
    .contacts-grid {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 0;
    }
    .contact-label {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .marquee-text { font-size: 15vw; }
    .footer-top {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
    }
    .footer-socials { justify-content: center; }
    .footer-messengers { flex-direction: column; }
    .msg-btn { justify-content: center; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .fb-left {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================
   ПАРАЛАКС ФУТЕР (REVEAL EFFECT)
========================================= */
.site-main {
    position: relative;
    z-index: 2; /* Перекриває фіксований футер */
    background-color: transparent;
    transition: box-shadow 0.3s ease;
        border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    background: #fff;
}

.site-main.reveal-active {
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5); /* Тінь для глибини */
}

.footer-reveal-wrapper {
    position: relative;
    z-index: 1; /* Лежить під основним контентом */
}

.footer-reveal-wrapper.is-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}


/* =========================================
   ВИСУВНИЙ ПОПАП (DRAWER) - СВІТЛА ТЕМА
========================================= */

/* Затемнення фону (Overlay) */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(3, 5, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.popup-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Сама панель, що виїжджає (Drawer) */
.popup-drawer {
    position: fixed;
    top: 0; right: -100%; 
    width: 100%; max-width: 520px; 
    height: 100vh;
    background: #ffffff; 
    border-radius: 32px 0 0 32px; 
    z-index: 1006;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* ВИДАЛИЛИ: overflow-y: auto; та padding, щоб кнопка не обрізалася */
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.popup-drawer.is-active {
    right: 0;
}

/* Кнопка закриття (Винесена вліво за межі панелі) */
.popup-close {
    position: absolute;
    top: 24px;
    left: -74px; /* Зсуваємо вліво від панелі */
    right: auto;
    width: 62px; height: 62px;
    background: #3375F6; /* Заданий колір */
    border: none;
    border-radius: 50%;
    color: #ffffff; /* Біла іконка */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #2563eb;
    transform: rotate(90deg);
    scale: 1.1;
}

/* Контент попапу */
.popup-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px; /* Додали відступи сюди */
    overflow-y: auto; /* Додали скрол сюди */
    max-height: 100vh; /* Захист від переповнення екрану */
}

.popup-title {
    font-family: 'Raleway', sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    color: #030514; 
    margin: 0;
}

.popup-desc {
    font-size: 15px;
    color: #475569; 
    line-height: 1.6;
    margin: 0;
}

/* Група контактів (Телефон + Email) */
.popup-contacts-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Повернули твою назву класу з HTML */
.popup-phone {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 24px; 
    font-weight: 800;
    color: #030514; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.popup-phone:hover {
    color: #3375F6;
}

.contact-icon-wrap {
    width: 50px; height: 50px;
    background: #f4f6ff; 
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-icon-wrap {
    width: 50px; height: 50px;
    background: #f4f6ff; 
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Розділювач */
.popup-divider {
    position: relative;
    text-align: center;
    /* margin: 10px 0; */
}

.popup-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 1px;
    background: #e2e8f0; 
    z-index: 1;
}

.popup-divider span {
    position: relative;
    background: #ffffff; 
    padding: 0 15px;
    color: #94a3b8;
    font-size: 13px;
    z-index: 2;
}

/* Кнопки месенджерів */
.popup-messengers {
    display: flex;
    /* flex-direction: column; */
    gap: 15px;
}


.popup-msg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 60px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.popup-msg-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.popup-telegram { background: #24A1DE; }
.popup-whatsapp { background: #25D366; }

/* Адаптивність попапу (На мобільних з'являється простір зліва) */
@media (max-width: 600px) {
    .popup-drawer {
        width: calc(100% - 64px); 
        max-width: 100%;
        border-radius: 24px 0 0 24px; 
        /* ВИДАЛИЛИ padding звідси */
    }
    
    .popup-content {
        padding: 50px 20px; /* Додали адаптивні відступи сюди */
    }
    
    .popup-close {
        left: -54px; 
        top: 20px;
        width: 44px; height: 44px;
    }
    
    .popup-title { font-size: 26px; }
    
    .popup-drawer.popup-blue .popup-phone { font-size: 24px; }
    .popup-drawer.popup-blue .popup-title {
        font-size: 42px;
    }
}

/* Новая форма */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Обертка инпута для реализации Floating Label */
.form-input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 60px;
    padding: 22px 20px 8px 20px;
    background: #F8FAFC; /* Легкий серый фон */
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    font-size: 16px;
    color: #030514;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#dynamic-contact {
    padding-top: 8px;
}

/* Эффект фокуса на инпуте */
.form-input:focus {
    border-color: #3375F6;
    background: #FFFFFF;
}

/* Стили плейсхолдера-лейбла */
.form-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

/* Магия CSS: уносим лейбл наверх, если инпут в фокусе или не пустой */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    transform: translateY(-130%);
    font-size: 11px;
    color: #3375F6;
    font-weight: 600;
}

/* Кнопка отправки формы */
.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 60px;
    background: #3375F6;
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
    background: #1E5AD4;
}

.form-submit-btn:active {
    transform: scale(0.98);
}

/* Микро-анимация стрелочки на кнопке при ховере */
.form-submit-btn svg {
    transition: transform 0.3s ease;
}

.form-submit-btn:hover svg {
    transform: translateX(4px);
}

/* --- Контейнер формы --- */
.dynamic-contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    /* Убрали фон, паддинги, тени и рамки */
}

/* --- Обертка и Инпуты --- */
.form-input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 60px;
    padding: 22px 20px 8px 20px;
    background: rgba(255, 255, 255, 0.15); /* Полупрозрачный белый */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Легкая граница для четкости */
    border-radius: 14px;
    font-size: 16px;
    color: #ffffff; /* Белый текст ввода */
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Полупрозрачный плейсхолдер */
}

.form-input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25); /* Чуть светлее при фокусе */
}

/* --- Плавающие Лейблы --- */
.form-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7); /* Полупрозрачный белый текст */
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    transform: translateY(-130%);
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
}

/* --- Табы (Сегментированный контроль) --- */
.contact-method-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    /* margin: 8px 0; */
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 4px;
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачные неактивные табы */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: #ffffff; /* Белый фон для активного таба */
    border-color: #ffffff;
    color: #3375F6; /* Синий текст/иконка */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn svg {
    transition: transform 0.2s ease;
}

.tab-btn.active svg {
    transform: scale(1.1);
}

@media (max-width: 500px) {
    .contact-method-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Кнопка отправки --- */
.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 60px;
    background: #ffffff; /* Полностью белая кнопка */
    color: #3375F6; /* Синий текст */
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    /* margin-top: 8px; */
}

.form-submit-btn:hover {
    background: #f4f6ff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.form-submit-btn:active {
    transform: scale(0.98);
}

.form-submit-btn svg {
    transition: transform 0.3s ease;
}

.form-submit-btn:hover svg {
    transform: translateX(4px);
}


/* =========================================
   СИНЯ ТЕМА ДЛЯ ПОПАПУ (ДЛЯ ТЕСТУ)
   Додай клас "popup-blue" до елемента з класом "popup-drawer" в HTML
========================================= */
.popup-drawer.popup-blue {
    background: #3375F6;
}

.popup-drawer.popup-blue .popup-title,
.popup-drawer.popup-blue .popup-phone {
    color: #ffffff;
}

.popup-drawer.popup-blue .popup-phone svg path {
    stroke: #ffffff;
}

.popup-title svg {
    width: 28px;
    height: 28px;
    display: inline-block;
    margin-left: 5px;
    vertical-align: top;
}

.popup-drawer.popup-blue .popup-phone .phone-icon-wrap {
    background-color: rgba(255, 255, 255, 0.05);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.popup-drawer.popup-blue .popup-desc {
    color: rgba(255, 255, 255, 0.8);
}

.popup-drawer.popup-blue .contact-icon-wrap {
    background: rgba(255, 255, 255, 0.15);
}

.popup-drawer.popup-blue .contact-icon-wrap svg {
    stroke: #ffffff;
}

.popup-drawer.popup-blue .popup-divider::before {
    background: rgba(255, 255, 255, 0.2);
}

.popup-drawer.popup-blue .popup-divider span {
    background: #3375F6;
    color: rgba(255, 255, 255, 0.8);
}

/* Зворотні кольори для кнопок в синій темі (щоб не зливалися) */
.popup-drawer.popup-blue .popup-telegram,
.popup-drawer.popup-blue .popup-whatsapp {
    background: #ffffff;
    color: #3375F6;
}

.popup-drawer.popup-blue .popup-telegram {
    color: #24A1DE;
}

.popup-drawer.popup-blue .popup-telegram svg polygon {
    fill: #24A1DE;
}

.popup-drawer.popup-blue .popup-whatsapp {
    color: #25D366;
}

.popup-drawer.popup-blue .popup-whatsapp svg path {
    fill: #25D366;
}

.popup-drawer.popup-blue .popup-close {
    background: #ffffff;
    color: #3375F6;
}

.popup-drawer.popup-blue .popup-close:hover {
    background: #f4f6ff;
}

/* =========================================
   ПЛАВАЮЧЕ МЕНЮ (FLOATING HEADER)
========================================= */
.floating-header {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 1000;
    /* transform-origin определяет, откуда будет расти элемент. 
       center - из центра, можно также поставить 'top right', чтобы рос из угла */
    transform-origin: center; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Клас для приховування меню на першому екрані (ПК) */
.floating-header.is-hidden {
    transform: scale(0); /* Елемент стискається до 0 замість виїзду вгору */
    opacity: 0;
    pointer-events: none;
}

.fh-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Кнопка всередині плаваючого меню */
.fh-cta .btn-text {
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
}

/* Круглий бургер */
.fh-burger {
    width: 72px;
    height: 72px;
    background: #3375F6; /* Змінено на темний фон */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.fh-burger:hover {
    scale: 1.1;
}

.fh-line {
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Анімація бургера у хрестик */
.fh-burger.is-active .fh-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.fh-burger.is-active .fh-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Випадаюче вікно */
.fh-dropdown {
    position: absolute;
    top: calc(100% + 26px);
    right: 0;
    width: 280px;
    background: #3375F6; /* Змінено на темний фон */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Зробили тінь глибшою */
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.fh-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Хвостик/стрілочка, що вказує на бургер */
.fh-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 26px; 
    width: 14px;
    height: 14px;
    background: #3375F6; /* Змінено на темний фон */
    transform: rotate(45deg);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Світла обводка під темний фон */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Навігація всередині */
.fh-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fh-nav-link {
    display: flex;
    justify-content: space-between; /* Розносить текст і стрілку по краях */
    align-items: center;
    /* Прибрали шрифт Raleway (успадкується базовий Inter) */
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500; /* Зробили шрифт трохи легшим, як у базовому меню */
    color: #ffffff; /* Змінили колір тексту на білий */
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Стан при наведенні на пункт меню */
.fh-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Легке виділення фоном */
}

/* Підключаємо анімацію "перекочування" тексту */
.fh-nav-link:hover .nav-text-roll {
    transform: translateY(-100%);
}

/* Анімація стрілочки */
.fh-nav-link .arrow {
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.fh-nav-link:hover .arrow {
    transform: translateX(4px); /* Легкий зсув вправо */
}

/* Розділювач */
.fh-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1); /* Темний розділювач */
    margin: 20px 0;
}

/* Месенджери */
.fh-messengers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fh-msg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.fh-msg-btn:hover {
    transform: translateY(-2px);
}

.fh-telegram { background: #fff; color: #24A1DE;}
.fh-whatsapp { background: #fff; color: #25D366;}

/* АДАПТИВНІСТЬ */
@media (max-width: 992px) {
    .floating-header {
        top: 20px;
        right: 20px;
    }
    
    /* На мобільному ховаємо кнопку Обговорити, залишаємо лише бургер */
    .fh-cta {
        display: none !important;
    }
}

/* =========================================
   ФОН ДЛЯ ПЛАВАЮЧОГО МЕНЮ
========================================= */
.fh-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(3, 5, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998; /* Лежить одразу під плаваючим меню */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.fh-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}




/* =========================================
   ПОВНИЙ АДАПТИВ (РОЗШИРЕНІ МЕДІА-ЗАПИТИ)
========================================= */

/* --- 1. ВЕЛИКІ МОНІТОРИ (Ultrawide 1600px+) --- */
/* Обмежуємо розтягування сайту на гігантських екранах */
@media (min-width: 1600px) {

    .hero .container {
        max-width: none; 
        padding: 0 4vw; /* Відступи від країв у відсотках */
        margin: 0;
    }

    .container {
        max-width: 1440px;
        margin: 0 auto;
    }
    .hero-text-block {
        width: 100%;
        max-width: 40%;
    }
    .hero-content-wrapper {
        margin-top: 60px !important;
    }
}

@media (max-width: 1440px) {
    .bg-watermark {
        top: 30px;
    }
}

/* --- 2. НОУТБУКИ ТА ПЛАНШЕТИ (Ландшафт - до 1200px) --- */
@media (max-width: 1200px) {
    .service-bento-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки послуг замість 4 */
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки відгуків */
    }
    .portfolio-grid {
        gap: 40px 20px;
    }
    .hero-title {
        font-size: 48px;
    }
}

/* --- 3. ПЛАНШЕТИ (Портрет - до 992px) --- */
@media (max-width: 992px) {
    .container {
        margin: 0 20px; /* Зменшуємо бокові відступи */
    }
    
    /* Перебудовуємо шапку: меню падає вниз і стає скрольованим */
    .header-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    .nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto; /* Горизонтальний скрол для меню */
        padding-bottom: 5px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .nav::-webkit-scrollbar {
        display: none; /* Ховаємо повзунок скролбару для краси */
    }

    /* Заголовки секцій */
    .services-header, .portfolio-header, .reviews-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    /* Акордеон послуг (Мобільна версія) */
    .services-labels {
        display: none; 
    }
    .accordion-head {
        grid-template-columns: 1fr auto;
        /* ОСЬ ТУТ ГОЛОВНА ЗМІНА: 2 рядки замість 3 */
        grid-template-areas: 
            "info toggle"
            "duration price"; 
        gap: 15px 10px; 
        padding: 20px 0;
        align-items: center; /* Вирівнюємо по центру по вертикалі */
    }
    .acc-info { 
        grid-area: info;
    }
    .acc-duration { 
        grid-area: duration; 
        margin-top: 0; /* Важливо прибрати старий margin-top */
        font-size: 16px; 
        padding-left: 26px;
    }
    .acc-price { 
        grid-area: price; 
        font-size: 18px;
        text-align: right; /* Притискаємо ціну до правого краю */
    }
    .acc-toggle { 
        grid-area: toggle; 
        align-self: flex-start; 
        margin-top: 5px; 
    }

    /* FAQ та Футер */
    .faq-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .faq-sidebar {
        position: relative;
        top: 0;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-cta-col {
        order: -1; 
    }
    .contact-desc {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* --- 4. МОБІЛЬНІ ПРИСТРОЇ (Великі та середні смартфтони - до 768px) --- */
@media (max-width: 768px) {
    /* Hero секція */
    .hero-title {
        font-size: 38px;
        margin-top: 0;
    }
    .hero-description {
        font-size: 15px;
    }
    .bg-watermark {
        top: 20%;
    }
    .bg-watermark-full {
        display: none;
    }
    .bg-watermark-mob {
        display: block; /* Ховаємо величезні букви на фоні */
        width: 100% !important;
        opacity: .4;
    }

    .video-widget-container {
        bottom: 20px;
        right: 20px;
        z-index: 20;
    }
    .video-widget {
        width: 160px;
        height: 90px;
    }

    /* Заголовки */
    .section-title {
        font-size: 32px;
    }
    .section-title svg {
        width: 24px;
        height: 24px;
    }

    /* Сітки перетворюються на 1 колонку */
    .service-bento-grid, .portfolio-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card.full-width {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    .portfolio-card.full-width .media-wrapper {
        grid-column: auto;
    }
    
    .service-bottom-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* .review-play-btn {
        width: 50px;
        height: 50px;
    }
    .author-meta, .review-quote {
        font-size: 12px;
    }
    .dynamic-placeholder h3 {
        font-size: 16px;
    }
    .dynamic-placeholder p {
        font-size: 13px;
    }
    .review-card .btn-cta .btn-arrow-box {
        display: none;
    }
    .dynamic-placeholder {
        padding: 16px;
    } */

    /* Футер */
    .footer-top {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-messengers {
        flex-direction: column;
    }
    .msg-btn {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .fb-left {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Бігучий рядок */
    .marquee-text {
        font-size: 12vw;
    }
    .marquee-text .separator svg {
        width: 8vw;
        height: 8vw;
    }
    .floating-header {
        top: 10px;
        right: 10px;
    }
    .fh-burger {
        width: 50px;
        height: 50px;
    }
}

/* --- 5. МАЛІ МОБІЛЬНІ (Смартфони - до 480px) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(32px, 9vw, 44px) !important;
    }
    
    /* Зменшуємо відео-віджет у Hero, якщо він ввімкнений */
    .video-widget {
        width: 140px !important;
        height: 80px !important;
    }

    /* Захист від стискання контенту всередині попапів на дуже вузьких екранах */
    .popup-drawer {
        padding: 40px 20px !important; 
        justify-content: start;
    }
    .popup-content {
        padding: 0 !important;
        gap: 20px;
    }
    .popup-close {
        left: -48px !important; /* Наближаємо хрестик ближче до панелі */
        width: 40px !important; 
        height: 40px !important;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-divider {
        display: none;
    }

    .popup-drawer.popup-blue .popup-title {
        display: none;
    }
    .popup-drawer.popup-blue .popup-desc {
        color: #fff;
        font-size: 16px;
        font-weight: 500;
    }

    .popup-divider span {
        font-size: 12px;
        padding: 0;
    }
    .popup-divider::before {
        content: none;
    }
    
    /* Шапка */
    .header-contacts {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 15px;
    }
    .phone {
        font-size: 16px;
    }
    .languages {
        align-self: flex-start;
    }

    /* Адаптація інтерактивних кнопок під 100% ширини екрану */
    .btn-cta, .btn-dark-review, .service-bottom-cta .btn-cta, .footer-massive-btn {
        width: 100%;
        display: flex;
    }
    .btn-cta .btn-text {
        flex-grow: 1; /* Текст займає весь вільний простір */
        padding: 0 15px;
    }
    
    /* Скидання специфічних розмірів футер-кнопки для мобільного */
    .footer-massive-btn .btn-text, .footer-massive-btn .btn-arrow-box {
        height: 54px;
    }
    .footer-massive-btn .box-right, .footer-massive-btn:hover .box-left {
        width: 54px;
    }
    
    .huge-contact {
        font-size: 24px;
    }
    
    /* Ховаємо відео-віджет, щоб не перекривав контент на маленьких екранах */
    .video-widget-container {
        display: none; 
    }

    .portfolio-card {
        gap: 16px;
    }
    .card-info {
        flex-direction: column;
        gap: 16px;
    }
    .card-info .card-desc {
        width: 100%;
    }

    .placeholder-card {
        min-height: 200px;
    }
}

/* =========================================
   МОБІЛЬНА ВЕРСІЯ HERO (ЗГІДНО МАКЕТУ)
========================================= */

/* Ховаємо бургер на ПК */
.mobile-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 992px) {
    /* Ховаємо десктопне меню та контакти, показуємо бургер */
    .nav, .header-contacts { display: none; }
    .mobile-burger { display: block; }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 10px;
        height: auto;
        min-height: auto;
    }

    .hero-content-wrapper {
        flex-direction: column;
        margin-top: 20px;
    }

    /* РОБИМО МАГІЮ: Дозволяємо дочірнім елементам вишикуватися в загальний Flex */
    .hero-text-block {
        display: contents; 
    }

    /* 1. Заголовок йде першим */
    .text-block-top {
        order: 1;
        position: relative;
        z-index: 10;
    }

    /* 2. Фотографія Влада йде другою (Одразу під заголовком) */
    .hero-image-block {
        order: 2;
        position: relative;
        transform: none;
        left: 0;
        width: 100%;
        max-width: 100%;
        margin: -90px auto 0; /* Трохи наїжджаємо на заголовок, як на макеті */
        z-index: 5;
        -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    }
    /* 3. Опис, кнопка та статистика йдуть третіми */
    .text-block-bottom {
        order: 3;
        position: relative;
        z-index: 10;
        width: 100%;
        max-width: 100%;
        gap: 30px;
    }

    .hero-description {
        max-width: 100%;
        margin-bottom: 25px;
        display: none;
    }

    /* Кнопка на мобільному (зберігаємо розмір, не розтягуємо на 100%) */
    .hero .btn-cta {
        width: 100%;
        display: inline-flex;
    }
    .hero .btn-cta .btn-text {
        flex-grow: 0;
        padding: 0 24px; /* Робимо її акуратною, як на макеті */
        width: calc(100% - 48px);
        font-weight: 500;
        
    }

    /* Статистика: повертаємо в один ряд із лінією посередині */
    .hero-stats {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        width: 100%;
        justify-content: space-between;
    }
    .stat-number {
        font-size: 26px;
    }
    .stat-text {
        font-size: 13px;
    }
    .stat-item {
        max-width: 50%;
    }
    .stat-divider {
        display: none;
        width: 1px;
        height: 50px;
        background: rgba(255, 255, 255, 0.15);
    }
    .hero-cta {
        width: 100%;
    }
    .box-left {
        display: none;
    }

    /* 4. Відео-віджет падає в самий низ секції */
    .video-widget-container {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 60px;
        order: 4; /* Четвертий елемент в колонці */
        z-index: 10;
    }

    .video-widget {
        width: 100%;
        max-width: 100%;
    }
}


/* =========================================
   ПЛАВАЮЧИЙ ВІДЖЕТ ЗВ'ЯЗКУ (PULSE BUTTON)
========================================= */
.floating-contact-widget {
    position: fixed;
    bottom: 30px;
    right: 40px; 
    z-index: 1001; 
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    /* Новое: анимация появления через масштаб */
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Новое: класс скрытого состояния виджета */
.floating-contact-widget.is-hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

/* --- Меню з іконками (Сховане за замовчуванням) --- */
.fc-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    margin-right: 7px; /* Центруємо 50px іконки відносно 64px головної кнопки */
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Коли віджет активний - показуємо меню */
.floating-contact-widget.is-active .fc-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Маленькі кнопки месенджерів */
.fc-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #fff;
}

.fc-item:hover { transform: scale(1.1); }
.fc-viber { background: #7360f2; }
.fc-whatsapp { background: #25D366; }
.fc-telegram { background: #24A1DE; }
.fc-form { background: #030514; }
.btn-phone-ios { background: #34C759; }

/* --- Головна кнопка та підказка --- */
.fc-trigger-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Текстова бульбашка "Зв'язок" */
.fc-tooltip {
    background: #3375F6;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Хвостик бульбашки */
.fc-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #3375F6;
}

/* Ховаємо бульбашку при кліку */
.floating-contact-widget.is-active .fc-tooltip {
    opacity: 0;
    transform: translateX(-15px);
    pointer-events: none;
}

/* Сама кругла кнопка */
.fc-trigger {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

/* Фотографія всередині кнопки */
.fc-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Іконка закриття (Спочатку схована) */
.fc-close-icon {
    position: absolute;
    color: #030514; /* Темний колір хрестика */
    z-index: 3;
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Анімація перетворення на хрестик при активності */
.floating-contact-widget.is-active .fc-trigger {
    background: #ffffff; /* Кнопка стає білою */
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}
.floating-contact-widget.is-active .fc-avatar {
    transform: scale(0) rotate(90deg);
    opacity: 0;
}
.floating-contact-widget.is-active .fc-close-icon {
    transform: scale(1) rotate(0);
    opacity: 1;
}

/* --- Пульсуюче кільце --- */
.fc-pulse {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: #2563eb; /* Твій фірмовий синій колір */
    z-index: 1;
    animation: fc-pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes fc-pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Ховаємо пульсацію при відкритому меню */
.floating-contact-widget.is-active .fc-pulse {
    display: none;
}

/* Адаптивність для мобільних */
@media (max-width: 992px) {
    .floating-contact-widget {
        right: 20px;
        bottom: 20px;
    }
}


/* =========================================
   АНІМАЦІЇ ПОЯВИ ПРИ СКРОЛІ (SCROLL REVEAL)
========================================= */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-fade-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Робимо каскадну появу (драбинку) для карток, які стоять у ряд */
.service-card:nth-child(1), .portfolio-card:nth-child(1), .video-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2), .portfolio-card:nth-child(2), .video-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3), .portfolio-card:nth-child(3), .video-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4), .portfolio-card:nth-child(4), .video-card:nth-child(4) { transition-delay: 0.4s; }

/* Прибираємо затримки на мобільних, оскільки там елементи йдуть в 1 колонку */
@media (max-width: 768px) {
    .service-card, .portfolio-card, .video-card {
        transition-delay: 0s !important;
    }
}


/* =========================================
   ВІДКЛЮЧЕННЯ ХОВЕРІВ НА ТАЧ-ПРИСТРОЯХ (МОБІЛЬНІ/ПЛАНШЕТИ)
========================================= */
@media (hover: none) {
    /* Скасовуємо підняття та тіні карток */
    .service-card:hover,
    .review-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Скасовуємо зум фото у портфоліо */
    .portfolio-card:not(.placeholder-card):hover .card-img {
        transform: none !important;
    }

    /* Скасовуємо ховери соцмереж (залипання кола) */
    .social-icon:hover::before { transform: translate(-50%, -50%) scale(0) !important; }
    .social-icon:hover svg { transform: none !important; }
    .social-icon:hover { border-color: rgba(255, 255, 255, 0.2) !important; transform: none !important; }

    /* Скасовуємо залипання плаваючого меню */
    .fh-nav-link:hover { background-color: transparent !important; }
    .fh-nav-link:hover .nav-text-roll { transform: none !important; }
    .fh-nav-link:hover .arrow { transform: none !important; color: #fff !important; }

    /* Скасовуємо ховер на кнопках відгуків/форми */
    .btn-dark-review:hover { background-color: #030514 !important; transform: none !important; }
    .form-submit-btn:hover { background-color: #ffffff !important; box-shadow: none !important; }
    .form-submit-btn:hover svg { transform: none !important; }

    /* Повертаємо базовий стан для інтерактивних кнопок .btn-cta, 
       щоб при закритті попапу вони не залишалися у відкритому стані */
    .btn-cta:hover .box-left { width: 0 !important; margin-right: 0 !important; opacity: 0 !important; transform: translateX(-30px) !important; }
    .btn-cta:hover .box-right { width: 54px !important; margin-left: 3px !important; opacity: 1 !important; transform: translateX(0) !important; }

    /* ПОВНІСТЮ ХОВАЄМО КАСТОМНИЙ КУРСОР НА МОБІЛЬНИХ */
    .custom-cursor {
        display: none !important;
    }
}

/* =========================================
   ПРЕЛОАДЕР ТА АНІМАЦІЇ HERO (AWWWARDS)
========================================= */
.site-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #030514;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-text-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 42px;
    font-weight: 500;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.preloader-dot { color: #ffffff; }

/* SVG Крива, яка тягнеться знизу */
.preloader-curve {
    position: absolute;
    top: 100%; /* Чіпляємо до нижнього краю прелоадера */
    left: 0;
    width: 100%;
    height: 15vh; /* Висота самої кривої */
    overflow: visible; /* Дозволяємо SVG вигинатися за межі боксу */
    pointer-events: none;
}

/* Приховуємо елементи Hero до початку анімації (Рятує від FOUC багу) */
.hero-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Оформлення заголовка, щоб іконка і текст стояли разом */
.hero-title-wrapper {
    display: inline-flex;
    align-items: flex-end; 
    gap: 15px;
    margin-bottom: 20px;
}

.hero-title-wrapper .hero-title {
    margin-top: 0;
    margin-bottom: 0;
}

/* Щоб відео-віджет міг правильно анімуватися (рухатися по осі Y) */
.hero-video-anim {
    display: inline-block;
}

/* За замовчуванням ховаємо іконку телефону */
.mobile-only-icon {
    display: none !important;
}

/* Показуємо іконку телефону ТІЛЬКИ на екранах менше 768px (планшети та мобільні) */
@media (max-width: 768px) {
    .mobile-only-icon {
        display: flex !important; /* Якщо твої іконки використовують block, зміни на display: block */
    }
}


/* ==========================================
   СТИЛІ ДЛЯ ІНФОРМАЦІЙНИХ СТОРІНОК (Legal)
========================================== */
.legal-body {
    background-color: #030514; /* Колір твого фону */
    color: #fff;
}

.legal-header {
    position: relative; /* Щоб не перекривала текст, якщо вона fixed */
    background: transparent;
    padding-top: 30px;
}

.legal-section {
    padding: 100px 0 150px;
}

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

.legal-content {
    margin-top: 50px;
    color: #A0A5B5; /* Колір вторинного тексту */
    font-size: 1.1rem;
    line-height: 1.8;
}

.legal-content h3 {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    position: relative;
}

.legal-content strong {
    color: #fff;
}

.lang-switcher {
    position: relative;
    z-index: 100;
}

.lang-trigger {
    width: 54px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 55px;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
}


.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Клас для відкриття */
.lang-switcher.is-open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 8px 16px;
    color: #030514;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s;
}

.lang-option:hover, .lang-option.active {
    background: #F6F8FA;
}

/* Вимкнення ховеру для акордеону на тач-пристроях */
@media (hover: none) {
    .accordion-item:not(.active):hover {
        background-color: transparent !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-bottom-color: #e2e8f0 !important;
    }
}