/* L2Radar — тёмная тема, «радарный» бирюзово-зелёный акцент, VIP — золото */
:root {
  --bg: #0b0f14;
  --panel: #121922;
  --row: #161f2a;
  --row-h: #1c2836;
  --line: #233041;
  --text: #e7edf3;
  --muted: #8a98a9;
  --acc: #2ee6a8;
  --acc-d: #1aa87a;
  --gold: #f5c542;
  --r: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1100px 520px at 50% -220px, rgba(46, 230, 168, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--acc); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
img { max-width: 100%; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 20px; padding-bottom: 40px; }

/* Шапка */
.hdr { border-bottom: 1px solid var(--line); background: rgba(11, 15, 20, .85); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo__i { width: 30px; height: 30px; color: var(--acc); }
.logo__t { font-size: 22px; font-weight: 800; letter-spacing: .06em; }
.logo__t b { color: var(--acc); font-weight: 800; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--acc); background: var(--panel); }

/* Баннеры */
.topban { display: block; position: relative; max-width: 1920px; margin: 0 auto; }
.topban img { display: block; width: 100%; height: auto; }
/* Как у l2oops: на широком экране низ «обоев» уходит под списки и правую колонку,
   по бокам выглядывает и плавно гаснет в фон. -230px = 12vw при 1920 — шире баннер не растёт */
@media (min-width: 1101px) {
  .topban::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
  .topban + .main { position: relative; margin-top: clamp(-230px, -12vw, -60px); }
  .topban + .main .layout { margin: 0 -16px; padding: 16px 16px 0; background: var(--bg); border-radius: 12px 12px 0 0; }
}
.sideban { display: block; max-width: 240px; margin: 0 auto; width: 100%; }
.sideban img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.sideban--m { display: none; margin: 0 auto 24px; max-width: 240px; }

/* Заголовки и крошки */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--acc); }
.crumbs span { margin: 0 6px; }
.h1 { margin: 0 0 20px; font-size: 26px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }

/* Раскладка: списки + правая колонка */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }

/* Блок серверов */
.blk { margin-bottom: 28px; }
.blk__t {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
}
.blk__t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(46, 230, 168, .15); }
.rows { display: grid; gap: 6px; }

