/* ──────────────────────────────────────────────────────────────
   /gold — собственный дизайн секции.
   Палитра взята из основного сайта, вёрстка независимая.
   Тема одна, тёмная: светлый вариант конфликтовал бы с фансайтом.
   ────────────────────────────────────────────────────────────── */

:root {
  --ink:        #12100c;  /* тёплый чёрный, не нейтральный серый */
  --ink-raised: #1d150e;  /* поверхность блоков */
  --ink-sunken: #0c0a07;  /* шапка и подвал */
  --edge:       #3a2a18;  /* волосяные границы */
  --edge-soft:  #241a10;

  --gold:       #f8b700;
  --gold-dim:   #eeba3f;
  --cream:      #ebdec2;
  --muted:      #a2937a;
  --ember:      #ae0000;
  --ember-deep: #4e0000;

  --ok:         #6f9a4a;

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

  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.75rem;
  --step-5: clamp(2.6rem, 6vw, 4.2rem);

  --gutter: 20px;
  --max:    1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: rgba(248, 183, 0, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── лента макета ─────────────────────────────────────────── */
.demo-ribbon {
  background: var(--ember-deep);
  color: #ffd9d9;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding-block: 7px;
  border-bottom: 1px solid var(--ember);
}

/* ── шапка ────────────────────────────────────────────────── */
.topbar {
  background: var(--ink-sunken);
  border-bottom: 1px solid var(--edge-soft);
  padding-block: 14px;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cream); text-decoration: none;
}
.brand span { color: var(--gold); }
.topbar nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.topbar nav a {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--gold); }

/* ── герой ────────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 7vw, 76px); border-bottom: 1px solid var(--edge-soft); }
.hero .wrap { display: grid; gap: 36px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dim); margin: 0 0 14px;
}
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-5); line-height: 1.05; margin: 0 0 18px;
  text-wrap: balance; color: #fff;
}
.lede { font-size: var(--step-1); color: var(--cream); margin: 0 0 26px; max-width: 54ch; }

/* ценник — единственная крупная цифра на странице */
.rate-card {
  background: var(--ink-raised);
  border: 1px solid var(--edge);
  border-top: 3px solid var(--gold);
  padding: 24px;
}
.rate-card .rate-label {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px; font-family: var(--font-body); font-weight: 600;
}
.rate-figure {
  font-size: var(--step-4); line-height: 1; font-weight: 600;
  color: var(--gold); font-variant-numeric: tabular-nums; margin: 0;
}
.rate-figure small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.rate-meta { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: .9rem; }
.rate-meta div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--edge-soft); padding-bottom: 8px; }
.rate-meta dt { color: var(--muted); }
.rate-meta dd { margin: 0; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: .92rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 26px; border: 1px solid var(--gold); border-radius: 2px;
  background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
  color: var(--gold); text-decoration: none; cursor: pointer;
  transition: filter .18s ease;
}
.btn:hover { filter: brightness(1.28); }
.btn-quiet {
  background: transparent; border-color: var(--edge); color: var(--cream);
}
.btn-quiet:hover { border-color: var(--gold); color: var(--gold); filter: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── секции ───────────────────────────────────────────────── */
section { padding-block: clamp(40px, 6vw, 68px); }
section + section { border-top: 1px solid var(--edge-soft); }
h2.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-3); margin: 0 0 8px; color: #fff; text-wrap: balance;
}
.section-note { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }

/* ── таблица курсов ───────────────────────────────────────── */
.table-scroll { overflow-x: auto; }
table.rates {
  width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
  min-width: 540px;
}
table.rates caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: 12px; }
table.rates th, table.rates td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--edge-soft); }
table.rates thead th {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; border-bottom-color: var(--edge);
}
table.rates tbody tr:hover { background: rgba(248, 183, 0, .04); }
table.rates td.num, table.rates th.num { text-align: right; }
table.rates td.price { color: var(--gold); font-weight: 600; }
.realm { font-weight: 600; color: #fff; }
.realm small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; letter-spacing: .04em; }

.pill {
  display: inline-block; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 2px;
  border: 1px solid currentColor;
}
.pill-ok    { color: var(--ok); }
.pill-low   { color: var(--gold-dim); }
.pill-out   { color: var(--muted); }

