*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: #111;
    min-height: 100%;
    font-family: 'PT Sans', sans-serif;
    color: #fff;
}

/* Основной контейнер */
.main-width {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .main-width { max-width: 100%; padding: 0 16px; }
}

@media (max-width: 768px) {
    .main-width { max-width: 100%; padding: 0 12px; }
}

@media (max-width: 480px) {
    .main-width { max-width: 100%; padding: 0 10px; }
}

/* Layout */
.container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px;
}

.sidebar {
    width: 282px;
    flex-shrink: 0;
    margin-right: 10px;
}

/* Контейнер контента */
.content {
    display: flex;
    width: 70%;
    gap: 20px;
}

.content .block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content .block .container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.server-item {
    width: 100%;
    background: #2a2a2a;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    border-radius: 3px;
}

.info-box {
    width: 100%;
    background: #2c2c2c;
    padding: 0px;
    border-radius: 3px;
    color: #fff;
}

/* Контейнер для sidebar + content */
.main-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 0 10px;
}

.content .block.left,
.content .block.right {
    flex: 1;
}

/* Блоки */
.block {
    background: rgba(31, 31, 31, 1);
    border: 1px solid #383838;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px black;
}

/* -------------------------------------------------------------
   АДАПТАЦИЯ ЗАГОЛОВКОВ (SEO-ОПТИМИЗАЦИЯ БЕЗ ВИЗУАЛЬНЫХ ПОТЕРЬ) 
   ------------------------------------------------------------- */
.heading {
    color: #ffdeae;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    font-size: 15px;
}

/* Центрируем новые H2 в блоках и стилизуем под старые H3 */
.block h2, 
.contacts h2, 
h3 {
    text-align: center;
}

.block h2 {
    font-size: 1.17em; /* Старый размер h3 */
    margin: 1em 0;
    font-weight: bold;
}

.heading h2 {
    margin: 0;
    font-size: inherit;
    text-transform: inherit;
}

.choose-server .heading h2 {
    font-size: 16px;
    color: #ffd5af;
    text-transform: uppercase;
}

.contacts .heading h2 {
    margin: 0 0 15px;
}

/* Хроники */
.chronicle-menu .list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.list_chronic {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.chronicle-menu .list a {
    width: 48%;
    margin: 1px 0;
    box-sizing: border-box;
    font-size: 12px;
    text-transform: uppercase;
    background: rgba(50,50,50,0.3);
    border: 1px solid rgba(88,87,87,0.3);
    border-radius: 3px;
    line-height: 32px;
    text-align: center;
    color: #e2e2e2;
    transition: 0.2s;
}

.chronicle-menu .list a:hover {
    background: rgba(50,50,50,0.8);
    border-color: #ffba00;
    color: #ffba00;
}

.chronicle-menu a {
    display: inline-block;
    width: 130px;
    margin: 3px;
    line-height: 32px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    color: #e2e2e2;
    background: rgba(50, 50, 50, 0.3);
    border: 1px solid rgba(88, 87, 87, 0.3);
    border-radius: 5px;
    text-transform: uppercase;
    transition: 0.2s;
}

.chronicle-menu a:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: #ffba00;
    color: #ffba00;
}

.h3colm {
    margin: 0;
    padding: 0;
}

/* Быстрый поиск */
.choose-server {
    color: #999;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'PT Sans', sans-serif;
    margin-top: 0;
}

.choose-server .item {
    margin-bottom: 10px;
    font-size: 12px;
}

