:root {
  
  --bg-900: #0a0a0c;
  --bg-800: #101014;
  --bg-700: #16161c;
  --bg-600: #1d1d25;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --gold-300: #f5e28a;
  --gold-400: #ecd45e;
  --gold-500: #e3c341;
  --gold-600: #c9a227;
  --gold-glow: rgba(227, 195, 65, 0.35);

  --text-100: #f4f4f2;
  --text-300: #cfcfca;
  --text-500: #a3a39d;

  --danger: #e35341;
  --success: #4cbf62;

  
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.4rem, 6.5vw, 4.8rem);
  --fs-h2: clamp(1.7rem, 3.5vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: clamp(0.97rem, 1.1vw, 1.06rem);

  
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-900);
  color: var(--text-300);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-100);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.02em;
}

a { color: var(--gold-400); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-300); }

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

::selection { background: var(--gold-500); color: #14140f; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb { background: var(--bg-600); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 12, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-100);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(227, 195, 65, 0.35);
  flex-shrink: 0;
}

.brand:hover { color: var(--gold-300); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.main-nav a {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: var(--text-300);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover { color: var(--text-100); background: var(--surface-hover); }

.main-nav a.active {
  color: var(--gold-400);
  background: rgba(227, 195, 65, 0.08);
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-500);
  font: 700 0.78rem var(--font-body);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-toggle button.active { background: var(--gold-500); color: #14140f; }

.nav-burger {
  display: none;
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--text-100);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-burger span { top: 21px; }
.nav-burger span::before { left: 0; top: -6px; }
.nav-burger span::after { left: 0; top: 6px; }

body.nav-open .nav-burger span { background: transparent; }
body.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 14px;
  font: 700 0.95rem var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  will-change: transform;
}

.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  color: #171307;
  box-shadow: 0 4px 24px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px var(--gold-glow);
  color: #171307;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-100);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--gold-500);
  color: var(--gold-300);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; border-radius: 11px; }

.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: heroFade 0.7s ease-out both;
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 30% 45%, rgba(10, 10, 12, 0.25), transparent),
    linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.25) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.4), transparent 30%, transparent 60%, var(--bg-900) 100%);
}

.hero-content { max-width: 640px; }

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: 0.05em;
  margin: 0 0 1.3rem;
}

.hero h1 .gold {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 50%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--text-300);
  margin: 0 0 2.2rem;
  max-width: 54ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-500);
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }

.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-800) 12%, var(--bg-800) 88%, transparent);
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-eyebrow {
  color: var(--gold-500);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-500); margin: 0; }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 195, 65, 0.4);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(227, 195, 65, 0.1);
  border: 1px solid rgba(227, 195, 65, 0.25);
  margin-bottom: 1.2rem;
}

.card-icon svg { width: 26px; height: 26px; stroke: var(--gold-400); fill: none; stroke-width: 1.8; }

.card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--text-500); font-size: 0.95rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(16, 16, 20, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold-400);
  margin-bottom: 0.2rem;
}

.stat span { font-size: 0.85rem; color: var(--text-500); letter-spacing: 0.04em; }

.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); align-items: stretch; }

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.035));
  isolation: isolate;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(165deg,
    rgba(227, 195, 65, 0.5),
    rgba(255, 255, 255, 0.14) 28%,
    rgba(255, 255, 255, 0.05) 55%,
    rgba(227, 195, 65, 0.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0.65;
}

.price-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, rgba(227, 195, 65, 0.55), transparent);
  transition: left 0.35s var(--ease), right 0.35s var(--ease), background 0.3s;
}

.price-card:hover { border: none; }
.price-card:hover::before { opacity: 1; }
.price-card:hover::after {
  left: 6%;
  right: 6%;
  background: linear-gradient(90deg, transparent, rgba(227, 195, 65, 0.9), transparent);
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
  margin: 0.2rem 0 1rem;
}