/* ── шаги доставки: реальная последовательность ───────────── */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 4px; }
ol.steps li {
  counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--edge-soft); align-items: start;
}
ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.15rem; color: var(--gold);
  border-right: 1px solid var(--edge); padding-right: 14px; line-height: 1.5;
}
ol.steps h3 { margin: 0 0 4px; font-size: var(--step-0); font-weight: 600; color: #fff; }
ol.steps p { margin: 0; color: var(--muted); }

/* ── предупреждение ───────────────────────────────────────── */
.notice {
  border-left: 3px solid var(--ember);
  background: var(--ink-raised);
  padding: 20px 22px;
}
.notice h3 { margin: 0 0 8px; font-size: var(--step-0); color: #fff; font-weight: 600; }
.notice p { margin: 0; color: var(--cream); max-width: 66ch; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--edge-soft); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; color: #fff;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--muted); max-width: 66ch; }

/* ── подвал ───────────────────────────────────────────────── */
footer.site {
  background: var(--ink-sunken); border-top: 1px solid var(--edge-soft);
  padding-block: 36px; font-size: .86rem; color: var(--muted);
}
footer.site .wrap { display: grid; gap: 18px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site nav a { color: var(--cream); text-decoration: none; }
footer.site nav a:hover { color: var(--gold); }
footer.site .fine { max-width: 78ch; margin: 0; }

/* ── индекс секции ────────────────────────────────────────── */
.article-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.article-list li { border-bottom: 1px solid var(--edge-soft); }
.article-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 20px;
  padding: 20px 0; text-decoration: none; color: inherit; align-items: baseline;
}
.article-list a:hover h3 { color: var(--gold); }
.article-list h3 { margin: 0; font-family: var(--font-display); font-size: var(--step-2); color: #fff; font-weight: 600; }
.article-list p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; grid-column: 1; }
.article-list .tag { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dim); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  ol.steps li { grid-template-columns: 38px 1fr; gap: 14px; }
  .article-list a { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── добавлено при доработке SEO ──────────────────────────── */

.breadcrumb-nav { font-size: .8rem; color: var(--muted); padding-top: 18px; }
.breadcrumb-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb-nav li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--edge); }
.breadcrumb-nav a { color: var(--muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--gold); }

/* Блоки назначения золота: не карточки, а колонки с верхней линейкой —
   чтобы не плодить одинаковые рамки по всей странице. */
.cols { display: grid; gap: 30px 34px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.use { border-top: 1px solid var(--edge); padding-top: 16px; }
.use h3 { margin: 0 0 8px; font-size: var(--step-0); font-weight: 600; color: #fff; }
.use p { margin: 0; color: var(--muted); }

/* Способы передачи */
.methods { display: grid; gap: 0; margin: 0; }
.methods > div {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  gap: 10px 24px; padding: 18px 0; border-bottom: 1px solid var(--edge-soft);
  align-items: baseline;
}
.methods dt { font-weight: 600; color: #fff; }
.methods dd { margin: 0; color: var(--muted); }
.methods .eta { color: var(--gold-dim); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .9rem; }

.keyline { border-top: 1px solid var(--edge); padding-top: 16px; margin-top: 4px; }
.keyline h3 { margin: 0 0 8px; font-size: var(--step-0); color: #fff; font-weight: 600; }
.keyline p { margin: 0; color: var(--muted); }

@media (max-width: 680px) {
  .methods > div { grid-template-columns: 1fr; }
  .methods .eta { order: -1; }
}

/* ссылка на оффер в таблице и скрытая подпись столбца */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
table.rates a.go {
  display:inline-block; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase;
  font-weight:600; color:var(--gold); text-decoration:none; white-space:nowrap;
  border:1px solid var(--edge); border-radius:2px; padding:7px 14px;
}
table.rates a.go:hover { border-color:var(--gold); background:rgba(248,183,0,.07); }

/* кнопка покупки в карточке цены; модификатор именуем блок--модификатор,
   чтобы не столкнуться с .btn-quiet */
.btn--block { display:block; width:100%; text-align:center; margin-top:20px; }

/* заголовок группы версий в хабе */
.ver-head {
  font-family: var(--font-display); font-size: var(--step-2); color:#fff;
  margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--edge);
  display:flex; flex-wrap:wrap; gap:6px 16px; align-items:baseline;
}
.ver-head span {
  font-family: var(--font-body); font-size:.76rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted); font-weight:600;
}
.ver-head a, table.rates .realm a { color:inherit; text-decoration:none; }
table.rates .realm a:hover { color:var(--gold); }
/* таблицы показываются целиком; по горизонтали прокручиваются на узких экранах,
   шапка липнет к верху окна */
.table-scroll { overflow-x: auto; }
table.rates thead th { position: sticky; top: 0; background: var(--ink); z-index: 1; }

/* длинный текстовый абзац в разделе «чем не являемся» */
.limits-copy { max-width: 74ch; color: var(--cream); }

/* сплошной текст разделов */
.wrap.prose p { max-width: 68ch; margin: 0 0 18px; color: var(--cream); }
.wrap.prose p:last-child { margin-bottom: 0; }
.wrap.prose .section-title { margin-bottom: 18px; }

/* подзаголовки внутри прозы */
.wrap.prose h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  color: #fff; margin: 30px 0 10px; letter-spacing: .01em;
}
.wrap.prose h3:first-of-type { margin-top: 22px; }
.wrap.prose a { color: var(--gold); }
