/* ============================================
   PROSTOBAU STYLE HEADER CSS
   Дизайн шапки в стиле prostobau.de
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Container */
.header.prostobau-style {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    z-index: 1000 !important;
    width: 100% !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.header.prostobau-style .header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

/* Logo Styles - Enhanced with maximum specificity */
.header.prostobau-style .logo {
    flex-shrink: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 140px !important;
}

.header.prostobau-style .logo-image {
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header.prostobau-style .logo-text {
    color: #FF6B35 !important;
    font-weight: bold !important;
    font-size: 24px !important;
    text-decoration: none !important;
    display: none !important;
}

.header.prostobau-style .logo-link {
    display: block !important;
    transition: opacity 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

.header.prostobau-style .logo-image,
.header.prostobau-style img.logo-image,
.header.prostobau-style .logo img {
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    text-indent: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast !important;
}

/* Force logo to show - override any hiding styles */
.header.prostobau-style .logo *,
.header.prostobau-style .logo img,
.header.prostobau-style .logo a img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 48px !important;
    width: auto !important;
}

/* Prevent text fallback */
.header.prostobau-style .logo-link::before,
.header.prostobau-style .logo-link::after {
    display: none !important;
    content: none !important;
}

.header.prostobau-style .logo-link {
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.header.prostobau-style .logo-link:hover {
    opacity: 0.8;
}

.header.prostobau-style .logo-image {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Main Navigation */
.header.prostobau-style .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.header.prostobau-style .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.header.prostobau-style .nav-item {
    position: relative;
}

.header.prostobau-style .nav-link {
    display: block;
    padding: 12px 16px;
    color: #374151 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    border-radius: 6px !important;
    position: relative !important;
    background-color: transparent !important;
}

.header.prostobau-style .nav-link:hover {
    color: #FF6B35 !important;
    background-color: #f3f4f6 !important;
}

.header.prostobau-style .nav-link.active {
    color: #FF6B35 !important;
    font-weight: 600 !important;
    background-color: transparent !important;
}

.header.prostobau-style .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: #FF6B35;
    border-radius: 1px;
}

/* Header Actions */
.header.prostobau-style .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Desktop actions - visible by default */
.header.prostobau-style .desktop-actions {
    display: flex;
}

/* Mobile actions - hidden by default */
.header.prostobau-style .mobile-actions {
    display: none;
}

/* User Action Icons */
.header.prostobau-style .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 18px;
    position: relative;
}

.header.prostobau-style .icon-btn:hover {
    background-color: #f3f4f6;
    border-color: #FF6B35;
    color: #FF6B35;
}

.header.prostobau-style .icon-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #E74C3C;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    border: 2px solid white;
}

/* Dropdown Menu */
.header.prostobau-style .dropdown {
    position: relative;
    display: inline-block;
}

.header.prostobau-style .dropdown-toggle {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header.prostobau-style .dropdown-toggle:hover {
    background-color: #f3f4f6;
    border-color: #FF6B35;
}

.header.prostobau-style .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(-10px);
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    margin-top: 4px;
    padding: 8px 0;
    /* Скрыто по умолчанию */
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    /* Убираем точки списка */
    list-style: none;
}

.header.prostobau-style .dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header.prostobau-style .dropdown-menu.show,
.header.prostobau-style .dropdown.show .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.header.prostobau-style .dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.header.prostobau-style .dropdown-item:hover {
    background-color: #f3f4f6;
    color: #FF6B35;
}

.header.prostobau-style .dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 8px 0;
}

/* Contact Button */
.header.prostobau-style .btn-contact {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
    text-decoration: none;
}

.header.prostobau-style .btn-contact:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #FF6B35 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

/* Login Button */
.header.prostobau-style .btn-login {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 10px;
}

.header.prostobau-style .btn-login:hover {
    background: #f5f5f5;
    border-color: #FF6B35;
    color: #FF6B35;
}

/* Language Dropdown */
.header.prostobau-style .language-dropdown {
    position: relative;
    display: inline-block;
}

.header.prostobau-style .lang-dropdown-btn {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 70px;
    justify-content: space-between;
}

