/* ZARAYSK — minimal layout theme (CSS-only overrides) */

:root {
  --font-family-1: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-family-2: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --minimal-radius: 10px;
  --minimal-radius-lg: 14px;
  --minimal-border: 1px solid var(--transparent-5-w);
  --minimal-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* ── Base ── */
body {
  font-family: var(--font-family-2);
  font-size: 14px;
  letter-spacing: 0.01em;
  background-color: var(--bg) !important;
  background-image: none !important;
}

body[class*="theme__gradient-"] {
  background: var(--bg) !important;
}

#starfield,
.snow,
.snowfall-icon {
  display: none !important;
}

.container-fluid {
  max-width: 1240px;
  padding-inline: 24px;
  padding-block: 16px 32px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
  margin: 0 0 8px;
  padding: 0 4px;
  background: var(--navbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--minimal-border);
  border-radius: 0;
}

.navbar:before {
  display: none;
}

.navbar_menu_left,
.navbar_usermenu {
  height: 56px;
}

.logo-text .logo,
.site_logo_neo img {
  max-height: 28px;
  width: auto;
}

.nav_sitename,
.footer_sitename {
  font-family: var(--font-family-1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
  color: var(--text-default);
}

.online {
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--transparent-3-w);
  border: var(--minimal-border);
}

.online__counter {
  gap: 6px;
}

.online__square-figure {
  background: var(--green) !important;
  box-shadow: 0 0 8px rgba(119, 204, 96, 0.45);
}

.online__count,
.online__item {
  font-size: 12px;
  color: var(--text-custom);
}

/* ── Sidebar ── */
.sidebar {
  width: 68px;
  padding: 12px 10px;
  background: #090d12;
  border-right: var(--minimal-border);
  box-shadow: none;
}

.sidebar:before {
  display: none;
}

.sidebar.opened {
  width: 220px;
}

.sidebar__header {
  border-bottom: var(--minimal-border);
  padding-bottom: 12px;
  height: auto;
}

.sidebar__toggle {
  border-radius: 8px;
  background: var(--transparent-3-w);
  border: var(--minimal-border);
}

.sidebar__list {
  gap: 4px;
  margin-top: 12px;
}

.sidebal__item {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sidebal__item:hover {
  color: var(--text-default);
  background: rgba(255, 255, 255, 0.04);
}

/* Active plate — soft fill, accent text (filled nav chip, unique glow) */
.sidebal__item.active,
.sidebar__submenu.active {
  color: var(--span) !important;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(119, 204, 96, 0.2) 0%,
    rgba(119, 204, 96, 0.1) 55%,
    rgba(119, 204, 96, 0.06) 100%
  ) !important;
  border: none !important;
  box-shadow:
    inset 0 1px 0 rgba(119, 204, 96, 0.22),
    0 4px 16px rgba(119, 204, 96, 0.1);
}

.sidebal__item.active:before,
.sidebal__item.active::after,
.sidebar__submenu.active:before,
.sidebar__submenu.active::after {
  display: none !important;
  content: none !important;
}

.sidebal__item.active:hover,
.sidebar__submenu.active:hover {
  color: var(--span) !important;
  background: linear-gradient(
    135deg,
    rgba(119, 204, 96, 0.26) 0%,
    rgba(119, 204, 96, 0.14) 55%,
    rgba(119, 204, 96, 0.08) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(119, 204, 96, 0.28),
    0 6px 20px rgba(119, 204, 96, 0.14);
}

.sidebal__item.active svg,
.sidebar__submenu.active svg,
.sidebal__item.active .sidebar__item-text,
.sidebar__submenu.active .sidebar__item-text {
  color: var(--span);
  fill: var(--span);
  opacity: 1;
}

.sidebal__item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity 0.18s ease, fill 0.18s ease;
}

.sidebal__item:hover svg {
  opacity: 0.95;
}

/* Collapsed sidebar — compact active chip */
.sidebar:not(.opened) .sidebal__item {
  justify-content: center;
  padding: 11px 10px;
}

.sidebar:not(.opened) .sidebal__item.active {
  border-radius: 14px;
}

.sidebar__sublist {
  border-left: none;
  margin-left: 8px;
  padding-left: 0;
  gap: 2px;
}

.sidebar__subitem {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  border: none;
}

.sidebar__subitem:hover {
  color: var(--text-default);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar__subitem.active {
  color: var(--span);
  font-weight: 600;
  background: rgba(119, 204, 96, 0.12);
  box-shadow: inset 0 1px 0 rgba(119, 204, 96, 0.15);
}

.sidebar__submenu.expanded:not(.active) {
  color: var(--text-default);
  background: rgba(255, 255, 255, 0.03);
  border: none;
}

/* ── Buttons ── */
.button,
button:not(.icon_btn_transparent):not(.snow-toggle__btn):not(.language):not(.header_burger):not(.stop-sound) {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.button:hover,
button:not(.icon_btn_transparent):hover {
  transform: translateY(-1px);
}

.navbar_usermenu > button[onclick*="auth=login"],
.navbar_usermenu > button:last-of-type:not(.language):not(.user__notifications):not(.pay_button):not(.snowfal-icon) {
  background: var(--span) !important;
  color: #fff !important;
  padding: 0 18px;
  height: 36px;
  border: none !important;
}

.navbar_usermenu > button[onclick*="auth=login"]:hover {
  background: #8ed676 !important;
}

.pay_button {
  border-radius: 999px;
  background: var(--transparent-3-w);
  border: var(--minimal-border);
  height: 36px;
  padding: 0 14px;
}

.pay_button:hover {
  background: var(--span-low);
  border-color: rgba(119, 204, 96, 0.25);
  color: var(--span);
}

.icon_btn_transparent,
.language,
.user__notifications {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: var(--minimal-border);
  background: var(--transparent-2-w);
}

.icon_btn_transparent:hover,
.language:hover,
.user__notifications:hover {
  background: var(--transparent-5-w);
  border-color: var(--transparent-10-w);
}

/* ── Cards & blocks ── */
.card,
.popup_modal_content,
.notification-wrapper,
.user__menu,
.language__modal,
.footer_global,
.online__wrapper {
  background: var(--card);
  border: var(--minimal-border);
  border-radius: var(--minimal-radius-lg);
  box-shadow: var(--minimal-shadow);
}

.card {
  padding: 16px;
}

.chips_btn,
.chips_active {
  border-radius: 999px;
  font-size: 12px;
  padding: 7px 14px;
  border-width: 1px;
}

.chips_btn {
  background: var(--transparent-3-w);
  color: var(--text-custom);
  border-color: var(--transparent-5-w);
}

.chips_btn:hover {
  background: var(--transparent-5-w);
  border-color: var(--transparent-10-w);
  color: var(--text-default);
}

.chips_active {
  background: var(--span-low);
  color: var(--span);
  border-color: rgba(119, 204, 96, 0.35);
}

/* ── Server cards (home) ── */
.servers_wrap {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

.server_block {
  background: var(--card) !important;
  border: var(--minimal-border) !important;
  border-radius: var(--minimal-radius-lg) !important;
  box-shadow: var(--minimal-shadow);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.server_block:hover {
  border-color: rgba(119, 204, 96, 0.28) !important;
  transform: translateY(-2px);
}

.server_map_image:after {
  background: linear-gradient(180deg, transparent 0%, rgba(11, 15, 20, 0.92) 100%) !important;
}

.server_block:hover .map {
  scale: 1.01;
}

/* ── Forms ── */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea,
select,
.search-input-block {
  background: var(--input-form) !important;
  border: var(--minimal-border) !important;
  border-radius: var(--minimal-radius) !important;
  color: var(--text-default);
  font-size: 13px;
}

input:focus,
textarea:focus,
select:focus,
.search-input-block:focus {
  outline: none;
  border-color: rgba(119, 204, 96, 0.45) !important;
  box-shadow: 0 0 0 3px var(--span-low);
}

/* ── Footer ── */
.footer_fluid {
  padding-inline: 24px;
}

.footer_global {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 20px 0 12px;
  max-width: 1240px;
}

.footer_global hr {
  border-color: var(--transparent-5-w);
  opacity: 1;
}

.footer_links ul a,
.footer-description {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer_links a:hover {
  color: var(--span);
}

.tabbar_mobile {
  background: rgba(9, 13, 18, 0.96);
  backdrop-filter: blur(12px);
  border-top: var(--minimal-border);
}

.tabbar_mobile a {
  font-size: 11px;
  color: var(--text-secondary);
}

.tabbar_mobile a.tabbar_active {
  color: var(--span);
}

/* ── Modals & notifications ── */
.popup_modal_head {
  font-size: 15px;
  font-weight: 600;
  border-bottom: var(--minimal-border);
}

.iziToast {
  border-radius: var(--minimal-radius-lg) !important;
  background: var(--card) !important;
}

/* ── Tables ── */
table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: var(--minimal-border);
}

table tbody tr:hover {
  background: var(--transparent-2-w);
}

/* ── Search ── */
.modal-searchcontent,
.search_players .modal-searchcontent {
  border-radius: 999px;
  border: var(--minimal-border);
  background: var(--input-form);
}

/* ── User menu ── */
.user__avatar img {
  border-radius: 10px;
  border: 2px solid var(--transparent-10-w);
}

.user__menu {
  border-radius: var(--minimal-radius-lg);
  overflow: hidden;
}

/* ── Stats / banners on home ── */
[class*="statistics"],
[class*="banner"],
[class*="slider"],
[class*="advert"] {
  border-radius: var(--minimal-radius-lg);
}

/* ── Typography helpers ── */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-family-1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--transparent-10-w);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--transparent-20-w);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container-fluid {
    padding-inline: 16px;
    padding-block: 12px 80px;
  }

  .navbar {
    height: 52px;
  }
}

/* ──────────────────────────────────────────────────────────────
   ZARAYSK poster shell — approved Superdesign direction, v10
   Green is primary, blue is an accent. The palette stays muted.
   ────────────────────────────────────────────────────────────── */

:root {
  --z-ink: #0b0b0b;
  --z-surface: #101211;
  --z-panel: #151816;
  --z-panel-2: #1a1d1b;
  --z-paper: #f0efea;
  --z-green: #9bcb68;
  --z-blue: #5aa2d7;
  --z-muted: #92968f;
  --z-line: rgba(240, 239, 234, 0.14);
  --z-line-strong: rgba(240, 239, 234, 0.34);
  --z-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --z-body: "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body,
body[class*="theme__gradient-"] {
  background: var(--z-ink) !important;
  color: var(--z-paper);
  font-family: var(--z-body);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--z-blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.global-container {
  min-height: 100vh;
  background: var(--z-surface);
}

.page-home .global-container {
  background-color: var(--z-surface);
  background-image:
    linear-gradient(180deg, rgba(16, 18, 17, 0.78) 0%, rgba(16, 18, 17, 0.9) 520px, var(--z-surface) 930px),
    url("../img/zaraysk-poster-field.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 860px;
}

.container-fluid {
  max-width: none;
  padding: 0 28px 36px;
}

body:has(.sidebar).sidebar-collapse,
body:has(.sidebar.opened).sidebar-collapse {
  margin-left: 190px;
}

/* Top bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: 64px;
  height: 64px;
  margin: 0 -28px;
  padding: 0 28px;
  background: rgba(11, 11, 11, 0.96);
  border-bottom: 1px solid var(--z-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar::before {
  display: none;
}

.navbar_menu_left,
.navbar_usermenu {
  height: 64px;
}

.navbar_menu_left {
  gap: 10px;
}

.logo-text {
  min-width: 152px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 18px;
  border-right: 1px solid var(--z-line);
}

.zaraysk-symbols {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.zaraysk-brand-mark,
.zaraysk-footer-mark {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: block;
  color: var(--z-green);
  --sun-face: var(--z-ink);
}

.zaraysk-footer-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.zaraysk-sun-face-line {
  stroke: var(--sun-face, var(--z-ink));
}

.zaraysk-sun-face-fill {
  fill: var(--sun-face, var(--z-ink));
}

.nav_sitename,
.footer_sitename {
  width: auto;
  max-width: none;
  color: var(--z-paper);
  font-family: var(--z-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.site_logo_neo,
.site_logo_neo img,
.logo-text .logo {
  max-width: 136px;
  max-height: 34px;
  object-fit: contain;
}

.zaraysk-game-pill,
.online {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 11px;
  color: var(--z-muted);
  background: var(--z-panel-2);
  border: 1px solid var(--z-line);
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.zaraysk-game-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.online__counter {
  gap: 7px;
}

.online__square-figure {
  width: 8px;
  height: 8px;
  background: var(--z-green) !important;
  box-shadow: none;
}

.online__count {
  color: var(--z-paper);
  font: 800 11px/1 var(--z-body);
}

.online__wrapper,
.user__menu,
.notification-wrapper,
.language__modal {
  border: 1px solid var(--z-line);
  border-radius: 0;
  background: var(--z-panel-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.navbar_usermenu > button[onclick*="auth=login"],
.navbar_usermenu > button:last-of-type:not(.language):not(.user__notifications):not(.pay_button):not(.snowfal-icon) {
  min-height: 36px;
  padding: 0 15px;
  color: var(--z-ink) !important;
  background: var(--z-paper) !important;
  border: 1px solid var(--z-paper) !important;
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar_usermenu > button[onclick*="auth=login"]:hover {
  color: var(--z-ink) !important;
  background: var(--z-blue) !important;
  border-color: var(--z-blue) !important;
}

.pay_button,
.icon_btn_transparent,
.language,
.user__notifications,
.user__avatar img {
  border-radius: 0;
}

/* Left navigation */
.sidebar,
.sidebar.opened {
  width: 190px;
  padding: 18px 12px 16px;
  background: #0d0f0e;
  border-right: 1px solid var(--z-line);
  box-shadow: none;
}

.sidebar::before {
  display: none;
}

.sidebar__wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar__header {
  min-height: 40px;
  height: auto;
  justify-content: flex-start;
  padding: 0 10px 13px;
  border-bottom: 1px solid var(--z-line);
}

.sidebar__header-text,
.sidebar.opened .sidebar__header-text {
  display: inline-block;
  opacity: 1;
  visibility: visible;
  color: #696f69;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar__toggle {
  display: none;
}

.sidebar__list {
  gap: 5px;
  margin-top: 14px;
}

.sidebal__item,
.sidebar.opened .sidebal__item,
.sidebar:not(.opened) .sidebal__item {
  min-height: 44px;
  display: flex;
  justify-content: flex-start;
  padding: 0 12px;
  gap: 12px;
  color: var(--z-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sidebal__item:hover,
.sidebar__submenu.expanded:not(.active) {
  color: var(--z-paper);
  background: var(--z-panel);
  border-color: var(--z-line);
}

.sidebal__item.active,
.sidebar__submenu.active,
.sidebal__item.active:hover,
.sidebar__submenu.active:hover {
  color: var(--z-ink) !important;
  background: var(--z-green) !important;
  border-color: var(--z-green) !important;
  box-shadow: none;
}

.sidebal__item.active::before,
.sidebal__item.active::after,
.sidebar__submenu.active::before,
.sidebar__submenu.active::after {
  display: none !important;
}

.sidebal__item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
  opacity: 0.72;
}

.sidebal__item.active svg,
.sidebar__submenu.active svg {
  color: var(--z-ink) !important;
  fill: currentColor;
  opacity: 1;
}

.sidebal__item.active .sidebar__item-text,
.sidebar__submenu.active .sidebar__item-text {
  color: var(--z-ink) !important;
}

.sidebal__item .sidebar__item-text {
  display: block;
  opacity: 1;
  visibility: visible;
}

.sidebar__sublist {
  margin-left: 0;
  padding-left: 10px;
  border-left: 1px solid var(--z-line);
}

.sidebar__subitem,
.sidebar__flyout .sidebar__subitem {
  color: var(--z-muted);
  border-radius: 0;
  font-size: 11px;
}

.sidebar__subitem.active {
  color: var(--z-green);
  background: rgba(155, 203, 104, 0.08);
}

/* Home poster lead */
.zaraysk-home-intro,
.zaraysk-home-section,
.page-home .container-fluid > .row:has(.info-block__wrapper-global) {
  width: min(100%, 1380px);
  margin-inline: auto;
}

.zaraysk-home-intro {
  order: 1;
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--z-line);
}

.zaraysk-home-intro__kicker,
.zaraysk-home-intro__rail,
.zaraysk-section-index,
.server-card__top,
.zaraysk-poster-card__meta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.zaraysk-home-intro__kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--z-green);
}

.zaraysk-home-intro__kicker span:last-child {
  color: var(--z-muted);
}

.zaraysk-home-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  gap: 42px;
  padding: 26px 0 30px;
}

.zaraysk-home-intro h1 {
  margin: 0;
  color: var(--z-paper);
  font-family: var(--z-display);
  font-size: clamp(50px, 6.2vw, 94px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.zaraysk-home-intro h1 span {
  color: var(--z-green);
}

.zaraysk-home-intro__copy {
  padding-bottom: 5px;
}

.zaraysk-home-intro__copy p {
  margin: 0 0 22px;
  color: var(--z-muted);
  font-size: 15px;
  line-height: 1.55;
}

.zaraysk-home-intro__copy a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 15px;
  color: var(--z-ink);
  background: var(--z-blue);
  border: 1px solid var(--z-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.zaraysk-home-intro__copy a:hover {
  background: var(--z-paper);
  border-color: var(--z-paper);
}

.zaraysk-home-intro__rail {
  display: flex;
  gap: 22px;
  padding-top: 16px;
  color: #686e68;
  border-top: 1px solid var(--z-line);
}

.zaraysk-home-intro__rail span::before {
  content: "/";
  margin-right: 7px;
  color: var(--z-green);
}

/* Home module ordering and optional notice */
.page-home .container-fluid > .row:has(.info-block__wrapper-global) {
  order: 2;
  margin-top: 14px;
}

.zaraysk-servers-section {
  order: 3;
}

.zaraysk-posters-section {
  order: 4;
}

.page-home .info-block__wrapper,
.page-home .info-block__wrapper-global {
  gap: 8px;
}

.page-home .info-block__card {
  min-height: 44px;
  height: auto;
  justify-content: center;
  gap: 2px;
  padding: 9px 14px;
  color: var(--z-ink);
  background: var(--z-green) !important;
  background-image: none !important;
  border: 1px solid var(--z-green);
  border-radius: 0;
}

.page-home .info-block__title,
.page-home .info-block__description {
  color: var(--z-ink) !important;
  font-family: var(--z-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-home .info-block__description {
  opacity: 0.65;
}

.page-home .info-block__card > img {
  display: none;
}

/* Reusable section heading */
.zaraysk-home-section {
  margin-top: 48px;
}

.zaraysk-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--z-line);
}

.zaraysk-section-index {
  color: var(--z-green);
}

.zaraysk-section-index.is-blue {
  color: var(--z-blue);
}

.zaraysk-section-head h2 {
  margin: 8px 0 0;
  color: var(--z-paper);
  font-family: var(--z-display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.zaraysk-section-head p {
  max-width: 390px;
  margin: 0;
  color: var(--z-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Filters */
.zaraysk-filter-row {
  margin-bottom: 8px;
}

.servers_filter.card {
  min-height: 48px;
  padding: 5px;
  align-items: center;
  background: var(--z-panel);
  border: 1px solid var(--z-line);
  border-radius: 0;
  box-shadow: none;
}

.filter_chips {
  gap: 5px;
}

.chips_btn,
.chips_active {
  min-height: 36px;
  padding: 0 13px;
  color: var(--z-muted);
  background: var(--z-panel-2);
  border: 1px solid var(--z-line);
  border-radius: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chips_btn:hover {
  color: var(--z-paper);
  background: #242824;
  border-color: var(--z-line-strong);
}

.chips_active,
.chips_btn.chips_active {
  color: var(--z-ink);
  background: var(--z-paper);
  border-color: var(--z-paper);
}

#updateservers,
button#updateservers {
  width: 36px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--z-muted);
  background: transparent;
  border: 1px solid var(--z-line);
  border-radius: 0;
  cursor: pointer;
}

#updateservers:hover {
  color: var(--z-paper);
  background: var(--z-panel-2);
  border-color: var(--z-line-strong);
}

#updateservers > svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

/* Server cards */
.servers_wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px;
}

.server_block,
.server_block.is-featured,
.server_block.is-paper {
  min-width: 0;
  min-height: 330px;
  height: auto !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
  color: var(--z-paper);
  background:
    radial-gradient(circle at 1px 1px, rgba(240, 239, 234, 0.055) 1px, transparent 1.2px) 0 0 / 12px 12px,
    linear-gradient(145deg, #151816 0%, #111311 100%) !important;
  border: 1px solid var(--z-line) !important;
  border-radius: 0 !important;
  box-shadow: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.server_block.is-featured {
  color: var(--z-ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 11, 11, 0.085) 1px, transparent 1.2px) 0 0 / 12px 12px,
    var(--z-green) !important;
  border-color: var(--z-green) !important;
}

.server_block.is-paper {
  color: var(--z-ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 11, 11, 0.06) 1px, transparent 1.2px) 0 0 / 12px 12px,
    var(--z-paper) !important;
  border-color: var(--z-paper) !important;
}

.server_block:hover {
  transform: translateY(-3px);
  border-color: var(--z-line-strong) !important;
}

.server_block.is-featured:hover {
  border-color: var(--z-paper) !important;
}

.server_map_image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.23;
  pointer-events: none;
}

.server_block > .server_map_image {
  display: none;
}

.server_map_image::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.05), rgba(11, 11, 11, 0.72)) !important;
}

.is-featured .server_map_image,
.is-paper .server_map_image {
  opacity: 0.12;
  filter: grayscale(1) contrast(1.1);
}

.is-featured .server_map_image::after,
.is-paper .server_map_image::after {
  background: linear-gradient(180deg, transparent, rgba(11, 11, 11, 0.14)) !important;
}

.server_map_image .map {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.08);
  transition: transform 0.2s ease;
}

.server_block:hover .map {
  transform: scale(1.02);
}

.server-card__top {
  min-height: 53px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid currentColor;
  border-color: rgba(128, 128, 128, 0.34);
}

.server-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.server-card__status i {
  width: 7px;
  height: 7px;
  display: block;
  background: var(--z-green);
}

.is-featured .server-card__status i,
.is-paper .server-card__status i {
  background: var(--z-ink);
}

.top_server_block {
  min-height: 205px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 18px 17px;
}

.top_server_block::before,
.top_server_block::after {
  position: absolute;
  z-index: 1;
  color: currentColor;
  line-height: 1;
  pointer-events: none;
}

.top_server_block::before {
  content: "\2726";
  top: 23px;
  left: 22px;
  font-size: 20px;
  opacity: 0.36;
}

.top_server_block::after {
  content: "+";
  top: 55px;
  left: 47px;
  font-family: var(--z-display);
  font-size: 18px;
  font-weight: 800;
  opacity: 0.22;
}

.server_info_block {
  min-width: 0;
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  gap: 10px;
}

.server_name_ip {
  min-width: 0;
  align-items: flex-end;
  gap: 9px;
}

.server_name_custom {
  width: 100%;
  max-width: min(100%, 340px);
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-family: var(--z-display);
  font-size: clamp(21px, 1.8vw, 29px);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.server_name_ip:hover .server_name_custom {
  color: inherit;
}

.btn-clipboard {
  flex: 0 0 auto;
  opacity: 0.55;
}

.btn-clipboard svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.server_players_mapname {
  height: auto;
  align-items: center;
  gap: 8px;
  color: currentColor;
  opacity: 0.62;
}

.server_map_name,
.server_city {
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.server_geoip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-card__crosshair {
  display: none;
}

.server-card__crosshair::before,
.server-card__crosshair::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.server-card__sun {
  width: clamp(112px, 9vw, 132px);
  height: clamp(112px, 9vw, 132px);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 0;
  display: block;
  color: var(--z-blue);
  --sun-face: var(--z-ink);
  opacity: 0.94;
  transform: rotate(-5deg);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.server_block.is-featured .server-card__sun {
  color: var(--z-ink);
  --sun-face: var(--z-green);
}

.server_block.is-paper .server-card__sun {
  color: var(--z-ink);
  --sun-face: var(--z-paper);
}

.server_block:hover .server-card__sun {
  transform: rotate(0deg) scale(1.025);
}

.server-card__crosshair::before {
  width: 130px;
  height: 1px;
  left: -13px;
  top: 51px;
}

.server-card__crosshair::after {
  width: 1px;
  height: 130px;
  left: 51px;
  top: -13px;
}

.server-card__bottom {
  min-height: 70px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: auto;
  border-top: 1px solid rgba(128, 128, 128, 0.34);
}

.server-card__players {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
}

.server-card__players strong {
  color: inherit;
  font-family: var(--z-display);
  font-size: 22px;
  line-height: 1;
}

.server-card__players span {
  color: var(--z-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.is-featured .server-card__players span,
.is-paper .server-card__players span {
  color: rgba(11, 11, 11, 0.58);
}

.server_button_play {
  display: flex;
}

.server_button,
.server_button.play {
  width: auto;
  min-width: 128px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  color: var(--z-ink);
  background: var(--z-blue);
  border: 0;
  border-left: 1px solid rgba(11, 11, 11, 0.35);
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  backdrop-filter: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.server_button:hover {
  color: var(--z-ink);
  background: var(--z-paper);
  outline: 0;
}

.server_button svg,
.server_button:hover svg {
  width: 12px;
  height: 12px;
  margin: 0;
  fill: currentColor;
  transform: none;
}

.bottom_server_block {
  position: relative;
  z-index: 3;
}

.progress,
.progress-value {
  height: 3px;
  border-radius: 0;
}

.progress {
  width: 100%;
  background: rgba(128, 128, 128, 0.22);
  backdrop-filter: none;
}

.progress-value {
  background: var(--z-green);
}

/* Poster cards */
.zaraysk-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.zaraysk-poster-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: var(--z-paper);
  background: var(--z-panel);
  border: 1px solid var(--z-line);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.zaraysk-poster-card:hover {
  color: var(--z-paper);
  transform: translateY(-3px);
  border-color: var(--z-paper);
}

.zaraysk-poster-card > img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.zaraysk-poster-card__meta {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border-top: 1px solid var(--z-line);
}

.zaraysk-poster-card__meta::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--z-green);
}

.zaraysk-poster-card__meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zaraysk-poster-card__meta b {
  margin-right: 8px;
  color: var(--z-blue);
}

/* Flat global components */
.card,
.popup_modal_content,
.footer_global,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea,
select,
.search-input-block,
.button,
button:not(.icon_btn_transparent):not(.snow-toggle__btn):not(.language):not(.header_burger):not(.stop-sound) {
  border-radius: 0;
  box-shadow: none;
}

.card,
.popup_modal_content {
  background: var(--z-panel);
  border-color: var(--z-line);
}

.card {
  background-image: radial-gradient(circle at 1px 1px, rgba(240, 239, 234, 0.035) 1px, transparent 1.2px);
  background-size: 13px 13px;
}

.left_footer > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

input:focus,
textarea:focus,
select:focus,
.search-input-block:focus {
  border-color: var(--z-blue) !important;
  box-shadow: 0 0 0 2px rgba(90, 162, 215, 0.18);
}

.footer_fluid {
  padding-inline: 28px;
}

.footer_global {
  max-width: 1380px;
  padding: 24px 0 14px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--z-line);
}

.footer_links a:hover {
  color: var(--z-blue);
}

@media (max-width: 1120px) {
  .servers_wrap,
  .zaraysk-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .server_block:nth-child(3):last-child,
  .zaraysk-poster-card:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .zaraysk-poster-card:nth-child(3):last-child {
    width: calc(50% - 7px);
  }
}

@media (max-width: 860px) {
  body:has(.sidebar).sidebar-collapse,
  body:has(.sidebar.opened).sidebar-collapse {
    margin-left: 164px;
  }

  .sidebar,
  .sidebar.opened {
    width: 164px;
    padding-inline: 8px;
  }

  .logo-text {
    min-width: auto;
  }

  .zaraysk-home-intro__layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .zaraysk-home-intro__copy {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 68px;
    overflow-x: hidden;
  }

  body,
  .global-container,
  .container-fluid,
  .zaraysk-home-section,
  .row,
  .row > * {
    min-width: 0;
    max-width: 100%;
  }

  body,
  .global-container {
    overflow-x: hidden;
  }

  .page-home .global-container {
    background-position: 67% top;
    background-size: auto 660px;
  }

  body:has(.sidebar).sidebar-collapse,
  body:has(.sidebar.opened).sidebar-collapse {
    margin-left: 0;
  }

  .container-fluid {
    padding: 0 14px 88px;
  }

  .navbar {
    min-height: 58px;
    height: 58px;
    margin: 0 -14px;
    padding: 0 14px;
  }

  .navbar_menu_left,
  .navbar_usermenu {
    height: 58px;
  }

  .logo-text {
    padding-right: 10px;
    border-right: 0;
  }

  .navbar_usermenu > button[onclick*="auth=login"],
  .navbar_usermenu > button:last-of-type:not(.language):not(.user__notifications):not(.pay_button):not(.snowfal-icon) {
    width: 40px;
    min-width: 40px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  .navbar_usermenu > button[onclick*="auth=login"] svg,
  .navbar_usermenu > button:last-of-type:not(.language):not(.user__notifications):not(.pay_button):not(.snowfal-icon) svg {
    width: 15px;
    height: 15px;
    margin: 0;
  }

  .zaraysk-game-pill,
  .online,
  .pay_button,
  .language,
  .user__notifications {
    display: none;
  }

  .zaraysk-home-intro {
    padding: 26px 0 20px;
  }

  .zaraysk-home-intro__kicker span:last-child {
    display: none;
  }

  .zaraysk-home-intro__layout {
    padding: 20px 0 24px;
  }

  .zaraysk-home-intro h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .zaraysk-home-intro__rail {
    gap: 14px;
    overflow-x: auto;
  }

  .zaraysk-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .servers_filter.card {
    min-width: 0;
    align-items: stretch;
  }

  .filter_chips {
    min-width: 0;
    max-width: calc(100% - 41px);
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .servers_wrap,
  .zaraysk-poster-grid {
    grid-template-columns: 1fr !important;
  }

  .server_block:last-child,
  .zaraysk-poster-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .server_block,
  .server_block.is-featured,
  .server_block.is-paper {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
  }

  .top_server_block {
    min-height: 175px;
  }

  .server_button,
  .server_button.play {
    width: 78px;
    min-width: 78px;
  }

  .server-card__bottom {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .server_name_ip {
    width: 100%;
  }

  .server_name_custom {
    width: 100%;
    max-width: 100%;
    font-size: clamp(19px, 6.2vw, 24px);
  }

  .server-card__sun {
    width: 102px;
    height: 102px;
    top: 13px;
    right: 13px;
  }

  .footer_fluid {
    padding-inline: 14px;
  }

  .tabbar_mobile {
    background: rgba(240, 239, 234, 0.97);
    color: var(--z-ink);
    border-top: 1px solid var(--z-ink);
    backdrop-filter: none;
  }

  .tabbar_mobile a,
  .tabbar_mobile a.tabbar_active {
    color: var(--z-ink);
    border-right: 1px solid rgba(11, 11, 11, 0.22);
  }

  .tabbar_mobile a.tabbar_active {
    background: var(--z-green);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .server_block,
  .zaraysk-poster-card,
  .server_map_image .map {
    transition: none;
  }
}
