/* 1. ГЛОБАЛЬНЫЕ НАСТРОЙКИ (вне медиа-запросов) */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;

    /* Возвращаем стандартное поведение для обновления */
    overscroll-behavior-y: auto;

    /* Убираем лишние сдвиги */
    overflow-x: hidden;
}

/* Скрываем визуальную полосу прокрутки везде */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

html {
    scrollbar-width: none;
}

/* 2. МОБИЛЬНАЯ ВЕРСИЯ */
html.is-mobile body {
    body {
        /* Теперь это только для мобилок */
    }

    /* Прячем лишнее */
    header,
    .header-bar,
    .col-side,
    .center-title,
    footer {
        display: none !important;
    }

    /* Растягиваем каркас */
    .wrapper,
    .site-canvas {
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        min-height: 100% !important;
        background: transparent !important;
        background: none !important;
    }

    /* Главная сетка */
    .main-grid {
        display: block !important;
        height: 100% !important;
        background: transparent !important;
    }

    /* Блок НОВОСТИ — теперь один чистый блок */
    .col-news {
        width: 100% !important;
        min-height: 100dvh !important;
        height: auto !important;
        margin: 0 !important;
        border: none !important;
        padding: 0 !important;

        /* Наследует твой градиент из основного CSS */
        /* Разрешает прокрутку, только если контент не влез */
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    /* КНОПКА МЕНЮ (Гамбургер) */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1000;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #000;
        border-radius: 3px;
    }

    /* ПАНЕЛЬ МЕНЮ */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        display: none;
    }

    .mobile-menu-panel {
        width: 80%;
        height: 100%;
        background-color: #222;
        color: #fff;
        padding: 20px;
        position: relative;
        overflow-y: auto !important;

        /* Включает прокрутку внутри меню */
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 35px;
        color: #fff;
        cursor: pointer;
    }

    .mobile-menu-section-title {
        margin: 20px 0 10px 0;
        font-weight: bold;
        text-transform: uppercase;
        color: #FFD700;
        font-size: 18px;
        padding-left: 10px;
    }

    .mobile-menu-item {
        display: block;
        padding: 10px 0 10px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
        color: #eee;
    }
}