/* --- Variables & Reset --- */
:root {
    --primary: #00D2A3;
    /* Vibrant Mint */
    --primary-dark: #00A680;
    --bg-dark: #0F1419;
    /* Deep Graphite */
    --bg-card: #182029;
    /* Lighter Graphite */
    --text-main: #E1E8ED;
    --text-muted: #8899A6;
    --white: #ffffff;
    --error: #ff4d4d;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 70px;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Layout Utils --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section--alt {
    background-color: #131920;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn--primary:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 163, 0.4);
}

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

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

.btn--outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Header --- */
.header {
    height: var(--nav-height);
    background-color: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    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);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.logo:hover svg {
    transform: rotate(5deg);
}

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

.nav__link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

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

.nav__link--cta {
    color: var(--primary);
    font-weight: 600;
}

.nav__link--cta:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 210, 163, 0.5);
}

/* --- Burger Menu Styles --- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    padding: 0;
}

.burger span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    border-radius: 2px;
}

.burger:hover span {
    background-color: var(--primary);
}

/* --- Анімація перетворення в хрестик --- */
/* 1. Верхня лінія: повертаємо і зміщуємо вниз */
.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

/* 2. Середня лінія: зникає */
.burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

/* 3. Нижня лінія: повертаємо і зміщуємо вгору */
.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Nav Close Button --- */
.nav-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
}

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

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    margin-top: 0;
    /* Cover everything */
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 20, 25, 0.8), var(--bg-dark));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(0, 210, 163, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 210, 163, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.badge:hover {
    background: rgba(0, 210, 163, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 163, 0.3);
}

.hero__title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(24, 32, 41, 0.8);
    box-shadow: 0 10px 30px rgba(0, 210, 163, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

/* --- Services --- */
.section__title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

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

.service-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 210, 163, 0.3);
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-content {
    padding: 25px;
    transition: all 0.3s ease;
}

.service-item:hover .service-content {
    background: rgba(0, 210, 163, 0.05);
}

.service-item:hover .service-content h3 {
    color: var(--primary);
}

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

.review-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 210, 163, 0.2);
    border-left-width: 5px;
}

.review-card:hover .review-avatar {
    transform: scale(1.1);
    border-color: var(--white);
}

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

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.review-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-text {
    font-style: italic;
    margin-bottom: 0;
}

/* --- Contact & Form --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.contact-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 210, 163, 0.2);
    transform: translateY(-5px);
}

.info-list {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-list li {
    transition: all 0.3s ease;
    padding: 5px 0;
}

.info-list li:hover {
    transform: translateX(10px);
    color: var(--primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:hover {
    border-color: rgba(0, 210, 163, 0.5);
    background: rgba(0, 0, 0, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 210, 163, 0.1);
}

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

.captcha-group input {
    width: 80px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.captcha-group input:hover {
    border-color: rgba(0, 210, 163, 0.5);
    background: rgba(0, 0, 0, 0.3);
}

.captcha-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 210, 163, 0.1);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* Loader */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-dark);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
}

.hidden {
    display: none;
}

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

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

/* --- Footer --- */
.footer {
    background: #000;
    padding: 60px 0 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.logo--footer {
    color: var(--primary);
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--primary);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 210, 163, 0.5);
}

.logo--footer {
    transition: all 0.3s ease;
}

.logo--footer:hover {
    color: var(--white);
    transform: scale(1.05);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: var(--bg-card);
    border-radius: var(--radius);
    z-index: 3000;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(0, 210, 163, 0.1);
    transform: rotate(90deg) scale(1.1);
}

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

.modal-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-content p,
.modal-content ul,
.modal-content ol {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-content ul,
.modal-content ol {
    padding-left: 25px;
    margin-left: 10px;
}

.modal-content ul li,
.modal-content ol li {
    margin-bottom: 8px;
}

.modal-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.modal-content a:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(0, 210, 163, 0.5);
    text-decoration: none;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-dark);
        overflow: hidden;
        transition: 0.4s;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1500;
    }

    .nav.active {
        height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-close {
        display: none !important;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
    }
}

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}