:root {
    --primary: #00F0FF;
    --primary-dark: #00C0CC;
    --secondary: #7000FF;
    --bg: #050510;
    --surface: #121225;
    --surface-light: #1E1E38;
    --text: #E0E0E0;
    --text-muted: #A0A0B0;
    --white: #FFFFFF;
    --accent: #FF0055;
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --font-main: 'Sora', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.section {
    padding: 80px 0;
}

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

.section__title--left {
    text-align: left;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn--primary {
    background: linear-gradient(90deg, #00F0FF 0%, #0057FF 100%);
    color: var(--white);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    padding: 15px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
}

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

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

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

.btn--full {
    width: 100%;
    text-align: center;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.link-btn:hover {
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    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(--white);
}

.nav__list {
    display: none;
}

.burger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: 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;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
    z-index: 1050;
}

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

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

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 1100;
}

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 16, 0.8), var(--bg));
}

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

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hero__title {
    font-size: 2.5rem;
    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;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

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

.feature-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

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

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

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.service-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card__content {
    padding: 20px;
}

.service-card__icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

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

.review-card {
    background: var(--surface-light);
    padding: 25px;
    border-radius: var(--radius);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
}

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

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

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

.review-card__stars {
    color: #FFD700;
    margin-top: 15px;
}

/* Contacts */
.contacts__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contacts__list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.contacts__list i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.contacts__form-wrapper {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
}

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

.error-msg {
    color: var(--accent);
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
    min-height: 1.2em;
}

.form-loader,
.form-success {
    display: none;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.form-loader {
    color: var(--primary);
}

.form-success {
    color: #00FF88;
}

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

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

.logo--small {
    font-size: 1rem;
    margin-bottom: 15px;
}

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

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

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

.footer ul li a,
.footer ul li button {
    color: var(--text-muted);
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-align: left;
}

.footer ul li a:hover,
.footer ul li button:hover {
    color: var(--primary);
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--surface-light);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 900;
    border: 1px solid var(--primary);
    display: none;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-popup__content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-popup__actions {
    display: flex;
    gap: 10px;
}

/* 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: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.modal.active {
    transform: translate(-50%, -50%) scale(1);
}

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

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

.modal__content {
    padding: 40px 30px 30px;
    overflow-y: auto;
    color: var(--text-muted);
}

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

.modal__content p,
.modal__content ul {
    margin-bottom: 15px;
}

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

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

    .header__container {
        padding: 0;
    }

    .logo {
        font-size: 1.5rem;
        padding: 10px 0;
    }

    .burger {
        display: none;
    }

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

    .nav__link {
        font-size: 0.95rem;
        font-weight: 500;
        position: relative;
    }

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

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

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }

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

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

    .service-card--large {
        grid-column: span 3;
        display: flex;
        height: 300px;
    }

    .service-card--large .service-card__img {
        width: 50%;
        height: 100%;
    }

    .service-card--large .service-card__content {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
    }

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

    .contacts__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

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

    .cookie-popup {
        width: 400px;
        bottom: 30px;
        right: 30px;
        left: auto;
    }
}

@media (min-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}