        :root {
            --bg-base: #050505;
            --glass-bg: rgba(20, 20, 22, 0.6);
            --glass-border: rgba(255, 255, 255, 0.06);
            --glass-highlight: rgba(255, 255, 255, 0.1);
            --text-main: #f5f5f7;
            --text-muted: #86868b;
            
            /* Новая золотая палитра */
            --gold-light: #FBECAE;
            --gold-main: #D4AF37;
            --gold-dark: #AA771C;
            --gold-grad: linear-gradient(135deg, #FBECAE 0%, #D4AF37 50%, #AA771C 100%);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html { scroll-behavior: smooth; scroll-padding-top: 100px; }

        body { font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif; background-color: var(--bg-base); color: var(--text-main); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

        /* НОВЫЙ ФОН: Инженерная сетка вместо пятен */
        .ambient-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
        .grid-bg { 
            position: absolute; width: 100%; height: 100%;
            background-image: 
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 40px 40px;
        }
        /* Растворение сетки к краям экрана */
        .grid-fade {
            position: absolute; width: 100%; height: 100%;
            background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-base) 80%);
        }

        .glass-panel { background: var(--glass-bg); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border: 1px solid var(--glass-border); border-top: 1px solid var(--glass-highlight); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05); border-radius: 24px; }
        
        /* Золотой акцентный шрифт */
        .accent-font { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; background: var(--gold-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 1px; }

        /* Хедер */
       /* header { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1000px; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-radius: 40px; background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); }
        .logo { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; cursor: pointer; color: #fff; text-decoration: none; }*/
        /* Базовые стили шапки (Стекломорфизм) */
/* ================= ПЛАВАЮЩАЯ КАПСУЛА (HEADER) ================= */
.header-wrapper {
    position: fixed;
    top: 30px; /* Отступ сверху */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none; /* Пропускаем клики мимо шапки на сам сайт */
}

.floating-header {
    pointer-events: auto; /* Включаем клики для самой шапки */
    /* Темный градиент и размытие (эффект стекла) как на картинке */
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.85) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Форма капсулы и тонкая граница */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);

    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Асимметричный отступ: слева больше для лого, справа меньше, чтобы кнопка вписалась в край */
    padding: 8px 8px 8px 30px; 

    width: 90%;
    max-width: 950px; /* Максимальная ширина капсулы */
}

/* ================= ЛОГОТИП ================= */
.floating-header .logo {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================= НАВИГАЦИЯ ================= */
.floating-header .desktop-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Центрируем меню точно по середине капсулы */
}

.floating-header .nav-item {
    color: #888888; /* Приглушенный серый, как на картинке */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.floating-header .nav-item:hover {
    color: #ffffff;
}

.arrow {
    font-size: 8px;
    opacity: 0.5;
    transition: transform 0.3s;
}

/* ================= ВЫПАДАЮЩЕЕ МЕНЮ ================= */
.dropdown {
    position: relative;
    padding: 20px 0; /* Зона для наведения */
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #111111;
    min-width: 240px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px); /* Меню аккуратно подтягивается к шапке */
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-content a {
    color: #a0a0a0;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding-left: 25px;
}

