/* ============================================================
   Выпадающее меню, мониторинг, чат, новости, вкладки
   ============================================================ */
.nav-links { align-items: center; }
.nav-links > li { position: relative; }
.drop-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 600 15px var(--font-body); position: relative;
}
.drop-btn:hover, .drop-btn.active, .has-drop.open .drop-btn { color: #fff; }
.drop-btn .chev { width: 16px; height: 16px; transition: transform .25s; }
.dropdown {
  position: absolute; top: 100%; left: 50%; padding-top: 12px; width: 340px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: all .22s cubic-bezier(.2,.7,.2,1);
}
.dropdown-in {
  border-radius: 14px; padding: 10px; background: rgba(14, 10, 11, .97); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 40px -20px rgba(255, 70, 10, .5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.drop-head { font: 700 11px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); padding: 6px 10px 10px; }
.drop-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--text); }
.drop-item:hover { background: rgba(255, 106, 0, .08); color: var(--text); }
.drop-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--acc); background: rgba(255, 106, 0, .1); border: 1px solid var(--line-strong); }
.drop-ico svg { width: 20px; height: 20px; }
.drop-txt b { display: block; font-size: 14px; color: #fff; }
.drop-txt small { color: var(--dim); font-size: 12px; }
.drop-st { font: 700 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; background: rgba(255, 179, 71, .1); color: var(--amber); }
.drop-st.on { background: rgba(57, 217, 138, .12); color: var(--ok); }
@media (hover: hover) and (min-width: 1101px) {
  .has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-drop:hover .chev { transform: rotate(180deg); }
}
@media (min-width: 1101px) {
  .has-drop.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-drop.open .chev { transform: rotate(180deg); }
}

/* главная — компактный первый экран */
.hero.hero-sm { min-height: auto; padding: 140px 0 70px; }
.hero.hero-sm .hero-logo { max-width: 360px; }

/* мониторинг */
.mon-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.mon-head h2 { margin: 0; }
.mon-sum { display: flex; gap: 10px; flex-wrap: wrap; }
.mon-sum span { padding: 8px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.mon-sum b { color: #fff; font-family: var(--font-mono); }
.mon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.srv {
  --acc: var(--fire);
  border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #120c0c, #0a0708); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s;
}
.srv::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 90, 20, .12), transparent 45%);
}
.srv:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(255, 70, 10, .6); }
.srv:hover::before { opacity: 1; }
.srv-top { position: relative; height: 130px; }
.srv-map {
  position: absolute; inset: 0; display: flex; align-items: end; padding: 16px 20px;
  background:
    linear-gradient(180deg, transparent 20%, #120c0c 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 10px, transparent 10px 20px),
    radial-gradient(400px 160px at 80% 0%, color-mix(in srgb, var(--acc) 45%, transparent), transparent 70%),
    linear-gradient(120deg, #2a1610, #140b0a);
}
.srv-map::after {
  content: ""; position: absolute; right: 14px; top: 10px; width: 110px; height: 110px; border-radius: 50%;
  background: url("logo.jpg") center / cover; opacity: .35;
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 70%); mask: radial-gradient(circle, #000 40%, transparent 70%);
}
.srv-map span { position: relative; z-index: 1; font: 700 12px var(--font-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--amber); background: rgba(0,0,0,.5); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); }
.srv-badge {
  position: absolute; left: 16px; top: 16px; z-index: 1; display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(255, 179, 71, .3);
  font-size: 12px; font-weight: 700; color: var(--amber);
}
.srv-badge.on { color: var(--ok); border-color: rgba(57, 217, 138, .35); }
.srv-badge .dot { width: 8px; height: 8px; box-shadow: 0 0 10px currentColor; }
.srv-body { padding: 6px 22px 22px; position: relative; z-index: 3; }
.srv-mode { font: 700 11px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.srv-name { font-size: 22px; margin-bottom: 18px; color: #fff; }
.srv-players { margin-bottom: 16px; }
.srv-players-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.srv-players-row span { display: flex; align-items: center; gap: 8px; }
.srv-players-row svg { width: 16px; height: 16px; }
.srv-players-row b { font-family: var(--font-mono); color: #fff; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); box-shadow: var(--glow); border-radius: 6px; min-width: 4px; }
.srv-ip-row { display: flex; gap: 8px; margin-bottom: 16px; }
.srv-ip-row code { flex: 1; padding: 11px 14px; border-radius: 10px; background: #050405; border: 1px solid var(--line); font: 600 14px var(--font-mono); color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: #fff; border-color: var(--fire); }
.srv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.srv-actions .btn:only-child { grid-column: 1 / -1; }
.srv-big .srv-top { height: 150px; }

/* чат */
.chat { border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #110b0b, #0a0708); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 106, 0, .04); }
.chat-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 17px; }
.chat-title svg { width: 20px; height: 20px; color: var(--fire); }
.chat-online { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.chat-online .dot { width: 8px; height: 8px; }
.chat-log { padding: 18px 22px; display: grid; gap: 14px; min-height: 160px; max-height: 360px; overflow-y: auto; align-content: start; }
.msg { display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.msg-ava { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-weight: 800; color: var(--amber); }
.msg-ava img { width: 100%; height: 100%; object-fit: cover; }
.msg-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 3px; }
.msg-meta b { color: #fff; }
.msg-meta time { color: var(--dim); font-family: var(--font-mono); font-size: 11px; margin-left: auto; }
.msg-text { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.msg.sys .msg-text { color: var(--text); }
.chat-form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.chat-form .btn { width: 50px; padding: 0; --h: 50px; }
.chat-form .input:disabled { opacity: .35; }
.chat-lock {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(8, 6, 7, .72); color: var(--muted); font-size: 14px; font-weight: 600; padding: 0 16px; text-align: center;
}
.chat-lock svg { width: 18px; height: 18px; color: var(--fire); flex: none; }

/* новости */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news-card {
  position: relative; padding: 24px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.news-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 90, 20, .12), transparent 45%);
}
.news-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.news-card:hover::before { opacity: 1; }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.news-meta time { margin-left: auto; color: var(--dim); font-size: 13px; }
.news-card h3 { font-size: 19px; margin-bottom: 10px; color: #fff; }
.news-card p { color: var(--muted); font-size: 15px; margin: 0; }
.pill.tag-new { background: rgba(255, 106, 0, .15); color: var(--fire); }
.pill.tag-upd { background: rgba(57, 217, 138, .12); color: var(--ok); }
.pill.tag-evt { background: rgba(255, 179, 71, .14); color: var(--amber); }
.pill.srv-pill { background: rgba(255,255,255,.06); color: var(--muted); }
a.pill.srv-pill:hover { color: #fff; }

/* вкладки и фильтры */
.filters { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.tab { padding: 10px 18px; border-radius: 8px; border: 0; background: none; color: var(--muted); font: 700 14px var(--font-body); cursor: pointer; transition: all .2s; }
.tab:hover { color: #fff; }
.tab.active { background: var(--grad); color: #120500; box-shadow: 0 6px 20px -8px rgba(255, 70, 10, .8); }
.priv-tabs { justify-content: center; margin: 0 auto 50px; width: fit-content; max-width: 100%; }
.select-sm { width: auto; padding: 10px 14px; }
.empty.big { padding: 70px 24px; max-width: 640px; margin: 0 auto 80px; }
.empty.big svg { width: 40px; height: 40px; color: var(--fire); margin-bottom: 14px; }
.empty.big h3 { color: #fff; }
.empty.big p { margin: 0; color: var(--muted); }

/* страница сервера */
.srv-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.srv-hero .srv { max-width: 440px; margin-left: auto; }

/* о нас */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-text p { color: var(--muted); font-size: 17px; }
.about-img { position: relative; aspect-ratio: 1; max-width: 400px; margin-left: auto; width: 100%; }
.about-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; -webkit-mask: radial-gradient(circle, #000 58%, transparent 71%); mask: radial-gradient(circle, #000 58%, transparent 71%); }
.timeline { display: grid; max-width: 760px; }
.tl { display: grid; grid-template-columns: 40px 1fr; gap: 20px; position: relative; padding-bottom: 30px; }
.tl::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--muted); font: 700 13px var(--font-mono); }
.tl.done .tl-dot { background: var(--grad); color: #120500; border-color: transparent; box-shadow: var(--glow); }
.tl h3 { margin: 8px 0 6px; font-size: 18px; }
.tl p { margin: 0; color: var(--muted); }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .srv-hero, .about-grid { grid-template-columns: 1fr; }
  .srv-hero .srv { margin: 0 auto; }
  .about-img { order: -1; max-width: 240px; margin: 0 auto; }
}
@media (max-width: 1100px) {
  .nav-links { align-items: stretch; max-height: calc(100vh - 74px); overflow-y: auto; }
  .drop-btn { width: 100%; justify-content: space-between; padding: 16px 12px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.04); border-radius: 0; }
  .dropdown { position: static; width: auto; transform: none; padding: 0; opacity: 1; visibility: visible; display: none; }
  .has-drop.open .dropdown { display: block; }
  .has-drop.open .chev { transform: rotate(180deg); }
  .dropdown-in { background: transparent; border: 0; box-shadow: none; padding: 6px 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .drop-head { display: none; }
  .hero.hero-sm { padding: 110px 0 50px; }
  .hero.hero-sm .hero-logo { max-width: 220px; }
}
@media (max-width: 600px) {
  .mon-grid, .news-grid { grid-template-columns: 1fr; }
  .filters .select-sm { width: 100%; }
  .chat-log { padding: 16px; }
  .chat-head, .chat-form { padding-left: 16px; padding-right: 16px; }
  .msg-meta time { display: none; }
}

/* пункты выпадающего меню не наследуют стиль ссылок шапки */
.nav-links .drop-item { display: grid; padding: 10px; font-size: inherit; color: var(--text); border-bottom: 0; }
.nav-links .drop-item::after { display: none; }
.nav-links .drop-item:hover { color: var(--text); }
.srv-hero .hero-tags { justify-content: flex-start; }
