/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ ADS-SLOT.RU (ИСПРАВЛЕННАЯ)
   РАБОТАЕТ ТОЛЬКО НА ЭКРАНАХ < 768px
   ======================================== */

/* ===== СКРЫВАЕМ МОБИЛЬНЫЕ ЭЛЕМЕНТЫ НА ДЕСКТОПЕ ===== */
.mobile-menu-toggle,
.mobile-menu {
  display: none !important;
}

/* ===== МОБИЛЬНЫЕ УСТРОЙСТВА (< 768px) ===== */
@media (max-width: 767px) {
  /* СБРОС ДЛЯ ВСЕХ БЛОКОВ */
  .wrapper,
  .main,
  .m_left,
  .m_right,
  .auth,
  #blok,
  .m_l,
  .m_form,
  .pay_btn,
  .reg,
  .table-container,
  .links,
  .rv_block,
  .ig_block,
  .sld,
  .f_content,
  .f_left,
  .f_right,
  .top,
  .menu_bg,
  ul.menu {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* БАЗОВЫЙ СБРОС ДЛЯ ВСЕХ ЭЛЕМЕНТОВ */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }
  
  /* ОСОБЕННО ДЛЯ ТАБЛИЦ */
  table, tbody, thead, tr, td, th {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* ===== 1. ШАПКА САЙТА ===== */
  .top {
    height: auto !important;
    min-height: 80px !important;
    padding: 10px 15px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }
  
  .logo {
    margin-top: 10px !important;
    width: auto !important;
    max-width: 60% !important;
  }
  
  .logo img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* ===== 2. БАННЕР В ШАПКЕ ===== */
  .banner {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    order: 3 !important;
    clear: both !important;
  }
  
  .banner div,
  .banner img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  
  /* ===== 3. МЕНЮ ===== */
  .menu_bg {
    display: none !important;
  }
  
  /* ===== 4. БУРГЕР-МЕНЮ ===== */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    font-size: 28px !important;
    color: #fff !important;
    z-index: 10000 !important;
    cursor: pointer !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    text-shadow: 0 0 2px #000 !important;
    margin: 10px 0 !important;
    padding: 0 !important;
  }
  
  /* ===== 5. БОКОВОЕ МЕНЮ ===== */
  .mobile-menu {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 85% !important;
    max-width: 300px !important;
    height: 100vh !important;
    background: #328e2d !important;
    z-index: 9999 !important;
    transition: left 0.3s ease !important;
    padding: 20px !important;
    overflow-y: auto !important;
  }
  
  .mobile-menu.active {
    left: 0 !important;
  }
  
  .mobile-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  .mobile-menu li {
    margin: 15px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 15px !important;
    width: 100% !important;
  }
  
  .mobile-menu li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .mobile-menu a {
    color: #fff !important;
    font-size: 18px !important;
    display: block !important;
    text-decoration: none !important;
    padding: 10px 0 !important;
    width: 100% !important;
  }
  
  /* ===== 6. КОНТЕЙНЕРЫ ===== */
  .wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    margin: 0 auto !important;
  }
  
  .main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 0 !important;
  }
  
  /* ===== 7. БЛОКИ СТРАНИЦЫ ===== */
  .m_left,
  .m_right,
  .main_info,
  .auth,
  .left_mblocks,
  .links,
  .rv_block,
  .ig_block {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  
  /* ===== 7.5. ПРАВЫЙ БЛОК С ПАНЕЛЬЮ ПОЛЬЗОВАТЕЛЯ ===== */
.m_right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 15px !important;
    margin: 0 0 20px 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #e2e1e5 !important;
    border-radius: 8px !important;
    overflow: visible !important;
}

/* Переключатель Вебмастер/Рекламодатель */
.aw_switcher {
    display: flex !important;
    width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 1px solid #e2e1e5 !important;
}

.aw_switcher a {
    flex: 1 !important;
    text-decoration: none !important;
    display: block !important;
}