.header.prostobau-style .lang-dropdown-btn:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.header.prostobau-style .lang-dropdown-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.header.prostobau-style .lang-dropdown-btn.active i {
    transform: rotate(180deg);
}

.header.prostobau-style .lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 10001;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    margin-top: 4px;
    padding: 8px 0;
}

.header.prostobau-style .lang-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.header.prostobau-style .lang-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.header.prostobau-style .lang-dropdown-item:last-child {
    border-bottom: none;
}

.header.prostobau-style .lang-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #FF6B35;
}

.header.prostobau-style .lang-dropdown-item.active {
    background-color: #fff5f0;
    color: #FF6B35;
    font-weight: 600;
}

.header.prostobau-style .lang-dropdown-item.active::after {
    content: '✓';
    float: right;
    color: #FF6B35;
}

/* Mobile Menu Toggle */
.header.prostobau-style .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.header.prostobau-style .mobile-menu-toggle:hover {
    background-color: #f3f4f6;
}

.header.prostobau-style .hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #374151;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.header.prostobau-style .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header.prostobau-style .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header.prostobau-style .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation - Улучшенный дизайн */
.header.prostobau-style .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header.prostobau-style .mobile-nav.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.header.prostobau-style .mobile-nav-content {
    background-color: #ffffff;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    margin-left: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.header.prostobau-style .mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

/* Mobile Navigation Header */
.header.prostobau-style .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    color: white;
}

.header.prostobau-style .mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.header.prostobau-style .mobile-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.header.prostobau-style .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Navigation List */
.header.prostobau-style .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 120px);
}

.header.prostobau-style .mobile-nav-item {
    margin-bottom: 4px;
}

.header.prostobau-style .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 0;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.header.prostobau-style .mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: #FF6B35;
    border-left-color: #FF6B35;
}

.header.prostobau-style .mobile-nav-link.active {
    background-color: #fff5f0;
    color: #FF6B35;
    border-left-color: #FF6B35;
    font-weight: 600;
}

.header.prostobau-style .mobile-nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #6b7280;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.header.prostobau-style .mobile-nav-link:hover i,
.header.prostobau-style .mobile-nav-link.active i {
    color: #FF6B35;
}

.header.prostobau-style .mobile-nav-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

