:root {
    --bg-dark: #0f0c29;
    /* Deep dark blue */
    --bg-light: #24243e;
    /* Lighter purple/blue for cards */
    --primary: #00f2ea;
    /* Cyan neon */
    --secondary: #ff0050;
    /* Pink neon */
    --accent: #ffae00;
    /* Amber accent */
    --text-main: #ffffff;
    --text-muted: #bbbbbb;
    --font-main: 'Outfit', sans-serif;
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Global */
* {
    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;
}

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;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.btn--primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(255, 0, 80, 0.6);
}

.btn--primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(0, 242, 234, 0.6);
}

.btn--primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px -5px rgba(0, 242, 234, 0.6);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
    transform: translateY(-3px);
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.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-main);
}

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

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

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    margin: 6px 0;
    transition: var(--transition);
}

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

.mobile-menu.active {
    right: 0;
}

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

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

.mobile-menu__link {
    display: block;
    font-size: 1.5rem;
    margin: 20px 0;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 12, 41, 0.8) 0%, rgba(15, 12, 41, 0.4) 50%, var(--bg-dark) 100%);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero__content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 900px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 234, 0.1) 0%, transparent 50%);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 234, 0.1);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 242, 234, 0.3);
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.2);
}

.hero__title {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

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

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

.feature-card__title {
    margin-bottom: 10px;
}

.feature-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
}

.service-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
}

.service-card--wide {
    grid-column: span 2;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

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

.review-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
}

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

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

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

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

/* Contacts */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: rgba(0, 242, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts__form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
}

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

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
}

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

.captcha-group span {
    white-space: nowrap;
    font-weight: 600;
    min-width: max-content;
}

.captcha-group input {
    width: auto;
    flex: 1;
}

.form-spinner,
.form-success {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.form-success {
    color: #4caf50;
}

/* Footer */
.footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__logo {
    margin-bottom: 20px;
    display: inline-flex;
}

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

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

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

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    width: 320px;
    background: rgba(36, 36, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.cookie-popup__content {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-popup__content p {
    margin-bottom: 15px;
}

.cookie-popup__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.active {
    display: block;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--primary);
}

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

.modal__body h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.modal__body p,
.modal__body ul {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal__body ul {
    padding-left: 20px;
    list-style: disc;
}

/* Media Queries */
@media (max-width: 900px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card--wide {
        grid-column: span 1;
    }

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

    .hero__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .section__title {
        font-size: 2rem;
    }
}