:root {
    /* Новая палитра: Neon Mint & Dark Slate */
    --primary-color: #0d9488;
    /* Teal-600 */
    --primary-dark: #0f766e;
    --accent-color: #f43f5e;
    /* Rose-500 */
    --bg-color: #0f172a;
    /* Slate-900 */
    --bg-light: #1e293b;
    /* Slate-800 */
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --header-height: 70px;
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--white);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

/* Nav & Burger */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* Сховане за екраном справа */
    width: 100%;
    height: 100vh;
    background-color: #111621;
    /* Темний фон меню */
    padding-top: 80px;
    /* Місце зверху, щоб пункти не налізли на хрестик */
    transition: 0.4s;
    /* Плавна анімація */
    z-index: 100;

    /* Центрування вмісту (опціонально) */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav.active {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.nav__link {
    font-size: 1.2rem;
    font-weight: 600;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__close {
    position: absolute;
    top: 20px;
    /* Відступ зверху */
    right: 20px;
    /* Відступ справа */
    font-size: 1.8rem;
    /* Розмір хрестика */
    color: #ffffff;
    /* Білий колір */
    background: none;
    /* Без фону */
    border: none;
    /* Без рамки */
    cursor: pointer;
    /* Курсор-рука */
    transition: color 0.3s;
}

.nav__close:hover {
    color: #2dd4bf;
    /* Бірюзовий колір при наведенні */
}

.show-menu {
    right: 0;
    /* Виїжджає на екран */
}

/* Hidden on mobile by default, usually handled by burger toggle */
.burger {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav {
        position: static;
        height: auto;
        width: auto;
        background: none;
        padding: 0;
        flex-direction: row;
    }

    .nav__list {
        flex-direction: row;
        gap: 30px;
    }

    .nav__link {
        font-size: 1rem;
    }

    .burger {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Зображення з Pexels: Abstract Technology/Data */
    background: url('images /hero-bg.jpg') center/cover no-repeat;
    margin-top: var(--header-height);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--dark {
    background: var(--bg-light);
}

.section--primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--bg-color));
}

.section__title {
    text-align: center;
    /* Центрує текст по горизонталі */
    width: 100%;
    /* Гарантує, що блок займає всю ширину батька */
    margin-bottom: 20px;
}

/* --- Features Section (Bento Grid) --- */
.features-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* Декоративное свечение позади секции */
.features__glow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.15;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.text-highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 10px auto 0;
}

/* Сетка Bento */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: 1.2fr 0.8fr;
        /* Левая часть шире */
        grid-template-rows: auto;
    }
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Карточки */
.bento-card {
    background: rgba(30, 41, 59, 0.7);
    /* Прозрачный фон */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    /* Более сильное скругление */
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.15);
    /* Цвет тени от primary */
}

/* Стили для большой карточки */
.bento-card--large {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
}

.bento-card--large h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card--large p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

/* Список внутри большой карточки */
.bento-card__list {
    margin-top: auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bento-card__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
}

.bento-card__list i {
    color: var(--accent-color);
}

/* Иконки */
.bento-card__icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(13, 148, 136, 0.15);
    /* Primary с прозрачностью */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.bento-card__icon-wrapper.sm {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 0;
    background: rgba(244, 63, 94, 0.1);
    /* Accent с прозрачностью */
    color: var(--accent-color);
}

.bento-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.bento-card__header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* Фоновая декоративная иконка */
.bento-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(-15deg);
    pointer-events: none;
    transition: var(--transition);
}

.bento-card:hover .bento-bg-icon {
    transform: rotate(0deg) scale(1.1);
    color: rgba(255, 255, 255, 0.04);
}

/* Сітка для карток */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Рівно 4 колонки */
    gap: 24px;
    /* Відступи між картками */
    margin-top: 40px;
}

