:root {
    --primary: #4F46E5;
    /* Indigo */
    --secondary: #EC4899;
    /* Pink accent */
    --dark: #0F172A;
    /* Slate 900 */
    --light: #F8FAFC;
    /* Slate 50 */
    --text: #334155;
    /* Slate 700 */
    --text-light: #94A3B8;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.btn--outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.05);
}

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

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

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

.section {
    padding: 80px 0;
}

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

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    margin-top: -30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    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: 800;
    font-size: 1.2rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo svg {
    transition: all 0.3s ease;
}

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

.nav {
    display: none;
    /* Mobile default */
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
}

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

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 20px 0;
    font-weight: 800;
}

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

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

.feature-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.feature-card svg.icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .icon {
    transform: scale(1.1) translateY(-3px);
}

/* Services */
.bg-light {
    background: #F1F5F9;
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    padding: 0;
    overflow: hidden;
}

.service-content {
    padding: 30px;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin: 0;
}

.review-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

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

.review-card .avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.review-card .author span {
    font-weight: 600;
    color: var(--dark);
}

/* Contact */
.bg-dark {
    background: var(--dark);
    color: var(--white);
}

.bg-dark .section__title {
    color: var(--white);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact__info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.contact__info p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.contact__list li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.contact__list li:hover {
    transform: translateX(5px);
}

.contact__list li i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    transition: all 0.3s ease;
}

.contact__list li:hover i {
    transform: scale(1.2);
    color: var(--secondary);
}

.contact__form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder {
    color: #94A3B8;
}

.captcha-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    min-width: 80px;
}

.captcha-group input {
    width: 70px;
    text-align: center;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.form-link {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s;
}

.form-link:hover {
    color: var(--secondary);
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

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

.hidden {
    display: none !important;
}

/* Footer */
.footer {
    background: #020617;
    color: #94A3B8;
    padding: 60px 0 20px;
}

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

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

.logo--footer {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.logo--footer:hover {
    color: var(--primary);
    transform: translateX(5px);
}

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

.footer ul li a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer__col p {
    white-space: nowrap;
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid #1E293B;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Modals & Popups */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-popup.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.modal-window {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--radius);
    position: relative;
    padding: 40px;
    color: var(--text);
}

.modal-content {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Burger Menu Mobile */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
}

/* Responsive */
@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact__wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .big {
        grid-column: span 2;
    }
}

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

    .nav {
        display: block;
    }

    .nav__list {
        display: flex;
        gap: 30px;
    }

    .nav__link {
        transition: all 0.3s ease;
        position: relative;
    }

    .nav__link:hover {
        color: var(--primary);
        transform: translateY(-2px);
    }

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }

    .nav__link:hover::after {
        width: 100%;
    }
}

@media (max-width: 1023px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: 0.3s;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        font-size: 1.5rem;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}