:root {
  --bg: #141210;
  --bg-elevated: #1c1b1a;
  --bg-card: #221f1c;
  --border: rgba(201, 162, 39, 0.22);
  --border-strong: rgba(245, 161, 23, 0.45);
  --text: #ece4d6;
  --text-muted: #9f8e7a;
  --accent: #f5a117;
  --accent-hover: #ffc04d;
  --accent-soft: rgba(245, 161, 23, 0.14);
  --gold-light: #ffe8a8;
  --magic: #6fc5e7;
  --magic-soft: rgba(111, 197, 231, 0.12);
  --ok: #7fab3f;
  --off: #c44a3a;
  --header-h: 72px;
  --slide-gap: 14px;
  --footer-h: 44px;
  --slide-h: 100dvh;
  --radius: 4px;
  --radius-sm: 3px;
  /* Кастомные шрифты темы — откат: libs-in-head.html (Google fonts + убрать fonts-theme.css) */
  --font-brand: 'Indira K', 'Philosopher', Georgia, 'Times New Roman', serif;
  --font-display: 'Indira df', 'Philosopher', Georgia, 'Times New Roman', serif;
  --font-body: 'Intro Book', 'Intro', 'Open Sans', system-ui, sans-serif;
  --font-ui: 'Intro', 'Open Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --font: var(--font-body);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 24px rgba(245, 161, 23, 0.28);
  --frame-bg: linear-gradient(165deg, rgba(48, 38, 28, 0.96) 0%, rgba(22, 18, 14, 0.98) 100%);
  /* Arkenia_new — images/bg/bg.jpg */
  --bg-image-main: url('../images/bg/bg.jpg');
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---- background (L2 fantasy + photo) ---- */
#bgfixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #0f0d0b;
}

.bg-photo {
  position: absolute;
  inset: -6%;
  background-color: #1c1b1a;
  background-image: var(--bg-image-main);
  background-size: 112%;
  background-position: center 0%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  will-change: transform, background-position, background-size;
  filter: saturate(0.96) contrast(1.04) brightness(0.88);
  animation: bgKenBurns 32s ease-in-out infinite alternate;
}

.bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 78% 18%, rgba(245, 161, 23, 0.14), transparent 52%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(111, 197, 231, 0.08), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.75;
  animation: bgTintShift 20s ease-in-out infinite alternate;
}

.bg-rays {
  position: absolute;
  inset: -20%;
  opacity: 0.22;
  background:
    conic-gradient(from 210deg at 72% 8%, transparent 0deg, rgba(245, 161, 23, 0.14) 18deg, transparent 36deg, rgba(255, 232, 168, 0.08) 52deg, transparent 74deg);
  filter: blur(28px);
  animation: bgRaysSpin 48s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 13, 11, 0.55) 0%, rgba(20, 18, 16, 0.72) 42%, rgba(12, 10, 9, 0.88) 100%),
    radial-gradient(ellipse at center, rgba(20, 18, 16, 0.2) 0%, rgba(0, 0, 0, 0.78) 100%);
  animation: bgShadePulse 14s ease-in-out infinite;
}

.bg-stone {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: bgGrainShift 8s steps(6) infinite;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
  animation: bgVignettePulse 18s ease-in-out infinite alternate;
}

.bg-mist {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -5%;
  height: 45%;
  background: linear-gradient(0deg, rgba(28, 27, 26, 0.85), transparent);
  filter: blur(2px);
  animation: mistDrift 22s ease-in-out infinite;
}

.bg-mist--high {
  top: -8%;
  bottom: auto;
  height: 38%;
  opacity: 0.55;
  background: linear-gradient(180deg, rgba(28, 27, 26, 0.72), transparent);
  animation: mistDriftHigh 28s ease-in-out infinite;
}

.bg-embers {
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    radial-gradient(circle, rgba(245, 161, 23, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 232, 168, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(245, 161, 23, 0.55) 0 1.5px, transparent 3px);
  background-size: 220px 220px, 340px 340px, 180px 260px;
  background-position: 20px 80px, 140px 200px, 280px 40px;
  animation: embersFloat 10s linear infinite, embersTwinkle 2.25s ease-in-out infinite alternate;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 18%, transparent 78%);
}

.bg-shimmer {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 232, 168, 0.03) 47%,
    rgba(245, 161, 23, 0.09) 50%,
    rgba(255, 232, 168, 0.03) 53%,
    transparent 58%
  );
  transform: translateX(-30%) rotate(8deg);
  animation: bgShimmerSweep 7s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes bgKenBurns {
  0% { background-position: center 0%; background-size: 112%; }
  100% { background-position: center 10%; background-size: 118%; }
}

@keyframes bgTintShift {
  0% { opacity: 0.65; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.03); }
}

@keyframes bgRaysSpin {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.05); }
}

@keyframes bgShadePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.94; }
}

@keyframes bgGrainShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3%, -2%); }
}

@keyframes bgVignettePulse {
  0% { opacity: 0.92; }
  100% { opacity: 1; }
}

@keyframes mistDrift {
  0%, 100% { transform: translateX(0) translateY(0); opacity: 0.7; }
  50% { transform: translateX(28px) translateY(-6px); opacity: 0.92; }
}

