/* compare.html — page styles (menu chrome shared by every page + compare form) */
        /* Гамбургер меню СЛЕВА */
        .hamburger-menu {
            display: flex;
            flex-direction: column;
            cursor: pointer;
            padding: 12px;
            gap: 4px;
            z-index: 2001;
            border-radius: 8px;
            transition: all 0.3s ease;
            background: rgba(139, 69, 19, 0.05);
            margin-right: 15px;
        }

        .hamburger-menu:hover {
            background: rgba(139, 69, 19, 0.1);
            transform: scale(1.05);
        }

        .hamburger-line {
            width: 25px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
            transition: all 0.3s ease;
            transform-origin: center;
        }

        .hamburger-menu.active {
            background: rgba(139, 69, 19, 0.15);
        }

        .hamburger-menu.active .hamburger-line:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
            background: var(--primary);
        }

        .hamburger-menu.active .hamburger-line:nth-child(2) {
            opacity: 0;
            transform: scale(0);
        }

        .hamburger-menu.active .hamburger-line:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
            background: var(--primary);
        }

        /* Боковое меню СЛЕВА */
        .sidebar-menu {
            position: fixed;
            top: 0;
            left: -420px;
            width: 380px;
            height: 100vh;
            background: linear-gradient(160deg, var(--white) 0%, #faf9f7 50%, #F3E9DA 100%);
            box-shadow: 15px 0 50px rgba(139, 69, 19, 0.15);
            z-index: 2000;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            padding: 0;
            overflow-y: auto;
            border-right: 1px solid rgba(139, 69, 19, 0.08);
        }

        .sidebar-menu.active {
            left: 0;
            transform: translateX(0);
        }

        .sidebar-menu::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(to bottom, var(--primary) 0%, var(--accent) 100%);
            opacity: 0.9;
        }

        /* Заголовок меню */
        .menu-header {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
            padding: 30px 35px;
            color: white;
            position: relative;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .menu-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -20%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            border-radius: 50%;
        }

        .menu-title {
            font-size: 1.7rem;
            font-weight: 700;
            margin: 0;
            position: relative;
            z-index: 2;
        }

        .menu-subtitle {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-top: 5px;
            font-weight: 400;
            position: relative;
            z-index: 2;
        }

        

        /* Секции меню */
        .menu-section {
            margin-bottom: 30px;
            padding: 0 25px;
        }

        .menu-section-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(139, 69, 19, 0.1);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .menu-section-title::before {
            content: '';
            width: 4px;
            height: 20px;
            background: var(--gradient);
            border-radius: 2px;
        }

        .menu-links {
            list-style: none;
        }

        .menu-links li {
            margin-bottom: 8px;
        }

        .menu-links a {
            color: var(--text-dark);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 14px 18px;
            border-radius: 12px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            font-weight: 500;
        }

        .menu-links a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, rgba(139, 69, 19, 0.1) 0%, transparent 100%);
            transition: width 0.3s ease;
        }

        .menu-links a:hover {
            background: rgba(139, 69, 19, 0.05);
            color: var(--primary);
            transform: translateX(8px);
        }

        .menu-links a:hover::before {
            width: 100%;
        }

        .menu-links a:hover .menu-icon {
            transform: scale(1.2);
        }

        .menu-icon {
            font-size: 1.3rem;
            width: 24px;
            text-align: center;
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }

        /* Активное состояние ссылок */
        .menu-links a.active {
            background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(230, 126, 34, 0.05) 100%);
            color: var(--primary);
            border-left: 3px solid var(--primary);
        }

        /* Кнопка в меню */
        .menu-btn {
            background: var(--gradient);
            color: white;
            padding: 14px 25px;
            border-radius: 12px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            margin: 25px;
            text-align: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
        }

        .menu-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
        }

        /* Аватар пользователя в меню */
        .user-profile {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px 25px;
            background: rgba(139, 69, 19, 0.05);
            margin: 20px 25px;
            border-radius: 15px;
            border-left: 4px solid var(--primary);
        }

        .user-avatar {
            width: 50px;
            height: 50px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: 600;
        }

        .user-info h4 {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 4px;
        }

        .user-info p {
            font-size: 0.9rem;
            color: var(--text-light);
        }

        /* Оверлей для закрытия */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1999;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .menu-overlay.active {
            display: block;
            opacity: 1;
        }

        /* ---- compare page ---- */
        .compare-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 640px;
            margin: 0 auto;
        }

        .compare-form .search-input {
            flex: 1 1 auto;
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 11px 14px;
            font-size: 0.98rem;
            color: var(--ink);
            background: #fff;
            outline: none;
        }

        .compare-form .search-input:focus {
            border-color: var(--brown);
            box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
        }

        .compare-result {
            max-width: 640px;
            margin: 18px auto 0;
            padding: 16px 20px;
            background: rgba(139, 69, 19, 0.05);
            border-radius: var(--radius-lg);
            white-space: pre-line;
            line-height: 1.6;
            display: none;
        }