.price-tag small { font-size: 0.95rem; color: var(--text-500); font-family: var(--font-body); font-weight: 600; }

.price-card ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--text-300);
  font-size: 0.92rem;
}

.price-card ul li { display: flex; gap: 0.55rem; align-items: flex-start; }

.price-card ul li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

.price-card .btn { margin-top: auto; }

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

@media (max-width: 540px) {
  .pricing-actions { flex-direction: column; }
  .pricing-actions .btn { width: 100%; }
}

.dl-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.dl-card { display: flex; flex-direction: column; }

.dl-card .platform {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.dl-card .platform svg { width: 40px; height: 40px; fill: var(--gold-400); }

.dl-links { display: grid; gap: 0.6rem; margin-top: auto; }

.dl-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-100);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.dl-links a:hover {
  border-color: var(--gold-500);
  background: rgba(227, 195, 65, 0.07);
  transform: translateX(4px);
}

.dl-links a::after { content: "↓"; color: var(--gold-500); font-weight: 800; }
.dl-links a[target="_blank"]::after { content: "↗"; }
.dl-links a[href$=".html"]::after { content: "→"; }

.version-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(76, 191, 98, 0.12);
  border: 1px solid rgba(76, 191, 98, 0.35);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.guide { max-width: 820px; }

.guide h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.guide h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; color: var(--gold-300); }

.guide p { margin: 0 0 1rem; }

.guide ul, .guide ol { margin: 0 0 1.2rem; padding-left: 1.4rem; display: grid; gap: 0.4rem; }
.guide li::marker { color: var(--gold-500); font-weight: 700; }

.guide .step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1rem;
}

.guide .warning, .guide .note {
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}

.guide .warning {
  background: rgba(227, 83, 65, 0.08);
  border: 1px solid rgba(227, 83, 65, 0.35);
  color: var(--text-300);
}

.guide .warning strong { color: var(--danger); }

.guide .note {
  background: rgba(227, 195, 65, 0.06);
  border: 1px solid rgba(227, 195, 65, 0.3);
}

.guide .note strong { color: var(--gold-400); }

.guide .table-of-contents {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.5rem;
}

.guide .table-of-contents h2 { margin: 0 0 0.8rem; border: 0; padding: 0; font-size: 1.15rem; }
.guide .table-of-contents ol { margin: 0; gap: 0.5rem; }
.guide .table-of-contents a { color: var(--text-300); }
.guide .table-of-contents a:hover { color: var(--gold-300); }

.guide .screenshot-container { margin: 1.4rem 0 1.8rem; text-align: center; }

.guide .screenshot {
  max-width: min(100%, 420px);
  margin-inline: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.guide .screenshot-caption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-500);
}

.social-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.social-card svg { width: 32px; height: 32px; fill: var(--gold-400); flex-shrink: 0; }

.social-card b { color: var(--text-100); display: block; font-size: 0.98rem; }
.social-card span { color: var(--text-500); font-size: 0.82rem; }

.cta-banner {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  border: 1px solid rgba(227, 195, 65, 0.25);
  isolation: isolate;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.82), rgba(10, 10, 12, 0.92)),
    url("../img/characters.jpg") center/cover;
}

.cta-banner h2 { font-size: var(--fs-h2); }
.cta-banner p { color: var(--text-300); max-width: 52ch; margin: 0 auto 2rem; }

.page-hero {
  padding: calc(var(--header-h) + 4.5rem) 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 90% at 50% -20%, rgba(227, 195, 65, 0.12), transparent),
    var(--bg-900);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { color: var(--text-500); max-width: 60ch; margin-inline: auto; }

[data-lang-block] { display: none; }
html[lang="en"] [data-lang-block="en"],
html[lang="ru"] [data-lang-block="ru"] { display: block; }