@keyframes mistDriftHigh {
  0%, 100% { transform: translateX(0) translateY(0); opacity: 0.45; }
  50% { transform: translateX(-22px) translateY(8px); opacity: 0.68; }
}

@keyframes embersFloat {
  0% {
    background-position: 20px 80px, 140px 200px, 280px 40px;
  }
  100% {
    background-position: 20px -580px, 140px -820px, 280px -740px;
  }
}

@keyframes embersTwinkle {
  0% { opacity: 0.48; }
  100% { opacity: 0.72; }
}

@keyframes bgShimmerSweep {
  0%, 18% { transform: translateX(-32%) rotate(8deg); opacity: 0; }
  42% { opacity: 0.75; }
  62%, 100% { transform: translateX(32%) rotate(8deg); opacity: 0; }
}

@keyframes glowFloat {
  0%, 100% { opacity: 0.36; filter: blur(48px); }
  33% { opacity: 0.48; filter: blur(54px); }
  66% { opacity: 0.42; filter: blur(62px); }
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: glowFloat 18s ease-in-out infinite;
  will-change: transform;
}

.bg-glow--a {
  width: 480px;
  height: 480px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(245, 161, 23, 0.28) 0%, transparent 68%);
  opacity: 0.4;
  filter: blur(48px);
  mix-blend-mode: screen;
}

.bg-glow--b {
  width: 400px;
  height: 400px;
  bottom: 5%;
  left: -100px;
  background: rgba(111, 197, 231, 0.14);
  animation-delay: -6s;
  animation-duration: 22s;
}

.bg-glow--c {
  width: 320px;
  height: 320px;
  top: 42%;
  right: 18%;
  background: radial-gradient(circle, rgba(255, 192, 77, 0.16) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(56px);
  mix-blend-mode: screen;
  animation-delay: -11s;
  animation-duration: 26s;
}

/* ---- preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#preloader.is-hidden,
body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pl-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.pl-mark img {
  height: 96px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(245, 161, 23, 0.45)) drop-shadow(0 0 32px rgba(245, 161, 23, 0.2));
}

.pl-logo {
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.pl-bar {
  width: 180px;
  height: 4px;
  border-radius: 4px;
  background: var(--bg-card);
  overflow: hidden;
}

.pl-bar::before {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold-light), var(--accent), transparent);
  animation: loadSlide 1.1s ease-in-out infinite;
}

@keyframes loadSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ---- header ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(28, 27, 26, 0.94), rgba(20, 18, 16, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: none;
}

.brand:hover img {
  filter: none;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
}

nav.main a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
}

nav.main a:hover,
nav.main a.active { color: var(--text); }

nav.main a.active {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(245, 161, 23, 0.35);
}

nav.main a.nav-account {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  color: #1a1410;
  background: linear-gradient(180deg, #ffc04d 0%, #f5a117 48%, #c48a12 100%);
  border: 1px solid #ffe8a8;
  box-shadow: 0 4px 18px rgba(245, 161, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

nav.main a.nav-account:hover {
  color: #1a1410;
  background: linear-gradient(180deg, #ffd875 0%, #ffb82e 48%, #d49818 100%);
  box-shadow: 0 8px 26px rgba(245, 161, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.spacer { flex: 1; }

.lang-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.2);
}

.lang-switch__btn {
  min-width: 40px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.lang-switch__btn:hover {
  color: var(--text);
  border-color: var(--border);
}

.lang-switch__btn.is-active {
  color: #1a1410;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  border-color: var(--gold-light);
  box-shadow: var(--glow-gold);
  pointer-events: none;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

/* ---- pager ---- */
.pager {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 4px;
  background: rgba(28, 24, 20, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.pager a {
  width: 46px;
  height: 46px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(34, 31, 28, 0.75);
  color: var(--text-muted);
  opacity: 0.85;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s, opacity 0.2s;
}

.pager-icon {
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s;
}

.pager-icon i {
  display: block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

.pager a:hover,
.pager a:focus-visible {
  opacity: 1;
  color: var(--gold-light);
  border-color: var(--border-strong);
  background: rgba(48, 40, 30, 0.9);
  box-shadow: 0 0 14px rgba(245, 161, 23, 0.2);
}

.pager a.active {
  opacity: 1;
  color: #1a1410;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--gold-light), var(--accent));
  box-shadow: 0 0 16px rgba(245, 161, 23, 0.45);
}

.pager a:hover .pager-icon,
.pager a:focus-visible .pager-icon,
.pager a.active .pager-icon {
  transform: scale(1.08);
}

.pager-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  max-width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(28, 24, 20, 0.94);
  box-shadow: var(--shadow);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pager-label::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  background: rgba(28, 24, 20, 0.94);
  transform: translateY(-50%) rotate(45deg);
}

.pager a:hover .pager-label,
.pager a:focus-visible .pager-label {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ---- scroller / slides ---- */
.scroller {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: var(--slide-h);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

.scroller::-webkit-scrollbar { width: 0; }

.slide {
  height: 100vh;
  height: var(--slide-h);
  min-height: var(--slide-h);
  max-height: var(--slide-h);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 8px clamp(16px, 4vw, 48px) calc(16px + var(--footer-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  box-sizing: border-box;
}

#s1 {
  padding-top: clamp(12px, 2vh, 28px);
}

/* Отступ под шапку — только scroll-padding-top у .scroller, не дублировать --header-h */

.wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#s1 .wrap {
  flex: 1;
  justify-content: center;
}

#s3 .wrap {
  flex: 1;
  justify-content: center;
  width: min(100%, 1320px);
  gap: clamp(14px, 2vh, 24px);
  max-height: 100%;
}

#s4 .wrap {
  flex: 0 1 auto;
  justify-content: center;
  width: min(100%, 1320px);
  gap: clamp(10px, 1.4vh, 18px);
  max-height: none;
  overflow: visible;
}

#s5 .wrap {
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: clamp(8px, 1.2vh, 14px);
}

/* s2: контент масштабируется целиком под высоту экрана (см. landing.js) */
#s2 .s2-stage {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

#s2 .s2-stage > .wrap {
  flex: none;
  width: min(100%, 1180px);
  max-height: none;
  overflow: visible;
  gap: clamp(6px, 1vh, 12px);
  transform-origin: top center;
}

#s2 .section-head {
  margin-bottom: clamp(4px, 0.8vh, 10px);
  opacity: 0;
  transform: translate3d(0, -14px, 0);
}

