html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #14536a 0, #050505 45%, #000 100%);
  color: white;
}

/* HEADER / NAV */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 24px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  margin-right: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  color: white;
  transition: 0.2s;
  font-size: 14px;
}
.nav a:last-child {
  margin-right: 0;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}
.nav a svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

.steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  transition: 0.2s;
}
.steam-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.steam-btn:active {
  background: rgba(255, 255, 255, 0.22);
}
.steam-icon {
  font-size: 18px;
}

/* HERO */

.main-block {
  padding: 60px 20px 40px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 20px 0 10px;
}
.orange {
  background: linear-gradient(355deg, #1b6cff, #33c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-banner {
  margin-top: 16px;
  margin-bottom: 28px;
  max-width: 900px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* STEPS */

.steps {
  max-width: 640px;
  width: 100%;
  margin: 10px auto 0;
}

.steps-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 14px;
  text-align: center;
}

.step-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.sub {
  margin-top: 6px;
  color: #dddddd;
  font-size: 14px;
}

.code {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
}

.arrow {
  text-align: center;
  font-size: 20px;
  margin: 8px 0;
}

.step-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 2px;
}

.step-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.step-req-wrap {
  text-align: right;
  margin: 6px 0 4px;
}

.step-req-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: 0.15s ease-out;
}
.step-req-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* REQUIREMENTS */

.requirements {
  padding: 30px 20px 40px;
  text-align: center;
}
.requirements h2 {
  font-size: 26px;
  margin-bottom: 20px;
}
.requirements-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.requirements-card {
  padding: 20px;
  border-radius: 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
  font-size: 13px;
}
.requirements-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}
.requirements-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
}
.requirements-card li {
  margin-bottom: 4px;
}
.requirements-fps {
  margin-top: 10px;
  font-size: 13px;
  color: #cfcfcf;
}
.requirements-fps .fps {
  font-weight: 600;
}
.requirements-fps .fps s {
  opacity: 0.6;
  margin-right: 4px;
}

.requirements-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.requirements-modal {
  max-width: 720px;          
  width: 100%;
  background: rgba(10, 10, 10, 0.96);
  border-radius: 16px;       
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.85);
  padding: 16px 16px 14px; 
}


.requirements-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.requirements-modal-title {
  font-size: 20px;
  font-weight: 700;
}

.requirements-modal-close {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.requirements-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* STATS */

.stats {
  padding: 40px 20px 60px;
  text-align: center;
}
.stats h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  padding: 20px;
  border-radius: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: #e0e0e0;
  font-size: 14px;
}

/* SERVERS + SOCIAL */

.servers {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 20px 40px;
}
.servers-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 24px;
}

.social-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.7);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, opacity 0.1s ease-out;
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
}

.social-icon {
  font-size: 18px;
}

.social-link--discord {
  background: #5865f2;
}

.social-link--telegram {
  background: #229ed9;
}

.social-link--vk {
  background: #0077ff;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.server-card {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.8);
}

.server-img {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.server-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 30%, rgba(0, 0, 0, 0.8));
}

.server-img--main {
  background-image: url("https://northdead.ru/cultrust/cultrust.png");
}

.server-img--fast {
  background-image: url("https://northdead.ru/cultrust/cultrust.png");
}

.server-content {
  padding: 18px 18px 16px;
}
.server-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.players {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cccccc;
}

.bar {
  height: 6px;
  background: #333;
  border-radius: 10px;
  margin: 8px 0 10px;
  overflow: hidden;
}
.bar div {
  height: 100%;
  background: linear-gradient(90deg, #1b6cff, #33c8ff);
  border-radius: 10px;
}

.tags {
  margin-bottom: 10px;
}
.tags span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  margin: 0 6px 6px 0;
  border-radius: 8px;
  font-size: 10px;
}

.connect-btn {
  margin-top: 4px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #1b6cff, #33c8ff);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, opacity 0.1s;
  box-shadow: 0 0 18px rgba(51, 200, 255, 0.6);
}
.connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(51, 200, 255, 0.9);
}
.connect-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(51, 200, 255, 0.7);
  opacity: 0.9;
}

.connect-btn--disabled {
  background: #333;
  box-shadow: none;
  cursor: default;
  opacity: 0.7;
}
.connect-btn--disabled:hover,
.connect-btn--disabled:active {
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

/* FOOTER */

.footer-separator {
  max-width: 1100px;
  margin: 0 auto 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
  opacity: 0.8;
}

.legal-footer {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 0 20px;
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.5;
}

.legal-footer a {
  color: #bbb;
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.legal-footer-contact {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
}

.legal-footer-love {
  margin-top: 10px;
}

/* STAFF */

.staff {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 20px 0;
  text-align: center;
}

.staff-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.staff-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.staff-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 200px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.staff-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 8px;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.staff-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-name {
  font-weight: 700;
  margin-bottom: 2px;
}

.staff-role {
  font-size: 13px;
  color: #cfcfcf;
}

/* SNOW */

.snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.snowflake {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
  filter: blur(0.3px);
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -10px, 0);
  }
  100% {
    transform: translate3d(0, 110vh, 0);
  }
}

/* ------- ADAPTIVE ------- */

/* tablets / small laptops */
@media (max-width: 900px) {
  .header {
    padding: 18px 16px;
  }

  .title {
    font-size: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .requirements-grid {
    gap: 16px;
  }
}

/* phones */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav a {
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .main-block {
    padding: 40px 16px 32px;
  }

  .title {
    font-size: 30px;
  }

  .hero-banner {
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .steps {
    max-width: 100%;
  }

  .step-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .requirements {
    padding: 24px 16px 32px;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    padding: 32px 16px 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .servers {
    padding: 0 16px 32px;
  }

  .servers-grid {
    grid-template-columns: 1fr;
  }

  .server-img {
    height: 160px;
  }

  .staff {
    padding: 0 16px 24px;
  }

  .legal-footer {
    padding: 0 16px 24px;
    font-size: 11px;
  }

.requirements-modal {
  max-width: 520px;   
  width: 100%;
  max-height: 80vh;  
  overflow-y: auto;
  background: rgba(10, 10, 10, 0.96);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.85);
  padding: 14px 14px 12px;
}


  .requirements-modal {
    max-width: 90%;
    max-height: 75vh;
    padding: 10px 10px 8px;
    border-radius: 10px;
  }

  .requirements-modal-title {
    font-size: 16px;
  }

  .requirements-card {
    padding: 10px;
    font-size: 11px;
  }

  .requirements-card h3 {
    font-size: 14px;
  }

  .requirements-card ul {
    margin-top: 4px;
  }

  .requirements-card li {
    margin-bottom: 2px;
  }
}


/* very small phones */
@media (max-width: 400px) {
  .title {
    font-size: 26px;
  }

  .steps-title {
    font-size: 20px;
  }

  .social-link {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
  }

  .server-content h3 {
    font-size: 16px;
  }
}
