/*
  Страница "О сервере".
  Открывается кнопкой О сервере в навигации.
*/

.server-page {
  display: none;
  min-height: 100vh;
  padding: 104px 0 70px;
  position: relative;
  z-index: 4;
  background: transparent;
}

.server-page.is-open {
  display: block;
}

.server-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,6,10,.18), rgba(3,6,10,.55)),
    radial-gradient(circle at 50% 15%, rgba(255,80,0,.10), transparent 26%);
}

.server-page .container {
  position: relative;
  z-index: 2;
}

.server-layout {
  display: grid;
  grid-template-columns: 286px minmax(0,1fr);
  align-items: start;
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10,12,20,.94);
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
}

.server-side {
  position: sticky;
  top: 96px;
  align-self: start;
  background: rgba(15,15,29,.92);
  border-right: 1px solid rgba(255,255,255,.10);
}

.server-side__item {
  min-height: 62px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.62);
  cursor: pointer;
  transition: .2s;
}

.server-side__item:hover,
.server-side__item.active {
  color: #fff;
  background: linear-gradient(90deg,rgba(180,31,43,.28),rgba(20,19,34,.7));
  box-shadow: inset 3px 0 0 #d22b38;
}

.server-side__ico {
  width: 26px;
  text-align: center;
  color: #d64245;
  font-size: 20px;
}

.server-side__item b {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.server-side__item span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
}

.server-main {
  min-width: 0;
  min-height: 760px;
  padding: 0 34px 46px;
  background: linear-gradient(180deg, rgba(17,17,31,.96), rgba(12,12,23,.96));
}

.server-title {
  min-height: 112px;
  margin: 0 -34px 24px;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(211,45,59,.55);
  background: linear-gradient(90deg,rgba(94,22,48,.45),rgba(18,17,31,.70));
}

.server-title__diamond {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  border: 2px solid rgba(255,255,255,.18);
  transform: rotate(45deg);
}

.server-title__diamond span {
  transform: rotate(-45deg);
  color: #ff3b46;
}

.server-title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2vw, 25px);
  letter-spacing: 3px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.server-title p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.56);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.server-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(260px, 1fr);
  align-items: stretch;
  min-height: 260px;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(19,27,36,.88), rgba(9,13,18,.94));
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}

.server-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(8,10,18,.30) 48%, rgba(8,10,18,.84) 100%);
}

.server-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.server-visual__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.server-visual__label {
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(198,166,106,.38);
  border-radius: 999px;
  color: #c6a66a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.server-visual__title {
  margin-top: 16px;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.server-visual__text {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255,255,255,.70);
  font-size: 15px;
  line-height: 1.65;
}

.server-section {
  display: none;
  animation: serverFade .25s ease;
}

.server-section.active {
  display: block;
  min-height: 520px;
}

.server-block {
  margin-top: 28px;
}

.server-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: rgba(255,255,255,.78);
  font-size: 21px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.server-block h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,.10);
}

.server-open-box {
  padding: 28px;
  margin-bottom: 28px;
  border: 1px solid rgba(211,45,59,.55);
  border-radius: 18px;
  background: linear-gradient(135deg,rgba(186,18,32,.28),rgba(11,11,22,.80));
  text-align: center;
}

.server-open-box .big {
  margin: 12px 0;
  color: #ff3340;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255,51,64,.4);
  overflow-wrap: anywhere;
}

.server-list {
  padding-left: 26px;
  color: rgba(255,255,255,.68);
  font-size: 16px;
  line-height: 2;
}

.server-list li {
  list-style: none;
  position: relative;
}

.server-list li::before {
  content: ">";
  position: absolute;
  left: -18px;
  color: #cc2938;
}

.server-red { color: #ff3340; }
.server-gold { color: #ffc45e; }

.server-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.server-grid_3 {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.server-card-info {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(12,12,23,.62);
  transition: .2s;
}

.server-card-info:hover {
  transform: translateY(-4px);
  border-color: rgba(211,45,59,.55);
}

.server-card-info h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.server-card-info p {
  margin: 0;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.server-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border-left: 1px solid #c32032;
  background: rgba(12,12,23,.38);
}

.server-table th,
.server-table td {
  padding: 16px 0 16px 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

.server-table th {
  color: rgba(255,255,255,.38);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.server-table td {
  color: rgba(255,255,255,.64);
  font-size: 14px;
}

.server-badge {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid #7f2530;
  border-radius: 8px;
  background: rgba(185,25,38,.12);
  color: #d14a52;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.server-close-page {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(185,25,38,.85);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.server-page.is-open .server-close-page {
  display: inline-flex;
}

.server-block {
  overflow-x: auto;
}

@media (max-width: 1100px) {
  .server-layout {
    grid-template-columns: 1fr;
  }

  .server-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .server-main {
    padding: 0 20px 36px;
  }

  .server-title {
    margin: 0 -20px 24px;
    padding: 22px 20px;
  }

  .server-visual {
    grid-template-columns: 1fr;
  }

  .server-visual::after {
    background: linear-gradient(180deg, rgba(8,10,18,.05), rgba(8,10,18,.88));
  }

  .server-visual__content {
    position: absolute;
    inset: auto 0 0 0;
  }

  .server-grid,
  .server-grid_3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .server-page {
    padding-top: 88px;
  }

  .server-layout {
    border-radius: 16px;
  }

  .server-side {
    grid-template-columns: 1fr;
  }

  .server-side__item {
    min-height: 56px;
    padding: 0 14px;
  }

  .server-title {
    align-items: flex-start;
    gap: 14px;
  }

  .server-title__diamond {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .server-title p {
    letter-spacing: 1px;
  }

  .server-visual,
  .server-visual img {
    min-height: 320px;
  }

  .server-visual__content {
    padding: 20px;
  }

  .server-open-box {
    padding: 22px 16px;
  }
}