/* Mobile Languages */
.header.prostobau-style .mobile-languages {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.header.prostobau-style .mobile-languages h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header.prostobau-style .mobile-lang-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    margin: 4px 8px 4px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.header.prostobau-style .mobile-lang-btn:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

.header.prostobau-style .mobile-lang-btn.active {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.contact-modal-content {
    background-color: white;
    border-radius: 16px 16px 0 0;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.contact-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.contact-modal-body {
    padding: 24px;
}

.contact-modal-body p {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-modal-body i {
    color: #FF6B35;
    width: 16px;
}

.contact-modal-body a {
    color: #FF6B35;
    text-decoration: none;
}

.contact-modal-body a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-send {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-send:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #FF6B35 100%);
    transform: translateY(-1px);
}

/* Desktop-only elements */
.desktop-only {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header.prostobau-style .header-container {
        padding: 0 16px;
        height: 70px;
        gap: 8px;
    }
    
    .header.prostobau-style .main-nav {
        display: none;
    }
    
    /* Mobile header actions with correct order: burger, language, icons */
    .header.prostobau-style .header-actions {
        gap: 10px;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: flex-end;
    }
    
    /* Order 1: Mobile Menu Toggle (Burger) */
    .header.prostobau-style .mobile-menu-toggle {
        display: flex !important;
        order: 1;
        flex-shrink: 0;
    }
    
    /* Order 2: Language Dropdown */
    .header.prostobau-style .language-dropdown {
        position: relative;
        order: 2;
        flex-shrink: 0;
    }
    
    /* Order 3: User Icons */
    .header.prostobau-style .icon-btn.mobile-icon {
        display: flex !important;
        width: 44px;
        height: 44px;
        font-size: 20px;
        order: 3;
        flex-shrink: 0;
    }
    
    /* Hide desktop-only elements on mobile */
    .header.prostobau-style .btn-contact.desktop-only,
    .header.prostobau-style .btn-login.desktop-only,
    .header.prostobau-style .dropdown.desktop-only {
        display: none !important;
    }
    
    /* Language button styling */
    .header.prostobau-style .lang-dropdown-btn {
        padding: 12px 16px;
        font-size: 16px;
        min-width: 80px;
        border-radius: 8px;
        font-weight: 700;
        height: 44px;
    }
    
    /* Language dropdown menu */
    .header.prostobau-style .lang-dropdown-menu {
        display: none;
        z-index: 10000 !important;
        position: absolute !important;
        top: calc(100% + 4px) !important;
        right: 0 !important;
        left: auto !important;
        min-width: 160px;
        max-width: calc(100vw - 32px);
    }
    
    .header.prostobau-style .lang-dropdown-menu.show {
        display: block !important;
    }
    
    .header.prostobau-style .logo-image {
        max-height: 32px;
    }
    
    .header.prostobau-style .logo {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header.prostobau-style .header-container {
        padding: 0 12px;
        gap: 6px;
    }
    
    /* Mobile header actions with reverse order */
    .header.prostobau-style .header-actions {
        gap: 4px;
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    /* Elements will appear in reverse order: burger, language, icons */
    .header.prostobau-style .mobile-menu-toggle {
        display: flex !important;
    }
    
    .header.prostobau-style .language-dropdown {
        display: block !important;
    }
    
    .header.prostobau-style .icon-btn.mobile-icon {
        display: flex !important;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .header.prostobau-style .lang-dropdown-btn {
        padding: 10px 14px;
        font-size: 15px;
        min-width: 75px;
        border-radius: 8px;
        font-weight: 700;
    }
    
    .header.prostobau-style .dropdown-toggle {
        padding: 6px;
    }
    
    .contact-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .contact-modal-header,
    .contact-modal-body {
        padding: 16px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header.prostobau-style .mobile-nav.active {
    animation: fadeIn 0.3s ease;
}

.contact-modal {
    animation: fadeIn 0.3s ease;
}

.contact-modal.show .contact-modal-content {
    transform: translateY(0);
}

/* Focus styles for accessibility */
.header.prostobau-style .nav-link:focus,
.header.prostobau-style .lang-btn:focus,
.header.prostobau-style .btn-contact:focus,
.header.prostobau-style .mobile-menu-toggle:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header.prostobau-style {
        border-bottom: 2px solid #000;
    }
    
    .header.prostobau-style .nav-link {
        border: 1px solid transparent;
    }
    
    .header.prostobau-style .nav-link:hover,
    .header.prostobau-style .nav-link.active {
        border-color: #FF6B35;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .header.prostobau-style * {
        transition: none !important;
        animation: none !important;
    }
}



/* Mobile Logo Adjustments */
.mobile-nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo-img {
    max-height: 35px;
    width: auto;
    object-fit: contain;
}

/* Mobile responsive enhancements */
@media (max-width: 480px) {
    .mobile-logo-img {
        max-height: 30px;
    }
}

@media (max-width: 360px) {
    .mobile-logo-img {
        max-height: 28px;
    }
}

/* ============================================
   ENHANCED MOBILE MENU STYLES
   Улучшенные стили для мобильного меню
   ============================================ */

/* Mobile Language Section */
.mobile-language-section {
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 16px 0;
}

/* Mobile User Section - Улучшенный дизайн */
.mobile-user-section {
    padding: 20px 0 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.mobile-user-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-section-title i {
    color: #FF6B35 !important;
    font-size: 16px;
}

.mobile-language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-lang-btn:hover {
    background: #f3f4f6;
    border-color: #FF6B35;
    color: #FF6B35;
    text-decoration: none;
}

.mobile-lang-btn.active {
    background: #fff5f0;
    border-color: #FF6B35;
    color: #FF6B35;
    font-weight: 600;
}

.mobile-lang-flag {
    font-size: 16px;
    line-height: 1;
}

.mobile-lang-name {
    font-size: 13px;
    white-space: nowrap;
}

/* Enhanced Mobile Navigation */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    background-color: #f3f4f6;
    color: #FF6B35;
    text-decoration: none;
    border-color: #e5e7eb;
}

.mobile-nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #6b7280;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover i {
    color: #FF6B35;
}

.mobile-nav-text {
    flex: 1;
    font-size: 15px;
}

/* Mobile Navigation Content Improvements */
.mobile-nav-content {
    padding: 12px 16px 16px;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.mobile-nav-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Mobile Menu Overlay Improvements */
.header.prostobau-style .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header.prostobau-style .mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.header.prostobau-style .mobile-nav-content {
    background-color: #ffffff;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    margin-left: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.header.prostobau-style .mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile Menu Responsive Adjustments */
@media (max-width: 480px) {
    .mobile-language-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-lang-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .mobile-nav-link {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .mobile-nav-link i {
        font-size: 16px;
        width: 18px;
    }
    
    .mobile-nav-text {
        font-size: 14px;
    }
    
    .header.prostobau-style .mobile-nav-content {
        width: 280px;
        max-width: 90vw;
    }
}

@media (max-width: 360px) {
    .mobile-nav-content {
        padding: 12px 16px 16px;
    }
    
    .mobile-lang-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .mobile-nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .header.prostobau-style .mobile-nav-content {
        width: 260px;
        max-width: 95vw;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-content,
    .mobile-nav,
    .mobile-lang-btn,
    .mobile-nav-link {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-lang-btn,
    .mobile-nav-link {
        border: 2px solid #000;
    }
    
    .mobile-lang-btn:hover,
    .mobile-nav-link:hover {
        border-color: #FF6B35;
        background: #fff;
    }
}

/* Исправления для мобильного меню на маленьких экранах */
@media (max-height: 600px) {
    .header.prostobau-style .mobile-nav-list {
        max-height: calc(100vh - 80px) !important;
        padding: 8px 0 !important;
    }
    
    .header.prostobau-style .mobile-nav-link {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
    
    .header.prostobau-style .mobile-nav-header {
        padding: 12px 20px !important;
        min-height: 50px !important;
    }
}

@media (max-height: 500px) {
    .header.prostobau-style .mobile-nav-list {
        max-height: calc(100vh - 60px) !important;
        padding: 4px 0 !important;
    }
    
    .header.prostobau-style .mobile-nav-link {
        padding: 10px 18px !important;
        font-size: 14px !important;
    }
    
    .header.prostobau-style .mobile-nav-link i {
        font-size: 16px !important;
    }
    
    .header.prostobau-style .mobile-nav-header {
        padding: 8px 18px !important;
        min-height: 40px !important;
    }
}

/* Дополнительные исправления для очень маленьких экранов */
@media (max-width: 360px) and (max-height: 640px) {
    .header.prostobau-style .mobile-nav-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .header.prostobau-style .mobile-nav-list {
        max-height: calc(100vh - 70px) !important;
    }
}
/* Обычное мобильное меню - одна колонка, крупные элементы */
@media (max-width: 768px) {
    .header.prostobau-style .mobile-nav-list {
        display: block !important;
        padding: 16px 0 !important;
    }
    
    .header.prostobau-style .mobile-nav-item {
        margin-bottom: 4px !important;
    }
    
    .header.prostobau-style .mobile-nav-link {
        padding: 16px 24px !important;
        font-size: 16px !important;
        gap: 16px !important;
        border-radius: 8px !important;
    }
    
    .header.prostobau-style .mobile-nav-link i {
        font-size: 20px !important;
        width: 24px !important;
    }
    
    .header.prostobau-style .mobile-nav-text {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    /* Пользовательское меню - только Dashboard */
    .header.prostobau-style .mobile-user-section {
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid #e5e7eb !important;
    }
    
    .header.prostobau-style .mobile-section-title {
        font-size: 16px !important;
        padding: 12px 24px !important;
        margin-bottom: 8px !important;
        color: #6b7280 !important;
    }
}

/* Для очень маленьких экранов - возвращаем одну колонку */
@media (max-width: 360px) {
    .header.prostobau-style .mobile-nav-list {
        grid-template-columns: 1fr !important;
    }
    
    .header.prostobau-style .mobile-nav-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .header.prostobau-style .mobile-nav-link i {
        font-size: 12px !important;
        width: 14px !important;
    }
}