        :root {
            --primary-color: #e91e63;
            --secondary-color: #c2185b;
            --accent-color: #ff4081;
            --background-color: #121212;
            --surface-color: #1e1e1e;
            --card-surface-color: rgba(30, 30, 30, 0.95);
            --text-color: #ffffff;
            --text-muted-color: rgba(255, 255, 255, 0.7);
            --text-secondary-color: rgba(255, 255, 255, 0.6);
            --border-color: rgba(233, 30, 99, 0.2);
            --header-height: 70px;
            --gradient-primary: linear-gradient(135deg, #e91e63, #c2185b);
            --gradient-accent: linear-gradient(135deg, #ff4081, #f50057);
            --gradient-surface: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.05));
            --success-color: #4caf50;
            --warning-color: #ff9800;
            --info-color: #2196f3;
            --header-accent-line: linear-gradient(90deg, rgba(233, 30, 99, 0.8), rgba(255, 64, 129, 0.8));
            --footer-radial: radial-gradient(circle at 50% 0%, rgba(233, 30, 99, 0.15), transparent 70%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            /* Плавный скролл */
            scroll-behavior: smooth;
            color-scheme: dark;
        }

        body {
            font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
            background: var(--background-color);
            background-image:
                radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 82, 82, 0.08) 0%, transparent 50%);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* === ИСПРАВЛЕНИЕ: Класс для блокировки скролла === */
        /* Простой и надежный способ блокировки скролла без скачков */
        body.sidebar-open {
            overflow: hidden;
        }


        .main-content {
            flex-grow: 1;
            max-width: 1300px;
            width: 100%;
            margin: 0 auto;
            padding: 0.4rem 1.5rem 1.5rem;
        }

        /* --- Header --- */
        .header {
            background: rgba(18, 18, 18, 0.85);
            backdrop-filter: blur(8px);
            padding: 0 1.5rem;
            position: sticky;
            top: 0;
            z-index: 1200;
            height: var(--header-height);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        .header::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 2px;
            background: var(--header-accent-line);
        }

        .header-content {
            max-width: 1300px;
            height: 100%;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Цвет иконки профиля должен быть такой же как у остальных кнопок */
        .header-actions .profile-menu-trigger {
            color: var(--text-color);
        }

        .logo {
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 1.8rem;
            font-weight: bold;
            text-decoration: none;
            text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
        }

        .nav-desktop {
            display: flex;
            list-style: none;
            gap: 1.5rem;
            align-items: center;
        }

        .nav-desktop a {
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            font-weight: 500;
            border-radius: 8px;
            position: relative;
            overflow: hidden;
        }

        .nav-desktop a::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -4px;
            height: 2px;
            background: var(--gradient-accent);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-desktop a:hover {
            color: #fff;
            background: var(--gradient-primary);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .nav-desktop a:hover::after {
            transform: scaleX(1);
        }

        .nav-desktop a,
        .header-actions .dropdown,
        .language-switcher,
        .profile-menu {
            min-width: 0;
            width: auto;
            flex-shrink: 0;
        }

        .nav-desktop .dropdown {
            position: relative;
        }

        .nav-desktop .dropdown:hover .dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-content {
            display: block;
            position: absolute;
            background: var(--surface-color);
            min-width: 180px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            z-index: 1;
            border-radius: 12px;
            top: 100%;
            left: 0;
            padding: 0.5rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }

        .dropdown-content a {
            padding: 12px 16px;
            display: block;
            width: 100%;
            border-radius: 0;
        }

        .dropdown-content a:hover {
            background: var(--gradient-primary);
            color: white;
            transform: none;
        }

        .profile-menu .profile-menu-trigger {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0.8rem;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
            border: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 12px;
            transition: all 0.2s ease;
            min-width: 100px;
            justify-content: space-between;
            text-decoration: none;
        }

        .profile-menu:hover .profile-menu-trigger {
            border-color: rgba(255, 215, 0, 0.4);
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.08));
        }

        .profile-dropdown {
            min-width: 140px;
            right: 0;
            left: auto;
        }

        .balance-amount {
            font-size: 0.85rem;
            font-weight: 700;
            color: #FFD700;
        }

        .profile-dropdown .logout-link {
            border-top: 1px solid var(--border-color);
            margin-top: 0.5rem;
            color: var(--warning-color) !important;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .language-switcher {
            position: relative;
        }

        .language-switcher .lang-icon {
            cursor: pointer;
            width: 24px;
            height: 24px;
            transition: all 0.3s ease;
        }

        .language-switcher .lang-icon:hover {
            transform: scale(1.1);
            filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.5));
        }

        .language-switcher:hover .dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .language-switcher .dropdown-content {
            left: auto;
            right: 0;
            min-width: 120px;
            z-index: 1201;
        }

        .language-dropdown {
            padding: 0.5rem 0;
            background: var(--surface-color);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .language-btn {
            display: block;
            padding: 0.6rem 1rem;
            color: var(--text-color);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            border-radius: 0;
            position: relative;
        }

        .language-btn:hover {
            background: var(--gradient-primary);
            color: white;
            transform: none;
        }


        /* --- ИСПРАВЛЕНИЕ: Стили для мобильной навигации --- */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            /* ИСПРАВЛЕНИЕ: z-index, чтобы кнопка была НАД всем, даже над открытым сайдбаром */
            z-index: 10001;
            position: relative;
            /* Необходимо для z-index */
        }

        .menu-toggle:hover {
            color: var(--primary-color);
            transform: scale(1.1);
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: -100%;
            width: 280px;
            height: 100vh;
            background: var(--surface-color);
            transition: left 0.25s ease-out;
            z-index: 10000;
            padding: 1rem 0;
            border-right: 1px solid var(--border-color);
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            will-change: left;
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar ul {
            list-style: none;
            flex: 1;
            overflow-y: auto;
            margin: 0;
            padding: 0;
        }

        .sidebar a {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: var(--text-color);
            text-decoration: none;
            padding: 0.8rem 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            font-size: 0.9rem;
        }

        .sidebar a:hover {
            background: var(--gradient-primary);
            color: white;
        }

        .sidebar-profile {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            padding: 1rem 1.5rem;
            background: var(--gradient-surface);
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 0.8rem;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }

        .sidebar-profile:hover {
            background: var(--gradient-primary);
            color: white;
            transform: none;
        }

        .sidebar-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            flex-shrink: 0;
        }

        .sidebar-profile-info {
            flex: 1;
        }

        .sidebar-username {
            font-weight: 600;
            color: var(--text-color);
            font-size: 0.85rem;
            margin-bottom: 0.1rem;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .sidebar-balance {
            color: var(--primary-color);
            font-weight: 700;
            font-size: 0.8rem;
            line-height: 1;
        }

        .sidebar-divider {
            height: 1px;
            background: rgba(255, 107, 107, 0.15);
            margin: 0.3rem 1rem;
            list-style: none;
        }

        .logout-sidebar {
            color: var(--warning-color) !important;
        }

        .logout-sidebar:hover {
            background: linear-gradient(135deg, var(--warning-color), #e65100) !important;
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
            z-index: 9999;
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* --- Footer --- */
        .footer {
            background: #080808;
            color: var(--text-muted-color);
            padding: 2rem 1.5rem 1.25rem;
            margin-top: 3rem;
            border-top: none;
            position: relative;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--gradient-primary);
        }

        .footer-content {
            max-width: 1180px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(285px, 1.35fr) minmax(140px, 0.7fr) minmax(180px, 0.85fr) minmax(270px, 1.15fr);
            gap: 1.75rem 3rem;
            align-items: start;
        }

        .footer-section {
            min-width: 0;
        }

        .footer-section h4 {
            color: var(--accent-color);
            margin: 0 0 0.85rem;
            font-weight: 600;
            font-size: 1rem;
            letter-spacing: 0;
        }

        .footer-section p,
        .footer-section a {
            color: var(--text-muted-color);
            text-decoration: none;
            line-height: 1.55;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .footer-description {
            max-width: 340px;
            margin: 0;
        }

        .footer-section a:hover {
            color: var(--primary-color);
            text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.4rem;
        }

        .footer-districts {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0 1rem;
        }

        .footer-bottom {
            max-width: 1180px;
            margin: 1.5rem auto 0;
            padding-top: 1rem;
            border-top: 1px solid rgba(233, 30, 99, 0.3);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            color: var(--text-muted-color);
            font-size: 0.8rem;
        }

        .footer-bottom p {
            margin: 0;
        }

        .footer-bottom a {
            color: var(--text-muted-color);
        }

        .footer-bottom a:hover {
            color: var(--primary-color);
        }

        /* Logo Subtext Styles */
        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: stretch;
        }

        .logo-main-row { display: flex; align-items: center; gap: 10px; }
        .header-slogan {
            width: 100%;
            max-width: none;
            margin: -5px 0 0;
            color: #ff8bb3;
            -webkit-text-fill-color: #ff8bb3;
            background: none;
            font-family: "Trebuchet MS", "Segoe UI", sans-serif;
            font-size: 0.72rem;
            font-style: italic;
            font-weight: 600;
            line-height: 1.25;
            letter-spacing: 0.055em;
            text-align: center;
            white-space: nowrap;
            text-shadow: 0 0 12px rgba(233, 30, 99, 0.35);
        }
        .categories-dropdown.restored-open > .dropdown-content { display: block; }

        .logo-subtext {
            font-size: 0.75rem;
            color: var(--text-muted-color);
            margin-top: -5px;
            font-weight: 500;
            white-space: nowrap;
            letter-spacing: 0.3px;
            line-height: 1.4;
        }

        .main-subtext {
            padding-top: 0.5rem;
            padding-bottom: 1rem;
            text-align: center;
        }

        .main-subtext .logo-subtext {
            margin-top: 0;
        }

        .footer-logo {
            display: flex;
            flex-direction: row;
            align-items: center;
            text-align: left;
            gap: 0.75rem;
            margin-bottom: 0.85rem;
        }

        .footer-logo-image {
            width: 54px;
            height: 54px;
            flex: 0 0 54px;
            object-fit: contain;
            filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.3));
        }

        .footer-brand-copy {
            min-width: 0;
        }

        .footer-brand-name {
            margin: 0;
            color: var(--primary-color);
            font-size: 1.15rem;
            font-weight: 700;
        }

        .footer-logo .logo-subtext {
            display: block;
            margin: 0.2rem 0 0;
            white-space: normal;
            font-size: 0.68rem;
            line-height: 1.4;
            opacity: 0.8;
        }

        @media (max-width: 768px) {
            header {
                padding: 0.5rem 1rem;
                min-height: auto;
            }

            .logo-container {
                gap: 0.3rem;
                max-width: 100%;
            }

            .logo-image {
                width: 40px;
                height: 40px;
                flex-shrink: 0;
            }

            .logo-text {
                font-size: 1.15rem;
                line-height: 1.2;
            }

            .header-slogan {
                position: absolute;
                left: 12px;
                right: 12px;
                bottom: 5px;
                width: auto;
                max-width: none;
                margin: 0;
                font-size: 0.72rem;
                letter-spacing: 0.065em;
                white-space: nowrap;
            }

            .logo-subtext {
                font-size: 0.42rem;
                margin-bottom: 0;
                line-height: 1.5;
                letter-spacing: -0.3px;
                white-space: normal;
                word-break: break-word;
                overflow: visible;
                text-overflow: clip;
                max-width: 100%;
                display: block;
                padding: 2px 0;
            }

            .menu-toggle {
                font-size: 1.6rem;
                padding: 0.3rem;
            }

            .language-switcher .lang-icon {
                width: 20px;
                height: 20px;
            }
        }

        /* --- Utility & Form Styles --- */
        .btn {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
        }

        .btn:hover {
            background: linear-gradient(135deg, #ff5252, #e02b7c);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
        }

        .form-container {
            max-width: 450px;
            margin: 2rem auto;
            padding: 2.5rem;
            background: var(--card-surface-color);
            border-radius: 15px;
            border: 1px solid var(--border-color);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(5px);
        }

        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-color);
            font-weight: 500;
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-color);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
        }

        .error {
            background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
            color: #ff8a80;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(244, 67, 54, 0.3);
            text-align: center;
            backdrop-filter: blur(5px);
        }

        /* === КАСТОМНЫЙ СКРОЛЛБАР === */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
        }

        * {
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .logo-image {
            width: 60px;
            height: 60px;
            object-fit: contain;
            filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.4));
            transition: all 0.3s ease;
        }

        .logo-text {
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 1.6rem;
            font-weight: 600;
            text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
        }

        .logo:hover .logo-image {
            transform: scale(1.1);
            filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.6));
        }

        .logo:hover .logo-text {
            text-shadow: 0 0 25px rgba(255, 107, 107, 0.5);
        }



        /* --- Responsive --- */
        @media (max-width: 992px) {
            .nav-desktop {
                display: none;
            }

            .menu-toggle {
                display: block;
            }

            :root {
                --header-height: 85px;
                /* Увеличено с 70px до 85px */
            }

            .logo {
                gap: 0.8rem;
            }

            .logo-image {
                width: 56px;
                height: 56px;
            }

            .logo-text {
                font-size: 1.3rem;
            }

            /* Для варианта 3 на мобильных */
            .logo {
                padding: 0.3rem 0.6rem;
            }

            .header .header-content {
                display: grid;
                grid-template-columns: 1fr auto 1fr;
                align-items: center;
                height: 100%;
            }

            .logo {
                grid-column: 2;
                text-align: center;
            }

            .menu-toggle {
                grid-column: 1;
                justify-self: start;
            }

            .header-actions {
                grid-column: 3;
                justify-self: end;
            }
        }

        @media (max-width: 768px) {
            .main-content {
                padding: 1rem;
            }

            .footer-content {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                text-align: left;
                gap: 1.5rem 1.25rem;
            }

            .footer {
                padding: 1.5rem 1rem 1rem;
            }

            .footer-section ul {
                padding: 0;
            }

            .footer-districts {
                grid-template-columns: 1fr 1fr !important;
            }

            .footer-brand,
            .footer-district-section {
                grid-column: 1 / -1;
            }

            .footer-description {
                max-width: 620px;
            }

            .footer-bottom {
                margin-top: 1.25rem;
                align-items: flex-start;
                flex-direction: column;
                gap: 0.35rem;
            }

            .form-container {
                padding: 1.5rem;
                margin: 1rem auto;
            }

            .profile-menu .balance-amount {
                display: none;
            }

            .profile-menu .profile-menu-trigger {
                min-width: auto;
                padding: 0.5rem;
                width: 40px;
                height: 40px;
                justify-content: center;
            }

            .sidebar-profile {
                display: flex !important;
                padding: 0.8rem 1rem;
                gap: 0.6rem;
            }

            .sidebar-avatar {
                width: 28px;
                height: 28px;
            }

            .sidebar-username {
                font-size: 0.8rem;
            }

            .sidebar-balance {
                font-size: 0.75rem;
            }

            /* Mobile performance optimizations */
            .sidebar {
                transition: left 0.2s ease-out;
            }

            .sidebar-overlay {
                transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
            }

            /* Remove heavy effects on mobile */
            .nav-desktop a:hover,
            .sidebar a:hover,
            .btn:hover {
                transform: none;
            }

            /* Simplify hover effects */
            .profile-menu:hover .profile-menu-trigger,
            .language-switcher .lang-icon:hover {
                transform: none;
            }

            /* Optimize scroll performance */
            .sidebar,
            .main-content {
                -webkit-overflow-scrolling: touch;
            }
        }

        @media (min-width: 769px) and (max-width: 1100px) {
            .footer-content {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .footer-brand {
                grid-column: 1 / -1;
            }

            .footer-description {
                max-width: 680px;
            }
        }

        @media (max-width: 360px) {
            .footer-content {
                grid-template-columns: 1fr;
            }

            .footer-brand,
            .footer-district-section {
                grid-column: auto;
            }

            .footer-districts {
                grid-template-columns: 1fr 1fr !important;
            }
        }

        /* === УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ OPTION MENU === */
        .option-menu,
        .dropdown-menu,
        .context-menu,
        .popup-menu {
            position: absolute;
            background: var(--surface-color);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            z-index: 1000;
            min-width: 150px;
            padding: 0.5rem 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .option-menu.show,
        .dropdown-menu.show,
        .context-menu.show,
        .popup-menu.show,
        .option-menu.active,
        .dropdown-menu.active,
        .context-menu.active,
        .popup-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .option-menu button,
        .option-menu a,
        .dropdown-menu button,
        .dropdown-menu a,
        .context-menu button,
        .context-menu a,
        .popup-menu button,
        .popup-menu a {
            display: block;
            width: 100%;
            padding: 0.8rem 1rem;
            background: none;
            border: none;
            color: var(--text-color);
            text-decoration: none;
            font-family: inherit;
            font-size: 0.9rem;
            text-align: left;
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 0;
        }

        .option-menu button:hover,
        .option-menu a:hover,
        .dropdown-menu button:hover,
        .dropdown-menu a:hover,
        .context-menu button:hover,
        .context-menu a:hover,
        .popup-menu button:hover,
        .popup-menu a:hover {
            background: var(--gradient-primary);
            color: white;
            transform: none;
        }

        .option-menu .divider,
        .dropdown-menu .divider,
        .context-menu .divider,
        .popup-menu .divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            margin: 0.5rem 0;
        }

        .option-menu .menu-header,
        .dropdown-menu .menu-header,
        .context-menu .menu-header,
        .popup-menu .menu-header {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
            color: var(--text-muted-color);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Стили для кнопки-триггера меню */
        .menu-trigger,
        .option-trigger,
        .dropdown-trigger {
            background: rgba(255, 107, 107, 0.2);
            border: 1px solid rgba(255, 107, 107, 0.3);
            color: var(--primary-color);
            padding: 0.5rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .menu-trigger:hover,
        .option-trigger:hover,
        .dropdown-trigger:hover {
            background: rgba(255, 107, 107, 0.3);
            border-color: var(--primary-color);
        }

        /* Адаптивность для мобильных устройств */
        @media (max-width: 768px) {

            .option-menu,
            .dropdown-menu,
            .context-menu,
            .popup-menu {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                top: auto;
                width: 100%;
                min-width: auto;
                border-radius: 16px 16px 0 0;
                transform: translateY(100%);
                padding: 1rem 0;
            }

            .option-menu.show,
            .dropdown-menu.show,
            .context-menu.show,
            .popup-menu.show,
            .option-menu.active,
            .dropdown-menu.active,
            .context-menu.active,
            .popup-menu.active {
                transform: translateY(0);
            }

            .option-menu button,
            .option-menu a,
            .dropdown-menu button,
            .dropdown-menu a,
            .context-menu button,
            .context-menu a,
            .popup-menu button,
            .popup-menu a {
                padding: 1rem;
                font-size: 1rem;
            }
        }

        /* === MODAL STYLES === */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10002;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal {
            background: var(--surface-color);
            border-radius: 15px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            border: 1px solid var(--border-color);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .modal {
            transform: scale(1);
        }

        .modal h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-size: 1.3rem;
            text-align: center;
        }

        .modal p {
            color: var(--text-color);
            line-height: 1.6;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .modal-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1.5rem;
        }

        .modal-btn {
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 100px;
        }

        .modal-btn-yes {
            background: var(--gradient-primary);
            color: white;
        }

        .modal-btn-yes:hover {
            background: linear-gradient(135deg, #ff5252, #e02b7c);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
        }

        .modal-btn-no {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-color);
            border: 1px solid var(--border-color);
        }

        .modal-btn-no:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: var(--text-color);
        }

        .modal .contact-link {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

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

        .sidebar-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 0.5rem;
        }

        .sidebar-logo-image {
            width: 64px;
            height: 64px;
            object-fit: contain;
            filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.4));
        }

        .sidebar-logo-text {
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 1.1rem;
            font-weight: 700;
            text-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
        }

        /* === HIERARCHICAL CATEGORIES STYLES === */

        /* Desktop Category Dropdown */
        .category-dropdown {
            min-width: 320px;
            max-width: 500px;
            padding: 1rem;
        }

        .category-section {
            margin-bottom: 0.5rem;
        }

        .category-section:last-child {
            margin-bottom: 0;
        }

        .category-header {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255, 107, 107, 0.2);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .category-divider {
            height: 1px;
            background: rgba(255, 107, 107, 0.2);
            margin: 0.75rem 0;
        }

        .category-submenu-container {
            position: relative;
            margin-top: 0.25rem;
        }

        .category-submenu-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 0.4rem 0.8rem;
            background: rgba(255, 107, 107, 0.1);
            border: 1px solid rgba(255, 107, 107, 0.3);
            border-radius: 6px;
            color: var(--text-color);
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .category-submenu-toggle:hover {
            background: rgba(255, 107, 107, 0.2);
            border-color: var(--primary-color);
        }

        .category-submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            z-index: 1001;
            background: rgba(35, 35, 35, 0.98);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.5rem;
            margin-top: 0.25rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            max-height: 200px;
            overflow-y: auto;
        }

        .category-submenu.visible {
            display: block;
            animation: categorySubmenuFadeIn 0.3s ease-out;
        }

        @keyframes categorySubmenuFadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .category-submenu a {
            display: block;
            padding: 0.3rem 0.6rem;
            color: var(--text-color);
            text-decoration: none;
            font-size: 0.75rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            margin-bottom: 0.1rem;
        }

        .category-submenu a:last-child {
            margin-bottom: 0;
        }

        .category-submenu a:hover {
            background: var(--gradient-primary);
            color: white;
        }

        /* Masculine Section Styles */
        .masculine-section {
            background: linear-gradient(135deg, rgba(51, 153, 255, 0.05), rgba(255, 107, 107, 0.05));
            border: 1px solid rgba(51, 153, 255, 0.2);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 0.5rem;
        }

        .masculine-section .category-header {
            color: #3399ff;
            border-bottom: 1px solid rgba(51, 153, 255, 0.3);
            font-size: 1rem;
            margin-bottom: 0.75rem;
            text-align: center;
        }

        .masculine-categories {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            justify-content: center;
        }

        .category-main-link {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.5rem 1rem;
            background: linear-gradient(135deg, rgba(51, 153, 255, 0.15), rgba(51, 153, 255, 0.05));
            border: 1px solid rgba(51, 153, 255, 0.3);
            border-radius: 20px;
            color: #3399ff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.85rem;
            transition: all 0.3s ease;
            flex: 1;
            justify-content: center;
            max-width: 140px;
        }

        .category-main-link:hover {
            background: linear-gradient(135deg, #3399ff, #2288ee);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(51, 153, 255, 0.3);
        }

        .masculine-services {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 0.4rem;
        }

        .masculine-services a {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.4rem 0.6rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: var(--text-color);
            text-decoration: none;
            font-size: 0.75rem;
            transition: all 0.3s ease;
            text-align: center;
            justify-content: center;
        }

        .masculine-services a:hover {
            background: var(--gradient-primary);
            color: white;
            border-color: var(--primary-color);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
        }

        /* Mobile Sidebar Categories */
        .sidebar-category-section {
            list-style: none;
            margin-bottom: 0.25rem;
        }

        .sidebar-category-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0;
        }

        .sidebar-category-main {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: var(--text-color);
            text-decoration: none;
            padding: 0.8rem 1.5rem;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            border-radius: 0;
        }

        .sidebar-category-main:hover {
            background: var(--gradient-primary);
            color: white;
        }

        .sidebar-category-toggle {
            background: none;
            border: none;
            color: var(--text-muted-color);
            padding: 0.8rem 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.8rem;
            border-radius: 0;
        }

        .sidebar-category-toggle:hover {
            color: var(--primary-color);
        }

        .category-arrow {
            transition: transform 0.3s ease;
        }

        .sidebar-category-toggle.active .category-arrow {
            transform: rotate(180deg);
        }

        .sidebar-category-submenu {
            display: none;
            background: rgba(255, 107, 107, 0.05);
            border-left: 3px solid var(--primary-color);
            margin: 0 1rem;
            border-radius: 0 8px 8px 0;
            animation: sidebarSubmenuSlide 0.3s ease-out;
        }

        .sidebar-category-submenu.visible {
            display: block;
        }

        @keyframes sidebarSubmenuSlide {
            from {
                opacity: 0;
                max-height: 0;
            }

            to {
                opacity: 1;
                max-height: 500px;
            }
        }

        .sidebar-category-submenu a {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-muted-color);
            text-decoration: none;
            padding: 0.6rem 1.5rem;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }

        .sidebar-category-submenu a:hover {
            background: var(--gradient-primary);
            color: white;
        }

        /* Masculine Sidebar Section Styles */
        .masculine-sidebar-section {
            background: linear-gradient(135deg, rgba(51, 153, 255, 0.08), rgba(255, 107, 107, 0.05));
            border: 1px solid rgba(51, 153, 255, 0.2);
            border-radius: 12px;
            margin: 0.5rem 1rem;
            overflow: hidden;
        }

        .sidebar-masculine-title {
            color: #3399ff;
            font-weight: 700;
            font-size: 0.9rem;
            text-align: center;
            flex: 1;
        }

        .sidebar-masculine-categories {
            display: flex;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            justify-content: center;
            background: rgba(51, 153, 255, 0.05);
        }

        .sidebar-masculine-link {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.4rem 0.8rem;
            background: linear-gradient(135deg, rgba(51, 153, 255, 0.15), rgba(51, 153, 255, 0.05));
            border: 1px solid rgba(51, 153, 255, 0.3);
            border-radius: 15px;
            color: #3399ff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            flex: 1;
            justify-content: center;
            text-align: center;
        }

        .sidebar-masculine-link:hover {
            background: linear-gradient(135deg, #3399ff, #2288ee);
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(51, 153, 255, 0.3);
        }

        .masculine-sidebar-section .sidebar-category-submenu {
            border-left: 3px solid #3399ff;
            background: rgba(51, 153, 255, 0.05);
        }


        /* Mobile adjustments for category dropdown */
        @media (max-width: 768px) {
            .category-dropdown {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                max-width: 95vw;
                max-height: 85vh;
                width: auto;
                min-width: 280px;
                overflow-y: auto;
                z-index: 10001;
            }

            .category-submenu {
                position: relative;
                margin-top: 0.5rem;
                max-height: 200px;
                overflow-y: auto;
            }

            .category-section {
                margin-bottom: 0.3rem;
            }

            .category-dropdown .category-header {
                font-size: 0.8rem;
                padding: 0.3rem 0;
            }

            .category-dropdown a {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }

            /* Mobile Masculine Section Adjustments */
            .masculine-section {
                padding: 0.75rem;
                margin-bottom: 0.75rem;
            }

            .masculine-section .category-header {
                font-size: 0.85rem;
                margin-bottom: 0.5rem;
            }

            .masculine-categories {
                flex-direction: column;
                gap: 0.3rem;
                margin-bottom: 0.5rem;
            }

            .category-main-link {
                max-width: none;
                font-size: 0.8rem;
                padding: 0.4rem 0.8rem;
            }

            .masculine-services {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 0.3rem;
            }

            .masculine-services a {
                font-size: 0.7rem;
                padding: 0.3rem 0.4rem;
            }

            /* Mobile Sidebar Masculine Adjustments */
            .masculine-sidebar-section {
                margin: 0.25rem 0.5rem;
            }

            .sidebar-masculine-categories {
                flex-direction: column;
                gap: 0.3rem;
                padding: 0.3rem 0.5rem;
            }

            .sidebar-masculine-link {
                font-size: 0.75rem;
                padding: 0.3rem 0.6rem;
            }
        }
        .breadcrumbs {
            font-size: 13px;
            color: #aaa;
            padding: 10px 0 4px;
            margin-bottom: 8px;
        }
        .breadcrumbs a { color: #aaa; text-decoration: none; }
        .breadcrumbs a:hover { color: #fff; }
        .breadcrumb-sep { margin: 0 6px; color: #666; }
        html.consent-gate-open, html.consent-gate-open body { overflow: hidden !important; }
        .consent-gate {
            position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center;
            padding: 16px; background: rgba(8, 8, 10, .96); backdrop-filter: blur(18px);
        }
        .consent-gate-card {
            width: min(100%, 510px); max-height: calc(100vh - 32px); overflow-y: auto;
            padding: clamp(22px, 5vw, 38px); border: 1px solid rgba(233,30,99,.45);
            border-radius: 24px; color: #fff; text-align: center;
            background: linear-gradient(160deg, #252025, #151315); box-shadow: 0 28px 80px rgba(0,0,0,.65);
        }
        .consent-gate-card h2 { margin: .55rem 0 .75rem; font-size: clamp(1.45rem, 5vw, 2rem); text-transform: lowercase; }
        .consent-gate-card p { margin: 0 0 1.25rem; color: rgba(255,255,255,.75); line-height: 1.55; }
        .consent-gate-icon { color: #ff5b91; font-size: 2.6rem; font-weight: 900; }
        .consent-gate-step { color: #ff8bb3; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
        .consent-gate-actions { display: grid; gap: .7rem; }
        .consent-gate-primary, .consent-gate-secondary {
            width: 100%; min-height: 48px; padding: .8rem 1rem; border-radius: 13px;
            border: 1px solid rgba(255,255,255,.16); color: #fff; font: inherit; font-weight: 800; cursor: pointer;
        }
        .consent-gate-primary { border: 0; background: linear-gradient(135deg,#e91e63,#c2185b); }
        .consent-gate-primary:disabled { opacity: .45; cursor: not-allowed; }
        .consent-gate-secondary { background: rgba(255,255,255,.07); }
        .consent-gate-check { display: flex; align-items: flex-start; gap: .7rem; margin: 1rem 0 1.25rem; text-align: left; color: rgba(255,255,255,.86); line-height: 1.45; }
        .consent-gate-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: #e91e63; }
        .consent-gate-check a, .consent-gate-links a { color: #ff8bb3; }
        .consent-gate-optional { padding: .7rem; border-radius: 12px; background: rgba(255,255,255,.05); }
        .cookie-notice {
            position: fixed; z-index: 19000; right: 12px; bottom: 12px;
            width: min(390px, calc(100vw - 24px)); padding: 14px;
            color: #fff; background: rgba(33,26,32,.97); border: 1px solid rgba(255,255,255,.14);
            border-radius: 14px; box-shadow: 0 10px 32px rgba(0,0,0,.42);
        }
        .cookie-notice h2 { margin: 0 0 5px; font-size: 1rem; }
        .cookie-notice p { margin: 0; font-size: .88rem; line-height: 1.4; color: rgba(255,255,255,.78); }
        .cookie-notice a { color: #ff8bb3; }
        .cookie-notice-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
        .cookie-notice-actions button {
            flex: 1 1 160px; min-height: 40px; padding: 8px 10px; border-radius: 9px;
            color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer;
        }
        .cookie-notice-all { background: #d31860; border: 1px solid #d31860; }
        .cookie-notice-essential { background: #342b33; border: 1px solid rgba(255,255,255,.24); }
        .telegram-invite {
            position: fixed; z-index: 18500; right: 16px; bottom: 16px;
            width: min(390px, calc(100vw - 32px)); padding: 18px;
            color: #fff; background: linear-gradient(155deg, #252025, #171417);
            border: 1px solid rgba(42,171,238,.58); border-radius: 18px;
            box-shadow: 0 18px 60px rgba(0,0,0,.65);
            animation: telegramInviteIn .25s ease-out both;
        }
        .telegram-invite-close {
            position: absolute; top: 8px; right: 10px; width: 34px; height: 34px;
            padding: 0; border: 0; color: rgba(255,255,255,.72); background: transparent;
            font: 700 24px/1 sans-serif; cursor: pointer;
        }
        .telegram-invite h2 { margin: 0 32px 7px 0; font-size: 1.15rem; }
        .telegram-invite p { margin: 0 0 14px; color: rgba(255,255,255,.78); line-height: 1.45; }
        .telegram-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
        .telegram-invite-actions a, .telegram-invite-actions button {
            flex: 1 1 150px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
            padding: 9px 12px; border-radius: 10px; font: inherit; font-weight: 750;
            text-decoration: none; cursor: pointer;
        }
        .telegram-invite-primary { color: #fff; border: 1px solid #229ed9; background: #229ed9; }
        .telegram-invite-later { color: #fff; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
        @keyframes telegramInviteIn { from { opacity: 0; transform: translateY(12px); } }
