* {
  box-sizing: border-box;
}

:root {
  --bg: #02070d;
  --panel: rgba(3, 13, 23, 0.94);
  --panel2: rgba(1, 10, 19, 0.92);
  --line: rgba(0, 190, 255, 0.38);
  --line2: rgba(0, 210, 255, 0.72);
  --cyan: #00c8ff;
  --blue: #137dff;
  --text: #f2fbff;
  --muted: #9cb6c7;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 70% 8%, rgba(0, 130, 255, 0.28), transparent 34%),
    radial-gradient(circle at 18% 20%, rgba(0, 210, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #02060b 0%, #03101b 52%, #010408 100%);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(4, 18, 32, 0.98), rgba(1, 7, 14, 0.96));
  border-bottom: 1px solid rgba(0, 210, 255, 0.38);
  box-shadow: 0 0 38px rgba(0, 145, 255, 0.18);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1588px;
  height: 88px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand img {
  width: 245px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 190, 255, 0.38));
}

.main-nav {
  margin-left: auto;
  height: 46px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 185, 255, 0.20);
  background: rgba(0, 12, 24, 0.50);
  border-radius: 12px;
}

.main-nav a {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: #ccefff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.075em;
  border-radius: 8px;
  transition: 0.18s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .nav-server {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 185, 255, 0.20), rgba(0, 95, 255, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(0, 210, 255, 0.30),
    0 0 18px rgba(0, 155, 255, 0.16);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 190, 255, 0.26);
  background: rgba(0, 20, 36, 0.60);
  border-radius: 999px;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c8ff;
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.9);
}

.status-pill b {
  color: #bfeeff;
  font-size: 11px;
  text-transform: uppercase;
}

.lang-switch {
  height: 36px;
  display: flex;
  border: 1px solid rgba(0, 210, 255, 0.55);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 13, 26, 0.82);
}

.lang-switch button {
  width: 42px;
  border: 0;
  color: #9bdfff;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.lang-switch button.active {
  background: linear-gradient(180deg, #39dcff, #0b73ff);
  color: #001018;
}

.discord-btn,
.primary-btn,
.secondary-btn,
.pricing-grid a {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.055em;
  transition: 0.18s ease;
}

.discord-btn,
.primary-btn,
.pricing-grid a {
  color: #fff;
  border: 1px solid rgba(84, 217, 255, 0.86);
  background: linear-gradient(180deg, #25a8ff, #075fe8);
  box-shadow:
    0 0 26px rgba(0, 150, 255, 0.52),
    inset 0 0 22px rgba(255, 255, 255, 0.12);
}

.secondary-btn {
  color: #e9f9ff;
  border: 1px solid rgba(0, 200, 255, 0.48);
  background: rgba(2, 11, 20, 0.78);
}

.discord-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.pricing-grid a:hover {
  transform: translateY(-2px);
}

.page {
  width: min(1588px, 100%);
  margin: 0 auto;
  padding: 22px 8px 0;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(620px, 1.35fr);
  gap: 44px;
  align-items: center;
  padding: 58px 40px 64px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 190, 255, 0.28);
  background:
    radial-gradient(circle at 80% 30%, rgba(0, 155, 255, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(3, 13, 23, 0.78), rgba(1, 8, 15, 0.96));
}

.hero::before,
.section::before,
.final-cta::before,
.server-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 190, 255, 0.10), transparent 18%, transparent 82%, rgba(0, 190, 255, 0.10));
  pointer-events: none;
}