/* Строка сервера: [ссылка на сайт: иконка | название | рейт | хроника | дата] [«i» → страница проекта] */
.row {
  display: flex; min-height: 40px;
  background: var(--row); border: 1px solid var(--line); border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.row:hover { background: var(--row-h); border-color: var(--acc-d); }
.row__go {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 52px 92px 66px; align-items: center; gap: 8px;
  padding-left: 12px; color: var(--text); text-decoration: none; font-size: 13px;
}
.row__go > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__p { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; color: var(--muted); }
.row__p svg { width: 16px; height: 16px; }
.row__p:hover { color: var(--acc); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.row__i { display: flex; align-items: center; justify-content: center; }
.crown { width: 18px; height: 18px; color: var(--gold); filter: drop-shadow(0 0 4px rgba(245, 197, 66, .35)); }
.dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.row__n { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.row__r { color: var(--acc); font-weight: 700; }
.row__c { color: var(--muted); }
.row__d { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Правая колонка */
.side { display: grid; gap: 16px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.box__t { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 8px;
  background: var(--row); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--acc-d); color: var(--acc); }
.btn--acc { background: var(--acc); border-color: var(--acc); color: #04120c; font-weight: 800; }
.btn--acc:hover { background: #5cf0c0; color: #04120c; }
.filter { display: grid; gap: 8px; }
.filter .box__t { margin-bottom: 2px; }
.filter select {
  width: 100%; height: 38px; padding: 0 10px;
  background: var(--row); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; font-size: 14px;
}

/* Календарь */
.cal__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal__h .box__t { margin: 0; }
.cal__h a { color: var(--text); text-decoration: none; font-size: 20px; line-height: 1; padding: 2px 8px; border-radius: 6px; }
.cal__h a:hover { background: var(--row); color: var(--acc); }
.cal table { width: 100%; border-collapse: collapse; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.cal th { color: var(--muted); font-weight: 600; font-size: 12px; padding: 4px 0; }
.cal td { padding: 2px; height: 30px; }
.cal td.now { box-shadow: inset 0 0 0 1px var(--acc-d); border-radius: 6px; }
.cal td a { display: block; line-height: 26px; border-radius: 6px; background: var(--acc); color: #04120c; font-weight: 800; text-decoration: none; }
.cal td a:hover { background: #5cf0c0; }

/* Страница проекта и каталог */
.logo-p { display: block; flex: none; width: 96px; height: 96px; border-radius: 12px; object-fit: contain; }
.logo-p--empty { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--acc); color: #04120c; font-size: 40px; font-weight: 800; }
.proj { margin-bottom: 28px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.proj__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.proj__srv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.srv { padding: 12px 14px; background: var(--row); border: 1px solid var(--line); border-radius: 8px; }
.srv__t { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.srv__d { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 14px; }
.srv__d dt { color: var(--muted); }
.srv__d dd { margin: 0; }
.proj__desc { margin: 0 0 28px; }
.proj__score { margin-right: auto; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.proj__score:hover { color: var(--acc); }
.star { color: var(--gold); }

/* Отзывы */
.rev { margin-bottom: 10px; padding: 12px 14px; background: var(--row); border: 1px solid var(--line); border-radius: 8px; }
.rev__h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; }
.rev__h time { margin-left: auto; color: var(--muted); font-size: 13px; }
.rev p { margin: 0; color: #c9d3dd; overflow-wrap: anywhere; }
.rev-ok { padding: 10px 14px; border: 1px solid var(--acc-d); border-radius: 8px; color: var(--acc); }
.rev-form { display: grid; gap: 10px; margin-top: 16px; }
.rev-form label { display: grid; gap: 4px; font-size: 14px; }
.rev-form input[type="text"], .rev-form textarea {
  width: 100%; padding: 8px 10px; background: var(--row); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit;
}
.rev-form textarea { resize: vertical; }
.rev-form__rules, .muted { margin: 0; color: var(--muted); font-size: 13px; }
.rev-form .btn { justify-self: start; }
.err { margin: -4px 0 0; color: #ff7a7a; font-size: 13px; }
.hp { position: absolute; left: -9999px; }
/* Звёзды без JS: радиокнопки в обратном порядке, отмеченная и все левее неё — золотые */
.stars-in { display: flex; flex-direction: row-reverse; justify-content: flex-end; margin: 0; padding: 0; border: 0; }
.stars-in legend { margin-bottom: 4px; padding: 0; font-size: 14px; }
.stars-in label { display: block; padding: 0 2px; color: var(--line); font-size: 28px; line-height: 1; cursor: pointer; }
.stars-in input:checked ~ label, .stars-in label:hover, .stars-in label:hover ~ label { color: var(--gold); }
.stars-in input:focus-visible + label { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; align-content: start; margin: 0; padding: 0; list-style: none; }
.cat__i {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 10px 12px;
  background: var(--row); border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none;
}
.cat__i:hover { background: var(--row-h); border-color: var(--acc-d); }
.cat__i .logo-p { grid-row: span 2; width: 40px; height: 40px; font-size: 18px; }
.cat__n { font-size: 14px; font-weight: 700; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat__m { color: var(--muted); font-size: 12px; }

/* Тексты: SEO и информационные страницы */
.prose { color: #c9d3dd; }
.prose h2, .prose h3, .prose h4 { color: var(--text); line-height: 1.3; margin: 1.4em 0 .5em; }
.prose h2 { font-size: 20px; }
.prose h3 { font-size: 17px; }
.prose h4 { font-size: 15px; }
.prose > :first-child { margin-top: 0; }
.prose code { background: var(--row); padding: 1px 5px; border-radius: 4px; }
.seo { margin-top: 32px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.empty { color: var(--muted); }

/* Подвал */
.ftr { border-top: 1px solid var(--line); background: #080b0f; padding: 32px 0 20px; font-size: 14px; }
.ftr__in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.ftr__about p { color: var(--muted); margin: 10px 0 0; max-width: 300px; }
.ftr__col { display: flex; flex-direction: column; gap: 6px; }
.ftr__col a { color: var(--muted); text-decoration: none; }
.ftr__col a:hover { color: var(--acc); }
.ftr__t { font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; margin-bottom: 4px; }
.ftr__copy { margin-top: 24px; color: var(--muted); font-size: 13px; }
.ftr__note { margin-top: 8px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Уведомление о cookies */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  font-size: 14px;
}
.cookie[hidden] { display: none; }

/* Планшет: правая колонка уходит под списки, боковой баннер — после «Скоро откроются» */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sideban--m { display: block; }
  .sideban--d { display: none; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
}

/* Телефон */
@media (max-width: 720px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: minmax(0, 1fr); }
  .h1 { font-size: 21px; }
  .hdr__in { padding-top: 10px; padding-bottom: 6px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 4px; font-size: 13px; }
  .logo-p { width: 64px; height: 64px; }
  .logo-p--empty { font-size: 28px; }
}
@media (max-width: 480px) {
  .row__go { grid-template-columns: 14px minmax(0, 1fr) 48px 60px 52px; gap: 5px; padding-left: 8px; font-size: 12px; }
  .row__p { width: 26px; }
  .proj__head .btn { flex-basis: 100%; }
  .row__n { font-size: 13px; letter-spacing: 0; }
  .crown { width: 14px; height: 14px; }
  .ftr__in { grid-template-columns: 1fr; }
}