#s2 .cards-features {
  gap: clamp(6px, 1vh, 14px);
}

/* s2: появление карточек при входе на слайд */
#s2 .card-feature__img {
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform: translate3d(var(--s2-enter-x, 0), var(--s2-enter-y, 0), 0) scale(0.94);
  will-change: transform, opacity;
}

#s2 .card-feature:nth-child(1) { --s2-enter-x: -18vw; }
#s2 .card-feature:nth-child(2) { --s2-enter-x: 18vw; }
#s2 .card-feature:nth-child(3) { --s2-enter-x: -15vw; }
#s2 .card-feature:nth-child(4) { --s2-enter-x: 0; --s2-enter-y: 8vh; }
#s2 .card-feature:nth-child(5) { --s2-enter-x: 15vw; }

#s2 .card-feature__body {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

#s2.is-visible .section-head {
  animation: s2HeadIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s2.is-visible .card-feature__img {
  animation: s2ImgIn 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s2.is-visible .card-feature:nth-child(1) .card-feature__img { animation-delay: 0.08s; }
#s2.is-visible .card-feature:nth-child(2) .card-feature__img { animation-delay: 0.16s; }
#s2.is-visible .card-feature:nth-child(3) .card-feature__img { animation-delay: 0.24s; }
#s2.is-visible .card-feature:nth-child(4) .card-feature__img { animation-delay: 0.32s; }
#s2.is-visible .card-feature:nth-child(5) .card-feature__img { animation-delay: 0.4s; }

#s2.is-visible .card-feature__body {
  animation: s2BodyIn 0.52s ease forwards;
}

#s2.is-visible .card-feature:nth-child(1) .card-feature__body { animation-delay: 0.2s; }
#s2.is-visible .card-feature:nth-child(2) .card-feature__body { animation-delay: 0.28s; }
#s2.is-visible .card-feature:nth-child(3) .card-feature__body { animation-delay: 0.36s; }
#s2.is-visible .card-feature:nth-child(4) .card-feature__body { animation-delay: 0.44s; }
#s2.is-visible .card-feature:nth-child(5) .card-feature__body { animation-delay: 0.52s; }

@keyframes s2HeadIn {
  from { opacity: 0; transform: translate3d(0, -14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes s2ImgIn {
  from {
    opacity: 0;
    transform: translate3d(var(--s2-enter-x, 0), var(--s2-enter-y, 0), 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes s2BodyIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---- slide reveal animations ---- */
@keyframes slideRevealUp {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideRevealRight {
  from { opacity: 0; transform: translate3d(36px, 0, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes slideRevealLeft {
  from { opacity: 0; transform: translate3d(-36px, 0, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes slideRevealPop {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.92); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes slideRevealGlow {
  from { opacity: 0; transform: scale(0.94) translate3d(0, 18px, 0); filter: blur(8px); }
  to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); filter: blur(0); }
}

/* s1: hero — текст снизу, сервер справа */
#s1 .hero-copy > *:not(.hero-logo) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

#s1 .hero-logo {
  opacity: 0;
  transform: scale(0.84) translate3d(0, 24px, 0);
}

#s1 .hero-aside .hsrv {
  opacity: 0;
  transform: translate3d(40px, 0, 0) scale(0.95);
}

#s1.is-visible .hero-copy > *:not(.hero-logo) {
  animation: slideRevealUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s1.is-visible .hero-logo {
  animation: heroLogoIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.08s;
}

#s1.is-visible .hero-copy > *:nth-child(1) { animation-delay: 0.06s; }
#s1.is-visible .hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
#s1.is-visible .hero-copy > *:nth-child(4) { animation-delay: 0.3s; }
#s1.is-visible .hero-copy > *:nth-child(5) { animation-delay: 0.38s; }

#s1.is-visible .hero-aside .hsrv {
  animation: slideRevealRight 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.26s;
}

#s1.is-visible .hero-aside .hsrv:nth-child(2) { animation-delay: 0.36s; }
#s1.is-visible .hero-aside .hsrv:nth-child(3) { animation-delay: 0.46s; }

/* s3: рейтинг — вкладки снизу, таблица с лёгким blur */
#s3 .section-head {
  opacity: 0;
  transform: translate3d(0, -14px, 0);
}

#s3 .l2-rating__server-card {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.94);
}

#s3 .l2-rating__body {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(6px);
}

#s3.is-visible .section-head {
  animation: s2HeadIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s3.is-visible .l2-rating__server-card {
  animation: slideRevealPop 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s3.is-visible .l2-rating__server-card:nth-child(1) { animation-delay: 0.1s; }
#s3.is-visible .l2-rating__server-card:nth-child(2) { animation-delay: 0.18s; }
#s3.is-visible .l2-rating__server-card:nth-child(3) { animation-delay: 0.26s; }
#s3.is-visible .l2-rating__server-card:nth-child(4) { animation-delay: 0.34s; }

#s3.is-visible .l2-rating__body {
  animation: slideRevealGlow 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.24s;
}

/* s3: крупнее и на всю доступную высоту слайда */
#s3 .section-head {
  margin-bottom: clamp(10px, 1.6vh, 20px);
}

#s3 .section-head h2 {
  font-size: clamp(30px, 5.2vh, 64px);
}

#s3 .section-head p {
  font-size: clamp(14px, 1.9vh, 18px);
  max-width: 64ch;
}

#s3 .l2-rating {
  flex: 1 1 auto;
  min-height: min(58vh, 480px);
  max-height: min(calc(100vh - var(--header-h) - var(--footer-h) - clamp(96px, 13vh, 150px)), 780px);
  padding: clamp(18px, 2.2vh, 28px) clamp(18px, 2.4vw, 32px);
}

#s3 .l2-rating__servers {
  gap: clamp(10px, 1.2vh, 16px);
  margin-bottom: clamp(12px, 1.6vh, 20px);
}