.legal { max-width: 820px; }
.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.legal p, .legal li { color: var(--text-300); }
.legal ul, .legal ol { padding-left: 1.4rem; display: grid; gap: 0.45rem; margin: 0 0 1.2rem; }
.legal li::marker { color: var(--gold-500); font-weight: 700; }
.legal .note {
  background: rgba(227, 195, 65, 0.06);
  border: 1px solid rgba(227, 195, 65, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}
.legal .updated { color: var(--text-500); font-size: 0.85rem; }

.error-page {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  background:
    radial-gradient(ellipse 55% 60% at 50% 10%, rgba(227, 195, 65, 0.09), transparent),
    var(--bg-900);
}

.error-page .container { max-width: 640px; }

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 50%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(227, 195, 65, 0.15);
}

.error-page h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 0.8rem;
}

.error-text {
  color: var(--text-500);
  max-width: 46ch;
  margin: 0 auto 2.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-800);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p { color: var(--text-500); font-size: 0.9rem; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-100);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-500); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--text-500);
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

.grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.4s; }

#toTop {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(16, 16, 20, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--gold-400);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), border-color 0.25s;
}

#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { border-color: var(--gold-500); }

@media (max-width: 900px) {
  .nav-burger { display: block; }

  .header-inner { gap: 0.75rem; }

  /* burger and lang toggle must never shrink or clip; if space runs out
     (page zoom, tiny screens) the brand text gives way instead */
  .brand { margin-left: 0.45rem; min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  .brand img { width: 36px; height: 36px; }
  .header-actions { margin-left: auto; margin-right: 0.45rem; flex-shrink: 0; }
  .nav-burger, .lang-toggle { flex-shrink: 0; }

  /* while the menu is open the header goes solid too - one less
     backdrop-filter layer for iOS to misrender */
  body.nav-open .site-header {
    background: #0b0b0e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* .main-nav goes position:fixed here and leaves the flex flow,
     taking its margin-left:auto with it — re-anchor actions to the right */
  .header-actions { margin-left: auto; }

  .main-nav {
    /* absolute, not fixed: Safari makes backdrop-filter ancestors the
       containing block for fixed elements, shifting the dropdown off-screen */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    /* solid bg, no backdrop-filter: nested blurs (header + dropdown) render
       shifted/fuzzy on iOS Safari - the dropdown looked pushed right */
    background: #0b0b0e;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }

  body.nav-open .main-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .main-nav a { padding: 0.9rem 1rem; font-size: 1rem; }

  .hero { min-height: 84vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  
  .hero-bg img { object-position: center 20%; }

  
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(10, 10, 12, 0.72) 0%,
        rgba(10, 10, 12, 0.45) 30%,
        rgba(10, 10, 12, 0.55) 60%,
        var(--bg-900) 100%);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 4.5rem);
    padding-bottom: 3.5rem;
  }

  .hero p.lead { font-size: 1rem; }
  .hero-note { font-size: 0.78rem; }

  /* CTA banner: frame the faces and let the art show through up top;
     text/button zone below stays dark for contrast */
  .cta-banner::before {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, 0.55), rgba(10, 10, 12, 0.7) 45%, rgba(10, 10, 12, 0.95) 78%),
      url("../img/characters.jpg") center 18% / cover;
  }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-cta .btn { width: 100%; }
  .stats { margin-top: -2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Mobile refinements ──────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .section-head { margin-bottom: 2rem; }
  .page-hero {
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 2rem;
  }
  .section { padding: 3rem 0; }
}

@media (max-width: 540px) {
  .grid { gap: 1rem; }
  .card { padding: 1.3rem 1.2rem; }
  .price-tag { font-size: 1.6rem; }
  .cta-banner { padding: 2rem 1.4rem; }
  .social-card { padding: 1rem 1.2rem; }
}

/* Stats: auto-fit gives 1 col on 375px phones — force 2×2 */
@media (max-width: 430px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }
}

/* Mobile: no entrance animations — content must be instantly visible.
   Scroll-reveal on touch devices leaves black voids while cards are still opacity:0. */
@media (max-width: 900px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
