/* Основные стили */
body {
    font-family: Arial, sans-serif;
    background-color: #121212 !important;
    color: #eee !important;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}
a {
  text-decoration: none !important;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Навигация */
.navig {
    display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ff5500;
}

.navig a {
    color: #ff5500;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s;
}
.light-theme .navig .dropdown .btn  {
    color: #111 !important;
}
.light-theme .navig .dropdown .dropdown-menu {
    background-color: #fff !important;
}
.navig a:hover {
    color: #ff7700;
}

/* Основная структура */
.main-wrapper {
    display: flex;
    gap: 30px;
}

.content-columns {
    display: flex;
    flex: 1;
    gap: 30px;
    flex-wrap: wrap;
}
.modal-menu a {
  padding:5px 15px;
  display:block;
  color:#000;
  border-left:3px solid #fff;
  font-size:23px
}
.modal-menu a:hover {
  background:#f4f4f4;
  border-left:3px solid #ff5500
}
.left-content, .right-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
}

/* Группы серверов */
.server-group {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 12px 0px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.server-group-title {
    color: #ff7700;
    font-size: 16px;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

/* Элемент сервера */
.server-item {
    background: #222;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #ff7700;
    transition: transform 0.2s;
}

.server-item:hover {
    transform: translateY(-2px);
}

.server-name {
    color: #fafae6;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
}

/* Мета-данные сервера */
.server-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 5px;
    align-items: center;
}

.server-rate,
.server-chronicle,
.server-date-inline,
.server-link-inline {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.server-rate {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.server-chronicle {
    background: rgba(0, 221, 0, 0.1);
    color: #00dd00;
    border: 1px solid rgba(0, 221, 0, 0.3);
}

.server-date-inline {
    background: rgba(128,128,128,0.1);
    color: #aaa;
    font-size: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.server-link-inline {
    font-size: 10px;
    padding: 2px 6px;
    background: #ff5500;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
}

/* Статусы */
.server-flags {
    display: flex;
    gap: 6px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.server-flag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.flag-bonus { background-color: #4CAF50; }
.flag-obt { background-color: #2196F3; }
.flag-new { background-color: #FF9800; }

/* Сайдбар */
.filter-block {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}

.filter-title {
    color: #ff5500;
    font-size: 14px;
    margin-bottom: 12px;
}

select, .btn {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    background: #222;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
}

.btn {
    background: #ff5500;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: background 0.2s;
}

.btn:hover {
    background: #ff7700;
}

/* Page header/footer */
.page-header,
.footer {
    background: #2e2c2f;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #444;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 20px;
    margin: 0;
    color: #fff;
}

.footer * {
    color: #eee;
}

/* Светлая тема */
body.light-theme {
    background-color: #ffffff !important;
    color: #000 !important;
}

body.light-theme .server-group,
body.light-theme .filter-block,
body.light-theme .page-header,
body.light-theme .footer {
    background: #f3f3f3 !important;
    color: #111 !important;
}

body.light-theme .server-group-title,
body.light-theme .filter-title {
    color: #cc5500;
}

body.light-theme .server-item {
    background: #fff;
    border-left: 3px solid #cc5500;
    color: #000 !important; /* основной текст */
}

body.light-theme .server-name {
    color: #cc5500;
    font-weight: bold;
}

body.light-theme .server-rate {
    background: rgba(255, 204, 0, 0.15);
    color: #cc5500;
    border: 1px solid rgba(255, 204, 0, 0.4);
}

body.light-theme .server-chronicle {
    background: rgba(0, 153, 0, 0.1);
    color: #009900;
    border: 1px solid rgba(0, 153, 0, 0.3);
}

body.light-theme .server-BS,
body.light-theme .server-OBT,
body.light-theme .server-new {
    background: rgba(200, 100, 0, 0.1);
    color: #994400;
    border: 1px solid rgba(200, 100, 0, 0.3);
}

body.light-theme .server-date {
    color: #444;
}

body.light-theme .server-link-inline {
    background: #cc5500;
    color: #fff;
}

body.light-theme .btn:hover {
    background: #e66400;
}

/* Для премиум/градиентных блоков */
body.light-theme .server-item[style*="linear-gradient"],
body.light-theme .server-item[style*="#e54acc"],
body.light-theme .server-item[style*="#922790"] {
    color: #fff !important;
}

body.light-theme .server-item[style*="linear-gradient"] .server-name,
body.light-theme .server-item[style*="#e54acc"] .server-name,
body.light-theme .server-item[style*="#922790"] .server-name {
    color: #fff !important;
    font-weight: bold;
}

body.light-theme .server-item[style*="linear-gradient"] .server-rate,
body.light-theme .server-item[style*="linear-gradient"] .server-chronicle,
body.light-theme .server-item[style*="#e54acc"] .server-rate,
body.light-theme .server-item[style*="#e54acc"] .server-chronicle,
body.light-theme .server-item[style*="#922790"] .server-rate,
body.light-theme .server-item[style*="#922790"] .server-chronicle {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

body.light-theme .server-item[style*="linear-gradient"] .server-date,
body.light-theme .server-item[style*="#e54acc"] .server-date,
body.light-theme .server-item[style*="#922790"] .server-date {
    color: #eee !important;
}

body.light-theme .footer h2,
body.light-theme .footer p {
    color: #111;
}

body.light-theme .page-header h1 {
    color: #111 !important;
}



#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 55px;
  height: 55px;
  background-color: #ff5500;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
  display: none;
  line-height: 14px;
}
#scrollToTopBtn:hover {
  transform: scale(1.1);
  background-color: #e64a00;
}
.premium-server {
    color: #fff;
    background-size: cover;
    background-position: center;
}

.premium-server .server-name,
.premium-server .server-meta span,
.premium-server .server-date-inline,
.premium-server .server-link-inline {
    color: #fff !important;
}

.custom-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.custom-server-group {
  flex: 1 1 300px;
  background: #1e1e1e;
  border-left: 4px solid #ff5500;
  padding: 15px 20px;
  border-radius: 4px;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* Сброс глобальных стилей и задание новых */
.custom-server-group-title {
  all: unset; /* убираем всё лишнее от темы */
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #ff5500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.custom-server-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-premium .custom-price {
  color: #ffcc00;
  font-weight: 500;
}

.custom-brand .custom-price {
  color: #cc66ff;
  font-weight: 500;
}
.email-protect {
  unicode-bidi: bidi-override;
  direction: ltr;
}



.reklama-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.reklama-section {
  background: #1c1c1c;
  padding: 20px;
  border-left: 4px solid #ff5500;
  border-radius: 6px;
  color: #ddd;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.reklama-title {
  font-size: 18px;
  color: #ff5500;
  margin-bottom: 10px;
  font-weight: 600;
}

.label {
  font-weight: bold;
  color: #fff;
  display: inline-block;
  min-width: 250px;
}

.price {
  color: #44ff44;
  font-weight: bold;
}

.warn {
  font-size: 14px;
  color: #ff4444;
  margin-top: 10px;
}

 
body.branded::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* затемнение */
  z-index: -1;
}

@media (max-width: 600px) {
  .main-wrapper {
    flex-direction: column;
  }

  .content-columns {
    flex-direction: column;
    gap: 20px;
  }

  .left-content, .right-content {
    width: 100%;
    flex: none;
  }

  .sidebar {
    width: 100%;
    margin-top: 20px;
  }

  .server-item {
    flex-direction: column;
    padding: 12px;
    align-items: flex-start;
    text-align: left;
  }

  .server-meta {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    text-align: left;
  }

  .server-meta div,
  .server-meta span,
  .server-meta p,
  .server-meta .btn {
    align-self: flex-start !important;
    text-align: left !important;
  }

  .server-premium {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .custom-columns {
    flex-direction: column;
  }
}


body.branded {
  background-image: url('/images/bg-1.jpg');
  background-repeat: no-repeat;
  background-size: contain; /* не растягивает, а вмещает */
  background-position: top center;
  background-color: #000; /* fallback цвет фона */
}

/* Если нужен мягкий фильтр (наоборот, осветлить, а не затемнить) */
body.branded::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1; /* Не выше 0-1 */
}



.imgContent {
    background: url('/images/ad-as1.png') transparent no-repeat center top;
    width: 240px; /* фиксированная ширина */
    height: 400px;
    display: block;
    margin: 15px auto; /* выравниваем по центру */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.reklama-section {
    text-align: center;
    padding: 15px;
}

.filter-title {
    color: #ff5500;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}
.clients-wrapper {
  padding: 10px;
  color: #ddd;
  background: transparent;
}

.client-block {
  display: flex;
  flex-wrap: wrap;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  margin: 15px 0;
  padding: 10px;
  gap: 12px;
}

.client-img {
  flex: 0 0 200px;
  text-align: center;
}

.client-img img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 3px #000);
}

.client-info {
  flex: 1 1 300px;
  font-size: 14px;
}

.client-info h3 {
  font-size: 18px;
  margin: 5px 0;
  color: #ffcc66;
}

.client-download {
  flex: 0 0 170px;
  text-align: center;
  align-self: center;
}

.client-download a {
  display: inline-flex;
  align-items: center;
  background: #2b4d66;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.client-download a:hover {
  background: #456a88;
}

.client-download img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.client-img img[alt="Lineage 2 Classic"] {
  background-color: #fff;
  padding: 5px;
  border-radius: 5px;
}


#google_translate_element select {
  background-color: #333;
  color: #fff;
  border: 1px solid #444;
  padding: 5px;
  border-radius: 4px;
  font-size: 14px;
}

/* SEO intro block */
h2.seo-intro {
  font-size: 22px;
  line-height: 1.25;
  margin: 16px 0 8px;
  color: inherit;
}

h2.seo-intro + p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: inherit;
}