:root {
    --primary-color: #7000FF;
    --primary-hover: #5a00cc;
    --secondary-color: #00D4FF;
    --accent-color: #FF00E5;
    --dark-bg: #0B0B15;
    --card-bg: #151525;
    --text-color: #F0F0F0;
    --text-muted: #A0A0B0;
    --border-color: #2A2A3A;
    --font-main: 'Manrope', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    --shadow-glow: 0 0 20px rgba(112, 0, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn--primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-glow);
}

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

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

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

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

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

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

.logo__text {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

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

.nav__link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

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

.nav__close,
.burger {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(11, 11, 21, 0.7), var(--dark-bg)), url('images/hero_bg.jpg') no-repeat center center/cover;
}

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

.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

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

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

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

.feature-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.feature-card__title {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

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

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

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

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

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

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

.service-card__title {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.service-card__text {
    color: #ddd;
    font-size: 0.9rem;
}

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

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

.review-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

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

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

.review-card__name {
    font-size: 1rem;
    margin-bottom: 4px;
}

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

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

.review-card__rating {
    color: #FFD700;
}

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

.contact__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.contact__desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.contact__icon {
    font-size: 1.2rem;
}

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

.form__group {
    margin-bottom: 20px;
    position: relative;
}

.form__input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form__input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.form__label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.form__input:focus~.form__label,
.form__input:not(:placeholder-shown)~.form__label {
    top: -10px;
    left: 10px;
    background: var(--card-bg);
    padding: 0 5px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.form__input::placeholder {
    opacity: 0;
}

.form__captcha-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.form__submit {
    position: relative;
}

.btn__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.form.loading .btn__text {
    display: none;
}

.form.loading .btn__spinner {
    display: block;
}

.form__message {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    min-height: 20px;
}

.form__message.success {
    color: #00FF94;
}

.form__message.error {
    color: #FF0055;
}

/* Footer */
.footer {
    background: #05050A;
    padding-top: 80px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer__title {
    margin-bottom: 24px;
    color: white;
}

.footer__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

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

.footer__links a,
.footer__link-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer__links a:hover,
.footer__link-btn:hover {
    color: var(--secondary-color);
}

.footer__link-btn {
    text-align: left;
    padding: 0;
}

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

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

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.modal__container {
    position: relative;
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.modal.active .modal__container {
    transform: translateY(0);
    opacity: 1;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.modal__close:hover {
    color: white;
}

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

.modal__content h4 {
    margin-bottom: 10px;
    margin-top: 20px;
    color: white;
}

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

.modal__content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.hidden-content {
    display: none;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    z-index: 1500;
    transition: bottom 0.5s ease;
    width: 90%;
    max-width: 600px;
}

.cookie-popup.active {
    bottom: 30px;
}

.cookie-popup__content {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-popup__link {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .burger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1002;
    }

    .burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        position: absolute;
        transition: 0.3s;
    }

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

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

    .nav.active {
        right: 0;
    }

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

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 40px;
        color: white;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

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

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

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

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__link-btn {
        margin: 0 auto;
    }

    .cookie-popup {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
    }

    .cookie-popup__actions {
        width: 100%;
        justify-content: flex-end;
    }
}