/* Eldmoor — сайт. Тёмная тема: ночь, луна и отблеск костра. */
:root {
  --bg: #0a0b14;
  --bg-alt: #0e1020;
  --panel: rgba(18, 20, 36, .78);
  --panel-solid: #141629;
  --line: rgba(217, 164, 65, .2);
  --line-soft: rgba(236, 228, 210, .09);
  --gold: #d9a441;
  --gold-hi: #f1cf7a;
  --ember: #e8743b;
  --text: #ece4d2;
  --muted: #a7a092;
  --ok: #6fcf8e;
  --warn: #e8b04b;
  --fail: #e5604f;
  --radius: 14px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --font-logo: "Cinzel", "Cormorant SC", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; }
h2 { font-family: var(--font-head); font-size: clamp(30px, 4.2vw, 46px); letter-spacing: .01em; }
h3 { font-size: 18px; }
p { margin: 0; }
code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); word-break: break-all; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--gold); color: #1a1205; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}

/* ── кнопки ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 700 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--gold {
  color: #1f1404;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #b98328);
  box-shadow: 0 0 0 1px rgba(255, 220, 140, .35) inset, 0 8px 28px -10px rgba(232, 160, 60, .7);
}
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 230, 160, .5) inset, 0 12px 34px -10px rgba(232, 160, 60, .85); }
.btn--ghost { color: var(--text); background: rgba(255,255,255,.03); border-color: var(--line); }
.btn--ghost:hover { border-color: rgba(217,164,65,.55); background: rgba(217,164,65,.08); }
.btn.is-soon { opacity: .6; cursor: default; pointer-events: none; filter: saturate(.6); }
/* The hero's main call: gold plate with a gem at each end. */
.btn--ornate { position: relative; padding: 15px 46px; border-radius: 6px; font: 700 21px/1.1 var(--font-head); letter-spacing: .01em; }
.btn--ornate::before, .btn--ornate::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; transform: rotate(45deg);
  background: #3b2709; box-shadow: 0 0 0 1px rgba(255, 232, 170, .7);
}
.btn--ornate::before { left: 17px; }
.btn--ornate::after { right: 17px; }
/* Outlined gold, for "Вход" in the header. */
.btn--frame {
  position: relative; padding: 9px 26px; border-radius: 10px;
  color: var(--gold-hi); background: rgba(10, 11, 20, .55); border-color: rgba(217, 164, 65, .7);
  box-shadow: inset 0 0 0 3px rgba(10, 11, 20, .6), inset 0 0 0 4px rgba(217, 164, 65, .22);
  font: 700 17px/1.2 var(--font-head);
}
.btn--frame:hover { color: #fff3cf; background: rgba(217, 164, 65, .12); }
.btn--frame::before, .btn--frame::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 0 2px #0b0c16;
}
.btn--frame::before { left: -4px; }
.btn--frame::after { right: -4px; }
/* Dark glass pill, the quiet second action. */
.btn--pill {
  padding: 13px 22px; border-radius: 999px; font-weight: 600;
  color: #d8d0bd; background: rgba(10, 11, 20, .55); border-color: rgba(236, 228, 210, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn--pill svg { width: 18px; height: 18px; color: var(--gold); }
.btn--pill:hover { color: var(--text); border-color: rgba(217, 164, 65, .5); }

.link { color: var(--gold-hi); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(241,207,122,.35); }
.link:hover { border-bottom-color: var(--gold-hi); }
.link.is-soon { color: var(--muted); border-bottom-color: transparent; pointer-events: none; }

/* ── шапка ────────────────────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgba(10, 11, 20, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line-soft); }
.top__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-hi); }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font: 700 21px/1 var(--font-logo); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* ── первый экран ─────────────────────────────────────── */
.hero { position: relative; min-height: max(660px, min(100svh, 980px)); display: flex; padding: 108px 0 60px; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #070812; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
/* Dark on the left for the copy, at the top for the header, and down into the page. */
.hero__art::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 15, .9) 0%, rgba(6, 7, 15, .66) 30%, rgba(6, 7, 15, .14) 60%, rgba(6, 7, 15, 0) 78%),
    linear-gradient(180deg, rgba(6, 7, 15, .72) 0%, rgba(6, 7, 15, 0) 18%, rgba(6, 7, 15, 0) 68%, var(--bg) 100%);
}
.hero__embers { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__frame {
  position: absolute; inset: 80px 22px 22px; z-index: 0; pointer-events: none;
  border: 1px solid rgba(217, 164, 65, .3); border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 90px rgba(0, 0, 0, .35);
}
.gem {
  position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fff1c4, var(--gold) 45%, #7a521a);
  box-shadow: 0 0 0 3px #0b0c16, 0 0 0 4px rgba(217, 164, 65, .55), 0 0 18px rgba(241, 207, 122, .45);
}
.gem--bottom { bottom: -7px; }
.gem--top { top: -7px; }

.hero__inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: 1fr auto; gap: 44px 48px;
}
.hero__copy { grid-column: 1; grid-row: 1; align-self: center; max-width: 780px; padding-top: 2vh; }
.hero__title {
  /* Sized to its text, not the column: the gold fill is painted only inside the box, so a word
     wider than the column would lose its last letter. */
  display: inline-block; padding-right: .04em;
  margin: 12px 0 22px;
  font: 800 clamp(54px, 8.4vw, 124px)/.92 var(--font-logo);
  letter-spacing: .035em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff4d2 0%, #f5d68a 26%, #d9a441 52%, #94631f 76%, #e7bd66 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 226, 152, .22);
  filter: drop-shadow(0 2px 0 rgba(58, 34, 8, .95)) drop-shadow(0 12px 26px rgba(0, 0, 0, .65)) drop-shadow(0 0 42px rgba(241, 207, 122, .2));
}
.hero__lead {
  font: 500 clamp(19px, 2.05vw, 24px)/1.42 "Cormorant Garamond", Georgia, serif;
  color: #ebe1cb; max-width: 34em; text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

.perks { grid-column: 1; grid-row: 2; align-self: end; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 14px; }
.perks li {
  display: flex; align-items: center; gap: 12px;
  padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(236, 228, 210, .14);
  font-size: 15px; line-height: 1.3; color: #d8d0bd; text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}
.perks li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.perks svg { flex: none; width: 34px; height: 34px; color: var(--gold); opacity: .9; }

.status {
  grid-column: 2; grid-row: 2; align-self: end; position: relative;
  padding: 26px 26px 22px; border-radius: 12px;
  background: rgba(8, 9, 18, .8); border: 1px solid rgba(217, 164, 65, .4);
  box-shadow: inset 0 0 0 4px rgba(8, 9, 18, .6), inset 0 0 0 5px rgba(217, 164, 65, .14), 0 30px 60px -30px rgba(0, 0, 0, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
/* Corner brackets, as on the mockup's plate. */
.status::after {
  --c: rgba(241, 207, 122, .6);
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 16px no-repeat;
}
.status__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.status__state { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; font-size: 20px; font-weight: 700; }
.status__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.status__grid dt { font-size: 12px; color: var(--muted); }
.status__grid dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(111, 207, 142, .16); }
.dot--soon { background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, .16); }
.dot--off { background: var(--fail); box-shadow: 0 0 0 4px rgba(229, 96, 79, .16); }
.dot--warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(232, 176, 75, .16); }
.dot--wait { background: var(--muted); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ── секции ───────────────────────────────────────────── */
.section { padding: 104px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--line-soft); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head h2 { margin-top: 10px; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 17px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line-soft);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-2px); }
.feature__icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--panel-solid); border: 1px solid var(--line-soft); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  font: 700 22px/1 var(--font-logo); color: var(--gold-hi);
  border: 1px solid var(--line); border-radius: 50%; background: rgba(217,164,65,.07);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.step p:last-child { margin-bottom: 0; }

