:root {
    --primary-color: #4F46E5;
    /* French Indigo */
    --secondary-color: #0EA5E9;
    /* Sky Blue */
    --accent-color: #10B981;
    /* Neon Mint */
    --bg-dark: #0F172A;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-light: #F1F5F9;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.1);
    --border-radius: 12px;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.hidden {
    display: none !important;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn--outline {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn--outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

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

.btn--block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

.burger,
.nav__close {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 1024px) {
    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

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

    .nav__close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('images/hero-bg.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Центрує контент по горизонталі */
    text-align: center;
    /* Центрує текст всередині */
}

.hero__content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    /* Додано, щоб текст не прилипав до країв екрану на мобільному */
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    /* Було просто margin-bottom */
    margin-left: auto;
    /* ВАЖЛИВО: Центрує блок підзаголовка */
    margin-right: auto;
    /* ВАЖЛИВО: Центрує блок підзаголовка */
    opacity: 0.9;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    /* Центрує кнопки */
    margin-top: 30px;
}

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

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

.section__title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--text-dark);
}

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Services (Masonryish) */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.masonry-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
}

.item-1 {
    grid-row: span 2;
    background: var(--bg-dark);
    color: var(--white);
    border-left: 5px solid var(--primary-color);
}

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

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

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

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    background-size: cover;
}

.review-stars {
    color: #F59E0B;
}

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

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

.contact__list {
    list-style: none;
    margin-top: 30px;
}

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

.contact__list i {
    color: var(--primary-color);
}

.form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form__group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

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

.form__captcha {
    /* 1. Вирівнювання елементів в один рядок */
    display: flex;
    align-items: center;
    /* Вирівнювання по вертикалі (центр) */
    gap: 15px;
    /* Простір між питанням і полем вводу */
    margin: 20px 0;
    /* Зовнішні відступи від інших елементів форми */
    margin-left: 10px;
}

#captcha-question {
    /* 2. Стилізація самого питання */
    font-size: var(--font-size-base);
    color: var(--text-color);
    font-weight: 500;
    /* Середня жирність, щоб виділити питання */
    white-space: nowrap;
    /* Запобігає переносу рядка для питання */
}

#captcha-input {
    /* 3. Стилізація поля вводу (як на вашому знімку) */
    padding: 8px 12px;
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;

    /* Рамка та кути */
    border: 1px solid var(--input-border-color);
    border-radius: 4px;

    /* Ширина, щоб поле не було надто великим */
    width: 120px;
    /* Фіксована ширина для поля вводу числа */

    /* Ефект переходу при фокусі */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* 4. Стилізація поля при фокусі */
#captcha-input:focus {
    border-color: var(--input-focus-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(91, 155, 213, 0.25);
    /* Легка синя тінь */
}

/* 5. Стилізація тексту-заповнювача (placeholder) */
#captcha-input::placeholder {
    color: var(--placeholder-color);
}

.form__success {
    color: var(--accent-color);
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #94A3B8;
    padding: 60px 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

.footer__col ul {
    list-style: none;
}

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

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

.footer__col a:hover {
    color: var(--white);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    z-index: 9000;
    max-width: 600px;
    margin: 0 auto;
    border-left: 5px solid var(--primary-color);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-container {
    background: var(--white);
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: var(--border-radius);
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #64748B;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content p,
.modal-content ul {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.modal-content ul {
    padding-left: 20px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}