/* ===== ПРЕМИАЛЬНЫЙ КИБЕРПАНК ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #ff2a4d;
    --secondary: #00fff0;
    --bg: #050810;
    --bg-2: #0a0f1e;
    --text: #e8f4ff;
    --text-dim: #8ba0b8;
    --border: #1a2b4a;
    --glass: rgba(10, 15, 30, 0.7);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 42, 77, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 240, 0.1), transparent 50%);
}

/* Сетка */
.grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(rgba(0, 240, 240, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 240, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
    animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
    from { background-position: 0 0; }
    to { background-position: 0 50px; }
}

/* Сканлайны CRT */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* Canvas фон */
#bg-canvas, #matrix-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -3;
    opacity: 0.2;
}

/* HUD элементы */
.hud {
    position: fixed;
    width: 40px; height: 40px;
    border: 2px solid rgba(255, 42, 77, 0.5);
    z-index: 100;
    pointer-events: none;
}
.hud-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.hud-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.hud-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.hud-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.status-ticker {
    position: fixed;
    top: 80px; right: 20px;
    font-size: 0.8rem;
    color: var(--secondary);
    background: rgba(0, 240, 240, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid var(--secondary);
    z-index: 100;
    animation: pulse-ticker 2s infinite;
}
@keyframes pulse-ticker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    margin-left: 6px;
    animation: pulse-dot 1s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 5px var(--secondary); }
    50% { box-shadow: 0 0 15px var(--secondary); }
}

/* Заголовки */
h1, h2, h3 {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary), 0 0 30px rgba(255, 42, 77, 0.4);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); text-shadow: 2px 0 var(--secondary), -2px 0 var(--primary); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 0); text-shadow: -2px 2px var(--secondary), 2px -2px var(--primary); }
    80% { transform: translate(0); }
}

/* Кнопки */
.btn-cyber, .cyber-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 42, 77, 0.15);
    border: 1px solid var(--primary);
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(255, 42, 77, 0.3);
}

.btn-cyber:hover {
    background: rgba(255, 42, 77, 0.3);
    box-shadow: 0 0 30px rgba(255, 42, 77, 0.6), 0 0 60px rgba(0, 240, 240, 0.2);
    transform: translateY(-2px);
}

.btn-cyber::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 240, 0.2), transparent);
    animation: btn-scan 3s infinite;
}
@keyframes btn-scan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.btn-glass {
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 240, 0.1);
    border: 1px solid var(--secondary);
    border-radius: 4px;
    color: var(--secondary);
    transition: all 0.3s;
}
.btn-glass:hover {
    background: rgba(0, 240, 240, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 240, 0.4);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(5, 8, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary), 0 0 30px rgba(255, 42, 77, 0.4);
    text-decoration: none;
}

nav a {
    margin-left: 1.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: 0.3s;
}
nav a:hover { color: var(--secondary); text-shadow: 0 0 10px var(--secondary); }

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(0, 240, 240, 0.3);
}

.desc {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Визуал (щит) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-ring {
    position: absolute;
    width: 100%; height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 240, 240, 0.3), inset 0 0 20px rgba(0, 240, 240, 0.1);
    animation: spin 8s linear infinite;
}

.shield-ring.ring2 {
    width: 70%; height: 70%;
    border-color: var(--primary);
    animation-direction: reverse;
    animation-duration: 5s;
}

.shield-core {
    font-size: 4rem;
    z-index: 2;
    filter: drop-shadow(0 0 15px var(--secondary));
}

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

/* Marquee */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 42, 77, 0.05);
    padding: 0.5rem 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee span {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    padding: 0 2rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* ===== СЕКЦИИ ===== */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(0, 240, 240, 0.4);
    letter-spacing: 3px;
}

/* Появление при скролле */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== КАК РАБОТАЕТ ===== */
.how-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card-terminal {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    overflow: hidden;
}

.card-terminal:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 42, 77, 0.2), inset 0 0 20px rgba(255, 42, 77, 0.05);
    transform: translateY(-5px);
}

.card-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.3;
}

.card-terminal h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card-terminal p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* ===== ТЕРМИНАЛ ===== */
.terminal-window {
    background: #070b12;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 240, 240, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.terminal-header {
    background: #0d131f;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-header span:last-child {
    margin-left: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.terminal-body p {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--secondary);
}

.green { color: #27c93f; }
.yellow { color: #ffbd2e; }
.red { color: var(--primary); }

.progress {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

.result-line {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1rem;
    color: var(--text);
}

/* ===== СТАТИСТИКА ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 42, 77, 0.2);
}

.stat-box span {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 42, 77, 0.5);
}

.stat-box p {
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.benefits-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.benefit {
    flex: 1 1 250px;
    text-align: center;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.benefit:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 240, 240, 0.2);
    transform: translateY(-3px);
}

.benefit .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.benefit p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* ===== ФУТЕР ===== */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    font-size: 0.9rem;
}

footer p {
    margin: 0.3rem 0;
}

/* ===== КАБИНЕТ (dashboard) ===== */
#auth, #app {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#balance {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

#balance p {
    margin: 0.5rem 0;
    color: var(--text-dim);
}
#balance strong {
    color: var(--primary);
}

#payment-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

#result {
    margin-top: 1.5rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    line-height: 1.7;
    word-wrap: break-word;
}

/* Кибер-форма */
.cyber-form {
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s ease infinite;
}

.cyber-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 42, 77, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 42, 77, 0.5); }
}

.cyber-success {
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 42, 77, 0.1);
    box-shadow: 0 0 20px rgba(255, 42, 77, 0.2);
}