/* ── проверка браузера ────────────────────────────────── */
.check { padding: 28px; border-radius: var(--radius); background: var(--panel-solid); border: 1px solid var(--line); max-width: 820px; }
.check__verdict { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.check__verdict .dot { margin-top: 9px; width: 14px; height: 14px; }
.check__title { font-size: 21px; font-weight: 700; }
.check__hint { margin-top: 4px; color: var(--muted); }
.check__list { list-style: none; margin: 0; padding: 8px 0 0; }
.check__item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.check__item:last-child { border-bottom: 0; }
.check__mark { font-weight: 700; text-align: center; }
.check__item[data-state="ok"] .check__mark { color: var(--ok); }
.check__item[data-state="warn"] .check__mark { color: var(--warn); }
.check__item[data-state="fail"] .check__mark { color: var(--fail); }
.check__name { font-weight: 600; }
.check__detail { display: block; color: var(--muted); font-size: 14px; }
.check__value { color: var(--muted); font-size: 14px; text-align: right; }
.check__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ── вопросы ──────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 1px solid var(--line-soft); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 26px/1 var(--font-body); color: var(--gold); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ── призыв и подвал ──────────────────────────────────── */
.cta { padding: 110px 0; text-align: center; background: radial-gradient(60% 120% at 50% 100%, rgba(232, 116, 59, .16), transparent 70%); }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta .hero__actions { justify-content: center; margin-top: 0; }
.cta__logo { width: min(440px, 86vw); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)); }
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line-soft); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: baseline; }
.footer__brand { font: 700 16px/1 var(--font-logo); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer__note { color: var(--muted); font-size: 13px; max-width: 640px; }

/* ── адаптив ──────────────────────────────────────────── */
/* The menu collapses before the six header links start to crowd the logo. */
@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 10px; background: rgba(10,11,20,.6); cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; }
  .nav-toggle__bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .7);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav .btn { margin-top: 14px; }
  .top:has(.nav.is-open) { background: var(--bg); }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-rows: auto; gap: 32px; }
  .hero__copy, .perks, .status { grid-column: 1; grid-row: auto; }
  .status { max-width: 420px; }
  .hero__bg { object-position: 66% 40%; }
  .hero__art::after { background:
      linear-gradient(180deg, rgba(6, 7, 15, .78) 0%, rgba(6, 7, 15, .5) 35%, rgba(6, 7, 15, .55) 65%, var(--bg) 100%); }
  .features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }

  .hero { padding: 100px 0 48px; min-height: auto; }
  .hero__frame { inset: 74px 8px 8px; border-radius: 14px; }
  .hero__lead br { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .perks li { flex-direction: column; text-align: center; gap: 8px; padding: 0 6px; margin: 0; font-size: 13.5px; }
  .perks svg { width: 30px; height: 30px; }
  .status { max-width: none; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 32px; }
  .features, .steps { grid-template-columns: 1fr; }
  .check { padding: 20px; }
  .check__item { grid-template-columns: 22px minmax(0, 1fr); }
  .check__value { grid-column: 2; text-align: left; }
  .cta { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot--wait { animation: none; }
  .btn, .feature { transition: none; }
}