.aw_switcher li {
    padding: 12px 5px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #555 !important;
    background: #f9f9f9 !important;
    border: none !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.aw_switcher .aw_active {
    background: #328e2d !important;
    color: white !important;
}

/* Блок с информацией пользователя */
#blok {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Приветствие */
.vtb_login {
    font-size: 16px !important;
    color: #333 !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

.vtb_login b {
    color: #328e2d !important;
    font-size: 18px !important;
}

/* Строки с данными */
.vtb {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    box-sizing: border-box !important;
}

.vtb:last-child {
    border-bottom: none !important;
}

.vtlb {
    width: 60% !important;
    font-size: 14px !important;
    color: #666 !important;
    text-align: left !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

.vtrb {
    width: 40% !important;
    font-size: 14px !important;
    color: #328e2d !important;
    font-weight: bold !important;
    text-align: right !important;
    box-sizing: border-box !important;
}

/* Ссылка ВЫВЕСТИ */
#c_s a {
    color: #328e2d !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    font-size: 14px !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
    background: rgba(50, 142, 45, 0.1) !important;
    white-space: nowrap !important;
}

#c_s a:hover {
    background: rgba(50, 142, 45, 0.2) !important;
}

/* Большой баланс */
.vtrb b {
    font-size: 16px !important;
    color: #328e2d !important;
    display: inline-block !important;
}

/* Дополнительные блоки статистики (если есть) */
.m_right > div:not(#blok):not(.aw_switcher) {
    width: 100% !important;
    margin: 15px 0 0 0 !important;
    padding: 15px 0 0 0 !important;
    border-top: 1px solid #e2e1e5 !important;
    box-sizing: border-box !important;
}

/* Для вложенных списков статистики */
.m_right ul:not(.aw_switcher) {
    padding-left: 20px !important;
    margin: 10px 0 !important;
}

.m_right li:not(.aw_switcher li) {
    margin: 5px 0 !important;
    padding: 3px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    font-size: 13px !important;
}

.m_right li:not(.aw_switcher li):before {
    content: "• " !important;
    color: #328e2d !important;
    margin-right: 8px !important;
}

/* Кнопки навигации (Площадки, Профиль и т.д.) */
.m_right .user-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 20px 0 10px 0 !important;
    padding: 15px 0 0 0 !important;
    border-top: 1px solid #e2e1e5 !important;
}

.m_right .user-nav a {
    flex: 1 !important;
    min-width: calc(50% - 4px) !important;
    background: #f5f5f5 !important;
    color: #333 !important;
    padding: 10px 5px !important;
    text-align: center !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    border: 1px solid #ddd !important;
    box-sizing: border-box !important;
}

.m_right .user-nav a:hover {
    background: #e9e9e9 !important;
}
/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .m_right {
        padding: 10px !important;
    }
    
    .aw_switcher li {
        padding: 10px 3px !important;
        font-size: 13px !important;
    }
    
    .vtb_login {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    .vtb_login b {
        font-size: 16px !important;
    }
    
    .vtlb {
        width: 65% !important;
        font-size: 13px !important;
    }
    
    .vtrb {
        width: 35% !important;
        font-size: 13px !important;
    }
    
    .vtrb b {
        font-size: 14px !important;
    }
    
    #c_s a {
        font-size: 12px !important;
        padding: 2px 4px !important;
    }
    
    .m_right .user-nav a {
        min-width: calc(50% - 4px) !important;
        font-size: 12px !important;
        padding: 8px 3px !important;
    }
}