#s3 .l2-rating__server-card {
  flex: 1 1 200px;
  max-width: 300px;
  min-height: 96px;
  padding: 16px 18px 18px;
  gap: 10px;
}

#s3 .l2-rating__server-card__name {
  font-size: 18px;
}

#s3 .l2-rating__server-card__badge {
  padding: 3px 9px;
  font-size: 12px;
}

#s3 .l2-rating__server-card__rate {
  font-size: 14px;
}

#s3 .l2-rating__tabs {
  gap: 10px;
  margin-bottom: clamp(10px, 1.2vh, 16px);
}

#s3 .l2-rating__tab {
  min-width: 96px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

#s3 .l2-rating__row {
  grid-template-columns: 44px 1fr 96px;
  gap: 12px;
  padding: clamp(8px, 1.1vh, 13px) clamp(12px, 1.4vw, 16px);
  font-size: clamp(14px, 1.7vh, 17px);
  line-height: 1.35;
}

#s3 .l2-rating__row--head {
  font-size: 12px;
}

#s3 .l2-rating__num {
  font-size: 14px;
}

#s3 .l2-rating__score {
  font-size: 18px;
}

#s3 .l2-rating__crest img {
  width: 18px;
  height: 14px;
}

#s3 .l2-rating__empty {
  padding: 28px 16px;
  font-size: 16px;
}

#s3 .l2-rating__table {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#s3 .l2-rating__row--head {
  position: static;
  flex-shrink: 0;
}

#s3 .l2-rating__row:not(.l2-rating__row--head) {
  flex: 1 1 0;
  min-height: 0;
}

/* s4: форум — главная тема + сетка */
#s4 .section-head {
  opacity: 0;
  transform: translate3d(0, -12px, 0);
}

#s4 .forum-card {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

#s4 .forum-card--featured {
  transform: translate3d(0, 24px, 0) scale(0.98);
}

#s4 .forum-slide__foot {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

#s4.is-visible .section-head {
  animation: s2HeadIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s4.is-visible .forum-card--featured {
  animation: slideRevealUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.1s;
}

#s4.is-visible .forum-grid .forum-card {
  animation: slideRevealPop 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s4.is-visible .forum-grid .forum-card:nth-child(1) { animation-delay: 0.18s; }
#s4.is-visible .forum-grid .forum-card:nth-child(2) { animation-delay: 0.24s; }
#s4.is-visible .forum-grid .forum-card:nth-child(3) { animation-delay: 0.3s; }
#s4.is-visible .forum-grid .forum-card:nth-child(4) { animation-delay: 0.36s; }
#s4.is-visible .forum-grid .forum-card:nth-child(5) { animation-delay: 0.42s; }
#s4.is-visible .forum-grid .forum-card:nth-child(6) { animation-delay: 0.48s; }

#s4.is-visible .forum-slide__foot {
  animation: slideRevealUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.52s;
}

/* s5: скачивание — карточки выпрыгивают снизу */
#s5 .section-head {
  opacity: 0;
  transform: scale(0.96) translate3d(0, 16px, 0);
}

#s5 .dl-card {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.9);
}

