@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');
:root {
  --primary: #ffffff;
  --primary-soft: #8f8f8f;
  --glass: rgba(27, 27, 27, 0.205);
  --glass-border: rgba(36, 36, 36, 0.123);
}

/*suka blyat*/
@media (max-width: 1524px) {
.wrapper {
  display: none !important;
}

.nav-left {
  margin-left: 10px !important;
  }
  
.logo {
    height: 32px;
    margin-left: auto;
}
  
.nav-right {
    margin-right: 110px !important;
}
html, body {
  height: 100% !important;
  width: 100% !important;
  background-color:#090a0b;
}
.legal-footer {
  bottom: 0 !important; 
}
}

/*1084px*/
@media (max-width: 1084px) {
.nav-left {
  margin-left: 0px !important;
  }

.logo {
  margin-left: 80px !important;
}

.nav-right {
    margin-right: 0px !important;
    margin-left: 80px !important;
}

.nav-center {
  gap: 15px !important;
}
  
.nav-center a {
  font-size: 24px !important;
  margin: 0 5px !important;
}
html, body {
  height: 100% !important;
  width: 100% !important;
  background-color:#090a0b;
}

}

/*768px*/
@media (max-width: 768px) {
.nav-left {
  margin-left: 0px !important;
  }

.logo {
  margin-left: 50px !important;
}
html, body {
  height: 100% !important;
  width: 100% !important;
  background-color:#090a0b;
}

}

/*725px*/
@media (max-width: 725px) {


.nav-left {
  justify-content: center !important;
  align-items: center !important;
  margin-left: 0px !important;  
  margin-right: 0px !important;
  }

.logo {
  justify-content: center !important;
  align-items: center !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}
.nav-right {
  display: flex !important;
  position: fixed !important;
  justify-content: center !important;
  right: 15px !important;
  gap: 2px !important;
}

.nav-center {
    margin-top: 75px !important;
    display: flex !important;
    gap: 10px !important;
    

}
.top-nav {
    justify-content: center !important;
}
.btn {
  width: 100% !important;
  max-width: 460px !important;
  height: 55px !important;
  font-size: 20px !important;
}
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 10px !important;
  margin-right: 10px !important;
}
html, body {
  height: 100% !important;
  width: 100% !important;
  background-color:#090a0b;
}

.spacer {
  margin-top: 250px !important;
}

.snake-background {
  width: 300% !important;
  height: 100% !important;
}

.content svg {
  width: 360px;
  height: auto;
}

.footer {
  padding: 20px 40px !important;
}
.footer-left {
  display: flex !important;
}
.footer-left span {
  display: flex !important;
  max-width: 10px !important;
  font-size: 14px !important;
  font-style: bold !important;
}



.overlay .top-nav .hamburger {
  justify-content: center !important;
  align-items: center !important;
  position: fixed !important;
  top: 15px !important;
  left: 15px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 13000 !important;
  color: #ffffff;
}

.overlay .top-nav .hamburger .bar {
  display: block;
  position: static !important;
  width: 26px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  margin: 4px 0;
  transition: transform .25s ease, opacity .25s ease;
}


.nav-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.651) !important;
  display: none !important;
  z-index: 12990 !important; 
}
.nav-backdrop.show { display: block !important; }

.overlay .top-nav .nav-center {
  display: none !important;
}

.overlay .top-nav .nav-center.open {
  display: flex !important;
  visibility: visible !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

.overlay .top-nav .nav-center a {
  display: block !important;
  width: 100% !important;
  pointer-events: auto !important;
  text-decoration: none !important;
}


body.no-scroll {
  overflow: hidden !important;
  touch-action: none !important;
}


}



.hamburger { display: none !important; }
.nav-backdrop { display: none !important; }



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color:#090a0b;
}

.topbarback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 80px;
  background: rgba(0, 0, 0, 0);
  color : #00000000;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 40px;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: #090a0b; 
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}
.top-nav.scrolled {
  background: rgba(10, 10, 10, 0.24);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #141414;
}

.nav-left {
  margin-left: 210px;
}

.logo {
   height: 32px;
  margin-left: 210px;
  transition: transform 0.1s ease;
  cursor: pointer;
}
.logo:active {
  transform: scale(0.95);
}


.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-center a.active {
  color: #ffffff;
  font-weight: 800;
}

.nav-center a {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.05em;
  color: rgba(87, 87, 87, 1);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
  user-select: none;
}
.nav-center a:hover {
  color: #ffffff;
}
.nav-right {
  display: flex;
  gap: 15px;
  margin-right: 350px;
}
.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: #777;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: white;
}

