/* ============================================
   XMAI — Dark Neon Theme
   Colors from presentation:
   BG: #0a0a1a, Orange: #FF6B35, Blue: #3B82F6
   Purple: #8B5CF6, Green: #10B981, Pink: #FF3399
   ============================================ */

:root {
    --bg: #0a0a1a;
    --bg-light: #111128;
    --bg-card: rgba(20, 20, 50, 0.6);
    --text: #ffffff;
    --text-muted: #a0a0c0;
    --orange: #FF6B35;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --green: #10B981;
    --pink: #FF3399;
    --border: rgba(255,255,255,0.08);
    --glass: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --max-w: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}
.header.scrolled {
    background: rgba(10,10,26,0.92);
    backdrop-filter: blur(20px);
    padding: 10px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo-img { height: 36px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-main { height: 38px; width: auto; }
.logo:hover .logo-main { filter: drop-shadow(0 0 12px rgba(139,92,246,0.4)); }
.footer-logo-main { height: 36px; width: auto; display: block; margin-bottom: 16px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.header-phone {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.glow-orbit {
    position: absolute;
    inset: 0;
    animation: orbit-rotate 30s linear infinite;
}
@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 12s ease-in-out infinite, pulse 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}
@keyframes pulse {
    0%, 100% { scale: 1; }
    50% { scale: 1.1; }
}
.glow-1 { width: 350px; height: 350px; background: var(--orange); top: 50%; left: 50%; transform: translate(-50%, -50%) translate(0, -250px); animation-delay: 0s; }
.glow-2 { width: 350px; height: 350px; background: var(--blue); top: 50%; left: 50%; transform: translate(-50%, -50%) translate(250px, 0); animation-delay: -3s; }
.glow-3 { width: 350px; height: 350px; background: var(--purple); top: 50%; left: 50%; transform: translate(-50%, -50%) translate(0, 250px); animation-delay: -6s; }
.glow-4 { width: 350px; height: 350px; background: var(--green); top: 50%; left: 50%; transform: translate(-50%, -50%) translate(-250px, 0); animation-delay: -9s; }

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--purple));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139,92,246,0.3);
}
.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn-messenger {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-messenger.telegram { background: #229ED9; color: white; }
.btn-messenger.telegram:hover { background: #1a8bc4; }
.btn-messenger.max { background: #6C3EBF; color: white; }
.btn-messenger.max:hover { background: #5a33a5; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-light); }
.section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 12px;
}
.section-label.center { text-align: center; }
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.section-title.center { text-align: center; }
.section-desc {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.7;
}
.section-desc.center { text-align: center; }

/* ============ GLASS CARD ============ */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(59,130,246,0.1), rgba(255,107,53,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}
.about-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.feature-item { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.feature-icon { flex-shrink: 0; }
.about-visual { display: flex; flex-direction: column; gap: 16px; }
.about-card { padding: 24px; }
.about-card h3 { font-size: 16px; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.about-card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.about-card-icon.orange { background: rgba(255,107,53,0.15); color: var(--orange); }
.about-card-icon.blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.about-card-icon.green { background: rgba(16,185,129,0.15); color: var(--green); }

/* ============ SERVICES ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.service-card { text-align: center; padding: 36px 28px; }
.service-card h3 { font-size: 17px; margin: 16px 0 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.service-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.service-icon.orange { background: rgba(255,107,53,0.12); color: var(--orange); }
.service-icon.blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.service-icon.purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.service-icon.green { background: rgba(16,185,129,0.12); color: var(--green); }

/* ============ TOOLS (BITRIX) ============ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tool-card { position: relative; overflow: hidden; }
.tool-number {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    position: absolute;
    top: 12px;
    right: 20px;
    line-height: 1;
}
.tool-card h3 { font-size: 18px; margin-bottom: 10px; position: relative; z-index: 1; }
.tool-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1; }

/* ============ STEPS ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step-card { text-align: center; padding: 36px 24px; }
.step-num {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============ RESULTS ============ */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.result-card { text-align: center; padding: 36px 24px; }
.result-industry {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.result-metric {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}
.result-metric.orange { color: var(--orange); }
.result-metric.blue { color: var(--blue); }
.result-metric.green { color: var(--green); }
.result-metric.purple { color: var(--purple); }
.result-card p { font-size: 14px; color: var(--text-muted); }
.result-placeholder {
    border: 2px dashed var(--glass-border);
    background: transparent;
}
.result-placeholder:hover { border-color: var(--purple); }

/* ============ CONTACTS ============ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item a, .contact-item span { font-size: 15px; color: var(--text); text-decoration: none; }
.contact-label { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.contact-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.contact-icon.orange { background: rgba(255,107,53,0.12); color: var(--orange); }
.contact-icon.blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.contact-icon.purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.contact-icon.green { background: rgba(16,185,129,0.12); color: var(--green); }
.contact-messengers { display: flex; gap: 12px; }

/* ============ FORM ============ */
.contact-form h3 { font-size: 22px; margin-bottom: 8px; }
.contact-form > p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    background: rgba(139,92,246,0.05);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.form-check input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px;
    accent-color: var(--purple);
    flex-shrink: 0;
}
.form-check label { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.form-check a { color: var(--purple); text-decoration: none; }

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}
.footer-social a:hover { color: var(--text); border-color: var(--purple); }
.footer-links h4,
.footer-contacts h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-links a,
.footer-contacts a,
.footer-contacts span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom span { font-size: 12px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--text); }

/* ============ COOKIE BAR ============ */
.cookie-bar {
    position: fixed;
    bottom: 20px; left: 20px;
    background: rgba(20,20,50,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
    z-index: 900;
}
.cookie-bar p { font-size: 12px; color: var(--text-muted); margin: 0; }
.cookie-bar a { color: var(--purple); }

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--purple));
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 800;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,92,246,0.4); }

/* ============ ANIMATIONS ============ */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,26,0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }
    .nav.active { display: flex; }
    .nav-link { font-size: 20px; }
    .burger { display: flex; z-index: 1001; }
    .header-phone { font-size: 12px; }
    .hero { padding: 100px 16px 60px; min-height: auto; }
    .hero-title { font-size: 32px; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 28px; }
    .services-grid,
    .tools-grid,
    .steps-grid,
    .results-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; }
    .cookie-bar { left: 10px; right: 10px; max-width: none; flex-direction: column; text-align: center; }
    .hero-buttons { flex-direction: column; align-items: center; }
}