.choose-server .lcol {
    text-align: right;
    width: 60px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.choose-server .rcol {
    width: calc(100% - 78px);
    display: inline-block;
    vertical-align: middle;
}

.choose-server .rcol .col {
    width: calc(50% - 5px);
    float: left;
}

.choose-server .rcol .col:first-child {
    margin-right: 10px;
}

.choose-server select {
    width: 100%;
    padding: 5px 8px;
    font-size: 12px;
    background: #1c1c1c;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.choose-server select:focus {
    outline: none;
    border-color: #f3c310;
}

.choose-server button.btn {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 6px 12px;
    background: #404040;
    color: #ffd5af;
    border: 1px solid #888;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.choose-server button.btn:hover {
    background: #f3c310;
    color: #1c1c1c;
    border-color: #f3c310;
}

sidebar .block {
    margin: 0;
    padding: 10px 0;
}

.chronicle-menu {
    margin-bottom: 0;
}

/* Линия разделителя */
.sidebar hr {
    border: none;
    border-top: 1px solid #444;
    margin: 5px 0;
}

.sidebar-banners {
    text-align: center;
    margin-top: 5px;
}

.sidebar-banners .banner {
    margin-bottom: 5px;
}

.sidebar-banners .banner .frame {
    width: 250px;
    height: 200px;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 0 5px black;
}

.sidebar-banners .banner .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Основные стили Header */
.header {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    background: transparent;
    padding: 10px 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20vh;
}

.header .lang {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.header .lang img {
    height: auto;
    cursor: pointer;
}

.h1 {
    display: flex;
    height: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-left {
    width: 30%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-left img {
    width: 300px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s;
}

.header-left img:hover {
    filter: brightness(110%);
}

.header-right {
    width: 70%;
    display: flex;
    justify-content: center;  
    align-items: center;
}

.zagol {
    font-size: 40px;
    color: #fefefe;
    text-align: center;
    user-select: none;
    margin: 0;
}

/* ФОН С ОБОЯМИ */
.brlogo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 0;
    overflow: hidden;
}

.brlogo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brlogo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 80%,
        rgba(0,0,0,0.85) 100%
    );
}

.bg {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #111;
}

.menu_fon {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
}

/* ================= FOOTER ================= */

.footer {
    width: 100%;
    min-height: 200px;
    height: auto;
    margin: 0 auto;
    position: relative;
    background: transparent;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 10px;
}

.footer .desc {
    width: 100%;             
    color: #fff;
    font-size: 16px;
}

.footer .menu {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 22px;
}

.footer .menu li a {
    color: #bfff8b;
    text-decoration: none;
    font-weight: 600;
}

.h2down {
    text-align: left;
    margin: 0;
    font-size: 30px;
    color: #7fdbff;
    font-weight: 600;
}

.p1down {
    text-align: left;
    font-size: 17px;
    color: #ffffff;
    font-weight: 600;
}

.footer .copyright {
    width: 100%;
    text-align: center;
    color: #aaa;
    font-size: 12px;
}

.p_last {
    text-align: right;
    font-size: 13px;
    color: #adadad;
    font-weight: 600;
}

/* Стилизация SEO-текста под старые теги */
.seo-text {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    text-align: left;
}

.seo-text h2,
.seo-text h3 {
    margin-top: 20px;
    text-align: left;
}

.seo-text > h2:first-of-type {
    font-size: 2em; /* Эмулируем старый H1 */
    margin-bottom: 0.67em;
}

.seo-text > h3 {
    font-size: 1.5em; /* Эмулируем старый H2 */
    margin-bottom: 0.83em;
}


/* ===== Контакты ===== */
.contacts {
    padding: 20px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(50,50,50,0.4);
    border: 1px solid #383838;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 15px;
}

.contact-item strong {
    color: #ffd5af;
    margin-right: 5px;
}

.contact-item a {
    color: #7fdbff;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
    background: rgba(50,50,50,0.8);
    border-color: #ffba00;
    color: #ffba00;
}

.contact-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    display: block;
}

.ads_site {
    display: block;
    text-align: center;
    font-size: 20px;  
    margin: 15px auto;
    transition: color 0.3s ease;
}

.header-right a {
    text-decoration: none;
    color: inherit;
}

hr {
    width: 100%;
    height: 1px;
    border: none;
    background-color: #444;
    margin: 10px 0;
}

.centr_1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
}

.vip-icon {
    width: 35px;
    height: auto;
}

.centr_3 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.price-box {
    width: 200px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid #666666;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
}

.price-box span {
    display: block;
    font-size: 13px;
}

.price-box .line-1 {
    color: #00b7ff;
    font-size: 14px;
}

.price-box .line-2 {
    font-size: 16px;
    font-weight: 700;
    color: #03b111;
}

.price-box .line-3 {
    font-size: 12px;
    color: #aaaaaa;
}

#color_text {
    font-size: 32px;
    font-weight: 700;
    color: #00b7ff;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 15px;
}

#color_banner {
    font-size: 15px;
    font-weight: 800;
    color: #ffd700;
}

