:root {
    --primary-color: #7C3AED;
    /* Royal Violet */
    --primary-hover: #6D28D9;
    --accent-color: #C0FF00;
    /* Cyber Lime */
    --accent-hover: #A8E600;
    --bg-dark: #0F172A;
    /* Deep Navy */
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #F8FAFC;
    /* Ghost White */
    --text-muted: #94A3B8;
    --border-color: rgba(148, 163, 184, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

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

.btn--outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header--scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

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

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

.burger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.burger--active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.burger--active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

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

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1050;
    }

    .nav--active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav__link {
        font-size: 1.5rem;
    }
}

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%), rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #fff;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
}

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

.service-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
}

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

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

.service-item__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
    z-index: 2;
}

.service-item h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

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

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

.review-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px dashed var(--border-color);
}

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

.review-card__image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.review-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__text {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

.review-card__author {
    display: flex;
    flex-direction: column;
}

.review-card__author strong {
    color: var(--accent-color);
}

/* Contacts */
.contacts__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contacts__info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

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

.contacts__list {
    margin-top: 30px;
}

.contacts__list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

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

.form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.form__group {
    margin-bottom: 20px;
}

.form__group input {
    width: 100%;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form__group form__group--captcha {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form__group--captcha {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form__group--captcha label {
    white-space: nowrap;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

.form__group--captcha input {
    width: auto !important;
    flex-grow: 1;
}

.contacts__info .section-title {
    text-align: left;
    margin-bottom: 20px;
    margin-top: 0;
}

.contacts__info p {
    margin-bottom: 25px;
}

.form__group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
}

.form__status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.875rem;
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn--loading .btn__text {
    display: none;
}

.btn--loading .spinner {
    display: block;
}

/* Footer */
.footer {
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

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

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

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

.footer__title {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.footer__desc {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__contacts li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer__bottom {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}


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

.modal {
    background: var(--bg-dark);
    border: 1px solid var(--primary-color);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    position: relative;
    padding: 40px;
    overflow-y: auto;
}

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

.modal__content h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.modal__content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.modal__content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal__content li {
    list-style: disc;
    color: var(--text-muted);
    margin-bottom: 5px;
}