:root {
  --bg-1: #0b1019;
  --bg-2: #111a29;
  --surface: #1d2434;
  --surface-2: #131927;
  --text: #e7ecf8;
  --muted: #a7b1c7;
  --line: #2b3550;
  --brand: #38c172;
  --brand-2: #2ea1ff;
  --danger: #ff4d6d;
  --radius: 16px;
  --container: 1120px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.33);
  --glow-brand: 0 0 0 1px rgba(56, 193, 114, 0.14), 0 0 24px rgba(56, 193, 114, 0.2);
  --glow-blue: 0 0 0 1px rgba(46, 161, 255, 0.14), 0 0 22px rgba(46, 161, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(165deg, var(--bg-1), var(--bg-2));
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 8, 14, 0.7), rgba(4, 8, 14, 0.76)),
    url("/assets/promo/armus_og.jpg") center / cover no-repeat;
  filter: saturate(0.74) contrast(1.05) brightness(0.72);
}

body::after {
  z-index: -1;
  background:
    radial-gradient(1300px 580px at 86% -10%, rgba(58, 112, 219, 0.2), transparent 58%),
    radial-gradient(1100px 500px at -12% 112%, rgba(40, 145, 94, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(7, 11, 19, 0.18), rgba(7, 11, 19, 0.44));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 23, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.topbar__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--text);
  text-shadow: 0 0 10px rgba(115, 181, 255, 0.3);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-switch a {
  border: 1px solid var(--line);
  padding: 0.35rem 0.54rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.lang-switch a.is-active {
  color: var(--text);
  border-color: rgba(46, 161, 255, 0.85);
  background: rgba(46, 161, 255, 0.12);
}

.panel {
  border: 1px solid rgba(138, 157, 194, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    linear-gradient(140deg, rgba(13, 20, 33, 0.76), rgba(10, 15, 25, 0.78));
  box-shadow: var(--shadow);
}

.panel--tight {
  padding: 1rem 1.3rem;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  justify-self: start;
  align-self: start;
  border: 1px solid rgba(46, 161, 255, 0.52);
  color: #b4ddff;
  border-radius: 999px;
  padding: 0.3rem 0.74rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(21, 32, 49, 0.5);
  box-shadow: var(--glow-blue);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Oxanium", "Rajdhani", "Barlow", sans-serif;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  min-height: 44px;
  padding: 0.66rem 1.04rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-primary,
.btn-cta {
  background: linear-gradient(135deg, var(--brand), #2dbf74);
  color: #09130d;
  border-color: rgba(131, 255, 181, 0.3);
  box-shadow: 0 10px 24px rgba(56, 193, 114, 0.32), 0 0 18px rgba(56, 193, 114, 0.25);
}

.btn-primary:hover,
.btn-cta:hover {
  box-shadow: 0 14px 30px rgba(56, 193, 114, 0.42), 0 0 24px rgba(56, 193, 114, 0.33);
}

.btn-secondary {
  background: rgba(46, 161, 255, 0.18);
  border-color: rgba(46, 161, 255, 0.6);
  color: #c9e8ff;
  box-shadow: 0 8px 20px rgba(7, 15, 30, 0.35);
}

.btn-secondary:hover {
  box-shadow: 0 11px 24px rgba(11, 24, 44, 0.44), 0 0 20px rgba(46, 161, 255, 0.24);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.home-main,
.landing-main {
  padding-block: 1.7rem 2.4rem;
  display: grid;
  gap: 1.2rem;
}

.page-home .home-main {
  gap: 1.06rem;
}

.hero {
  padding: 1.65rem clamp(1rem, 2vw, 2rem);
  display: grid;
  gap: 0.95rem;
  border-color: rgba(146, 166, 208, 0.29);
  box-shadow: var(--shadow), var(--glow-blue);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.03;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.45);
}

.hero p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.5;
  max-width: 780px;
}

.hero-subtitle {
  color: #d6e8ff;
  font-weight: 600;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.hero-tag {
  border: 1px solid rgba(120, 145, 188, 0.35);
  border-radius: 999px;
  padding: 0.34rem 0.66rem;
  background: rgba(14, 21, 34, 0.62);
  color: #d9e8ff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-pace {
  display: grid;
  gap: 0.38rem;
}

.hero-pace__line {
  color: #d9e8ff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero p.hero-pace__line--title {
  letter-spacing: 0.02em;
  font-size: clamp(1.28rem, 2.8vw, 1.72rem);
  font-weight: 800;
  color: #e7ecf8;
  text-shadow: 0 0 12px rgba(111, 184, 255, 0.22);
  margin-bottom: 0.08rem;
}

.hero p.hero-pace__line strong {
  color: #e7ecf8;
}

.hero-note {
  color: #cfe4ff;
  font-weight: 700;
}

.hero::after,
.landing-hero::after {
  content: "";
  width: 100%;
  height: 1px;
  margin-top: 0.15rem;
  background: linear-gradient(90deg, rgba(46, 161, 255, 0), rgba(46, 161, 255, 0.5), rgba(56, 193, 114, 0.35), rgba(56, 193, 114, 0));
}

.btn-note {
  margin-top: 0.18rem;
  color: #b4c8e9;
  font-size: 0.84rem;
  font-weight: 600;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.server-guide {
  margin: 0;
  font-family: "Oxanium", "Rajdhani", "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(1.08rem, 2.1vw, 1.36rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  display: inline-block;
  width: fit-content;
  color: transparent;
  background: linear-gradient(90deg, #d7ebff 0%, #f1f7ff 32%, #b8e7ff 68%, #adf2ce 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 16px rgba(115, 187, 255, 0.28);
  padding: 0;
  border: 0;
  box-shadow: none;
}

.hero + .server-guide {
  margin-top: -0.35rem;
}

.server-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.52rem;
  padding: 1.12rem;
  border-color: rgba(132, 155, 199, 0.29);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.server-card:hover {
  transform: translateY(-4px);
  border-color: rgba(160, 187, 236, 0.44);
  box-shadow: var(--shadow), var(--glow-blue);
}

.server-card h2 {
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-left: 1.25rem;
}

.server-card h2::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 50%;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(164, 196, 255, 0.76);
  background: rgba(46, 161, 255, 0.16);
  box-shadow: 0 0 10px rgba(46, 161, 255, 0.42);
}

.server-card[data-server="rebirth"] h2::before {
  border-color: rgba(255, 157, 127, 0.74);
  background: rgba(255, 109, 77, 0.14);
  box-shadow: 0 0 10px rgba(255, 120, 86, 0.4);
}

.server-card[data-server="season8"] h2::before {
  border-color: rgba(164, 196, 255, 0.76);
  background: rgba(67, 130, 255, 0.16);
}

.server-card[data-server="mobile"] h2::before {
  border-color: rgba(146, 235, 174, 0.76);
  background: rgba(56, 193, 114, 0.17);
  box-shadow: 0 0 10px rgba(56, 193, 114, 0.38);
}

.server-card__meta {
  color: #d9e8ff;
  font-size: 1.2rem;
  font-weight: 700;
}

.server-card__platform {
  color: #9fc6ff;
  font-size: 0.88rem;
  font-weight: 600;
}

.server-card h3 {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.server-card__desc {
  color: var(--muted);
  line-height: 1.45;
  min-height: 4.75em;
  margin-bottom: 0.2rem;
}

.server-card .btn {
  width: 100%;
  margin-top: auto;
}

.landing-main {
  min-height: calc(100vh - 74px);
  align-content: center;
  gap: 1.3rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  padding: 1.3rem;
  border-color: rgba(142, 166, 209, 0.29);
}

.landing-hero__content {
  display: grid;
  gap: 0.9rem;
}

.landing-hero__content h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
}

.landing-subtitle {
  color: #d4e6ff;
  font-weight: 700;
  line-height: 1.4;
}

.landing-platform {
  color: #9dc4ff;
  font-size: 0.95rem;
  font-weight: 600;
}

.landing-description {
  color: var(--muted);
  line-height: 1.52;
  max-width: 620px;
}

.cta-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.landing-hero__aside {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  background: rgba(14, 21, 34, 0.66);
  display: grid;
  gap: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(46, 161, 255, 0.09);
}

.benefits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.benefits-list li {
  position: relative;
  padding-left: 1rem;
  color: #dbe3f6;
  line-height: 1.35;
}

.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 2px;
  transform: rotate(45deg);
  border: 1px solid rgba(143, 224, 171, 0.7);
  background: rgba(56, 193, 114, 0.22);
  box-shadow: 0 0 10px rgba(56, 193, 114, 0.35);
}

.platform-note {
  border-top: 1px solid var(--line);
  padding-top: 0.72rem;
  color: #b8c6e0;
  font-size: 0.9rem;
}

.landing-aside-extra {
  border-top: 1px solid var(--line);
  padding-top: 0.72rem;
  display: grid;
  gap: 0.45rem;
}

.landing-aside-extra h3 {
  margin: 0;
  font-size: 1rem;
  color: #dcedff;
  letter-spacing: 0.02em;
}

.landing-aside-extra ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.landing-aside-extra li {
  color: #c7d9f5;
  font-size: 0.9rem;
  line-height: 1.35;
}

.landing-aside-extra li::before {
  content: "• ";
  color: #8fdcab;
}

.page-rebirth .landing-hero,
.page-season8 .landing-hero,
.page-mobile .landing-hero {
  grid-template-columns: 1.18fr 0.95fr;
  align-items: start;
}

.page-rebirth .landing-hero__aside,
.page-season8 .landing-hero__aside,
.page-mobile .landing-hero__aside {
  align-self: start;
}

.support-block {
  display: grid;
  gap: 0.58rem;
  margin-top: 0.28rem;
  border-color: rgba(46, 161, 255, 0.35);
  background: rgba(14, 21, 34, 0.64);
}

.support-block p {
  color: #d3e5ff;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.38rem 0.65rem;
  font-size: 0.9rem;
  color: #c8d2ea;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.quick-links a:hover {
  border-color: rgba(46, 161, 255, 0.66);
  color: #e2efff;
  box-shadow: var(--glow-blue);
}

.landing-final {
  display: grid;
  gap: 0.5rem;
  border-color: rgba(130, 152, 194, 0.31);
  box-shadow: var(--shadow-soft);
}

.landing-final p {
  color: #d4def4;
  line-height: 1.45;
}

.chat-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  justify-items: end;
  gap: 0.62rem;
}

.chat-fab {
  border: 1px solid rgba(56, 193, 114, 0.55);
  background: linear-gradient(135deg, #38c172, #2fbf74);
  color: #092412;
  font-weight: 800;
  border-radius: 999px;
  min-height: 50px;
  padding: 0.58rem 1rem;
  box-shadow: 0 14px 28px rgba(4, 10, 21, 0.5), 0 0 22px rgba(56, 193, 114, 0.24);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-fab:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(4, 10, 21, 0.56), 0 0 30px rgba(56, 193, 114, 0.33);
}

.chat-panel {
  width: min(360px, calc(100vw - 1.5rem));
  border: 1px solid rgba(146, 166, 206, 0.34);
  border-radius: 14px;
  background: #0a1423;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.5), var(--glow-blue);
  padding: 0.9rem;
  display: grid;
  gap: 0.68rem;
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.chat-panel__header h2 {
  font-size: 1.05rem;
}

.chat-panel__header p {
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.88rem;
}

.chat-close {
  border: 1px solid var(--line);
  background: #1a253a;
  color: #d6e4ff;
  border-radius: 9px;
  min-width: 32px;
  height: 32px;
  line-height: 1;
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chat-close:hover {
  border-color: rgba(46, 161, 255, 0.72);
  color: #f2f8ff;
}

.chat-history {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  background: #111c2d;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  gap: 0.45rem;
}

.chat-msg {
  display: flex;
}

.chat-msg--assistant {
  justify-content: flex-start;
}

.chat-msg--user {
  justify-content: flex-end;
}

.chat-msg__bubble {
  max-width: 88%;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  white-space: pre-line;
  line-height: 1.35;
  font-size: 0.9rem;
}

.chat-msg__bubble a {
  color: #97caff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.chat-msg__bubble a:hover {
  color: #d2e8ff;
}

.chat-msg--assistant .chat-msg__bubble {
  border: 1px solid rgba(46, 161, 255, 0.35);
  background: #172438;
  color: #d9e7ff;
}

.chat-msg--user .chat-msg__bubble {
  border: 1px solid rgba(56, 193, 114, 0.4);
  background: #1b3a2a;
  color: #d7ffe7;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.chat-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f1a2a;
  color: var(--text);
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(46, 161, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(46, 161, 255, 0.12);
}

.chat-send {
  min-width: 88px;
}

.chat-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chat-examples button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1a2740;
  color: #d4e3ff;
  padding: 0.3rem 0.58rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.chat-examples button:hover {
  border-color: rgba(46, 161, 255, 0.65);
  color: #f0f6ff;
  background: #21304b;
}

.footer {
  border-top: 1px solid rgba(141, 163, 206, 0.26);
  background: rgba(9, 13, 22, 0.72);
}

.footer__inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: #d0dcf2;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.2rem 0.1rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer__links a:hover {
  color: #edf4ff;
  text-shadow: 0 0 12px rgba(107, 172, 255, 0.36);
}

.footer__link-icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  color: #9fc6ff;
}

.footer__link-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

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

  .home-main,
  .landing-main {
    padding-block: 1.25rem 1.85rem;
    gap: 0.95rem;
  }

  .hero,
  .landing-hero {
    padding: 1rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .server-guide {
    font-size: 1rem;
  }

  .landing-main {
    min-height: auto;
    align-content: start;
  }

  .page-rebirth .landing-hero,
  .page-season8 .landing-hero,
  .page-mobile .landing-hero {
    display: block;
  }

  .page-rebirth .landing-hero__aside,
  .page-season8 .landing-hero__aside,
  .page-mobile .landing-hero__aside {
    margin-top: 0.85rem;
    padding: 0.92rem;
    width: 100%;
    border-radius: 12px;
  }

  .page-rebirth .landing-hero__aside h2,
  .page-season8 .landing-hero__aside h2,
  .page-mobile .landing-hero__aside h2 {
    font-size: 1.5rem;
  }

  .page-rebirth .benefits-list,
  .page-season8 .benefits-list,
  .page-mobile .benefits-list {
    gap: 0.35rem;
  }

  .page-rebirth .landing-aside-extra,
  .page-season8 .landing-aside-extra,
  .page-mobile .landing-aside-extra {
    gap: 0.35rem;
  }

  .page-rebirth .landing-aside-extra h3,
  .page-season8 .landing-aside-extra h3,
  .page-mobile .landing-aside-extra h3 {
    font-size: 0.95rem;
  }

  .page-rebirth .landing-aside-extra li,
  .page-season8 .landing-aside-extra li,
  .page-mobile .landing-aside-extra li {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .chat-widget {
    right: 0.7rem;
    bottom: 0.7rem;
    width: calc(100vw - 1.4rem);
  }

  .chat-widget .chat-panel {
    width: 100%;
  }

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