#s5.is-visible .section-head {
  animation: slideRevealGlow 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s5.is-visible .dl-card {
  animation: slideRevealPop 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#s5.is-visible .dl-card:nth-child(1) { animation-delay: 0.12s; }
#s5.is-visible .dl-card:nth-child(2) { animation-delay: 0.22s; }
#s5.is-visible .dl-card:nth-child(3) { animation-delay: 0.32s; }

.section-head {
  flex-shrink: 0;
  margin: 0 0 clamp(8px, 1.4vh, 18px);
}

.section-head h2 {
  margin: 0 0 clamp(4px, 0.8vh, 6px);
  font-family: var(--font-display);
  font-size: clamp(26px, 4.8vh, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 2px 20px rgba(245, 161, 23, 0.2);
  position: relative;
  padding-bottom: clamp(6px, 1vh, 10px);
}

.section-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(245, 161, 23, 0.4);
}

.section-head--center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-head p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(12px, 1.6vh, 15px);
  line-height: 1.45;
}

.section-head--center { text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---- hero ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(16px, 3vh, 40px);
  align-items: center;
  flex: 0 1 auto;
  max-height: 100%;
  min-height: 0;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magic);
  background: var(--magic-soft);
  border: 1px solid rgba(111, 197, 231, 0.35);
  box-shadow: inset 0 0 20px rgba(111, 197, 231, 0.08);
}

.tag--chronicle {
  color: var(--gold-light);
  background: rgba(245, 161, 23, 0.1);
  border-color: rgba(245, 161, 23, 0.4);
}

.hero-logo {
  margin: 0 0 clamp(8px, 1.4vh, 14px);
  line-height: 0;
  cursor: default;
}

.hero-logo img {
  display: block;
  height: clamp(104px, 20vh, 210px);
  width: auto;
  max-width: min(100%, 560px);
  object-fit: contain;
  transform-origin: center bottom;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-loaded #s1.is-visible .hero-logo img {
  animation: heroLogoFloat 4.5s ease-in-out infinite;
  animation-delay: 1.1s;
}

.hero-logo:hover img {
  animation: none;
  transform: scale(1.07) translateY(-6px);
}

@keyframes heroLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.84) translate3d(0, 24px, 0);
  }
  55% {
    opacity: 1;
    transform: scale(1.05) translate3d(0, -8px, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes heroLogoFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.025) translateY(-5px); }
}

.hero-copy h1 {
  margin: 0 0 clamp(10px, 1.6vh, 16px);
  font-family: var(--font-display);
  font-size: clamp(30px, 5.8vh, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-copy h1 span {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.lead {
  margin: 0 0 clamp(12px, 2vh, 24px);
  max-width: 48ch;
  color: var(--text-muted);
  font-size: clamp(13px, 1.7vh, 16px);
  line-height: 1.5;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-aside {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(40px, 5vh, 46px);
  padding: 0 clamp(16px, 2vw, 22px);
  border-radius: var(--radius-sm);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: 0.18s;
  border: 1px solid transparent;
}

.btn-primary {
  color: #1a1410;
  background: linear-gradient(180deg, #ffc04d 0%, #f5a117 48%, #c48a12 100%);
  border: 1px solid #ffe8a8;
  box-shadow: 0 6px 24px rgba(245, 161, 23, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffd875 0%, #ffb82e 48%, #d49818 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(245, 161, 23, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(28, 24, 20, 0.75);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.25);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--gold-light);
  box-shadow: var(--glow-gold), inset 0 0 20px rgba(245, 161, 23, 0.08);
}

/* ---- hero servers v3 — откат: hero-server.v1/v2.html ---- */
.hero-servers {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 14px);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 2px 0;
}

.hero-servers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(36, 30, 24, 0.88) 0%, rgba(18, 15, 12, 0.92) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-servers__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-servers__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-servers__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 16px);
}

.hsrv {
  --hsrv-rgb: 159, 142, 122;
  --hsrv-fill: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 16px);
  padding: clamp(12px, 1.6vh, 15px) clamp(14px, 1.8vw, 18px);
  border: 1px solid rgba(var(--hsrv-rgb), 0.24);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(38, 32, 26, 0.9) 0%, rgba(16, 14, 12, 0.92) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hsrv.is-online {
  --hsrv-rgb: 245, 161, 23;
}

.hsrv:hover {
  border-color: rgba(var(--hsrv-rgb), 0.42);
  background: linear-gradient(165deg, rgba(44, 36, 28, 0.94) 0%, rgba(20, 17, 14, 0.94) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34), 0 0 20px rgba(var(--hsrv-rgb), 0.1);
}

.hsrv__ring {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.hsrv__ring-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    rgb(var(--hsrv-rgb)) calc(var(--hsrv-fill) * 1%),
    rgba(255, 255, 255, 0.07) 0
  );
  box-shadow: 0 0 14px rgba(var(--hsrv-rgb), 0.22);
}

.hsrv__ring-track::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(14, 12, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hsrv__ring-val {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: rgb(var(--hsrv-rgb));
  text-shadow: 0 0 12px rgba(var(--hsrv-rgb), 0.35);
}

.hsrv__main {
  flex: 1;
  min-width: 0;
}

.hsrv__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hsrv__identity {
  min-width: 0;
}

.hsrv__name {
  margin: 0 0 3px;
  font-family: var(--font-brand);
  font-size: clamp(17px, 2.2vh, 22px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hsrv__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.hsrv__new {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hsrv__live {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(var(--hsrv-rgb), 0.28);
  border-radius: 6px;
  background: rgba(var(--hsrv-rgb), 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--hsrv-rgb), 0.95);
}

.hsrv__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--hsrv-rgb), 0.65);
}

.hsrv.is-online .hsrv__dot {
  background: rgb(var(--hsrv-rgb));
  box-shadow: 0 0 8px rgba(var(--hsrv-rgb), 0.65);
  animation: hsrv-dot-pulse 2.2s ease-in-out infinite;
}

@keyframes hsrv-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.hsrv__age {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.hsrv__age.is-soon .hsrv__age-num {
  color: var(--magic);
}

.hsrv__age-num {
  font-weight: 700;
  color: rgb(var(--hsrv-rgb));
}

.hsrv__track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hsrv__track i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--hsrv-rgb), 0.65), rgb(var(--hsrv-rgb)));
  box-shadow: 0 0 10px rgba(var(--hsrv-rgb), 0.35);
  transition: width 0.5s ease;
}

