/* Мобильная адаптация для CS мониторинга */
/* Глобальное исправление горизонтальной прокрутки */
@media (max-width: 768px) {
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    body {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
    }
    
    /* Явно находим и исправляем все проблемные элементы */
    div[style*="width:"],
    table[style*="width:"],
    td[style*="width:"],
    textarea[style*="width:"],
    input[style*="width:"],
    select[style*="width:"],
    .container,
    .container > * {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Особенно для элементов с фиксированными пикселями */
    [style*="width:800px"],
	[style*="width:390px"],
	[style*="width:180px"],
	[style*="width:110px"],
	[style*="width:400px"],
	[style*="width:200px"],
    [style*="width:650px"],
    [style*="width:500px"],
    [style*="width:400px"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    body, html {
        width: 100% !important;
        overflow-x: hidden;
    }
    
    /* Убираем боковые полосы */
    table.mon_serv_style td[style*="width: 6px"] {
        display: none;
    }
    
    /* Шапка */
    .header {
        height: auto !important;
        padding: 10px 5px;
    }
    
    .header table {
        display: block;
        width: 100% !important;
    }
    
    .header tr.headerstyle {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .header td {
        width: 100% !important;
        display: block !important;
        text-align: center;
        margin-bottom: 10px;
    }
    
    #logo {
        width: 300px !important;
        height: auto !important;
        margin: 0 auto !important;
        float: none !important;
        padding: 5px;
    }
    
    #logo img {
        width: 100% !important;
        height: auto !important;
    }
    
    #new-inform-box {
        width: 95% !important;
        height: auto !important;
        margin: 10px auto !important;
        float: none !important;
        padding: 10px !important;
        font-size: 12px;
        line-height: 1.3;
    }
    
    #new-inform-game {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 10px auto;
    }
    
    .search {
        text-align: center;
        margin: 10px auto;
    }
    
    .search input {
        width: 250px !important;
        padding: 8px !important;
        height: auto !important;
    }
    
    /* НАВИГАЦИЯ - 2 КОЛОНКИ ПО 4 БЛОКА */
    .new-navigation {
        height: auto !important;
        padding: 0 !important;
        background: #2c2c2c !important;
        display: block !important;
        width: 100% !important;
        float: none !important;
        position: static !important;
    }
    
    .new-navigation ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        list-style: none !important;
        background: #444 !important;
        gap: 1px !important;
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        float: none !important;
        height: auto !important;
        min-height: 176px !important;
    }
    
    .new-navigation ul li {
        height: 44px !important;
        line-height: 44px !important;
        background: #3c3c3c !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #555 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
    }
    
    /* Границы для сетки 2 колонки */
    .new-navigation ul li:nth-child(odd) {
        border-right: 0.5px solid #666 !important;
    }
    
    .new-navigation ul li:nth-child(even) {
        border-left: 0.5px solid #666 !important;
    }
    
    .new-navigation ul li a {
        padding: 0 10px !important;
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #bbb !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        height: 100% !important;
        text-align: center !important;
    }
    
    /* === ИСПРАВЛЕННАЯ СОРТИРОВКА ПО ИГРАМ - 2 КОЛОНКИ ПО 3 БЛОКА === */
    .sort {
        padding: 10px 0 !important;
        background: #2c2c2c !important;
        display: block !important;
        width: 100% !important;
        position: static !important;
    }
    
    /* Усиленный селектор для грида */
    html body .global_table .sort ul.sort_nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 36px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 10px !important;
        list-style: none !important;
        gap: 8px !important;
        position: static !important;
        float: none !important;
        height: auto !important;
        min-height: 108px !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        background: transparent !important;
        opacity: 1 !important;
        justify-content: normal !important;
    }
    
    /* Исправленные стили для элементов грида */
    html body .global_table .sort ul.sort_nav li {
        display: block !important;
        float: none !important;
        position: static !important;
        width: auto !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        font-size: 11px !important;
        opacity: 1 !important;
    }
    
    html body .global_table .sort ul.sort_nav li a.sort-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        color: #aaa !important;
        text-decoration: none !important;
        background: #3c3c3c !important;
        border: 1px solid #5a5a5a !important;
        border-radius: 4px !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .sort_nav li:hover {
        background: #464646 !important;
    }
    
    .sort-button:hover {
        color: #fff !important;
    }
    
    /* === ИСПРАВЛЕННАЯ СОРТИРОВКА ПО МОДАМ - 3 КОЛОНКИ ПО 6 БЛОКОВ === */
    /* Усиленный селектор для грида */
    html body .global_table .sort ul.sort_mode {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-auto-rows: 30px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 10px !important;
        list-style: none !important;
        gap: 6px !important;
        position: static !important;
        float: none !important;
        height: auto !important;
        min-height: 180px !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        background: transparent !important;
        opacity: 1 !important;
        justify-content: normal !important;
    }
    
    /* Исправленные стили для элементов грида */
    html body .global_table .sort ul.sort_mode li {
        display: block !important;
        float: none !important;
        position: static !important;
        width: auto !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        font-size: 10px !important;
        opacity: 1 !important;
    }
    
    html body .global_table .sort ul.sort_mode li a.mode-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        color: #aaa !important;
        text-decoration: none !important;
        background: #3c3c3c !important;
        border: 1px solid #5a5a5a !important;
        border-radius: 4px !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
        font-size: 10px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .sort_mode li:hover {
        background: #464646 !important;
    }
    
    .mode-button:hover {
        color: #fff !important;
    }
    
    /* ТОП БЛОКИ - КОМПАКТНЫЕ И ВЫРОВНЕННЫЕ */
    .t_head {
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .t_head tr {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .t_head td {
        width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .zebra_1, .zebra_2 {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 5px !important;
        gap: 10px !important;
    }
    
    /* Топ серверы - КОМПАКТНЫЕ И ВЫРОВНЕННЫЕ */
    .topblock {
        width: 100% !important;
        max-width: 95vw !important;
        min-width: 95vw !important;
        margin: 0px auto !important;
        float: none !important;
        display: block !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    .topmonth {
        width: 100% !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 5 !important;
        table-layout: fixed !important;
        border-spacing: 0 !important;
        padding: 0 !important;
    }
    
    .topmonth tr {
        display: table-row !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .topmonth td {
        display: table-cell !important;
        vertical-align: middle !important;
        width: auto !important;
        padding: 4px 6px !important;
        line-height: 1.2 !important;
    }
    
    .topmonth td[rowspan="3"] {
        width: 180px !important;
        padding-right: 10px !important;
    }
    
    /* КОМПАКТНЫЕ ИЗОБРАЖЕНИЯ В ТОП-БЛОКАХ */
    .topmonth img[style*="width:110px"],
    .topmonth img[style*="width:110px;"],
    .topmonth img[src*="buy.png"],
    .topmonth img[src*="maps/"],
    .topmonth img[src*="nomap.png"] {
        width: 170px !important;
        height: 100px !important;
        object-fit: cover !important;
        border: 3px solid #525252 !important;
        border-radius: 6px !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* КОМПАКТНЫЙ ТЕКСТ В ТОП-БЛОКАХ */
    .topmonth td:not(:first-child) {
        padding-left: 8px !important;
        min-width: 100px !important;
    }
    
    .topmonth td {
        font-size: 13px !important;
        padding: 4px 6px !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }
    
    .topmonth span[style*="color:#B4B4B4"] {
        font-size: 12px !important;
        display: block !important;
        margin-top: 1px !important;
    }
    
    .topmonth tr:nth-child(4) td {
        font-size: 14px !important;
        padding: 6px 0 !important;
        text-align: center !important;
        width: 100% !important;
        display: table-cell !important;
        line-height: 1.3 !important;
    }
    
    .topmonth tr:nth-child(4) td span {
        display: inline !important;
    }
    
    .topmonth tr:nth-child(4) td span u {
        text-decoration: none !important;
    }
    
    .topmonth tr:last-child td {
        font-size: 12px !important;
        padding-top: 4px !important;
        text-align: center !important;
        width: 100% !important;
        display: table-cell !important;
        line-height: 1.2 !important;
    }
    
    /* Уменьшаем внутренние отступы таблицы */
    .topmonth tr:first-child td,
    .topmonth tr:nth-child(2) td,
    .topmonth tr:nth-child(3) td {
        padding-bottom: 2px !important;
    }
    
    /* ТАБЛИЦА СЕРВЕРОВ - ИСПРАВЛЕННАЯ ВЕРСИЯ */
    .list {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .list thead {
        display: none;
    }
    
    .hserver {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 12px 10px !important;
        position: relative !important;
        z-index: 20 !important;
        background: #323232 !important;
        border: 1px solid #4b4b4b !important;
        border-radius: 6px !important;
        margin: 0 5px 10px 5px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
        overflow: hidden !important;
        min-height: 120px !important;
    }
    
    /* Убираем фоновые изображения и элементы, которые могут быть на заднем плане */
    .hserver::before,
    .hserver::after {
        display: none !important;
    }
    
    .hserver td {
        padding: 3px 5px !important;
        position: relative !important;
        z-index: 30 !important;
        background: transparent !important;
    }
    
    /* Исправляем перекрытие для всех колонок */
    .c0 {
        order: 1;
        width: 30px !important;
        position: relative !important;
        z-index: 40 !important;
    }
    
    .c1 {
        order: 2;
        width: calc(100% - 100px) !important;
        font-size: 14px !important;
        position: relative !important;
        z-index: 40 !important;
        padding-left: 5px !important;
    }
    
    .c1 a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        color: #ccc !important;
        text-decoration: none !important;
        font-weight: bold !important;
    }
    
    .c2 {
        order: 4;
        width: 100% !important;
        font-size: 12px !important;
        color: #aaa !important;
        padding-top: 8px !important;
        position: relative !important;
        z-index: 40 !important;
        clear: both !important;
    }
    
    /* Исправляем отображение адреса сервера */
    .c2 table {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        position: relative !important;
        z-index: 40 !important;
    }
    
    .c2 table tr {
        display: flex !important;
        align-items: center !important;
    }
    
    .c2 table td {
        padding: 0 !important;
        background: transparent !important;
    }
    
    .c2 table td div {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .c2 table td div img {
        width: 16px !important;
        height: 16px !important;
        opacity: 0.8;
    }
    
    /* КОЛОНКИ: МОД, КАРТА, ИГРОКИ - ИСПРАВЛЕННЫЕ */
    .c3, .c4, .c6 {
        order: 3;
        display: inline-block !important;
        margin-right: 12px;
        font-size: 12px !important;
        background: rgba(255,255,255,0.08) !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        position: relative !important;
        z-index: 40 !important;
        margin-top: 5px;
        border: 1px solid rgba(255,255,255,0.1) !important;
        min-width: 60px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    /* МОД - слева */
    .c3 {
        color: #8ab4f8 !important;
        background: rgba(100, 150, 255, 0.15) !important;
        margin-left: 0 !important;
        margin-right: 8px !important;
    }
    
    /* КАРТА - по центру */
    .c6 {
        color: #ffcc66 !important;
        background: rgba(255, 200, 100, 0.15) !important;
        margin-left: 0 !important;
        margin-right: 8px !important;
        max-width: 120px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    /* ИГРОКИ - справа */
    .c4 {
        order: 3;
        color: #81c995 !important;
        background: rgba(100, 255, 100, 0.15) !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        float: right !important;
        min-width: 70px !important;
        text-align: center !important;
    }
    
    /* Для длинных названий карт делаем отступы */
    .c6 + .c4 {
        margin-left: auto !important;
        clear: none !important;
    }
    
    .c5 {
        order: 1;
        width: 60px !important;
        text-align: right !important;
        position: relative !important;
        z-index: 40 !important;
        padding-right: 5px !important;
    }
    
    /* Исправляем отображение голосов/VIP */
    .c5 img[src*="vip"] {
        width: 40px !important;
        height: 20px !important;
        position: relative !important;
        z-index: 40 !important;
    }
    
    .c5 table {
        margin: 0 !important;
        position: relative !important;
        z-index: 40 !important;
    }
    
    .c5 table tr td {
        font-size: 12px !important;
        font-weight: bold !important;
        color: #ffcc00 !important;
        background: rgba(255,204,0,0.15) !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        text-align: center !important;
        border: 1px solid rgba(255,204,0,0.2) !important;
    }
    
    /* Контент */
    .newson {
        margin: 10px 5px;
        padding: 10px !important;
        font-size: 13px !important;
        line-height: 1.4;
        position: relative !important;
        z-index: 5 !important;
    }
    
    /* Пагинация */
    .paginate {
        padding: 15px 10px;
        text-align: center;
        position: relative !important;
        z-index: 5 !important;
    }
    
    .paginate a, 
    .paginate span {
        padding: 5px 8px !important;
        margin: 2px !important;
        font-size: 13px;
        position: relative !important;
        z-index: 5 !important;
    }
    
    /* Футер */
    #footer {
        padding: 15px 10px;
        height: auto !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    #footer table {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #footer table tr {
        width: 100%;
        text-align: center;
    }
    
    #footer table td {
        width: 100% !important;
        padding: 5px 0 !important;
        display: block;
    }
}

@media (max-width: 480px) {
    /* Меню для очень маленьких экранов - 2 КОЛОНКИ ПО 4 БЛОКА */
    .new-navigation ul {
        grid-template-columns: repeat(2, 1fr) !important;
        min-height: 176px !important;
    }
    
    .new-navigation ul li {
        height: 44px !important;
        line-height: 44px !important;
        border-left: 1px solid #555 !important;
        border-right: 1px solid #555 !important;
        border-top: none !important;
    }
    
    .new-navigation ul li:first-child {
        border-top: 1px solid #555 !important;
    }
    
    .new-navigation ul li:last-child {
        border-bottom: 1px solid #555 !important;
    }
    
    .new-navigation ul li:nth-child(odd),
    .new-navigation ul li:nth-child(even) {
        border-left: 1px solid #555 !important;
        border-right: 1px solid #555 !important;
    }
    
    .new-navigation ul li a {
        font-size: 12px !important;
        padding: 0 10px !important;
    }
    
    /* Сортировка по играм для очень маленьких экранов */
    html body .global_table .sort ul.sort_nav {
        gap: 6px !important;
    }
    html body .global_table .sort ul.sort_nav li a.sort-button {
        font-size: 10px !important;
        padding: 0 6px !important;
    }
    
    /* Сортировка по модам для очень маленьких экранов */
    html body .global_table .sort ul.sort_mode {
        gap: 5px !important;
    }
    html body .global_table .sort ul.sort_mode li a.mode-button {
        font-size: 9px !important;
        padding: 0 4px !important;
    }
    
    /* Улучшаем отображение серверов на маленьких экранах */
    .hserver {
        padding: 15px 12px !important;
        margin: 0 8px 12px 8px !important;
    }
    
    .c1 {
        font-size: 15px !important;
        width: calc(100% - 110px) !important;
    }
    
    .c2 {
        font-size: 13px !important;
    }
    
    /* Адаптируем колонки для маленьких экранов */
    .c3, .c6, .c4 {
        font-size: 13px !important;
        padding: 6px 10px !important;
        margin-bottom: 5px !important;
        min-width: 55px !important;
    }
    
    /* Карта - уменьшаем максимальную ширину */
    .c6 {
        max-width: 100px !important;
        margin-right: 6px !important;
    }
    
    /* Игроки - фиксированная ширина */
    .c4 {
        min-width: 65px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    
    .c5 {
        width: 70px !important;
    }
    
    /* Топ блоки для маленьких экранов - компактные */
    .topblock {
        max-width: 95vw !important;
        min-width: 95vw !important;
        margin: 6px auto !important;
    }
    
    /* КОМПАКТНЫЕ ИЗОБРАЖЕНИЯ В ТОП-БЛОКАХ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ */
    .topmonth img[style*="width:110px"],
    .topmonth img[style*="width:110px;"],
    .topmonth img[src*="buy.png"],
    .topmonth img[src*="maps/"],
    .topmonth img[src*="nomap.png"] {
        width: 160px !important;
        height: 95px !important;
    }
    
    /* КОМПАКТНЫЙ ТЕКСТ В ТОП-БЛОКАХ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ */
    .topmonth td {
        font-size: 14px !important;
        padding: 3px 5px !important;
    }
    
    .topmonth span[style*="color:#B4B4B4"] {
        font-size: 13px !important;
    }
    
    .topmonth tr:nth-child(4) td {
        font-size: 15px !important;
        padding: 5px 0 !important;
    }
    
    /* Остальные стили для 480px */
    .newson {
        font-size: 14px !important;
        padding: 15px !important;
    }
    
    #logo {
        width: 250px !important;
    }
}

@media (max-width: 360px) {
    /* Меню для очень маленьких экранов - 1 КОЛОНКА */
    .new-navigation ul {
        grid-template-columns: 1fr !important;
        min-height: 352px !important;
    }
    
    .new-navigation ul li {
        border-left: 1px solid #555 !important;
        border-right: 1px solid #555 !important;
        border-top: none !important;
    }
    
    .new-navigation ul li:first-child {
        border-top: 1px solid #555 !important;
    }
    
    .new-navigation ul li:last-child {
        border-bottom: 1px solid #555 !important;
    }
    
    .new-navigation ul li a {
        font-size: 13px !important;
        padding: 0 15px !important;
    }
    
    /* Сортировка по играм для очень маленьких экранов - 1 КОЛОНКА */
    html body .global_table .sort ul.sort_nav {
        grid-template-columns: 1fr !important;
        min-height: 216px !important;
    }
    
    /* Сортировка по модам для очень маленьких экранов - 2 КОЛОНКИ */
    html body .global_table .sort ul.sort_mode {
        grid-template-columns: repeat(2, 1fr) !important;
        min-height: 270px !important;
    }
    
    /* Топ блоки для очень маленьких экранов - компактные */
    .topblock {
        max-width: 95vw !important;
        min-width: 95vw !important;
        margin: 4px auto !important;
    }
    
    /* Дополнительные исправления для очень маленьких экранов */
    .hserver {
        padding: 15px 10px !important;
    }
    
    .c1 {
        font-size: 14px !important;
        width: calc(100% - 90px) !important;
    }
    
    /* Для очень узких экранов делаем колонки более компактными */
    .c3, .c6, .c4 {
        font-size: 12px !important;
        padding: 5px 8px !important;
        margin-right: 5px !important;
        min-width: 50px !important;
    }
    
    .c6 {
        max-width: 80px !important;
    }
    
    .c4 {
        min-width: 60px !important;
        margin-left: auto !important;
    }
    
    /* Если все равно накладывается, делаем перенос на новую строку */
    .c3, .c6, .c4 {
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    .c4 {
        float: right !important;
        clear: right !important;
    }
    
    /* КОМПАКТНЫЕ ИЗОБРАЖЕНИЯ В ТОП-БЛОКАХ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ */
    .topmonth img[style*="width:110px"],
    .topmonth img[style*="width:110px;"],
    .topmonth img[src*="buy.png"],
    .topmonth img[src*="maps/"],
    .topmonth img[src*="nomap.png"] {
        width: 150px !important;
        height: 90px !important;
    }
    
    #logo {
        width: 220px !important;
    }
}

/* Исправляем блок с ценами на странице раскрутки */
@media (max-width: 768px) {
    .listingprice {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .vindex4 > div:first-child {
        float: none !important;
        padding: 0 !important;
        text-align: center !important;
        margin: 20px auto !important;
        display: block !important;
    }
    
    .vindex4 > div:first-child img {
        width: 280px !important;
        height: auto !important;
        max-width: 100% !important;
    }
    
    /* Исправляем таблицу поиска серверов */
    .p_box {
        display: flex !important;
        flex-direction: column !important;
        margin: 10px 5px !important;
    }
    
    .p_box tr {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .p_box td {
        width: 100% !important;
        padding: 10px !important;
        border-left: none !important;
        border-bottom: 1px solid #4F4F4F !important;
    }
    
    .p_box td:last-child {
        border-bottom: none !important;
    }
    
    .p_box input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
    }
    
    .p_box_text {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
    
    .p_box_bott {
        width: 100% !important;
        padding: 8px !important;
    }
    
    /* Исправляем списки листингов */
    .listingtop,
    .listingvip,
    .listingcolor {
        padding: 15px 10px !important;
        margin: 10px 5px !important;
        width: calc(100% - 10px) !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .listingtop h3,
    .listingvip h3,
    .listingcolor h3 {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    .listingtop ol,
    .listingvip ol,
    .listingcolor ol {
        padding-left: 20px !important;
        margin: 0 !important;
    }
    
    .listingtop li,
    .listingvip li,
    .listingcolor li {
        margin-bottom: 10px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    
    .listingtop li a,
    .listingvip li a,
    .listingcolor li a {
        font-size: 12px !important;
        display: inline-block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Исправляем блок с правилами */
    .vindex4 > div[style*="margin-top:12px"],
    .vindex4 > div[style*="margin-top:7px"] {
        padding: 10px 15px !important;
        margin: 15px 5px !important;
        width: calc(100% - 10px) !important;
        box-sizing: border-box !important;
    }
    
    .vindex4 ol {
        padding-left: 20px !important;
    }
    
    .vindex4 li {
        margin-bottom: 8px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 480px) {
    .listingprice {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .listingprice ol {
        padding-left: 15px !important;
    }
    
    .listingprice li {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .listingprice b {
        font-size: 12px !important;
    }
    
    /* Делаем цены более компактными */
    .listingprice img[src*="li-vip"] {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 360px) {
    .listingprice {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .listingprice li {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }
    
    .listingprice b {
        font-size: 11px !important;
    }
    
    .listingtop,
    .listingvip,
    .listingcolor {
        padding: 10px 8px !important;
        margin: 8px 5px !important;
    }
}

/* ===== АДАПТАЦИЯ ДЛЯ СТРАНИЦЫ СЕРВЕРА ===== */
@media (max-width: 768px) {
    /* Исправляем главную таблицу на странице сервера */
    .global_table > tbody > tr:nth-last-child(2) > td > table[style*="width:100%"] {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .global_table > tbody > tr:nth-last-child(2) > td > table[style*="width:100%"] > tbody > tr {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .global_table > tbody > tr:nth-last-child(2) > td > table[style*="width:100%"] > tbody > tr > td {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 0 15px 0 !important;
    }
    
    /* Исправляем блоки на странице сервера */
    .vindex3, .vindex5, .vindex31 {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        display: block !important;
        float: none !important;
    }
    
    /* Изображения */
    .vindex3 img, .vindex5 img, .vindex31 img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Текстовые поля */
    .vindex5 textarea.myinput, .vindex31 textarea.myinput {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Форма отзыва */
    .vindex5 form table {
        width: 100% !important;
    }
    
    .vindex5 form input[type="text"], 
    .vindex5 form textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Кнопка списка игроков */
    .btn-list {
        width: 100% !important;
        margin-top: 10px !important;
        padding: 10px !important;
    }
    
    /* Отзывы */
    .c_com {
        width: 100% !important;
    }
    
    .c_com td {
        padding: 10px !important;
        word-break: break-word !important;
    }
    
    /* Защищаем другие элементы */
    .t_head,
    .t_head tr,
    .t_head td,
    .topblock,
    .topmonth,
    .topmonth tr,
    .topmonth td {
        display: table !important;
        width: auto !important;
        float: none !important;
    }
    
    .topmonth tr {
        display: table-row !important;
    }
    
    .topmonth td {
        display: table-cell !important;
    }
}

@media (max-width: 480px) {
    .vindex3, .vindex5, .vindex31 {
        padding: 12px !important;
        margin: 8px auto !important;
    }
    
    .vindex5 textarea.myinput, 
    .vindex31 textarea.myinput {
        font-size: 11px !important;
        height: 70px !important;
    }
}

@media (max-width: 360px) {
    .vindex3, .vindex5, .vindex31 {
        padding: 10px !important;
        margin: 6px auto !important;
    }
    
    .vindex5 textarea.myinput, 
    .vindex31 textarea.myinput {
        font-size: 10px !important;
        height: 60px !important;
    }
}