:root {
    --primary: #6D28D9;
    --primary-dark: #5B21B6;
    --secondary: #00E5FF;
    --bg: #0a0f1c;
    --card-bg: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    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 {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.section {
    padding: 4rem 0;
}

.section__title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--white);
    position: relative;
    width: 100%;
    text-align: center;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.nav__list {
    display: none;
    cursor: pointer;
}

/* Burger */
.burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    transition: var(--transition);
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    bottom: 0;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu__link {
    font-size: 1.5rem;
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

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

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

.btn--outline:hover {
    background: var(--secondary);
    color: var(--bg);
    transform: translateY(-2px);
}

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

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 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: 60px;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.7) 0%, rgba(10, 15, 28, 0.9) 100%);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 229, 255, 0.1);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero__cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

.feature-card__icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.service-card {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.service-card__image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.service-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 15, 28, 0.8) 100%);
    opacity: 0.6;
    transition: var(--transition);
}

.service-card:hover .service-card__image::after {
    opacity: 0.3;
}

.service-card__content {
    padding: 1.5rem;
    position: relative;
}

.service-card__content h3 {
    margin-bottom: 0.75rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

.service-card__content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-card__header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.review-card p {
    font-style: italic;
    color: var(--text-muted);
}

/* Contacts */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-item h4 {
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text-muted);
}

.contacts__form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contacts__form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.message-area {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    min-height: 100px;
    resize: vertical;
}

.captcha-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.captcha-group label {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
    white-space: nowrap;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.form-message.error {
    color: #ef4444;
}

.form-message.success {
    color: #22c55e;
}

/* Footer */
.footer {
    background: #05080f;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__col h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer__col ul li {
    margin-bottom: 0.8rem;
}

.footer__col ul li a {
    color: var(--text-muted);
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.footer__col ul li a:hover {
    color: var(--secondary);
}

.footer__logo {
    margin-bottom: 1rem;
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    max-width: 350px;
    border: 1px solid var(--primary);
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

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

.cookie-popup p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-popup__btns {
    display: flex;
    gap: 1rem;
}

/* 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: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: none;
    /* Hidden by default */
    transform: scale(0.9);
    transition: var(--transition);
    overflow-y: auto;
}

.modal.active {
    display: block;
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: var(--white);
}

.modal-content {
    padding: 2rem;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.modal-content p,
.modal-content ul {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.modal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .section__title {
        font-size: 2.5rem;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__cta-group {
        flex-direction: row;
    }

    .features__grid,
    .services__grid,
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts__wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nav__list {
        display: flex;
        gap: 2rem;
    }

    .burger {
        display: none;
    }

    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}