/* Для экстремально маленьких экранов */
@media (max-width: 360px) {
    .aw_switcher li {
        font-size: 12px !important;
        padding: 8px 2px !important;
    }
    
    .vtb_login {
        font-size: 14px !important;
    }
    
    .vtlb, .vtrb {
        font-size: 12px !important;
    }
    
    .m_right .user-nav a {
        min-width: 100% !important;
        margin: 3px 0 !important;
    }
    
    .vtlb {
        width: 70% !important;
    }
    
    .vtrb {
        width: 30% !important;
    }
}
  
  /* ===== 8. ИСПРАВЛЕНИЕ "УЗКИХ" ЭЛЕМЕНТОВ (ПАНЕЛЬ ПОЛЬЗОВАТЕЛЯ) ===== */
  @media (max-width: 767px) {
  /* ФОРСИРОВАННОЕ ИСПРАВЛЕНИЕ ПАНЕЛИ ПОЛЬЗОВАТЕЛЯ */
  .auth * {
    min-width: auto !important;
    max-width: none !important;
    white-space: normal !important;
  }
  
  .auth {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 15px !important;
    margin: 0 0 20px 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  
  .auth table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  
  .auth table tr {
    display: table-row !important;
    width: 100% !important;
  }
  
  .auth table td {
    display: table-cell !important;
    width: auto !important;
    padding: 10px 8px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border: none !important;
  }
  
  /* Особые стили для панели пользователя */
  .auth table td:first-child {
    width: 40% !important;
    min-width: 120px !important;
    font-weight: bold !important;
    color: #333 !important;
  }
  
  .auth table td:last-child {
    width: 60% !important;
    text-align: right !important;
    color: #328e2d !important;
    font-weight: bold !important;
  }
  
  /* Для ячеек с иконками или кнопками */
  .auth table td img {
    max-width: 20px !important;
    height: auto !important;
    vertical-align: middle !important;
    margin-right: 5px !important;
  }
  
  /* Строка с балансом (скорее всего первая) */
  .auth table tr:first-child td {
    font-size: 16px !important;
    padding: 12px 8px !important;
    background: rgba(50, 142, 45, 0.1) !important;
    border-radius: 5px !important;
  }
  
  /* Ссылки в панели */
  .auth a {
    display: inline-block !important;
    width: auto !important;
    margin: 5px 10px 5px 0 !important;
    padding: 8px 15px !important;
    background: #328e2d !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  
  .auth a:hover {
    background: #2a7a26 !important;
  }
  
  /* Если есть блок с кнопками "Площадки", "Профиль" и т.д. */
  .auth .user-menu-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #e2e1e5 !important;
  }
  
  .auth .user-menu-links a {
    flex: 1 0 calc(50% - 5px) !important;
    margin: 5px 2px !important;
    padding: 10px 5px !important;
    font-size: 13px !important;
  }
  
  /* Блок "ВЫВЕСТИ" (кнопка вывода) */
  .auth .withdraw-button,
  .auth input[type="submit"],
  .auth button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    font-size: 16px !important;
    margin: 10px 0 !important;
    background: #328e2d !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
  }
  
  /* Если есть выпадающий список */
  .auth select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    font-size: 14px !important;
    margin: 5px 0 !important;
  }
  
  /* Для вложенных списков (как в примере с балансом) */
  .auth ul,
  .auth ol {
    padding-left: 20px !important;
    margin: 5px 0 !important;
  }
  
  .auth li {
    margin: 3px 0 !important;
    padding: 2px 0 !important;
  }
  
  /* ===== 9. ТАБЛИЦЫ (ОЧЕНЬ ВАЖНО!) ===== */
  .table-container {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid #e2e1e5 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  
  /* СИЛЬНЫЕ ПРАВИЛА ДЛЯ ВСЕХ ТАБЛИЦ */
  table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }
  
  table[width],
  table[width="600"],
  table[align],
  .all_table,
  .m_table,
  .deal_table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    display: table !important;
  }
  
  /* Особенно для таблицы с сортировкой */
  #sorton {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
  
  .all_table td,
  .m_table td,
  .deal_table td,
  #sorton td,
  #sorton th {
    word-break: break-word !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    padding: 8px 5px !important;
    font-size: 14px !important;
    min-width: 50px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .all_title,
  .header {
    padding: 10px 5px !important;
    font-size: 14px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  
  /* Чекбоксы в таблицах */
  #sorton input[type="checkbox"],
  .all_table input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    vertical-align: middle !important;
    min-width: 20px !important;
    max-width: 20px !important;
  }
  
  /* ===== 10. ЭЛЕМЕНТЫ ВНУТРИ ТАБЛИЦ ===== */
  .cut,
  .long_link,
  .long_link_hidder,
  .hidder_white,
  .hidder_red,
  .hidder_green,
  .hidder_yellow {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* ===== 11. ФОРМЫ ===== */
  form,
  .m_form,
  .m_l,
  .m_name,
  .m_pole,
  .m_name2,
  .m_pole2,
  .m_chek,
  .m_time,
  .m_urr,
  .m_btn {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"],
  textarea,
  select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }
  
  button,
  .submit,
  input[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    font-size: 16px !important;
    padding: 10px 20px !important;
    margin: 10px 0 !important;
  }
  
  /* ===== 12. АВТОРИЗАЦИЯ НА ГЛАВНОЙ ===== */
  .auth #blok {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    border-top: 1px solid #DBDADE !important;
    padding-top: 12px !important;
    margin-top: 15px !important;
  }
  
  .auth a {
    display: block !important;
    text-align: center !important;
    margin: 10px 0 !important;
    width: 100% !important;
  }
  