.hero-copy,
.hero-panel,
.section-title,
.advantages-grid,
.features-grid,
.large-panel,
.steps-grid,
.pricing-grid,
.faq-grid,
.final-cta > *,
.server-page-hero > *,
.youtube-box {
  position: relative;
  z-index: 1;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(42px, 4.2vw, 70px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  text-shadow: 0 0 32px rgba(0, 145, 255, 0.42);
}

.hero-text {
  max-width: 700px;
  color: #c2d5df;
  font-size: 20px;
  line-height: 1.68;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-mini {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-mini article {
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 190, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(0, 34, 58, 0.46), rgba(0, 11, 22, 0.86));
  box-shadow: inset 0 0 24px rgba(0, 140, 255, 0.06);
}

.hero-mini strong {
  display: block;
  color: #00c8ff;
  font-size: 24px;
  margin-bottom: 8px;
}

.hero-mini span {
  display: block;
  color: #a9c4d3;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 900;
}

.panel-frame {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(0, 200, 255, 0.45);
  background: rgba(0, 8, 16, 0.72);
  box-shadow:
    0 0 55px rgba(0, 160, 255, 0.28),
    0 0 130px rgba(0, 80, 255, 0.14);
}

.panel-topline {
  height: 42px;
  padding: 0 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 20, 36, 0.68);
  border: 1px solid rgba(0, 200, 255, 0.28);
}

.panel-topline span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.panel-topline b {
  padding: 5px 10px;
  color: #001018;
  background: var(--cyan);
  border-radius: 4px;
  font-size: 11px;
}

.panel-frame img {
  width: 100%;
  display: block;
  border: 1px solid rgba(0, 190, 255, 0.25);
}

.section {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 46px 36px;
  border: 1px solid rgba(0, 190, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(0, 119, 255, 0.06), transparent 22%),
    linear-gradient(180deg, var(--panel), rgba(1, 8, 15, 0.97));
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title span {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.advantages-grid,
.steps-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps-grid {
  grid-template-columns: repeat(4, 1fr);
}

.advantages-grid article,
.features-grid article,
.steps-grid article,
.faq-grid article {
  padding: 24px;
  border: 1px solid rgba(0, 170, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(0, 34, 58, 0.46), rgba(0, 11, 22, 0.86));
}

.icon {
  color: var(--cyan);
  font-size: 34px;
  margin-bottom: 12px;
}

.advantages-grid h3,
.features-grid h3,
.steps-grid h3,
.faq-grid h3 {
  margin: 0 0 12px;
  color: #eafaff;
}

.advantages-grid p,
.features-grid p,
.steps-grid p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.features-grid article {
  min-height: 205px;
  transition: 0.18s ease;
}

.features-grid article:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 180, 255, 0.2);
}

.features-grid h3 {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 17px;
}

.large-panel {
  padding: 16px;
  border: 1px solid rgba(0, 190, 255, 0.45);
  background: rgba(0, 8, 16, 0.78);
  box-shadow: 0 0 38px rgba(0, 160, 255, 0.20);
}

.large-panel img {
  width: 100%;
  display: block;
  border: 1px solid rgba(0, 190, 255, 0.25);
}

.steps-grid b {
  display: block;
  color: var(--cyan);
  font-size: 36px;
  margin-bottom: 12px;
}

.pricing-grid article {
  position: relative;
  min-height: 360px;
  padding: 36px 30px;
  text-align: center;
  border: 1px solid rgba(0, 170, 255, 0.45);
  background:
    radial-gradient(circle at 50% 0, rgba(0, 200, 255, 0.13), transparent 36%),
    rgba(1, 11, 22, 0.9);
}

.pricing-grid article.popular {
  border-color: var(--cyan);
  box-shadow: 0 0 36px rgba(0, 200, 255, 0.38);
  transform: translateY(-8px);
}

.pricing-grid em {
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50% 0;
  min-width: 190px;
  padding: 8px 18px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  color: #001018;
  font-style: normal;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.pricing-grid h3 {
  margin: 4px 0 16px;
  text-transform: uppercase;
  color: #eafaff;
  font-size: 24px;
}

.pricing-grid strong {
  display: block;
  font-size: 72px;
  text-shadow: 0 0 28px rgba(0, 200, 255, 0.5);
}

.pricing-grid ul {
  margin: 24px auto;
  padding: 0;
  list-style: none;
  color: #bfd2df;
  line-height: 2;
  text-align: left;
  max-width: 250px;
}

.pricing-grid li::before {
  content: "✓ ";
  color: #39dcff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 40px 44px;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: center;
  border: 1px solid rgba(0, 190, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(0, 119, 255, 0.10), transparent 22%),
    linear-gradient(180deg, var(--panel), rgba(1, 8, 15, 0.97));
}

.final-cta h2 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 34px;
}

.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.final-btn {
  min-width: 360px;
  min-height: 66px;
  font-size: 20px;
}

/* Исправлен футер: теперь текст копирайта центрируется, а логотип остается слева */
.footer {
  width: min(1588px, 100%);
  margin: 0 auto;
  padding: 22px 8px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #8399a8;
  font-size: 14px;
}

.footer img {
  width: 225px;
}

/* SERVER PAGE */
.server-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 54px 44px;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 30px;
  align-items: center;
  border: 1px solid rgba(0, 190, 255, 0.28);
  background:
    radial-gradient(circle at 80% 30%, rgba(0, 155, 255, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(3, 13, 23, 0.78), rgba(1, 8, 15, 0.96));
}

.server-page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5vw, 74px);
  text-transform: uppercase;
  line-height: 1.08;
}

.server-page-hero p {
  max-width: 840px;
  color: #c2d5df;
  font-size: 20px;
  line-height: 1.65;
}

.server-page-hero img {
  width: 100%;
  filter: drop-shadow(0 0 28px rgba(0, 200, 255, 0.85));
}

.youtube-box {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 190, 255, 0.42);
  background: #020911;
  box-shadow: 0 0 34px rgba(0, 170, 255, 0.18);
}

.youtube-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 1250px) {
  .header-inner {
    height: auto;
    padding: 16px;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    height: auto;
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .hero-panel {
    width: 100%;
  }

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

  .advantages-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid article.popular {
    transform: none;
  }
  
  /* Адаптив для футера на мобильных */
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer p {
    text-align: left !important; /* Переопределяем центрирование на мобильных, чтобы текст не был слишком широким */
    width: auto !important;
  }
}

@media (max-width: 760px) {
  .brand img {
    width: 210px;
  }

  .header-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .status-pill {
    display: none;
  }

  .page {
    padding: 12px 6px 0;
  }

  .hero,
  .section,
  .server-page-hero,
  .final-cta {
    padding: 28px 16px;
  }

  .hero h1,
  .server-page-hero h1 {
    font-size: 38px;
  }

  .hero-text,
  .server-page-hero p {
    font-size: 16px;
  }

  .hero-mini {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .final-btn {
    width: 100%;
    min-width: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer p {
    text-align: left !important;
    width: auto !important;
  }
}