/* Стиль самої картки */
.service-card {
    background-color: #171d29;
    /* Темний колір фону картки (підлаштуйте під ваш загальний фон, якщо треба темніше) */
    padding: 30px 24px;
    border-radius: 8px;
    /* Заокруглення кутів */
    border-left: 5px solid #2dd4bf;
    /* Та сама бірюзова смужка зліва */

    /* Для вирівнювання тексту */
    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Заголовок картки */
.service-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Текст опису */
.service-card p {
    color: #a0aec0;
    /* Світло-сірий текст */
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Ефект при наведенні (опціонально, додає інтерактивності) */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* АДАПТИВНІСТЬ: щоб на мобільному картки ставали одна під одну */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 колонки на планшетах */
    }
}

@media (max-width: 600px) {
    .services__grid {
        grid-template-columns: 1fr;
        /* 1 колонка на телефонах */
    }
}

/* Сітка для відгуків (щоб стояли поруч) */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Дві колонки */
    gap: 24px;
    margin-top: 40px;
}

/* Стиль картки відгуку */
.review-card {
    background-color: #171d29;
    /* Темний фон картки */
    padding: 24px;
    border-radius: 12px;
    /* Тінь для об'єму (необов'язково) */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    /* Відступ між фото і текстом */
}

/* СТИЛІ ДЛЯ ФОТО (АВАТАРКИ) */
.review-card__avatar {
    width: 60px;
    /* Ширина */
    height: 60px;
    /* Висота */
    border-radius: 50%;
    /* Робить фото круглим */
    object-fit: cover;
    /* Обрізає фото, щоб обличчя було по центру і не сплющувалось */
    border: 2px solid #2dd4bf;
    /* Бірюзова обводка (опціонально, для краси) */
}

.review-card h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
}

.stars {
    color: #fbbf24;
    /* Жовтий колір зірок */
    font-size: 0.9rem;
}

.review-card p {
    color: #a0aec0;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
    /* Курсив для цитати */
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .reviews__grid {
        grid-template-columns: 1fr;
        /* Одна колонка на телефоні */
    }
}

/* Contact */
.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact__info ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact__form {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #334155;
    background: #1e293b;
    color: var(--white);
    border-radius: var(--radius);
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-msg {
    color: var(--accent-color);
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
    min-height: 18px;
}

/* Контейнер для капчі */
.captcha-group {
    display: flex;
    /* Ставить елементи в ряд */
    align-items: center;
    /* Вирівнює по вертикалі по центру */
    gap: 15px;
    /* Відступ між прикладом і полем */
    margin-bottom: 24px;
    /* Відступ знизу від усієї групи */
    justify-content: center;
}

/* Сам текст прикладу (2 + 7 =) */
#captchaQuestion {
    font-size: 24px;
    /* Великий шрифт, як на скріншоті */
    font-weight: 700;
    color: #ffffff;
    /* Білий колір */
    white-space: nowrap;
    /* Щоб текст не переносився */
}

/* Поле для вводу відповіді */
#captchaAnswer {
    width: 80px;
    /* Фіксована ширина, не на весь екран */
    padding: 10px;
    height: 45px;

    background-color: #171d29;
    /* Темний фон (як у карток) */
    border: 1px solid #2dd4bf;
    /* Бірюзова рамка */
    border-radius: 8px;
    /* Заокруглення */

    color: #ffffff;
    font-size: 18px;
    text-align: center;
    /* Цифра по центру */
    outline: none;
}

#captchaAnswer:focus {
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.3);
    /* Підсвітка при кліку */
}

/* Прибираємо стрілочки (спінери) в полі number, щоб було чисто */
#captchaAnswer::-webkit-outer-spin-button,
#captchaAnswer::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
}

.hidden {
    display: none;
}

@media (min-width: 1024px) {
    .nav__close {
        display: none;
    }
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
.footer {
    background: #020617;
    padding: 60px 0 20px;
    border-top: 1px solid #1e293b;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer__col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    color: #64748b;
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 20px;
    right: 20px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: bottom 0.5s ease;
    border: 1px solid var(--primary-color);
}

.cookie-popup.show {
    bottom: 20px;
}

@media (min-width: 768px) {
    .cookie-popup {
        width: 400px;
        right: auto;
    }
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-light);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 30px;
    border-radius: var(--radius);
    z-index: 3001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal__header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal__body {
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar for modal */
.modal__body::-webkit-scrollbar {
    width: 6px;
}

.modal__body::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 3px;
}