:root {
    --primary-bg: #0B0F19;
    /* Глубокий темный */
    --secondary-bg: #151B2B;
    /* Чуть светлее для карточек */
    --accent: #8B5CF6;
    /* Неоновый фиолетовый */
    --accent-hover: #7C3AED;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --white: #FFFFFF;
    --border: #2D3748;
    --success: #10B981;
    --font-main: 'Rajdhani', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
}

.section__title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

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

.btn--outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

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

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

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

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

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

.nav__list {
    display: none;
}

/* Mobile First hidden */

.burger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--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;
}

/* Mobile Menu */
.nav.active {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: var(--secondary-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.nav.active .nav__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

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

.nav.active .nav__close {
    display: block;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    background: linear-gradient(135deg, #0B0F19 0%, #151B2B 50%, #1a1f35 100%);
    padding: 80px 0 40px;
}

/* Animated Background Orbs */
.hero__animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero__gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.hero__gradient-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.hero__gradient-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.hero__gradient-orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Grid Pattern */
.hero__grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Particles */
.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Geometric Shapes */
.hero__geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 2px solid rgba(139, 92, 246, 0.2);
    animation: rotate 30s linear infinite;
}

.shape--1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 25s;
}

.shape--2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: none;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    animation-duration: 35s;
    animation-direction: reverse;
}

.shape--3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 20%;
    transform: rotate(45deg);
    animation-duration: 20s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideDown 0.8s ease-out;
}

.badge--animated {
    animation: slideDown 0.8s ease-out, pulse 2s ease-in-out infinite;
}

.badge__pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Hero Title */
.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero__title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero__title-line--1 {
    animation-delay: 0.2s;
}

.hero__title-line--2 {
    animation-delay: 0.4s;
}

.hero__title-line--3 {
    animation-delay: 0.6s;
}

.hero__title-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.hero__subtitle-highlight {
    color: var(--white);
    font-weight: 600;
    position: relative;
}

.hero__subtitle-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    animation: underlineExpand 1s ease-out 1.2s backwards;
}

@keyframes underlineExpand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* CTA Group */
.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.btn--hero {
    position: relative;
    overflow: hidden;
    padding: 14px 35px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn--hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn--hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn--hero span,
.btn--hero svg {
    position: relative;
    z-index: 1;
}

.btn__arrow {
    transition: transform 0.3s;
}

.btn--hero:hover .btn__arrow {
    transform: translateX(5px);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Stats */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    animation: fadeInUp 0.8s ease-out 1.2s backwards;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero__stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

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

.features__grid,
.services__grid,
.testimonials__grid {
    display: grid;
    gap: 2rem;
}

.card,
.service-item,
.review-card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.card:hover,
.service-item:hover,
.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Review Card Styles */
.review-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

.review-card:hover .author-img {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    letter-spacing: 0.5px;
}

.author-city {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Contact */
.contact__wrapper {
    display: grid;
    gap: 3rem;
}

.contact__list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--primary-bg);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 4px;
    font-family: inherit;
}

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

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
}

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

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

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

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

.link-btn-inline {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

/* Cookie Popup */
.cookie-popup {
    display: none;
    /* Disabled for moderation compliance */
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: var(--secondary-bg);
    border-top: 1px solid var(--accent);
    padding: 20px;
    z-index: 2000;
    transition: bottom 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--secondary-bg);
    padding: 2rem;
    z-index: 3000;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

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

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

.modal-content {
    overflow-y: auto;
    color: var(--text-muted);
    padding-right: 10px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content h3 {
    color: var(--accent);
    margin-top: 0;
}

.modal-content h4 {
    color: var(--white);
    margin-top: 1rem;
}

.modal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

/* Desktop Media Queries */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__subtitle {
        font-size: 1.3rem;
    }

    .hero__stats {
        gap: 3rem;
    }

    .hero__stat-number {
        font-size: 3rem;
    }

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

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

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

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

@media (max-width: 767px) {
    .hero {
        min-height: 90vh;
        padding: 60px 0 30px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__title-line {
        font-size: 1.8rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero__cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn--hero,
    .btn--ghost {
        width: 100%;
        justify-content: center;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 2rem;
    }

    .hero__stat-number {
        font-size: 2rem;
    }

    .hero__gradient-orb--1,
    .hero__gradient-orb--2,
    .hero__gradient-orb--3 {
        width: 300px;
        height: 300px;
    }

    .shape--1,
    .shape--2,
    .shape--3 {
        opacity: 0.3;
    }

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

@media (min-width: 1024px) {
    .burger {
        display: none;
    }

    .nav__close {
        display: none;
    }

    .nav__list {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }

    .nav {
        position: static;
        height: auto;
        background: none;
        width: auto;
        box-shadow: none;
    }

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

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

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