/* ================================================================
   BURGER MENU — переписано с нуля
   Без opacity на main-content. Только transform + border-radius.
   ================================================================ */

/* === Фоновые орбы — скрыты === */
.burger-bg-orbs { display: none; }

/* === Сайдбар === */
#sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    padding-top: 0;
    padding-left: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .3s ease, transform .3s ease;
}

#sidebar-menu.menu-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* === Sidebar header === */
.bm-sidebar-header {
    display: flex;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bm-sidebar-logo { display: flex; align-items: center; text-decoration: none; }
.bm-sidebar-logo-img { height: 37px; width: auto; }

/* === Пункты меню — stagger === */
.menu-item {
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
}

.menu-item.menu-item-show {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
}

/* === Основной контент — сдвиг === */
#main-content.menu-shifted {
    transform: translateX(80vw) scale(0.9);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0.5;
}

/* === Click-catcher === */
#click-catcher {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 50;
    display: none;
    cursor: pointer;
    touch-action: pan-y;
}

/* === Список меню === */
#menu-list {
    margin: 0;
    padding: 15px 15px 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === Пункт меню === */
#menu-list a,
#menu-list button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0 12px 30px;
    border-radius: 0;
    transition: none;
    cursor: pointer;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

#menu-list a:hover,
#menu-list button:hover {
    background: rgba(255, 255, 255, 0.05);
}

#menu-list a.is-active,
#menu-list button.is-active {
    background: #ffb900;
    color: #000;
    font-weight: 700;
}

/* === Бейдж сравнения === */
.cmp-burger-badge {
    margin-left: 10px;
    background: #eab308;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* === Menu item initial state === */
.bm-item-initial {
    transform: translate3d(-20px, 0, 0);
    opacity: 0;
}

/* === Hidden states === */
#cmp-burger-badge.bm-badge-hidden { display: none; }
#click-catcher.bm-hidden { display: none; }

/* === Site header === */
#site-header.bm-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #232E3C;
    transition: transform 0.3s;
    padding: 0 24px;
}

.bm-header-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.bm-header-left { display: flex; align-items: center; }
.bm-header-logo-link { display: flex; justify-content: center; padding: 9px 0; }
.bm-header-logo-img { height: 37px; }
.bm-header-right { display: flex; justify-content: flex-end; }

/* Mobile YouTube horizontal scroll */
.m-yt-section { margin: 0 0 20px; }
.m-yt-title { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px; font-size: 20px; font-weight: 600; color: #e2e8f0; }
.m-yt-icon { width: 20px; height: 20px; flex-shrink: 0; }
.m-yt-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-yt-viewport::-webkit-scrollbar { display: none; }
.m-yt-list { display: flex; gap: 8px; padding: 0 16px 0 14px; }
.m-yt-card { flex: 0 0 auto; position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; height: 150px; aspect-ratio: 16/9; line-height: 0; font-size: 0; box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08); }
.m-yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center; margin-top: -4px; height: calc(100% + 8px); }
.m-yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 24px; pointer-events: none; }
.m-yt-play svg { width: 100%; height: 100%; }
.m-yt-link { display: flex; align-items: center; justify-content: center; padding: 10px; font-size: 14px; font-weight: 500; color: #e2e8f0; background: #222d3a; text-decoration: none; margin: 5px 15px; width: calc(100% - 30px); border-radius: 8px; box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08); }

/* Fixed bottom bar — car page */
.car-fixed-bar { position: sticky; bottom: 0; z-index: 9999; display: flex; gap: 5px; padding: 10px 10px 10px; background: #17212B; }
.car-fixed-btn { flex: 1; border: none; padding: 14px 0; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.car-fixed-write { background: #fff; color: #17212B; }
.car-fixed-call { background: #FFB900; color: #17212B; }
.car-fixed-spacer { display: none; }
