:root {
    /* --- DESIGN SYSTEM --- */
    --color-primary: #1a9b8f;       /* Deep Teal */
    --color-primary-dark: #126e65;
    --color-secondary: #b4d946;     /* Lime Accent */
    
    --bg-body: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #181a1b;
    --bg-darker: #111213;
    
    --text-main: #2d3436;
    --text-light: #f5f6fa;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-section: 100px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-main); line-height: 1.6; overflow-x: hidden; width: 100%; }
body.menu-open { overflow: hidden; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; }
.section-title.light { color: white; }
.section-desc { max-width: 600px; color: #666; margin-bottom: 60px; font-size: 1.1rem; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: var(--spacing-section) 0; }
.section-dark { background: var(--bg-dark); color: white; padding: var(--spacing-section) 0; }
.bg-light { background: var(--bg-light); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- BUTTONS --- */
.cta-button { display: inline-block; padding: 16px 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 1px solid transparent; transition: 0.3s; cursor: pointer; }
.cta-button.primary { background: var(--color-primary); color: white; }
.cta-button.primary:hover { background: var(--color-primary-dark); box-shadow: 0 5px 15px rgba(26, 155, 143, 0.4); }
.cta-button.outline { border-color: white; color: white; }
.cta-button.outline:hover { background: white; color: var(--bg-dark); }
.cta-button.small { padding: 10px 20px; font-size: 0.8rem; border-color: var(--color-primary); color: var(--color-primary); }
.cta-button.small:hover { background: var(--color-primary); color: white; }

/* --- HEADER --- */
header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: 0.4s; background: rgba(255,255,255,0.05); }
header.scrolled { background: rgba(17, 18, 19, 0.95); padding: 10px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: 2px; color: white; z-index: 1002; position: relative; }
.logo .accent { color: var(--color-primary); }
.nav-list { display: flex; gap: 30px; list-style: none; }
.nav-menu-item a { color: white; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; opacity: 0.8; }
.nav-menu-item a:hover, .nav-menu-item.active a { opacity: 1; color: var(--color-primary); }
.burger-menu { display: none; cursor: pointer; z-index: 1002; }
.burger-menu span { display: block; width: 25px; height: 2px; background: white; margin: 5px 0; transition: 0.4s; }

/* --- HERO: FIXED AURORA --- */
.hero-section { height: 100vh; display: flex; align-items: center; position: relative; background-color: #050607; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hero-section::before { content: ''; position: absolute; top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(26, 155, 143, 0.5) 0%, transparent 70%); filter: blur(60px); animation: aurora-1 10s infinite alternate; z-index: 0; opacity: 0.8; }
.hero-section::after { content: ''; position: absolute; bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(180, 217, 70, 0.25) 0%, transparent 70%); filter: blur(80px); animation: aurora-2 12s infinite alternate; z-index: 0; opacity: 0.6; }
@keyframes aurora-1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10%, 10%) scale(1.1); } }
@keyframes aurora-2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-15%, -15%) scale(1.2); } }
#particles-js { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.4; }
.hero-content { position: relative; z-index: 2; color: white; max-width: 1000px; margin-top: -40px; }
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; color: #ffffff; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-title .highlight { color: var(--color-primary); text-shadow: 0 0 25px rgba(26, 155, 143, 0.4); }
.hero-subtitle { font-size: 1.2rem; max-width: 600px; margin-bottom: 40px; opacity: 0.9; padding-left: 20px; border-left: 3px solid var(--color-primary); }
.hero-actions { display: flex; gap: 20px; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 60px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.stat-number { font-size: 3rem; font-weight: 900; display: block; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-primary); }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 40px; border: 1px solid #eee; position: relative; transition: 0.3s; }
.service-card:hover { border-color: var(--color-primary); transform: translateY(-5px); }
.card-number { font-size: 3rem; font-weight: 900; color: #f0f0f0; position: absolute; top: 20px; right: 20px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: #666; margin-bottom: 25px; }
.service-link { font-weight: 700; color: var(--color-primary); font-size: 0.9rem; text-transform: uppercase; }

/* --- ADVANTAGES --- */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.adv-item { padding: 30px; background: #fff; border: 1px solid #eee; border-radius: 4px; transition: 0.3s; }
.adv-item:hover { transform: translateY(-5px); border-color: var(--color-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.adv-icon { margin-bottom: 20px; height: 40px; display: flex; align-items: center; }
.adv-item h3 { font-size: 1.2rem; margin-bottom: 10px; color: #2d3436; font-weight: 700; }
.adv-item p { font-size: 0.9rem; color: #666; line-height: 1.5; }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 2px; background: #222; }
.portfolio-item { position: relative; height: 400px; overflow: hidden; display: block; }
.portfolio-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s; filter: brightness(0.6); }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 2; }
.project-tags { color: var(--color-primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.project-title { color: white; font-size: 1.8rem; margin: 0; }
.portfolio-item:hover .portfolio-bg { transform: scale(1.05); filter: brightness(0.9); }

/* --- PROCESS & FAQ --- */
.process-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.process-step { display: flex; flex-direction: column; border-top: 2px solid #eee; padding-top: 20px; transition: 0.3s; }
.process-step:hover { border-color: var(--color-primary); }
.step-num { font-size: 3rem; font-weight: 900; color: #e0e0e0; line-height: 1; margin-bottom: 10px; }
.step-text h3 { font-size: 1.2rem; margin-bottom: 10px; }
/* FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border: 1px solid #e0e0e0; margin-bottom: 15px; border-radius: 4px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px 30px; background: none; border: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.faq-question:hover { color: var(--color-primary); background: #fafafa; }
.faq-question .icon { font-size: 1.5rem; color: var(--color-primary); transition: 0.3s; }
.faq-question.active .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #fafafa; }
.faq-answer p { padding: 0 30px 20px; color: #666; line-height: 1.6; font-size: 0.95rem; }

/* --- INNER PAGES --- */
.page-hero { padding: 180px 0 80px; background: var(--bg-darker); border-bottom: 1px solid rgba(255,255,255,0.05); }
.page-title { font-size: 3.5rem; color: white; margin-bottom: 20px; }
.page-subtitle { font-size: 1.2rem; color: #999; max-width: 600px; }
.service-detail-section { padding: 100px 0; border-bottom: 1px solid #eee; }
.service-detail-section.bg-darker { background: var(--bg-darker); border-bottom: 1px solid rgba(255,255,255,0.05); color: white; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.detail-grid.reverse { direction: rtl; }
.detail-grid.reverse .detail-info { direction: ltr; }
.service-tag { display: block; font-family: var(--font-heading); color: var(--color-primary); font-weight: 900; margin-bottom: 20px; letter-spacing: 2px; }
.detail-info h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--text-main); }
.bg-darker .detail-info h2 { color: white; }
.check-list { list-style: none; margin: 30px 0 40px; }
.check-list li { margin-bottom: 15px; padding-left: 25px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }
.detail-visual { width: 100%; height: 400px; background: #f0f0f0; border-radius: 4px; position: relative; overflow: hidden; }
.dev-bg { background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%); border: 1px solid #ddd; }
.bg-darker .detail-visual { background: #222; border: 1px solid #333; }
.contact-hero { min-height: 80vh; }
.contact-methods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }
.method-card { background: rgba(255,255,255,0.03); padding: 40px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; display: block; }
.method-card:hover { background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-5px); }
.method-card:hover h3, .method-card:hover p, .method-card:hover .link-text { color: white; }
.method-icon { font-size: 3rem; margin-bottom: 20px; }
.method-card h3 { color: white; font-size: 1.5rem; margin-bottom: 10px; }
.method-card p { color: #888; margin-bottom: 20px; font-size: 0.9rem; transition: 0.3s;}
.link-text { color: var(--color-primary); font-weight: 700; font-size: 1.2rem; transition: 0.3s;}
.requisites-block { margin-top: 100px; padding-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); }
.requisites-block h3 { color: white; margin-bottom: 30px; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.req-item { display: flex; flex-direction: column; }
.req-item .label { color: #666; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 5px; }
.req-item .value { color: white; font-size: 1.1rem; font-weight: 600; }
.policy-page { background: var(--bg-darker); color: #d0d0d0; min-height: 100vh; padding: 120px 0 80px; font-family: var(--font-body); }
.policy-container { max-width: 900px; margin: 0 auto; background: rgba(255,255,255,0.03); padding: 60px; border: 1px solid rgba(255,255,255,0.05); border-radius: 4px; }
.policy-container h1 { color: white; font-size: 2rem; margin-bottom: 40px; border-bottom: 1px solid var(--color-primary); padding-bottom: 20px; }
.policy-container h2 { color: white; font-size: 1.3rem; margin-top: 40px; margin-bottom: 20px; }
.policy-container p { margin-bottom: 15px; font-size: 0.95rem; line-height: 1.6; text-align: justify; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--color-primary); font-weight: 600; }

/* --- FOOTER --- */
.footer-section { background: var(--bg-darker); padding: 80px 0 30px; color: white; }
.tech-summary { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 60px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-main { text-align: center; margin-bottom: 80px; }
.footer-cta-title { font-size: 3rem; margin-bottom: 40px; }
.contact-buttons { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.big-contact-btn { background: rgba(255,255,255,0.05); padding: 30px 50px; min-width: 300px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; transition: 0.3s; display: flex; flex-direction: column; align-items: center; }
.big-contact-btn:hover { background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-5px); }
.btn-value { font-size: 1.2rem; font-weight: 700; margin-top: 5px; }
.footer-bottom { text-align: center; color: #444; font-size: 0.9rem; }

/* =========================================
   MOBILE RESPONSIVE (FULL FIX)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. ЧИНИМ ШАПКУ */
    .desktop-only { display: none !important; }
    .nav-wrapper { justify-content: space-between !important; padding: 0 15px; }
    .logo { font-size: 1.2rem !important; z-index: 1005; }
    .burger-menu { display: block !important; z-index: 1005; margin-left: auto; }
    
    .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--bg-darker); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.5s; z-index: 1000; }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; text-align: center; gap: 40px; }
    .nav-menu-item a { font-size: 1.5rem; }
    .burger-menu.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger-menu.toggle span:nth-child(2) { opacity: 0; }
    .burger-menu.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    /* 2. ЧИНИМ HERO */
    .hero-content { margin-top: 0 !important; padding-top: 140px !important; text-align: center; padding-left: 15px; padding-right: 15px; }
    .hero-title { font-size: 2.5rem !important; line-height: 1.1; margin-bottom: 20px; display: block !important; visibility: visible !important; opacity: 1 !important; word-wrap: break-word; }
    .hero-subtitle { font-size: 1rem !important; border: none !important; padding: 0 !important; margin-bottom: 30px !important; border-top: 3px solid var(--color-primary); padding-top: 20px !important; }

    /* 3. ЧИНИМ КНОПКИ */
    .hero-actions { flex-direction: column !important; gap: 15px; width: 100%; }
    .cta-button { width: 100% !important; max-width: 100% !important; box-sizing: border-box; text-align: center; }

    /* 4. ЧИНИМ СТАТИСТИКУ (СТОЛБИК) */
    .hero-stats { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px !important; 
        align-items: center !important; 
        width: 100% !important; 
        padding: 0 20px; 
        margin-top: 40px; 
        border-top: none !important;
    }
    .stat-item { 
        width: 100% !important; 
        text-align: center !important; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        padding-bottom: 15px; 
    }
    .stat-item:last-child { border-bottom: none; }
    .stat-number { font-size: 3rem !important; }

    /* 5. УБИРАЕМ СКРОЛЛ */
    body, html { overflow-x: hidden !important; width: 100%; position: relative; }
    .container { padding: 0 20px !important; width: 100%; }

    /* 6. СЕТКИ В 1 КОЛОНКУ */
    .services-grid, .portfolio-grid, .advantages-grid, .detail-grid, .contact-methods-grid, .req-grid, .tech-summary, .process-wrapper {
        grid-template-columns: 1fr !important; gap: 30px;
    }
    
    .detail-visual { order: -1; height: 250px; }
    .detail-grid.reverse { direction: ltr !important; }
    
    /* 7. Остальное */
    .footer-cta-title { font-size: 2rem; }
    .contact-buttons .big-contact-btn { width: 100%; margin-bottom: 15px; }
    .section-padding { padding: 60px 0; }
}