.hsrv:not(.is-online) .hsrv__track i {
  background: rgba(159, 142, 122, 0.45);
  box-shadow: none;
}

@media (max-width: 900px) {
  .hsrv__name {
    white-space: normal;
  }

  .hsrv__ring {
    width: 46px;
    height: 46px;
  }

  .hsrv__ring-val {
    font-size: 10px;
  }
}

/* ---- features ---- */
.cards-features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 1.2vh, 16px);
  flex: 0 0 auto;
  align-content: start;
  align-items: start;
}

.cards-features .card-feature:nth-child(1) { grid-column: 1 / span 3; }
.cards-features .card-feature:nth-child(2) { grid-column: 4 / span 3; }
.cards-features .card-feature:nth-child(3) { grid-column: 1 / span 2; }
.cards-features .card-feature:nth-child(4) { grid-column: 3 / span 2; }
.cards-features .card-feature:nth-child(5) { grid-column: 5 / span 2; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--frame-bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: start;
}

.card-feature:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow-gold);
}

.card-feature__img {
  aspect-ratio: 16 / 9;
  width: 100%;
  flex: none;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  opacity: 0.92;
  transition: transform 0.35s;
}

.card-feature:hover .card-feature__img img { transform: scale(1.12); }

.card-feature__body {
  flex-shrink: 0;
  padding: clamp(8px, 1.1vh, 16px) clamp(10px, 1.4vw, 18px) clamp(10px, 1.3vh, 18px);
}

.card-feature__body h3 {
  margin: 0 0 clamp(4px, 0.6vh, 8px);
  font-family: var(--font-display);
  font-size: clamp(13px, 1.8vh, 20px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.15;
}

.card-feature__body p {
  margin: 0;
  font-size: clamp(11px, 1.35vh, 14px);
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.thread-strip {
  flex-shrink: 0;
  margin-top: clamp(8px, 1.2vh, 20px);
  min-height: 0;
}

.thread-strip__label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.thread-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(6px, 0.8vh, 10px);
}

.thread-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(8px, 1.1vh, 14px) clamp(10px, 1.2vw, 16px);
  border-radius: var(--radius-sm);
  background: rgba(28, 24, 20, 0.85);
  border: 1px solid var(--border);
  transition: 0.18s;
}

.thread-item:hover {
  border-color: var(--accent);
  background: rgba(245, 161, 23, 0.06);
  box-shadow: inset 0 0 24px rgba(245, 161, 23, 0.05);
}

.thread-item__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.thread-item__meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.thread-item__arrow {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 18px;
}

/* ---- forum slide ---- */
.forum-slide {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vh, 20px);
  flex: 0 0 auto;
  width: 100%;
}

.forum-slide__topics {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vh, 18px);
}

.forum-slide--empty {
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 4vh, 48px);
  border-radius: var(--radius);
  background: var(--frame-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
}

.forum-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.4vw, 16px);
  padding: clamp(14px, 1.8vh, 20px) clamp(14px, 1.8vw, 20px);
  border-radius: var(--radius);
  background: var(--frame-bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: inherit;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.forum-card::before,
.forum-card::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.18s;
}

.forum-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.forum-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid rgba(111, 197, 231, 0.45);
  border-bottom: 1px solid rgba(111, 197, 231, 0.45);
}

.forum-card:hover {
  border-color: var(--border-strong);
  background: linear-gradient(145deg, rgba(48, 40, 30, 0.92), rgba(22, 18, 14, 0.98));
  box-shadow: var(--glow-gold), var(--shadow);
  transform: translateY(-2px);
}

.forum-card:hover::before,
.forum-card:hover::after {
  opacity: 1;
}

.forum-card--featured {
  align-items: center;
  padding: clamp(18px, 2.2vh, 26px) clamp(18px, 2.2vw, 28px);
  border-color: var(--border-strong);
  background: linear-gradient(145deg, rgba(255, 192, 77, 0.1), rgba(0, 0, 0, 0.32));
}

.forum-card__icon {
  flex-shrink: 0;
  width: clamp(52px, 6vw, 64px);
  height: clamp(52px, 6vw, 64px);
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 192, 77, 0.18), rgba(0, 0, 0, 0.28));
  color: var(--gold-light);
  font-size: clamp(22px, 2.6vh, 28px);
  box-shadow: inset 0 0 20px rgba(245, 161, 23, 0.12);
}