.cyber-success h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ===== КАБИНЕТ (input) ===== */
input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    border-radius: 4px;
    outline: none;
    transition: 0.3s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 42, 77, 0.2);
}

nav button {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    margin-left: 1rem;
    transition: 0.3s;
}
nav button:hover { color: var(--primary); }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    header { padding: 1rem; flex-wrap: wrap; }
    .logo { font-size: 1rem; }
    nav a { margin-left: 0.8rem; font-size: 0.9rem; }
    .hero { flex-direction: column; text-align: center; padding: 2rem 1rem; }
    .hero-content { width: 100%; }
    .hero-visual { margin-top: 2rem; }
    h1 { font-size: 2.5rem; }
    .subtitle { font-size: 1.2rem; }
    .how-cards { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .benefits-list { flex-direction: column; }
    #auth, #app { margin: 1rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .shield { width: 180px; height: 180px; }
    .shield-core { font-size: 3rem; }
}
@media (max-width: 768px) {
    body { overflow-x: hidden; }
    h1 { font-size: 1.8rem !important; line-height: 1.3; }
    .subtitle { font-size: 1rem !important; }
    .desc { font-size: 0.9rem !important; }
    .shield { width: 130px; height: 130px; }
    .shield-core { font-size: 2.5rem; }
    .hero { flex-direction: column; text-align: center; padding: 2rem 1rem; }
}

/* ===== УЛУЧШЕННАЯ МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
        gap: 1.5rem !important;
    }
    .hero-content {
        width: 100% !important;
    }
    .hero-visual {
        margin-top: 0 !important;
    }
    #typing-text {
        font-size: 1.5rem !important;
        min-height: 2.5rem !important;
        line-height: 1.4 !important;
        word-break: break-word;
        white-space: normal;
    }
    .subtitle {
        font-size: 1rem !important;
    }
    .desc {
        font-size: 0.9rem !important;
    }
    .shield {
        width: 120px !important;
        height: 120px !important;
    }
    .shield-core {
        font-size: 2rem !important;
    }
    nav a {
        margin-left: 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .logo {
        font-size: 1rem !important;
    }
    header {
        padding: 1rem !important;
        flex-wrap: wrap;
    }
    .status-ticker {
        display: none !important;
    }
    .hud {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 480px) {
    #typing-text {
        font-size: 1.2rem !important;
    }
    .subtitle {
        font-size: 0.9rem !important;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ===== */
/* Уменьшение H1 на десктопе */
#typing-text {
    font-size: 2.5rem !important; /* Было 3.5rem */
}

/* Исправление наложения header на контент */
main {
    margin-top: 0;
}

@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        z-index: 1000; /* Ставим поверх всего */
        flex-wrap: nowrap; /* Не переносим элементы */
        padding: 0.8rem 1rem;
    }
    nav {
        display: flex;
        align-items: center;
    }
    nav a {
        margin-left: 0.5rem;
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        white-space: nowrap; /* Запрещаем перенос текста */
    }
    .btn-glass {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        margin-left: 0.5rem;
    }
    .hero {
        padding-top: 4rem !important; /* Отступ от header */
    }
    .status-ticker {
        display: none !important;
    }
    .hud {
        width: 15px !important;
        height: 15px !important;
    }
    .logo {
        font-size: 0.9rem !important;
    }
}

/* ===== БУРГЕР-МЕНЮ ===== */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}

    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

/* Анимация бургера в крестик */

@media (max-width: 768px) {
        display: block;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 8, 16, 0.98);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 150;
    }

    #main-nav.open {
        display: flex;
    }

    #main-nav a {
        margin: 0.5rem 0;
        padding: 0.7rem 1rem;
        border-left: 3px solid var(--primary);
        border-radius: 4px;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* Бургер всегда поверх */
    position: relative;
    z-index: 1000;
}

/* На мобильных скрываем HUD, который может мешать */
@media (max-width: 768px) {
    .hud, .status-ticker {
        display: none !important;
    }
    #main-nav.open {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(5,8,16,0.98);
        z-index: 999;
    }
}

/* ===== БУРГЕР НА ЧИСТОМ CSS ===== */
    display: none;
}

    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
    flex-direction: column;
    gap: 5px;
}

    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Когда чекбокс отмечен — меняем крестик и показываем меню */

    display: flex;
}

@media (max-width: 768px) {
        display: flex;
    }

    #main-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(5, 8, 16, 0.98);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 999;
    }

    #main-nav a {
        margin: 0.5rem 0;
        padding: 0.7rem 1rem;
        border-left: 3px solid var(--primary);
        border-radius: 4px;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* ===== ОБЫЧНОЕ МЕНЮ (без бургера) ===== */
/* Скрываем бургер на всех экранах */
    display: none !important;
}

/* Обычное горизонтальное меню */
#main-nav {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
}

#main-nav a {
    margin: 0 !important;
    padding: 0.3rem 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap !important;
        padding: 0.8rem 1rem !important;
    }
    .logo {
        font-size: 0.9rem !important;
    }
    #main-nav {
        gap: 0.3rem !important;
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    #main-nav a {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem;
        margin: 0.2rem !important;
        border-left: 2px solid var(--primary);
    }
    .btn-glass {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
}

/* ===== ОБЫЧНОЕ МЕНЮ ===== */
#main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    width: auto;
}

#main-nav a {
    margin: 0;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    white-space: nowrap;
    border: none;
}

@media (max-width: 768px) {
    #main-nav {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }
    #main-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
        border-left: 2px solid var(--primary);
        border-radius: 4px;
        margin: 0.2rem 0.2rem 0.2rem 0;
    }
}
