/* Инструкция пользователя */
:root {
color-scheme: light only !important;
}
@media (prefers-color-scheme: dark) {
body { background-color: #f8f9fa !important; color: #212529 !important; }
.card { background-color: #ffffff !important; color: #212529 !important; }
}
.manual-container { max-width: 1000px; padding: 20px; }
.manual-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white; padding: 40px 20px; border-radius: 15px; margin-bottom: 30px;
}
.manual-toc { list-style: none; padding-left: 0; margin: 0; }
.manual-toc li { margin-bottom: 8px; }
.manual-toc a {
color: #667eea; text-decoration: none; transition: color 0.2s;
}
.manual-toc a:hover { color: #5568d3; text-decoration: underline; }
.manual-section { scroll-margin-top: 100px; }
.manual-section .card-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
html { scroll-behavior: smooth; }
.card {
border: none; box-shadow: 0 2px 15px rgba(0,0,0,0.1);
transition: transform 0.2s;
}
.card:hover { transform: translateY(-2px); }
footer { background: #f8f9fa; border-radius: 10px; margin-top: 30px; }

.manual-header .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Синий блок заголовка */
.manual-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.manual-header h1 {
    margin-bottom: 15px;
    font-weight: 700;
}

.manual-header .lead {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Основной контент */
.manual-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .manual-header {
        padding: 40px 20px;
    }
    
    .manual-header h1 {
        font-size: 1.8rem;
    }
    
    .manual-content {
        padding: 20px;
    }
}

/* ============================================
=== МОБИЛЬНОЕ МЕНЮ ===
============================================ */
.navbar-toggler-custom {
display: none;
background: transparent;
border: none;
color: white;
font-size: 24px;
margin-right: 10px;
padding: 0;
}

.navbar-toggler-custom:focus {
box-shadow: none;
outline: none;
}

.hamburger-icon {
display: block;
width: 25px;
height: 3px;
background-color: white;
position: relative;
transition: all 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
content: '';
position: absolute;
width: 25px;
height: 3px;
background-color: white;
transition: all 0.3s ease-in-out;
left: 0;
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

.navbar-toggler-custom.active .hamburger-icon {
background-color: transparent;
}

.navbar-toggler-custom.active .hamburger-icon::before {
transform: rotate(45deg);
top: 0;
}

.navbar-toggler-custom.active .hamburger-icon::after {
transform: rotate(-45deg);
top: 0;
}

.mobile-menu {
display: none;
position: absolute;
top: 100%;
right: 0;
left: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 20px;
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
z-index: 999;
flex-direction: column;
gap: 10px;
}

.mobile-menu.show {
display: flex;
}

.mobile-menu .btn {
justify-content: flex-start;
text-align: left;
border: none;
background: rgba(255, 255, 255, 0.1);
color: white;
padding: 12px 15px;
border-radius: 8px;
font-size: 16px;
}

.mobile-menu .btn:hover {
background: rgba(255, 255, 255, 0.2);
}

.mobile-menu .lang-switcher {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ============================================
=== АДАПТИВНОСТЬ ===
============================================ */
@media (max-width: 768px) {
.navbar-toggler-custom {
display: block;
}

.desktop-nav-items {
display: none !important;
}

.manual-header {
padding: 30px 15px;
}

.manual-header h1 {
font-size: 1.8rem;
}

.manual-container {
padding: 10px;
}

.manual-section {
scroll-margin-top: 150px;
}
}

@media (max-width: 576px) {
.manual-header h1 {
font-size: 1.5rem;
}