.forum-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.forum-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.forum-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.1vh, 24px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--gold-light);
}

.forum-card--featured .forum-card__title {
  font-size: clamp(20px, 2.8vh, 34px);
}

.forum-card__excerpt {
  display: block;
  color: var(--text-muted);
  font-size: clamp(12px, 1.45vh, 14px);
  line-height: 1.45;
}

.forum-card__meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
}

.forum-card__meta time,
.forum-card__date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.forum-card__arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.25);
  transition: 0.18s;
}

.forum-card--featured:hover .forum-card__arrow {
  color: #1a1410;
  border-color: var(--gold-light);
  background: linear-gradient(180deg, #ffc04d, #f5a117);
  box-shadow: var(--glow-gold);
}

.forum-card__num {
  flex-shrink: 0;
  width: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding-top: 2px;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vh, 14px);
  align-items: start;
}

.forum-grid .forum-card {
  position: relative;
  flex-direction: column;
  height: auto;
  padding: clamp(12px, 1.4vh, 16px);
  padding-right: 38px;
}

.forum-grid .forum-card__body {
  flex: 0 1 auto;
}

.forum-grid .forum-card__title {
  font-size: clamp(13px, 1.6vh, 16px);
}

.forum-grid .forum-card__excerpt {
  font-size: 12px;
}

.forum-grid .forum-card__num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  padding: 0;
}

.forum-slide__foot {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  padding-top: 2px;
}

.forum-grid .forum-card__date {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .forum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- download ---- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.5vh, 18px);
  flex: 0 1 auto;
  align-items: start;
}

.dl-card {
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: start;
  padding: clamp(14px, 2vh, 22px);
  border-radius: var(--radius);
  background: var(--frame-bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.dl-card:hover {
  box-shadow: var(--shadow), var(--glow-gold);
}

.dl-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 16px rgba(245, 161, 23, 0.06);
}

.dl-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
}

.dl-card__icon img { width: 100%; height: 100%; object-fit: contain; }

.dl-card p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.dl-card__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.dl-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.2);
  transition: 0.15s;
}

.dl-link:hover {
  border-color: var(--accent);
  color: var(--gold-light);
  box-shadow: inset 0 0 16px rgba(245, 161, 23, 0.08);
}

.dl-link--accent {
  color: #1a1410;
  background: linear-gradient(180deg, #ffc04d, #f5a117);
  border-color: #ffe8a8;
  box-shadow: 0 4px 16px rgba(245, 161, 23, 0.3);
}

.dl-link--accent:hover {
  background: linear-gradient(180deg, #ffd875, #ffb82e);
  color: #1a1410;
}

/* ---- footer ---- */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  min-height: var(--footer-h);
  display: flex;
  align-items: center;
  background: linear-gradient(0deg, rgba(15, 13, 11, 0.96), rgba(28, 27, 26, 0.9));
  border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

.site-footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px clamp(16px, 4vw, 40px);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--gold-light);
}

.site-footer-links {
  display: flex;
  gap: 16px;
}

.site-footer-links a:hover { color: var(--accent); }

/* ---- inner pages ---- */
body.landing-inner { overflow: auto; }
body.landing-inner .pager { display: none; }

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--header-h) + 36px) clamp(16px, 4vw, 48px) calc(var(--footer-h) + 36px);
}

.page-card {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 32px clamp(22px, 4vw, 40px) 40px;
  border-radius: var(--radius);
  background: var(--frame-bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.page-card h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--gold-light);
}