.social-icon {
  color: #777;
  font-size: 24px;
  margin-left: 12px;
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: #ffffff;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  right: 30px;
  top: 70px;
}

#search-input {
  padding: 5px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  background: var(--glass);
  color: #e0e0e0;
  width: 150px;
}

#search-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(60, 130, 255, 0.4);
  transition: transform 0.2s, background 0.2s;
}

#search-btn i {
  font-size: 16px;
  color: #000000;
}

#search-btn .material-icons {
  font-size: 14px;
}

#search-btn:hover {
  background: linear-gradient(135deg, var(--primary) , var(--primary-soft));
  transform: scale(1.01);
}
.main {
  display: flex;
  min-height: calc(100vh - 120px);
}

  /* Горизонтальный сайдбар */
  .sidebar {
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    max-width: 540px;
    width: 100%;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 20px 15px;
    border-right: none;
    border-bottom: 1px solid rgba(67, 67, 67, 0.17);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.21);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Для Safari */
    white-space: nowrap;
    box-shadow: none;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }

.sidebar a i {
  margin-right: 6px;
}

  /* Горизонтальный скроллбар для сайдбара */
  .sidebar::-webkit-scrollbar {
    display: none;
    height: 2px;
    width: auto;
  }

  .sidebar::-webkit-scrollbar-track {
    background: transparent;
    display: none;
  }

  .sidebar::-webkit-scrollbar-thumb {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
  }

  .sidebar::-webkit-scrollbar-thumb:hover {
    display: none;
    background: rgba(255, 255, 255, 0.25);
  }

  /* Горизонтальный список */
  .sidebar ul {
    justify-content: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .sidebar li {
    list-style: none;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Категории в виде чипсов */
  .sidebar strong {
    display: none;
  }

  /* Ссылки в виде кнопок */
  .sidebar a {
    padding: 8px 14px;
    margin: 0;
    border-radius: 6px;
    font-size: 16px;
    background: #00000000;
    gap: 8px;
    text-decoration: none;
  }

  .sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
  }

  .sidebar a.active {
    color: var(--primary);
  }
  

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

  .content {
  top: 50px;
  justify-content: center;
  text-align: center;
  width: 100%;
  position: relative;
  flex: 1 1 auto;
  background: #090a0b;
  margin: 0;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 32px;
  height: 100%;
  }

.content h1 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 10px;
}

.content h2 {
  font-size: 18px;
  color: var(--primary);
  margin-top: 25px;
  margin-bottom: 8px;
}

.content p {
  color: #ccc;
  margin-bottom: 12px;
  font-size: 14px;
}
.legal-footer {
  width: 100%;
  background-color: #090a0b;
  color: #090a0b;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  box-sizing: border-box;
  gap: 20px;
  font-family: sans-serif;
  font-size: 14px;
  border-top: 1px solid #090a0b;
}
#toc {
  margin-top: 10px;
  color: #59656b !important;
  position: fixed;
  top: 100px;
  right: 40px;
  width: 200px;
  max-height: 80vh;
  overflow-y: auto;
  background: #090a0b;
  padding-left: 15px;
}
#toc a:hover {
  color: #fff !important;
  text-decoration: underline;
}
#toc a {
  color: var(--primary-soft) !important;
  text-decoration: underline;
}
.legal-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.server-name {
  font-weight: 600;
  color: #eeeeee;
  margin: 0;
}

.mojang-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgb(255, 255, 255);
}

.mojang-legal img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}

.legal-links a {
  color: #888888;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 2px;
}

.legal-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.legal-links a:hover {
  color: #ffffff;
}

.legal-links a:hover::after {
  width: 100%;
}

.legal-links a.active {
  color: #ffffff;
  font-weight: bold;
}

.legal-links a.active::after {
  width: 100%;
  background-color: #ffffff;
}

.legal-right {
  display: flex;
  align-items: center;
}

.shop-button {
  background-color: #0b0c0e;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

.shop-button:hover {
  background-color: #13131396;
  color: #ffffff;
}
.legal-footer {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;

  pointer-events: auto;
}

.legal-footer a {
  pointer-events: auto;
}

.legal-footer * {
  -webkit-user-drag: none;
  user-drag: none;
}

.blue-text {
  color: var(--primary-soft);
}

#dc-btn i, #tg-btn i {
  font-size: 16px;
  color: #aaa;
  transition: color 0.2s;
}

#dc-btn:hover i, #tg-btn:hover i {
  color: var(--primary-soft);
}

#dc-btn {
  margin-left: 15px;
  margin-right: 5px;
}

#tg-btn {
  margin-left: 5px;
  margin-right: 2px;
}

#dc-btn:last-child, #tg-btn:last-child {
  margin-right: 0;
}