/* ================= КНОПКА "СВЯЗАТЬСЯ" ================= */
.btn-contact {
    /* Темная кнопка-капсула, как на картинке */
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ================= АДАПТИВ (ДЛЯ МОБИЛЬНЫХ) ================= */
@media (max-width: 900px) {
    .floating-header .desktop-menu {
        display: none; /* На мобильных скрываем меню по центру */
    }
    .floating-header {
        padding: 10px 15px; /* Уменьшаем отступы */
        width: 95%;
        top: 15px;
    }
}
        
        .desktop-menu { display: flex; gap: 32px; }
        .desktop-menu a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.3s; letter-spacing: 0.2px; }
        .desktop-menu a:hover { color: var(--gold-light); }

        .btn { display: inline-block; padding: 12px 28px; border-radius: 30px; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.3s; font-size: 15px; border: none; letter-spacing: -0.2px; text-align: center; }
        .btn-primary { background: var(--gold-grad); color: #000; box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15); }
        .btn-primary:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3); }
        .btn-glass { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
        .btn-glass:hover { background: rgba(212, 175, 55, 0.1); border-color: rgba(212, 175, 55, 0.3); color: var(--gold-light); }

        .section-title { font-size: 3rem; font-weight: 400; letter-spacing: -1px; margin-bottom: 40px; text-align: center; }
        .section-spacing { padding: 80px 0; }

        /* SCROLL АНИМАЦИИ */
        .reveal { opacity: 0; transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, opacity, filter; }
        .reveal.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
        .reveal-up { transform: translateY(50px); }
        .reveal-blur { filter: blur(15px); transform: translateY(20px); }
        .reveal-scale { transform: scale(0.95); }
        .delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }
        .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

        /* ГЛАВНЫЙ ЭКРАН */
        .hero { padding: 200px 0 60px; text-align: center; position: relative; }
        .hero-watermark { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); font-size: 14vw; font-weight: 900; color: rgba(255, 255, 255, 0.02); white-space: nowrap; z-index: -1; user-select: none; pointer-events: none; letter-spacing: -2px; font-family: 'Inter', sans-serif; will-change: transform; }
        .hero h1 { font-size: 5.5rem; line-height: 1.05; margin-bottom: 24px; font-weight: 500; letter-spacing: -2px; animation: fadeUpHero 1s ease forwards; opacity: 0; transform: translateY(30px); }
        .hero p { font-size: 1.3rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 30px; font-weight: 400; animation: fadeUpHero 1s ease forwards 0.2s; opacity: 0; transform: translateY(30px); }
        @keyframes fadeUpHero { to { opacity: 1; transform: translateY(0); } }

        /* Печатная машинка (Золотая) */
        .code-typewriter { font-family: 'Fira Code', monospace; font-size: 1.1rem; color: var(--gold-main); background: rgba(10,10,12,0.8); padding: 12px 24px; border-radius: 12px; display: inline-flex; align-items: center; border: 1px solid var(--glass-border); margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); animation: fadeUpHero 1s ease forwards 0.4s; opacity: 0; transform: translateY(30px); }
        .code-prompt { color: var(--text-muted); margin-right: 10px; user-select: none; }
        .type-cursor { display: inline-block; width: 8px; height: 18px; background-color: var(--gold-main); margin-left: 4px; animation: blink 1s step-end infinite; }
        
        /* Терминал с кодом */
        @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
        .hero-terminal { max-width: 650px; margin: 60px auto 0; text-align: left; animation: float 6s ease-in-out infinite, fadeUpHero 1s ease forwards 0.6s; opacity: 0; padding: 0; background: #0A0A0C; box-shadow: 0 40px 80px rgba(0,0,0,0.8); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; }
        .terminal-header { padding: 12px 20px; background: rgba(20,20,22,0.9); border-bottom: 1px solid var(--glass-border); display: flex; gap: 8px; align-items: center; }
        .mac-dot { width: 12px; height: 12px; border-radius: 50%; }
        .dot-red { background: #ff5f56; } .dot-yellow { background: #ffbd2e; } .dot-green { background: #27c93f; }
        .terminal-body { padding: 24px; font-family: 'Fira Code', monospace; font-size: 14px; line-height: 1.6; color: #a9b7c6; height: 180px; overflow: hidden; position: relative; }
        .code-keyword { color: #cc7832; } .code-func { color: #ffc66d; } .code-string { color: #6a8759; } .code-comment { color: #808080; font-style: italic; }
        .term-cursor { display: inline-block; width: 8px; height: 15px; background-color: var(--gold-light); animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 2px;}
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

        /* =========================================
           ИЗЯЩНАЯ БЕГУЩАЯ СТРОКА (NEW)
           ========================================= */
        .marquee-section { 
            position: relative; width: 100vw; overflow: hidden; 
            margin-top: 60px; padding: 20px 0; z-index: 5;
            border-top: 1px solid rgba(212, 175, 55, 0.15); 
            border-bottom: 1px solid rgba(212, 175, 55, 0.15);
            background: linear-gradient(90deg, rgba(5,5,5,1) 0%, rgba(20,20,22,0.8) 50%, rgba(5,5,5,1) 100%);
        }
        .marquee-wrapper { position: relative; display: flex; white-space: nowrap; }
        .marquee-content { 
            display: flex; align-items: center; 
            animation: scrollMarquee 30s linear infinite; 
            font-family: 'Inter', sans-serif; font-size: 0.95rem; 
            color: var(--gold-main); font-weight: 400; letter-spacing: 3px; text-transform: uppercase;
        }
        .marquee-content span { padding: 0 40px; }
        .marquee-content .dot { color: rgba(255,255,255,0.2); font-size: 0.8rem; padding: 0; }
        @keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

        /* Преимущества */
        .bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .bento-card { padding: 40px; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; display: flex; flex-direction: column; justify-content: space-between; }
        .bento-card:hover { transform: translateY(-5px) !important; border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 20px 40px rgba(212, 175, 55, 0.05); }
        .card-large { grid-column: span 2; background: linear-gradient(145deg, rgba(30,30,32,0.6) 0%, rgba(15,15,18,0.4) 100%); }
        .bento-card h3 { font-size: 1.8rem; margin-bottom: 12px; font-weight: 500; letter-spacing: -0.5px; }

        /* Проекты */
        .cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
        .case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s, border-color 0.4s; }
        .case-card:hover { transform: translateY(-10px) !important; border-color: rgba(212, 175, 55, 0.3); }
        .case-img { height: 300px; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; border-bottom: 1px solid var(--glass-border); color: var(--text-muted); background-size: cover; background-position: center; transition: transform 0.5s; }
        .case-card:hover .case-img { transform: scale(1.05); }
        .case-body { padding: 30px; position: relative; z-index: 2; background: var(--glass-bg); height: 100%; }
        .case-tags { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
        .case-tag { padding: 6px 14px; background: rgba(212, 175, 55, 0.05); border: 1px solid rgba(212, 175, 55, 0.2); color: var(--gold-light); border-radius: 20px; font-size: 12px; }

        /* ПРОЦЕСС РАБОТЫ (Золотые акценты) */
        .pipeline-container { position: relative; padding-top: 20px; }
        .pipeline-track { position: absolute; top: 25px; left: 12.5%; width: 75%; height: 1px; border-top: 1px dashed rgba(255,255,255,0.2); z-index: 1; }
        .pipeline-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
        .pipeline-step { display: flex; flex-direction: column; align-items: center; text-align: left; cursor: default; height: 100%; }
        
        .step-node { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-base); border: 1px solid rgba(255,255,255,0.2); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-style: italic; margin-bottom: 25px; transition: all 0.4s ease; box-shadow: 0 0 0 rgba(212, 175, 55, 0); z-index: 2; flex-shrink: 0; }
        .pipeline-step:hover .step-node { border-color: var(--gold-main); color: var(--gold-main); box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); transform: scale(1.1); }
        
        .step-card { padding: 30px 24px; border-radius: 20px; width: 100%; transition: transform 0.4s, border-color 0.4s; position: relative; overflow: hidden; flex-grow: 1; display: flex; flex-direction: column; background: var(--glass-bg); border: 1px solid var(--glass-border); }
        .step-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 1px; background: var(--gold-grad); transition: transform 0.6s ease; }
        .pipeline-step:hover .step-card { transform: translateY(-8px); border-color: rgba(212, 175, 55, 0.3); }
        .pipeline-step:hover .step-card::before { transform: translateX(100%); }
        .step-tag { display: inline-block; padding: 4px 12px; color: var(--gold-dark); margin-bottom: 15px; font-family: 'Fira Code', monospace; font-size: 12px; align-self: flex-start; }

        /* Эксперт */
        .expert-section { text-align: center; max-width: 700px; margin: 0 auto; }
        .expert-photo { width: 140px; height: 140px; background: var(--glass-bg); border: 1px solid var(--glass-highlight); border-radius: 50%; margin: 0 auto 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); background-size: cover; background-position: center; }

        /* Квиз */
        .mac-window { max-width: 800px; margin: 0 auto; padding: 0; overflow: hidden; border-color: var(--glass-border); transition: border-color 0.3s; }
        .mac-window:hover { border-color: rgba(212, 175, 55, 0.2); }
        .mac-header { padding: 15px 20px; background: rgba(0,0,0,0.4); border-bottom: 1px solid var(--glass-border); display: flex; gap: 8px; align-items: center; }
        .mac-title { margin-left: 15px; font-size: 13px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; }
        .quiz-body { padding: 50px; }
        .step { display: none; }
        .step.active { display: block; animation: fadeScale 0.4s ease; }
        @keyframes fadeScale { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
        .options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }
        .option { padding: 20px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 16px; cursor: pointer; transition: all 0.2s; text-align: center; font-weight: 500; color: var(--text-muted); }
        .option:hover { background: rgba(255,255,255,0.05); color: #fff; }
        .option.selected { border-color: var(--gold-main); background: rgba(212, 175, 55, 0.05); color: var(--gold-light); }
        input { width: 100%; padding: 18px 24px; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); color: white; border-radius: 16px; margin-bottom: 15px; font-size: 16px; font-family: inherit; transition: all 0.3s; }
        input:focus { outline: none; border-color: var(--gold-main); background: rgba(0,0,0,0.6); }

        /* Плавающий Виджет Связи */
        .widget-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
        .widget-menu { display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); transform-origin: bottom right; }
        .widget-menu.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
        .widget-link { display: flex; align-items: center; gap: 12px; background: rgba(20,20,22,0.9); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); padding: 12px 20px; border-radius: 30px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
        .widget-link:hover { border-color: var(--gold-main); color: var(--gold-light); transform: translateX(-5px); }
        .widget-link svg { width: 20px; height: 20px; fill: currentColor; }
        .widget-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-grad); display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); transition: transform 0.3s; border: none; outline: none; }
        .widget-btn:hover { transform: scale(1.05); }
        .widget-btn svg { width: 30px; height: 30px; fill: #000; transition: transform 0.3s; }
        .widget-btn.active svg { transform: rotate(45deg); }

        /* Футер */
        footer { margin-top: 60px; padding: 50px 0 30px; border-top: 1px solid var(--glass-border); background: #050505; position: relative; z-index: 10; }
        .footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
        .footer-col { display: flex; flex-direction: column; gap: 12px; }
        .footer-col h4 { color: #fff; font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
        .footer-col a, .footer-col span { color: var(--text-muted); font-size: 0.95rem; text-decoration: none; transition: color 0.3s; }
        .footer-col a:hover { color: var(--gold-light); }
        .footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
        .footer-bottom span, .footer-bottom a { color: #555; font-size: 0.85rem; text-decoration: none; transition: color 0.3s; }
        .footer-bottom a:hover { color: var(--text-muted); }

        /* Адаптивность */
        @media (max-width: 900px) { 
            .bento-grid, .cases-grid { grid-template-columns: 1fr; } 
            .card-large { grid-column: span 1; } 
            .pipeline-track { display: none; }
            .pipeline-steps { grid-template-columns: 1fr; gap: 40px; padding-left: 20px; border-left: 1px dashed rgba(255,255,255,0.2); margin-left: 20px; }
            .pipeline-step { align-items: flex-start; position: relative; }
            .step-node { position: absolute; left: -46px; top: 20px; margin-bottom: 0; width: 48px; height: 48px; font-size: 1.2rem; }
            .step-card { width: 100%; padding: 25px 20px; }
        }
        @media (max-width: 768px) { 
            .desktop-menu { display: none; }
            .footer-inner { flex-direction: column; gap: 30px; } 
            .footer-bottom { flex-direction: column; text-align: center; } 
            .hero-watermark { font-size: 20vw; top: 180px; } 
        }
        @media (max-width: 600px) {
            .hero h1 { font-size: 3.2rem; } .options-grid { grid-template-columns: 1fr; } .quiz-body { padding: 30px; }
            header { width: 95%; padding: 10px 15px; } .logo { font-size: 18px; }
            .terminal-body { font-size: 12px; height: 160px; }
            .widget-container { bottom: 20px; right: 20px; }
            .widget-btn { width: 56px; height: 56px; }
            .widget-btn svg { width: 26px; height: 26px; }
            .pipeline-steps { padding-left: 15px; margin-left: 15px; }
            .step-node { left: -39px; width: 44px; height: 44px; }
        }
        
          /* Экран загрузки (Шаг 5) */
    .loading-screen { text-align: center; padding: 40px 20px; }
    .progress-bar-wrap { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; margin: 30px 0 15px; }
    .progress-bar { height: 100%; background: #007bff; width: 0%; transition: width 0.1s linear; }
    .loading-text-dynamic { color: var(--text-muted); font-size: 14px; min-height: 20px; }

    /* Выбор мессенджера (Шаг 6) */
    .messenger-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
    .msg-btn { 
        padding: 12px 5px; text-align: center; border: 1px solid rgba(255,255,255,0.1); 
        border-radius: 8px; cursor: pointer; transition: 0.3s; color: var(--text-muted); font-size: 14px;
    }
    .msg-btn.active[data-type="telegram"] { border-color: #2AABEE; background: rgba(42, 171, 238, 0.1); color: #fff;}
    .msg-btn.active[data-type="whatsapp"] { border-color: #25D366; background: rgba(37, 211, 102, 0.1); color: #fff;}
    .msg-btn.active[data-type="phone"] { border-color: #007bff; background: rgba(0, 123, 255, 0.1); color: #fff;}

    /* Форма и инпуты */
    .quiz-form input { width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; }
    .quiz-form input:focus { outline: none; border-color: #007bff; }
/* Эффект успешного заполнения поля */
.quiz-form input {
    transition: all 0.3s ease;
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.quiz-form input.input-success {
    border-color: #25D366 !important; /* Зеленый цвет */
    background-color: rgba(37, 211, 102, 0.05) !important;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.15);
    padding-right: 45px;
    /* Иконка галочки (SVG) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325D366' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}
/* Темный фон размытия (Overlay) */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px); /* Премиальное размытие фона */
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Окно видимо */
.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Само окно */
.custom-modal-window {
    background: #0a0a0a; /* Темный цвет под ваш сайт */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh; /* Максимальная высота - 85% экрана */
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-overlay.active .custom-modal-window {
    transform: translateY(0) scale(1);
}

/* Шапка терминала */
.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #121212;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
}

.custom-modal-header .mac-dots {
    display: flex;
    gap: 8px;
}

.custom-modal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; cursor: pointer; transition: 0.2s; }
.dot-red:hover { box-shadow: 0 0 8px #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.custom-modal-header .modal-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-family: monospace;
}

/* Кнопка крестик (для мобилок) */
.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close-btn:hover { color: #fff; }

/* Тело с текстом */
.custom-modal-body {
    padding: 30px;
    overflow-y: auto;
    color: #b0b0b0;
    font-size: 15px;
    line-height: 1.6;
}

.custom-modal-body h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
}

.custom-modal-body p { margin-bottom: 15px; }

/* Кастомный красивый скроллбар */
.custom-modal-body::-webkit-scrollbar { width: 6px; }
.custom-modal-body::-webkit-scrollbar-track { background: transparent; }
.custom-modal-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
.custom-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

/* Адаптив для мобильных телефонов */
@media (max-width: 600px) {
    .custom-modal-window { width: 95%; max-height: 90vh; }
    .custom-modal-body { padding: 20px; font-size: 14px; }
    .custom-modal-header .modal-title { display: none; /* Прячем название файла на мобилках для экономии места */ }
}


.main-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Скрываем элементы, которые нужны только на телефоне */
.burger-btn, .mobile-btn {
    display: none;
}

/* Прячем мобильные элементы на десктопе */
.burger-btn, .mobile-btn {
    display: none;
}

 

/* Переменные цветов (взяты с вашего скриншота) */
:root {
    --bg-dark: #050505;          /* Основной черный фон */
    --card-bg: #111111;          /* Фон карточки */
    --gold-main: #d4af37;        /* Золотой акцентный */
    --text-main: #a1a1aa;        /* Светло-серый текст */
    --text-muted: #52525b;       /* Темно-серый для дат и тегов */
    --border-color: rgba(255, 255, 255, 0.05); /* Тонкая рамка */
}

/* Контейнер секции */
.reviews-section {
    background-color: var(--bg-dark);
    padding: 80px 20px;
    font-family: 'Inter', sans-serif;
    /* Легкая фоновая сетка, как на вашем скрине */
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.reviews-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Сетка Bento */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Карточка отзыва */
.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Легкое свечение рамки при наведении */
.bento-card:hover {
    border-color: rgba(212, 175, 55, 0.3); 
}

/* Широкая карточка занимает 2 колонки */
.bento-card.wide {
    grid-column: span 2;
}

/* Шапка карточки (Имя и Дата) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Имя клиента (Золотой шрифт с засечками) */
.client-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    color: var(--gold-main);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Дата отзыва */
.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Текст отзыва */
.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0 0 25px 0;
    font-weight: 300;
}

/* Теги технологий внизу карточки */
.tech-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-tags span {
    font-size: 12px;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Адаптив для мобильных телефонов --- */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr; /* Делаем в 1 колонку */
    }
    
    .bento-card.wide {
        grid-column: span 1; /* Широкие карточки тоже становятся обычными */
    }
    
    .card-header {
        flex-direction: column;
        gap: 5px;
    }
}



html, body { overflow-x: hidden; }

.burger-menu-btn,
.mobile-overlay-menu { display: none; }

.floating-header {
    box-sizing: border-box;
    width: 100%;
    left: 0;
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 992px)
   ========================================= */
@media (max-width: 992px) {
    .floating-header { padding: 15px 20px; }
    .desktop-menu, .hide-on-mobile { display: none !important; }

    /* --- БУРГЕР "Золотая лесенка" (прижат влево) --- */
    .burger-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start; /* Прижимаем полоски влево */
        gap: 6px;
        width: 35px;
        height: 35px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .m-line {
        height: 2px;
        background: #d4af37; /* Золотой цвет */
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    /* Длина полосок - лесенка */
    .line-1 { width: 30px; }
    .line-2 { width: 22px; }
    .line-3 { width: 14px; }

    /* При нажатии полоски выравниваются */
    .burger-menu-btn:active .m-line { width: 30px; }

    /* --- ФОН-ЗАТЕМНЕНИЕ (Overlay) --- */
    .mobile-overlay-menu {
        display: flex;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.7); /* Полупрозрачный черный */
        backdrop-filter: blur(8px); /* Размытие заднего фона */
        -webkit-backdrop-filter: blur(8px);
        align-items: center;
        justify-content: center;
        padding: 20px; /* Чтобы окно не прилипало к краям экрана */
        box-sizing: border-box;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-overlay-menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* --- САМО ОКНО (Терминал/Редактор) --- */
    .m-window {
        width: 100%;
        max-width: 400px;
        background: #0d0d0d; /* Цвет фона как на скриншоте */
        border: 1px solid #2a2a2a;
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        display: flex;
        flex-direction: column;
        max-height: 85vh; /* Максимальная высота окна */
        transform: scale(0.95) translateY(20px);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
    }

    .mobile-overlay-menu.is-open .m-window {
        transform: scale(1) translateY(0);
    }

    /* --- ШАПКА ОКНА (macOS) --- */
    .m-window-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: #141414;
        border-bottom: 1px solid #222;
    }

    .m-traffic-lights { display: flex; gap: 8px; }
    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .red { background: #ff5f56; }
    .yellow { background: #ffbd2e; }
    .green { background: #27c93f; }

    .m-window-title {
        color: #888;
        font-family: 'Courier New', Courier, monospace; /* Шрифт как в коде */
        font-size: 14px;
    }

    .m-close-btn {
        background: none; border: none; color: #888;
        font-size: 16px; cursor: pointer; padding: 0;
        transition: color 0.3s;
    }
    .m-close-btn:hover { color: #fff; }

    /* --- ВНУТРЕННОСТИ ОКНА --- */
    .m-window-content {
        padding: 24px;
        overflow-y: auto; /* Появится скролл, если пунктов будет много */
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Кастомизация скроллбара для окна */
    .m-window-content::-webkit-scrollbar { width: 6px; }
    .m-window-content::-webkit-scrollbar-track { background: #0d0d0d; }
    .m-window-content::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

    /* Список ссылок */
    .m-nav-list {
        display: flex;
        flex-direction: column;
    }

    .m-nav-item {
        color: #e0e0e0;
        text-decoration: none;
        font-size: 18px;
        padding: 15px 0;
        border-bottom: 1px solid #1a1a1a;
        transition: color 0.2s, padding-left 0.2s;
    }
    .m-nav-item:last-child { border-bottom: none; }
    .m-nav-item:active { color: #d4af37; padding-left: 10px; }

    /* Блок контактов */
    .m-contact-block { display: flex; flex-direction: column; gap: 15px; }
    
    .m-phone {
        color: #fff; font-size: 22px; font-weight: 600; text-decoration: none;
    }
    
    .m-telegram {
        display: inline-flex; align-items: center; gap: 10px;
        color: #2AABEE; font-size: 16px; text-decoration: none; font-weight: 500;
    }

    /* Кнопка */
    .m-btn-contact {
        text-align: center; font-size: 16px; font-weight: 600; padding: 14px;
        background: transparent; color: #d4af37; border: 1px solid #d4af37;
        border-radius: 4px; text-transform: uppercase;
    }
}
   /* Блокируем скролл сайта, пока идет загрузка */
body.no-scroll {
    overflow: hidden !important;
}

/* Основной контейнер прелодера */
.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0a0a; /* Цвет фона вашего сайта */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

/* Класс, который скроет прелодер по окончании */
.preloader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

/* Логотип */
.preloader-logo {
    font-family: inherit; /* Подхватит шрифт вашего сайта */
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.preloader-logo .gold-text {
    color: #d4af37; /* Ваше золото */
}

/* Текст терминала */
.preloader-terminal {
    font-family: 'Courier New', Courier, monospace; /* Моноширинный шрифт для кода */
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
}

.terminal-arrow {
    color: #d4af37;
    margin-right: 8px;
}

/* Полоса загрузки */
.progress-bar-container {
    width: 100%;
    height: 2px;
    background-color: #222222;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-bar-fill {
    height: 100%;
    width: 0%; /* Стартует с нуля */
    background-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); /* Золотое свечение */
    transition: width 0.2s ease-out;
}

/* Проценты */
.preloader-percent {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #555555;
    margin-top: 10px;
    width: 100%;
    text-align: right;
}
/* =========================================
   СТИЛИ ДЛЯ МОБИЛЬНОГО МЕНЮ НАВИГАЦИИ 
========================================= */

/* 1. Темный фон (скрыт по умолчанию) */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Важно: чтобы не перекрывать сайт, когда меню закрыто */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. Когда скрипт добавляет класс is-open - показываем фон */
.mobile-overlay-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 3. Само окошко (анимация появления) */
.m-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 400px;
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Золотая рамка под твой стиль */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* 4. Когда меню открыто - окошко плавно встает на место */
.mobile-overlay-menu.is-open .m-window {
    transform: translate(-50%, -50%) scale(1);
}

/* 5. Услуги: делаем так, чтобы они были видны всегда (без аккордеона) */
.m-dropdown-content {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    margin-top: 10px;
    border-left: 2px solid #d4af37; /* Тонкая золотая линия слева от услуг */
    gap: 10px;
}

/* =========================================
   АДАПТИВНОСТЬ (Прячем/Показываем бургер)
========================================= */

/* По умолчанию (на ПК) прячем кнопку бургера */
.burger-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

/* На экранах телефонов и планшетов (меньше 992px) */
@media (max-width: 992px) {
    /* Прячем десктопное меню и кнопку "Связаться" */
    .desktop-menu, 
    .hide-on-mobile {
        display: none !important;
    }
    
    /* Показываем кнопку бургера */
    .burger-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}