.partner-banners {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.partner-item {
    text-align: center;
}

.partner-box {
    width: 200px;
    height: 150px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: initial;
}

.partner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.partner-box:hover {
    background: #000;
    box-shadow: 0 0 12px rgba(0,0,0,0.8);
}

.partner-desc {
    margin-top: 10px;
    font-size: 15px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.25s ease;
    display: block;
}

.partner-desc:hover {
    color: #7fdbff;
}

.plus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    border-radius: 50%;
    background: #2b2b2b;
    color: #c1c2c2;
    font-size: 55px;
    font-weight: 900;
    line-height: 1;
    transition: all 0.25s ease;
}

.partner-box:hover .plus-icon {
    background: #000;
    color: #ffffff;
}

/* ==================== КЛИЕНТЫ ==================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.client-box {
    height: 35px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
}

.client-box:hover {
    background: #000;
    transform: scale(1.15);
    z-index: 2;
}

.client-box a,
.client-box a:visited,
.client-box a:active {
    color: #bfff8b !important;
    text-decoration: none !important;
    text-align: center;
}

.client-box:hover a {
    color: #ffffff !important;
}

.client-box.empty {
    color: #aaa;
    background: #1a1a1a;
    border: 1px dashed #555;
    font-style: italic;
}

.news-item {
    width: 100%;
    background-color: #2a2a2a;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease, max-height 0.3s ease;
    max-height: 500px;
    box-sizing: border-box;
}

.news-item:hover {
    background-color: #030303;
}

.news-header {
    padding: 5px 10px;
    line-height: 20px;
}

.news-content {
    padding: 10px;
}

.news-item:not(.expanded) .news-content {
    display: none;
}

.news-item.expanded {
    max-height: 500px;
    background-color: #2a2a2a;
}

.buttons-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    background-color: #2c2c2c;
    border: 2px solid #666666;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    user-select: none;
    text-align: center;
    flex: 1 1 22%;
    min-width: 160px;
}

.btn:hover {
    background-color: #ff9800;
}

#output {
    width: 100%;
    min-height: 50px;
    border: 2px dashed #666666;
    margin-top: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 20px;
    color: #ffe8e8;
    white-space: pre-wrap;
    box-sizing: border-box;
}

#Add_link_banner { color: #007bff; font-weight: bold; }
#Contact_link { color: #ff0000; font-weight: bold; }

/* === СТИЛИ СЕРВЕРОВ === */
.server-item {
    width: 100%;
    background: #2a2a2a;
    padding: 5px 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.server-vip {
    flex: 0 0 30px;
    height: 30px;
    font-size: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.server-vip.svip { background-image: url("/default/img/img_vip/s_vip.png"); }
.server-vip.vip { background-image: url("/default/img/img_vip/vip.png"); }
.server-vip:not(.vip):not(.svip):not(.top1):not(.top2):not(.top3) { background: none; }

.server-name {
    flex: 1 1 150px;
    font-weight: bold;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-item .server-vip.svip + .server-name,
.server-item .server-vip.top1 + .server-name,
.server-item .server-vip.top2 + .server-name,
.server-item .server-vip.top3 + .server-name {
    color: #FFD700;
    font-weight: bold;
}

.server-item .server-vip.vip + .server-name {
    color: #aaaaaa;
}

.server-item .server-vip:not(.vip):not(.svip):not(.top1):not(.top2):not(.top3) + .server-name {
    color: #999696;
    font-weight: normal;
    font-size: 14px;
}

.server-vip.top1,
.server-vip.top2,
.server-vip.top3 {
    background-image: url("/default/img/img_vip/top1_5.png");
}

.server-rate {
    flex: 0 1 60px;
    text-align: right;
    font-size: 12px;
}

.server-chronicle {
    flex: 0 1 100px;
    text-align: right;
    font-size: 12px;
}

.server-date {
    flex: 0 1 90px;
    text-align: right;
    font-size: 12px;
}

.container1 {
    display: flex;
    flex-direction: column;
}

.server-name a,
.server-name a:visited {
    color: inherit;
    text-decoration: none;
    display: block;
}

.server-name a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.server-top {
    flex: 0 0 30px;
    height: 30px;
    font-size: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.servers-wrapper {
    width: 100%;          
    display: flex;
    justify-content: space-between; 
    gap: 4%;               
}

.servers-left,
.servers-right {
    width: 48%;             
    display: flex;
    flex-direction: column;            
}

.block-soon-vip,
.block-soon-nonvip,
.block-opened-vip,
.block-opened-nonvip {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    flex: unset; 
    padding: 10px;
}

.block-soon-vip,
.block-opened-vip {
    border-radius: 8px;
}

.server-date {
    font-size: 14px;
    font-weight: 400;
}

.server-item .server-date span.today-label{
    color:#2ecc71 !important;
    font-weight:700 !important;
}
.date-today {
    color: #2ecc71;
    font-weight: bold;
    font-size: 16px;
}
.date-tomorrow {
    color: #c40000;
    font-weight: bold;
    font-size: 16px;
}

/* ==================== СТРИМЕРЫ И ПАРТНЕРЫ ==================== */
.streamers-grid,
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.streamer-item,
.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.streamer-box,
.partner-box-small { /* Заменил .partner-box, так как конфликтовал с большими баннерами */
    width: 100%;
    height: 70px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.streamer-box:hover,
.partner-box-small:hover {
    background: #000;
    transform: scale(1.15);
    z-index: 2;
}

.streamer-box a,
.streamer-box a:visited,
.streamer-box a:active,
.partner-box-small a,
.partner-box-small a:visited,
.partner-box-small a:active {
    color: #bfff8b !important;
    text-decoration: none !important;
    text-align: center;
    line-height: 1.2;
}

.streamer-box:hover a,
.partner-box-small:hover a {
    color: #ffffff !important;
}

.streamer-box.empty,
.partner-box-small.empty {
    color: #aaa;
    background: #1a1a1a;
    border: 1px dashed #555;
    font-style: italic;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streamer-box.empty:hover,
.partner-box-small.empty:hover {
    background: #000;
    color: #ffffff;
    transform: scale(1.15);
    z-index: 2;
}

.streamer-item .social-link,
.partner-desc {
    margin-top: 4px;
    color: #bfff8b;
    text-decoration: none;
    text-align: center;
}

.streamer-item .social-link:hover,
.partner-desc:hover {
    color: #ffffff;
}

.logo_partner_site {
    width: 100px;
    height: 60px;
    object-fit: contain;
}

/* ========================= ОСНОВНОЕ МЕНЮ (ПК) ========================= */
.main-menu {
    width: 100%;
    display: flex;
    justify-content: center;
}

.main-menu-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    justify-content: center;
}

.menu-btn {
    position: relative;
    flex: 1;
    height: 80px;
    background: linear-gradient(180deg, #2c2c2c, #151515);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.menu-btn::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 6px rgba(255,255,255,1),
                -8px 0 12px rgba(255,255,255,0.6),
                -16px 0 18px rgba(255,255,255,0.3);
    top: -4px;
    left: -4px;
    animation: comet-border 3.2s linear infinite;
    pointer-events: none;
}

.menu-btn:nth-child(1)::before { animation-delay: 0s; }
.menu-btn:nth-child(2)::before { animation-delay: -0.8s; }
.menu-btn:nth-child(3)::before { animation-delay: -1.6s; }
.menu-btn:nth-child(4)::before { animation-delay: -2.4s; }

.menu-btn:hover {
    transform: scale(1.05);
    border-color: #cfa54a;
    box-shadow: 0 0 14px rgba(207,165,74,0.45);
    background: linear-gradient(180deg, #2c2c2c, #151515);
    color: #fff;
}

@keyframes comet-border {
    0% { top: -4px; left: -4px; }
    38% { top: -4px; left: calc(100% - 4px); }
    50% { top: calc(100% - 4px); left: calc(100% - 4px); }
    88% { top: calc(100% - 4px); left: -4px; }
    100% { top: -4px; left: -4px; }
}

#center_text { text-align: center; }
#center_text ul { list-style: none; padding: 0; margin-top: 15px; }
#center_text li { margin-bottom: 8px; }

/* === Контейнер формы + скрины === */
.add-server-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 30px auto;
    align-items: flex-start;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.add-server-left {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.add-server-right {
    flex: 0 0 450px;
    color: #fff;
}

.placement-screens {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.screen-item {
    text-align: center;
    background: #151515;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.screen-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 6px;
}

.screen-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.add-server-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.add-server-form input,
.add-server-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
    background-color: #151515;
    color: #fff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.add-server-form .menu-btn {
    margin-top: 20px;
    position: relative;
    display: inline-block;
    align-self: center;
}

/* Telegram контейнер по центру */
.header-telegram {
    display: flex;
    flex: 1;
    justify-content: center; 
    align-items: center;     
    margin-right: 10px;
}

.telegram-link {
    display: flex;
    align-items: center;       
    gap: 10px;                 
    padding: 10px 20px;
    background-color: #1e1e1e; 
    border-radius: 12px;        
    text-decoration: none;
    border: 1px solid #2AABEE33;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    background-color: #2AABEE;
    transform: translateY(-2px);
}

.telegram-link:hover .telegram-text {
    color: #fff;
}

.telegram-link img {
    width: 24px;
    height: 24px;
    display: block;
}

.telegram-text {
    font-size: 14px;
    font-weight: 600;
    color: #2AABEE;
}

/* Кнопка live chat */
.livechat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 140px;
    height: 60px;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    animation: pulse 2s infinite;
    transition: transform 0.3s;
}

.livechat-toggle:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(108, 92, 231, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

.livechat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: #1e1e2f;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
}

.livechat-header {
    background: linear-gradient(135deg,#6c5ce7,#00cec9);
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.livechat-header span.close-chat {
    cursor: pointer;
    font-size: 18px;
}

.livechat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #151521;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

.user-message {
    background: #6c5ce7;
    align-self: flex-end;
}

.admin-message {
    background: #2d3436;
    align-self: flex-start;
}

.livechat-form {
    padding: 10px;
    background: #1e1e2f;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.livechat-form input,
.livechat-form textarea {
    background: #2d2d44;
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: white;
    resize: none;
}

.livechat-form button {
    background: #00cec9;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.livechat-form button:hover {
    background: #00b3ad;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-btn { display: none; }


/* =======================================================
   МЕДИА ЗАПРОСЫ (СОБРАНЫ И ОТСОРТИРОВАНЫ)
   ======================================================= */

/* ===== 1037px ===== */
@media (max-width: 1037px) {
    .clients-grid,
    .streamers-grid,
    .partners-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* ===== 1024px ===== */
@media (max-width: 1024px) {
    .main-menu-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 10px;
    }
    .main-menu-inner > * { width: 100%; text-align: center; }
    .menu-btn { height: 40px; font-size: 14px; border-radius: 6px; }
    
    .server-item { gap: 6px; padding: 4px 8px; }
    .server-name { flex-basis: 120px; font-size: 15px; }
    .server-rate { flex-basis: 50px; }
    .server-chronicle { flex-basis: 80px; }
    .server-date { flex-basis: 70px; }
    
    .main-container { flex-direction: column; }
    .sidebar { display: none; }
    .servers-wrapper { flex-direction: column; width: 100%; gap: 20px; }
    .servers-left, .servers-right { width: 100%; }

    .search-btn {
        display: flex;
        grid-column: 1 / -1; 
        width: 100%;
    }
    
    #output { font-size: 18px; padding: 8px; }
}

/* ===== 992px ===== */
@media (max-width: 992px) {
    .main-container { flex-direction: column; }
    .sidebar { width: 100%; }
    .content { flex-direction: column; width: 100%; }
    .content .block.left, .content .block.right { width: 100%; margin-bottom: 20px; }
}

/* ===== 900px ===== */
@media (max-width: 900px) {
    .add-server-wrapper {
        flex-direction: column; 
        width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }
    .add-server-right { order: 1; flex: 1 1 100%; width: 100%; }
    .add-server-left {
        order: 2; flex: 1 1 100%; width: 100%; display: flex;
        flex-direction: column; align-items: center; 
    }
    .add-server-left .add-server-form { width: 100%; }
    .add-server-left .menu-btn { display: block; margin: 20px auto 0; align-self: auto; }
    .placement-screens { width: 100%; flex-direction: column; gap: 20px; }
    .screen-item img { width: 100%; height: auto; }
}

/* ===== 775px - 1160px ===== */
@media (min-width: 775px) and (max-width: 1160px) {
    .header .h1 {
        display: flex; flex-direction: column; align-items: center;
        width: 100%; max-width: 1000px; box-sizing: border-box;
    }
    .header-left, .header-right { width: 100%; justify-content: center; text-align: center; }
    .header-left { margin-bottom: 15px; }
    .header-left img { width: 220px; height: auto; }
    .zagol { font-size: 36px; text-align: center; }
}

/* ===== 768px ===== */
@media (max-width: 768px) {
    .brlogo { height: 25vh; }
    .menu_fon { padding-top: 15vh; }

    .header {
        width: 100%; padding: 20px 10px; height: auto;
        display: flex; flex-direction: column; align-items: center; position: relative;
    }
    .h1 {
        display: flex; flex-direction: column; width: 90%; height: auto; align-items: center;
    }
    .header-left, .header-right { width: 100%; justify-content: center; }
    .header-left img { width: 200px; height: auto; }
    .zagol { font-size: 28px; text-align: center; }
    
    .header .lang {
        position: relative; right: auto; left: auto; width: 100%;
        display: flex; justify-content: center; background: transparent;
        margin-bottom: 10px; box-sizing: border-box;
    }

    .footer { padding: 15px 0; display: flex; flex-direction: column; align-items: center; }
    .footer .menu { justify-content: center; flex-wrap: wrap; font-size: 16px; }
    .h2down, .p1down, .p_last { text-align: center; }
    
    .contacts { padding: 15px; }
    .contact-item { font-size: 14px; text-align: center; }
    .centr_3 { flex-wrap: wrap; gap: 15px; }
    .partner-box { width: 200px; height: 150px; }
}

/* ===== 767px ===== */
@media (max-width: 767px) {
    .server-item { gap: 4px; padding: 3px 6px; }
    .server-vip { flex-basis: 20px; height: 18px; }
    .server-name { flex-basis: 100px; font-size: 13px; }
    .server-rate { flex-basis: 40px; font-size: 11px; }
    .server-chronicle { flex-basis: 70px; font-size: 11px; }
    .server-date { flex-basis: 60px; font-size: 11px; }
    .server-top { flex-basis: 20px; height: 18px; }
}

/* ===== 600px ===== */
@media (max-width: 600px) {
    .btn { flex: 1 1 100%; }
    #output { font-size: 16px; padding: 6px; }
}

/* ===== 601px - 1024px ===== */
@media (min-width: 601px) and (max-width: 1024px) {
    .btn { flex: 1 1 48%; }
}

/* ===== 584px ===== */
@media (max-width: 584px) {
    .sidebar-banners { display: none !important; }
    body:not(.home) .sidebar { display: none !important; }
    .content { flex-direction: column; }
    .content .block.left, .content .block.right { width: 100%; margin-bottom: 20px; }
}

/* ===== 582px ===== */
@media (max-width: 582px) {
    .sidebar { flex: initial; }
}

/* ===== 576px ===== */
@media only screen and (max-width: 576px) {
    .header .h1 { font-size: 18px; }
    .header .logo { width: 200px; height: 100px; }
    .header .lang { justify-content: center; }
}

/* ===== 500px ===== */
@media (max-width: 500px) {
    .livechat-window { width: 95%; right: 2.5%; height: 80%; bottom: 80px; }
}

/* ===== 480px ===== */
@media (max-width: 480px) {
    .brlogo { height: 20vh; }
    .menu_fon { padding-top: 12vh; }
    .h1 { width: 95%; }
    .header-left img { width: 150px; }
    .zagol { font-size: 22px; }
    .header .lang { gap: 6px; }
    
    .footer .menu { font-size: 13px; }
    .h2down { font-size: 22px; }
    .p1down { font-size: 13px; }
    
    .centr_3 { flex-direction: column; width: 100%; gap: 10px; margin: 1px; }
    .centr_3 > div { width: 100%; max-width: 70%; height: 80px; display: flex; align-items: center; justify-content: center; }
    
    #color_text { font-size: 22px; }
    #color_banner { font-size: 13px; }
    
    .partner-banners { gap: 15px; }
    .partner-item { width: 100%; }
    .partner-box { width: 200px; height: 200px; margin: 0 auto; }
    .partner-desc { font-size: 14px; }
    .plus-icon { width: 20px; height: 20px; font-size: 55px; }
    
    .clients-grid, .streamers-grid, .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .client-box, .streamer-box, .partner-box-small { height: 35px; font-size: 13px; }
    .streamer-item .social-link, .partner-desc { font-size: 11px; }
}

/* ==================== ПАГИНАЦИЯ (АДАПТИРОВАННАЯ) ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    margin-top: 10px;
    border-top: 1px solid #383838; /* В стиле твоих разделителей */
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    background: #1a1a1a;
    border: 1px solid #383838;
    border-radius: 4px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #404040;
    border-color: #f3c310; /* Твой золотистый цвет из .choose-server button */
    color: #f3c310;
}

.page-link.active {
    background: #f3c310;
    border-color: #f3c310;
    color: #1c1c1c;
    cursor: default;
}

/* Адаптация для мобилок */
@media (max-width: 480px) {
    .page-link {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .pagination {
        gap: 5px;
    }
}