/* ===========================================
   ИСПРАВЛЕНИЕ INFOGRAF - 2 КОЛОНКИ НА МОБИЛЬНЫХ
   =========================================== */
@media (max-width: 767px) {
  
  /* 1. ОБЕРТКА ДЛЯ INFOGRAF */
  .infograf-container-mobile {
    width: 100% !important;
    margin: 30px 0 !important;
    padding: 20px 0 !important;
    background: #f8f9fa !important;
    border-top: 2px solid #328e2d !important;
    border-bottom: 2px solid #328e2d !important;
    box-sizing: border-box !important;
  }
  
  /* 2. ОСНОВНОЙ КОНТЕЙНЕР - СЕТКА 2 КОЛОНКИ */
  .infograf {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 колонки */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    background: none !important;
    height: auto !important;
  }
  
  /* 3. УБИРАЕМ ВЛОЖЕННЫЙ WRAPPER (ОН МЕШАЕТ) */
  .infograf > .wrapper {
    display: contents !important; /* Убираем из потока */
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* 4. КАЖДЫЙ БЛОК - ЗАНИМАЕТ 1 КОЛОНКУ */
  .ig_block {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 10px !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    background: white !important;
    border: 2px solid #e2e1e5 !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
  }
  
  /* 5. ПРИНУДИТЕЛЬНО УБИРАЕМ СТАРЫЕ СТИЛИ */
  .ig_block[style*="margin-right:0"] {
    margin-right: 0 !important;
  }
  
  .ig_block[style*="width:172px"] {
    width: 100% !important;
  }
  
  /* 6. КРУГ С ИКОНКОЙ */
  .round {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    margin: 0 auto 15px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e3f2fd !important;
    border: 3px solid #328e2d !important;
  }
  
  .round img {
    width: 35px !important;
    height: 35px !important;
    margin: 0 !important;
    display: block !important;
  }
  
  /* 7. БОЛЬШАЯ ЦИФРА */
  .ig_num {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #328e2d !important;
    margin: 5px 0 !important;
    font-family: 'Roboto Condensed', sans-serif !important;
  }
  
  /* 8. ТЕКСТ ПОД ЦИФРОЙ */
  .ig_block p {
    font-size: 13px !important;
    color: #666 !important;
    margin: 5px 0 0 0 !important;
  }
  
  /* 9. ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ */
  @media (max-width: 480px) {
    .infograf {
      gap: 10px !important;
      padding: 0 10px !important;
    }
    
    .ig_block {
      padding: 15px 8px !important;
    }
    
    .round {
      width: 60px !important;
      height: 60px !important;
      margin-bottom: 10px !important;
    }
    
    .round img {
      width: 30px !important;
      height: 30px !important;
    }
    
    .ig_num {
      font-size: 20px !important;
    }
  
  /* ===== 14. БЛОКИ ВЕБМАСТЕРА И РЕКЛАМОДАТЕЛЯ ===== */
  .rv_block {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* ===== 15. СЛАЙДЕР ===== */
  .sld {
    width: 100% !important;
    max-width: 100% !important;
    height: 120px !important;
    margin: 10px 0 !important;
  }
  
  /* ===== 16. ПОДВАЛ ===== */
  .f_content {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 20px 15px !important;
    margin: 30px 0 0 0 !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    background: #333333 !important;
    color: #fff !important;
    border-top: 2px solid #2a7a26 !important;
    clear: both !important;
  }
  
  .f_left,
  .f_right {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 10px 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #fff !important;
  }
  
  .f_right a {
    color: #fff !important;
    text-decoration: underline !important;
  }
  
  /* ===== 17. УБИРАЕМ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ===== */
  body {
    overflow-x: hidden !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .main {
    flex: 1 0 auto !important;
  }
  
  .wrapper {
    min-height: 100% !important;
  }
  
} /* Конец основного медиа-запроса */

/* ===== ДОПОЛНИТЕЛЬНО ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ ===== */
@media (max-width: 480px) {
  .wrapper {
    padding: 0 10px !important;
  }
  
  .mobile-menu-toggle {
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
  }
  
  .banner {
    margin: 5px 0 !important;
  }
  
  .m_left,
  .m_right,
  .main_info,
  .auth,
  .left_mblocks,
  .links {
    padding: 10px !important;
  }
  
  .ig_block {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
  }
  
  /* Дополнительные стили для панели пользователя */
  .auth {
    padding: 10px !important;
  }
  
  .auth table td {
    padding: 8px 5px !important;
    font-size: 13px !important;
    white-space: normal !important; /* Разрешаем перенос текста */
  }
  
  .auth table td:first-child {
    width: 45% !important;
    min-width: 100px !important;
  }
  
  .auth table td:last-child {
    width: 55% !important;
  }
  
  .auth a {
    padding: 6px 10px !important;
    font-size: 12px !important;
    margin: 3px 5px 3px 0 !important;
  }
  
  .auth .user-menu-links a {
    flex: 1 0 100% !important;
    margin: 3px 0 !important;
  }
  
  /* Для сложных таблиц с вложенностью */
  .auth table table {
    width: 100% !important;
    margin: 5px 0 !important;
  }
  
  .auth table table td {
    padding: 4px 3px !important;
    font-size: 12px !important;
  }
  
  /* Таблицы на очень маленьких экранах */
  .all_table td,
  .m_table td,
  .deal_table td,
  #sorton td,
  #sorton th {
    padding: 6px 3px !important;
    font-size: 12px !important;
    min-width: 40px !important;
  }
  
  .all_title,
  .header {
    padding: 8px 3px !important;
    font-size: 12px !important;
  }
  
  /* Для ячеек с URL */
  .all_table td:nth-child(2),
  .all_table td:last-child {
    word-break: break-all !important;
    max-width: 100% !important;
  }
}

/* ===== ДЛЯ ЭКСТРЕМАЛЬНО МАЛЕНЬКИХ ЭКРАНОВ ===== */
@media (max-width: 360px) {
  .ig_block {
    width: 49% !important;
    max-width: 49% !important;
    margin-right: 2% !important;
    padding: 4px !important;
  }
  
  .round {
    width: 55px !important;
    height: 55px !important;
  }
  
  .round img {
    width: 28px !important;
    height: 28px !important;
  }
  
  .ig_title {
    font-size: 11px !important;
    min-height: 30px !important;
  }
  
  .ig_num {
    font-size: 14px !important;
  }
  
  /* Дополнительные стили для панели пользователя */
  .auth table td {
    padding: 6px 3px !important;
    font-size: 12px !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }
  
  .auth table tr {
    display: block !important;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eee !important;
  }
  
  .auth table td:first-child,
  .auth table td:last-child {
    width: 100% !important;
    text-align: left !important;
  }
  
  .auth table td:first-child {
    font-weight: bold !important;
    margin-bottom: 3px !important;
  }
  
  .auth table td:last-child {
    color: #328e2d !important;
  @media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .wrapper {
        min-width: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 10px !important;
    }
/* INFOGRAF FIX - 2 КОЛОНКИ */
@media (max-width: 767px) {
  .infograf {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    width: 100% !important;
  }
  
  .ig_block {
    width: calc(50% - 8px) !important;
    margin: 0 !important;
    padding: 15px 5px !important;
    float: none !important;
    text-align: center !important;
  }
  
  /* Для нечетного количества - центрируем последний */
  .ig_block:last-child:nth-child(odd) {
    margin: 0 auto !important;
    width: 80% !important;
  }
}