.page-card .cover {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.page-card,
.page-card p,
.page-card li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-card a { color: var(--magic); }

.page-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.page-back:hover { color: var(--accent-hover); }

.page-shell--wide .page-card {
  width: min(100%, 920px);
}

.page-card--rating .l2-rating {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-lead {
  margin: -8px 0 18px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---- rating (pvp / pk / clans) ---- */
.l2-rating {
  margin-top: 0;
  padding: clamp(10px, 1.5vh, 18px) clamp(12px, 1.6vw, 20px);
  border-radius: var(--radius);
  background: var(--frame-bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  flex: 0 1 auto;
  width: 100%;
  max-height: min(68vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.l2-rating__servers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 0.9vh, 10px);
  margin-bottom: clamp(8px, 1.1vh, 14px);
  flex-shrink: 0;
}

.l2-rating__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.l2-rating__server {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.l2-rating__server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 168px;
  max-width: 240px;
  min-height: 72px;
  padding: 12px 14px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--frame-bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  color: var(--text-muted);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.l2-rating__server-card::before,
.l2-rating__server-card::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.l2-rating__server-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.l2-rating__server-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid rgba(111, 197, 231, 0.4);
  border-bottom: 1px solid rgba(111, 197, 231, 0.4);
}

.l2-rating__server-card__name {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.l2-rating__server-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.l2-rating__server-card__badge {
  padding: 2px 7px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
  background: var(--accent-soft);
  white-space: nowrap;
}

.l2-rating__server-card__rate {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.85;
}

.l2-rating__server-card:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(48, 40, 30, 0.55);
  transform: translateY(-1px);
}

.l2-rating__server-card:hover::before,
.l2-rating__server-card:hover::after {
  opacity: 1;
}

.l2-rating__server-card.is-active {
  border-color: var(--gold-light);
  background: linear-gradient(145deg, rgba(255, 192, 77, 0.14), rgba(0, 0, 0, 0.28));
  box-shadow: var(--glow-gold);
  transform: translateY(-1px);
}

.l2-rating__server-card.is-active::before {
  border-color: var(--gold-light);
  opacity: 1;
}

.l2-rating__server-card.is-active .l2-rating__server-card__name {
  color: #ffd36a;
}

.l2-rating__server-card.is-active .l2-rating__server-card__rate {
  color: var(--gold-light);
  opacity: 1;
}

.l2-rating__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: clamp(6px, 0.9vh, 10px);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.l2-rating__panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.l2-rating__tab {
  flex: 1;
  min-width: 72px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.15s;
}

.l2-rating__tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.l2-rating__tab.is-active {
  color: #1a1410;
  border-color: var(--gold-light);
  background: linear-gradient(180deg, #ffc04d, #f5a117);
  box-shadow: var(--glow-gold);
}

.l2-rating__server[hidden],
.l2-rating__panel[hidden] {
  display: none !important;
}

.l2-rating__table {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.l2-rating__table::-webkit-scrollbar { width: 3px; }
.l2-rating__table::-webkit-scrollbar-thumb { background: var(--accent); }

.l2-rating__row {
  display: grid;
  grid-template-columns: 34px 1fr 72px;
  gap: 8px;
  align-items: center;
  padding: clamp(4px, 0.7vh, 7px) clamp(8px, 1vw, 10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
  font-size: clamp(11px, 1.35vh, 13px);
  line-height: 1.2;
}

.l2-rating__row:last-child { border-bottom: 0; }

.l2-rating__row--head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(28, 24, 20, 0.96);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.l2-rating__row:nth-child(even):not(.l2-rating__row--head) {
  background: rgba(245, 161, 23, 0.03);
}

.l2-rating__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.l2-rating__name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l2-rating__crest {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.l2-rating__crest img {
  width: 14px;
  height: 11px;
  object-fit: contain;
}

.l2-rating__score {
  text-align: right;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
}

.l2-rating__empty {
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero-grid,
  .forum-grid,
  .cards-3,
  .download-grid { grid-template-columns: 1fr; }

  .forum-card--featured {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-card__meta {
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 0;
  }

  .hero-servers {
    max-height: none;
    overflow: hidden;
  }

  .thread-list { grid-template-columns: 1fr; }

  nav.main { display: none; }

  .burger { display: block; }

  header.open nav.main {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px clamp(16px, 4vw, 40px) 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  header.open nav.main a {
    font-size: 1.25rem;
  }

  .pager { right: 10px; padding: 10px 6px; }

  .lang-switch {
    margin-left: auto;
  }

  .lang-switch__btn {
    min-width: 36px;
    height: 28px;
    font-size: 11px;
  }
}

@media (max-height: 860px) {
  .thread-strip { display: none; }

  .card-feature__body p { -webkit-line-clamp: 2; }

  #s2 .section-head p { display: none; }
}

@media (max-height: 740px) {
  .section-head p { display: none; }

  #s3 .l2-rating {
    min-height: 0;
    max-height: min(calc(100vh - var(--header-h) - var(--footer-h) - 72px), 620px);
    padding: 14px 16px;
  }

  #s3 .l2-rating__server-card {
    min-height: 76px;
    padding: 12px 14px;
  }

  #s3 .l2-rating__server-card__name {
    font-size: 16px;
  }

  #s3 .l2-rating__tab {
    min-height: 36px;
    font-size: 12px;
  }

  #s3 .l2-rating__row {
    font-size: 13px;
    padding: 6px 10px;
  }

  .tag { margin-bottom: 8px; }

  .btn-row { gap: 8px; }

  .btn { min-height: 38px; font-size: 13px; }

  .news-tile strong { font-size: 13px; }

  .forum-grid {
    grid-template-columns: 1fr;
  }

  .dl-card__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
  }
}

@media (max-width: 960px) and (max-height: 740px) {
  .cards-features {
    gap: 6px;
  }

  .card-feature__body h3 {
    font-size: 12px;
  }

  .card-feature__body p {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 600px) {
  .slide { padding-bottom: calc(20px + var(--footer-h)); }

  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-photo,
  .bg-photo::after,
  .bg-rays,
  .bg-shade,
  .bg-stone,
  .bg-vignette,
  .bg-glow,
  .bg-mist,
  .bg-embers,
  .bg-shimmer,
  .pl-bar::before { animation: none !important; }

  .scroller { scroll-behavior: auto; }

  #s1 .hero-copy > *:not(.hero-logo),
  #s1 .hero-logo,
  #s1 .hero-aside .hsrv,
  #s2 .section-head,
  #s2 .card-feature__img,
  #s2 .card-feature__body,
  #s3 .section-head,
  #s3 .l2-rating__server-card,
  #s3 .l2-rating__body,
  #s4 .section-head,
  #s4 .forum-card,
  #s4 .forum-slide__foot,
  #s5 .section-head,
  #s5 .dl-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  body.is-loaded #s1.is-visible .hero-logo img {
    animation: none !important;
    transform: none !important;
  }
}
