* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #ec4899;
    --bg: #0a0a14;
    --bg-light: #14142b;
    --text: #ffffff;
    --text-muted: #a8a8c0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    font-size: 1rem;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Анимированный фон */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent); top: 50%; right: -100px; animation-delay: -7s; }
.orb-3 { width: 450px; height: 450px; background: #8b5cf6; bottom: -100px; left: 30%; animation-delay: -14s; }

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 70%);
}

@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); }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 20, 0.7);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 20, 0.92);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6));
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.link-icon {
    font-size: 8px;
    color: var(--primary);
    opacity: 0.7;
    transition: all 0.3s;
}

.nav-links a:hover .link-icon,
.nav-links a.active .link-icon {
    color: var(--accent);
    transform: rotate(180deg);
    opacity: 1;
}

.nav-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.social-btn svg,
.social-btn span {
    position: relative;
    z-index: 1;
}

.social-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.social-btn:hover::before {
    opacity: 1;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: ping 2s infinite;
}

@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(40px, 6.5vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 21px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--text);
    font-weight: 600;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

.check {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 70px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    padding: 36px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.stat h3 {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat p {
    color: var(--text-muted);
    font-size: 15px;
}

.hero-tech {
    margin-top: 30px;
}

.tech-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tech-item {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s;
}

.tech-item:hover {
    color: var(--text);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
section {
    padding: 110px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.service-card {
    padding: 36px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(99, 102, 241, 0.3);
}

.service-icon {
    font-size: 52px;
    margin-bottom: 22px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 14px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 16px;
    flex-grow: 1;
}

.service-price {
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
}

/* ===== Process ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    counter-reset: process;
}

.process-step {
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
}

.process-step:hover::before {
    opacity: 1;
}

.step-number {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.process-step h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.feature {
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 18px;
}

.feature h4 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 28px 24px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ===== Контакты ===== */
.location-banner {
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 28px;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.location-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    pointer-events: none;
}

.location-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.location-icon {
    font-size: 56px;
    flex-shrink: 0;
}

.location-text h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.location-text p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
}

.location-pulse {
    width: 80px;
    height: 80px;
    position: relative;
    flex-shrink: 0;
}

.pulse-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2.5s infinite ease-out;
}

.pulse-ring.delay {
    animation-delay: 1.25s;
}

@keyframes pulse-ring {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    max-width: 960px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border-radius: 18px;
    margin-bottom: 22px;
    font-size: 34px;
    color: var(--primary);
    transition: all 0.4s;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.contact-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 18px;
}

.contact-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.contact-card:hover .contact-link {
    color: var(--accent);
    transform: translateX(4px);
}

/* ===== Footer ===== */
.footer {
    padding: 44px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===== Кнопка наверх ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    z-index: 50;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

/* ===== Адаптивность ===== */
@media (max-width: 1100px) {
    .nav-links a {
        padding: 9px 12px;
        font-size: 14px;
    }
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 4px;
        margin-top: 12px;
        padding: 12px;
        border-radius: 20px;
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-social .social-btn span {
        display: none;
    }

    .nav-social .social-btn {
        padding: 10px;
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .mobile-toggle {
        display: flex;
    }

    .location-banner {
        flex-direction: column;
        text-align: center;
    }

    .location-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .hero-stats {
        gap: 30px;
        padding: 24px;
    }

    .stat h3 {
        font-size: 38px;
    }

    section {
        padding: 70px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .service-card,
    .feature,
    .process-step,
    .contact-card {
        padding: 28px;
    }

    .faq-question {
        padding: 20px 22px;
        font-size: 16px;
    }

    .faq-answer p {
        padding: 0 22px 20px;
    }

    .location-banner {
        padding: 30px 24px;
    }

    .location-text h3 {
        font-size: 24px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }
}

/* Анимация появления */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