.welcome-image {
  display: block;
  margin: 20px auto;
  width: 950px;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
}

.infobox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  background-color: #2e2e2e;
  color: #e0e0e0;

  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.infobox i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1.6;
}


.infobox-info {
  background-color: #2e2e2e;
  color: #e0e0e0;
}


.infobox-warning {
  background-color: #3d2d20;
  color: #f3e6d2;
}

.wrapper {
  height: 80px;
}

hr {
  border: none;
  height: 1px;
  background-color: #444;
  margin: 20px 0;
}

.highlight-block {
  position: relative;
  padding: 12px 16px;
  margin: 20px 0;
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.6;
}


.highlight-block::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  height: calc(100% - 16px);
  width: 4px;
  background: var(--primary);
  border-radius: 4px;
}
.social-links {
  display: flex;
  justify-content: left;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
  font-size: 20px;
}



.social-links a::after {
  content: ' ↗';
  font-size: 0.9em;
  color: inherit;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary-soft);
}

a {
  color: var(--primary);
}

a:visited {
  color: var(--primary-soft);
}

.footer a {
  color: inherit;
  text-decoration: none;
  font-weight: normal;
}
.status-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

  .server-card {

    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px #090a0b;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e0e0e0;
    font-family: "Segoe UI", sans-serif;
    width: 458px;
  }

  
.favicon {
  width: 82px;
  height: 82px;
}

  .server-info h2 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
  }

  .server-info p {
    margin: 3px 0;
    font-size: 14px;
  }

  .error {
    color: red;
  }

  .online-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: #222;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  top: 120%;
  left: 0;
  z-index: 10;
  width: max-content;
  max-width: 300px;
  box-shadow: 0 0 10px #090a0b;
  transition: opacity 0.3s ease;
}

.online-wrapper:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.player-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.player-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.no-players {
  font-size: 14px;
  color: #aaa;
}
.status {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
  display: inline-block;
  border: 1px solid transparent;
  line-height: 1;
}

.online {
  background-color: #2ecc71;
  color: #000000;
  border-color: #2ecc71;
}

.offline {
  background-color: #e74c3c;
  color: #000000;
  border-color: #e74c3c;
}
.divider {
color: #090a0b;
}

.admin-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.admin-card {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  width: 180px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Segoe UI", sans-serif;
  user-select: none;
  pointer-events: auto;
}

.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(41, 41, 41, 0.3);
}

.admin-card img {
  border-radius: 2px;
  margin-bottom: 10px;
  user-select: none;
  pointer-events: none;
}
.admin-card p {
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.4em;
}
.error-page {
  text-align: center;
  margin-top: 60px;
  color: #ffffff;
  animation: fadeIn 0.4s ease-in-out;
}
.error-page h1 {
  font-size: 1.8rem;
  margin-top: 20px;
}
.error-page img {
  opacity: 0.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet - 1200px */
@media (max-width: 1200px) {
  #toc {
    display: none;
  }

  .content {
    padding: 22px 30px 40px 30px;
  }
}



/* Small Tablet - 900px - HORIZONTAL SIDEBAR */
@media (max-width: 900px) {
  .main {
    flex-direction: column;
    margin-top: 80px;
  }

  /* Горизонтальный сайдбар */
  .sidebar {
    width: 100% !important;
    max-width: 470px !important;
  }

  /* Горизонтальный скроллбар для сайдбара */
  .sidebar::-webkit-scrollbar {
    height: 6px;
    width: auto;
  }

  .sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
  }

  .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  /* Горизонтальный список */
  .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .sidebar li {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Категории в виде чипсов */
  .sidebar strong {
    display: none;
  }

  /* Ссылки в виде кнопок */
  .sidebar a {
    padding: 8px 14px;
    margin: 0;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    background: #0e0f11;
    gap: 8px;
  }

  .sidebar a:hover {
    background: #1a1b1d;
  }

  .sidebar a.active {
    background: #1f2022;
    color: var(--primary);
  }
  

  .content {
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
    padding: 30px 40px;
  }

  .welcome-image {
    width: 100%;
    height: auto;
  }
}



/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading State */
.content.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.content.loading::after {
  content: 'Загрузка...';
  font-size: 16px;
  color: var(--primary-soft);
}

/* Highlight animation for sections */
.content h1:target,
.content h2:target,
.content h3:target {
  animation: highlightSection 1.5s ease;
}

@keyframes highlightSection {
  0% {
    background: rgba(255, 255, 255, 0.08);
  }
  100% {
    background: transparent;
  }
}

/* КТОЧИТАЕТТОТЛОХХИ-ХИ-ХИ-ХА */