/* RefonixPW, old-school fan-site style
   fonts:   Philosopher 700 (headings) + Tahoma/Verdana (text)
   colours: navy / gold / bone, blue for secondary buttons */

:root {
  --navy: #060d1b;
  --page: #07122a;
  --panel: #0e2042;
  --panel-2: #0a1730;
  --bar-1: #2a4f94;
  --bar-2: #15305f;
  --gold: #e2b857;
  --gold-l: #f6e0a0;
  --gold-d: #8a6f2c;
  --gold-dd: #5a4113;
  --text: #d9dde6;
  --muted: #93a0b8;
  --link: #8fd0ff;
  --ok: #6fd28a;
  --bad: #e0685f;
  --line: #1d3566;
  --display: "Philosopher", Georgia, "Times New Roman", serif;
  --body: Tahoma, Verdana, "DejaVu Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #050a16 url("assets/tile.svg");
  color: var(--text);
  font: 13px / 1.55 var(--body);
}
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--gold-l); }
h1, h2, h3, p, ol, ul, dl { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code {
  font: 12px Consolas, "Courier New", monospace;
  color: var(--gold-l);
  background: #040a17;
  border: 1px solid var(--line);
  padding: 0 4px;
  word-break: break-all;
}

/* ---------- online strip, always visible at the very top ---------- */
.topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px 7px;
  background: linear-gradient(#1d3b70, #0b1a36);
  border-bottom: 2px solid var(--gold-d);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  font: 700 15px / 1.2 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-l);
}
.topline__sep { color: var(--gold-d); }
.topline__state { font-size: 13px; letter-spacing: .04em; }

.led {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border-radius: 50%;
  background: #6d778a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5);
  vertical-align: -1px;
}
body.is-up .led { background: var(--ok); box-shadow: 0 0 8px var(--ok), inset 0 0 0 1px rgba(0, 0, 0, .4); animation: pulse 2.4s ease-in-out infinite; }
body.is-down .led { background: var(--bad); box-shadow: 0 0 8px var(--bad), inset 0 0 0 1px rgba(0, 0, 0, .4); }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- page frame ---------- */
#page {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--page);
  border-left: 2px solid var(--gold-d);
  border-right: 2px solid var(--gold-d);
  box-shadow: 0 0 0 1px #000, 0 0 44px rgba(0, 0, 0, .85);
}

/* ---------- header banner ---------- */
.head {
  position: relative;
  height: 300px;
  background: #0a1c3e url("assets/banner.svg") center / cover no-repeat;
  border-bottom: 3px solid var(--gold-d);
}
.logo {
  position: absolute;
  left: 28px;
  top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .75)); }
.logo__name {
  display: block;
  font: 700 58px / 1 var(--display);
  background: linear-gradient(#fff3c4, #e2b857 55%, #a97a22);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(60, 38, 4, .55);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .85));
}
.logo__tag {
  display: block;
  margin-top: 8px;
  font: 700 16px / 1.2 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d3e4f8;
  text-shadow: 0 2px 6px #000;
}

.plaque {
  position: absolute;
  right: 22px;
  top: 28px;
  width: 232px;
  padding: 12px 14px 11px;
  text-align: center;
  background: linear-gradient(#0d1c3b, #07122a);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--gold-dd), 0 6px 18px rgba(0, 0, 0, .75);
}
.plaque__label {
  font: 700 14px / 1.2 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-l);
}
.plaque__state { font-size: 12px; color: var(--text); }

/* ---------- main menu ---------- */
.menu {
  display: flex;
  background: linear-gradient(#1d3b70, #0b1a36);
  border-bottom: 2px solid var(--gold-d);
}
.menu a {
  flex: 1;
  padding: 12px 6px;
  text-align: center;
  text-decoration: none;
  font: 700 15px / 1.2 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold-l);
  border-right: 1px solid #040b1a;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.menu a:last-child { border-right: 0; }
.menu a:hover {
  color: #2b1c04;
  background: linear-gradient(#f8e3a0, #dcab40 52%, #b4852a);
  text-shadow: 0 1px 0 rgba(255, 244, 196, .6);
}

/* ---------- columns ---------- */
.cols {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.box {
  margin-bottom: 14px;
  background: linear-gradient(#10244a, var(--panel-2));
  border: 1px solid var(--gold-d);
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #17305f, 0 3px 10px rgba(0, 0, 0, .5);
}
.box:last-child { margin-bottom: 0; }
.box > h2 {
  padding: 8px 12px 7px;
  font: 700 15px / 1.2 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-l);
  text-shadow: 0 1px 0 #000;
  background: linear-gradient(var(--bar-1), var(--bar-2));
  border-bottom: 1px solid var(--gold-d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.in { padding: 12px; }
.in p { margin-bottom: 9px; }
.in p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: block;
  margin-top: 8px;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
  font: 700 14px / 1.25 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #2b1c04;
  background: linear-gradient(#f8e3a0, #dcab40 52%, #b4852a);
  border: 1px solid var(--gold-dd);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #fff6cf, inset 0 -2px 0 #94681b, 0 2px 4px rgba(0, 0, 0, .6);
  text-shadow: 0 1px 0 rgba(255, 244, 196, .6);
}
.btn:first-child { margin-top: 0; }
.btn:hover { color: #2b1c04; filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn small { display: block; margin-top: 2px; font: 400 11px / 1.3 var(--body); letter-spacing: 0; text-transform: none; opacity: .85; }
.btn--blue {
  color: #fff;
  background: linear-gradient(#4f89d6, #2a5aa0 52%, #1b3f78);
  border-color: #0b1d3e;
  box-shadow: inset 0 1px 0 #a5c9f4, inset 0 -2px 0 #153463, 0 2px 4px rgba(0, 0, 0, .6);
  text-shadow: 0 1px 0 #0b1d3e;
}
.btn--blue:hover { color: #fff; }

/* ---------- sidebar ---------- */
.bigonline { margin-bottom: 10px; padding: 8px 6px 9px; text-align: center; background: #040a17; border: 1px solid var(--gold-dd); box-shadow: inset 0 0 0 1px #000; }
.bigonline__label { font: 700 12px / 1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); }
.bigonline__state { font-size: 12px; }
.kv, .info { width: 100%; border-collapse: collapse; }
.kv td { padding: 4px 0; border-top: 1px dashed var(--line); vertical-align: top; }
.kv tr:first-child td { border-top: 0; }
.kv td:first-child { color: var(--muted); width: 38%; }
.stamp { margin-top: 8px; font-size: 11px; color: var(--muted); }
.sums { margin-top: 10px; font-size: 11px; color: var(--muted); }
.sums summary { cursor: pointer; }
.sums p { margin-top: 6px; }
.sums code { display: block; margin-top: 2px; font-size: 10.5px; }
.topic { font: 700 14px / 1.3 var(--display); }
.topic a { text-decoration: none; }

/* ---------- main column ---------- */
.shot {
  display: block;
  margin-bottom: 10px;
  padding: 3px;
  background: #02060f;
  border: 2px solid var(--gold-d);
  box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .6);
}
.shot:hover { border-color: var(--gold); }
.shot img { display: block; width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery .shot { margin-bottom: 0; }
.gallery .shot img { aspect-ratio: 16 / 10; object-fit: cover; }

.news li { padding: 12px; border-top: 1px dashed var(--line); }
.news li:first-child { border-top: 0; }
.date {
  display: inline-block;
  padding: 1px 8px;
  font: 700 12px / 1.5 var(--display);
  color: #2b1c04;
  background: linear-gradient(#f8e3a0, #dcab40);
  border: 1px solid var(--gold-dd);
  border-radius: 2px;
}
.news h3, .faqtitle { margin: 6px 0 3px; font: 700 17px / 1.25 var(--display); color: var(--gold-l); }
.news p { margin: 0; }

.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 12px 44px; min-height: 40px; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font: 700 17px / 1 var(--display);
  color: #2b1c04;
  background: radial-gradient(circle at 35% 30%, #fff0b8, #e2b857 62%, #9a6d1b);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-d), 0 2px 5px rgba(0, 0, 0, .6);
}
.steps b { color: var(--gold-l); }

.info td { padding: 7px 10px; border: 1px solid var(--line); }
.info tr:nth-child(odd) td { background: #0a1832; }
.info tr:nth-child(even) td { background: #0e2042; }
.info td:first-child { width: 32%; color: var(--muted); }

.divider { display: block; margin: 4px auto 0; max-width: 90%; height: auto; }
.foot { padding: 10px 14px 22px; text-align: center; font-size: 11px; color: var(--muted); }
.foot p { margin: 2px 0; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1020px) {
  #page { border-left: 0; border-right: 0; }
}
@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; padding: 10px; }
  .menu { flex-wrap: wrap; }
  .menu a { flex: 1 1 33%; border-bottom: 1px solid #040b1a; }
  .head { height: auto; padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 14px; }
  .logo, .plaque { position: static; }
  .logo img { width: 84px; height: 84px; }
  .logo__name { font-size: 42px; }
  .logo__tag { font-size: 13px; }
  .plaque { width: 100%; max-width: 320px; align-self: flex-start; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body.is-up .led { animation: none; }
}

/* ---------- document pages (privacy, terms, contacts, prices) ---------- */
.head--short { height: 150px; }
.head--short .logo { top: 26px; }
.head--short .logo img { width: 96px; height: 96px; }
.head--short .logo__name { font-size: 46px; }
.cols--doc { grid-template-columns: 1fr; }
.doc-box { margin-bottom: 0; }
.doc h3 { margin: 18px 0 6px; font: 700 17px / 1.25 var(--display); color: var(--gold-l); }
.doc h3:first-of-type { margin-top: 8px; }
.doc p, .doc li { max-width: 80ch; }
.doc ul { margin: 0 0 9px; padding-left: 20px; list-style: disc; }
.doc li { margin-bottom: 4px; }
.doc a { color: var(--link); }
mark.todo { background: #5a1f1f; color: #ffe3e3; padding: 0 4px; border: 1px dashed #e0685f; }
.prices { margin: 10px 0 12px; }
.prices th { padding: 7px 10px; text-align: left; border: 1px solid var(--line); background: #15305f; color: var(--gold-l); font: 700 13px / 1.3 var(--display); }
.prices td { vertical-align: top; }
.nowrap { white-space: nowrap; }
.foot__links { margin-bottom: 6px; }
.foot__links a { color: var(--link); }
@media (max-width: 820px) {
  .head--short { height: auto; }
  .head--short .logo img { width: 72px; height: 72px; }
  .head--short .logo__name { font-size: 38px; }
}

/* ---- purchase flow ---- */
.notice{border:1px solid var(--line,#8a6d2f);background:rgba(255,200,80,.12);padding:10px 14px;margin:14px 0}
.flow{list-style:none;display:flex;gap:6px;padding:0;margin:18px 0;flex-wrap:wrap}
.flow__step{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(128,128,128,.4);opacity:.6}
.flow__step.is-active{opacity:1;border-color:#c9a14a;background:rgba(201,161,74,.15)}
.flow__step.is-done{opacity:.9}
.flow__n{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#c9a14a;color:#1a1204;font-weight:700}
.buy__pane{display:none}.buy__pane.is-active{display:block}
.packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:12px 0}
.pack{display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 8px;border:1px solid rgba(128,128,128,.5);cursor:pointer;text-align:center}
.pack input,.pay input{position:absolute;opacity:0;pointer-events:none}
.pack.is-on,.pay.is-on{border-color:#c9a14a;background:rgba(201,161,74,.18)}
.pack__gold{font-size:1.7em;font-weight:700}.pack__price{margin-top:6px;font-weight:700}
.pay{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid rgba(128,128,128,.5);margin:8px 0;cursor:pointer}
.pay.is-off{opacity:.5;cursor:not-allowed}.pay__name{font-weight:700}
.buy__in{display:block;width:100%;max-width:360px;padding:10px;margin:6px 0;font:inherit}
.buy__nav{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}
.buy__err{color:#d9534f;margin:6px 0}.buy__chk{display:block;margin:14px 0}
.stub{position:fixed;inset:0;background:rgba(0,0,0,.6);display:grid;place-items:center;z-index:50;padding:16px}
.stub[hidden]{display:none}
.stub__box{background:#10213f;color:#eee;border:1px solid #c9a14a;padding:20px;max-width:440px}
.buylink{display:inline-block;margin:6px 0}

/* ======================= v4: counter tiles, motion, language, news ======================= */
.counter { display: inline-flex; gap: 3px; vertical-align: middle; font-family: var(--display); font-weight: 700; }
.counter .dg {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--gold-l);
  background: linear-gradient(#0b1530 0 49%, #050b1b 51% 100%);
  border: 1px solid var(--gold-dd);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(0, 0, 0, .6);
}
.counter .dg::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .75); box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.counter .dg b { font-weight: 700; font-variant-numeric: tabular-nums; }
.counter .dg.is-pad { color: #5b6a8b; }
.counter .dg.tick b { animation: roll .5s cubic-bezier(.2, .8, .3, 1); }
@keyframes roll { from { transform: translateY(-85%); opacity: 0; } to { transform: none; opacity: 1; } }
.counter--sm .dg { width: 17px; height: 24px; font-size: 18px; }
.counter--md .dg { width: 40px; height: 56px; font-size: 40px; }
.counter--lg .dg { width: 52px; height: 74px; font-size: 52px; }
.counter--md { gap: 5px; }
.counter--lg { gap: 6px; margin: 6px 0 4px; }
.bigonline { margin-bottom: 10px; }
.bigonline .counter { margin: 6px 0 4px; }
.topline { position: relative; padding-right: 150px; padding-left: 150px; }
.topline__label { opacity: .9; }
.lang { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.lang select {
  appearance: none; -webkit-appearance: none;
  max-width: 132px;
  padding: 4px 24px 4px 9px;
  font: 700 12px / 1.2 var(--body);
  color: var(--gold-l);
  background: #040a17 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23e2b857'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--gold-d);
  border-radius: 3px;
  cursor: pointer;
}
.lang select:hover, .lang select:focus { border-color: var(--gold); outline: 0; }
.lang select option { background: #0b1a36; color: #eee; }

/* page load + scroll reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in-view { opacity: 1; transform: none; }
.head { overflow: hidden; }
.head::before { content: ""; position: absolute; inset: -4%; background: inherit; animation: drift 38s ease-in-out infinite alternate; z-index: 0; }
.head .sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.head .logo, .head .plaque { z-index: 2; }
@keyframes drift { from { transform: scale(1.03) translate3d(-1.2%, 0, 0); } to { transform: scale(1.1) translate3d(1.2%, -1.4%, 0); } }
.logo__img { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.logo__name { background-size: 100% 220%; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0 0; } 50% { background-position: 0 100%; } }
.menu a { position: relative; overflow: hidden; transition: color .2s, background .2s; }
.menu a.is-here { color: #2b1c04; background: linear-gradient(#f8e3a0, #dcab40 52%, #b4852a); }
.menu a::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s; }
.menu a:hover::after { left: 120%; }
.btn { position: relative; overflow: hidden; transition: filter .15s, transform .15s, box-shadow .15s; }
.btn::after { content: ""; position: absolute; inset: 0 auto 0 -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); }
.btn:hover::after { left: 130%; transition: left .7s; }
.btn:hover { transform: translateY(-1px); }
.box { transition: border-color .25s, box-shadow .25s; }
.box:hover { border-color: var(--gold); }
.shot { overflow: hidden; }
.shot img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img { transform: scale(1.05); }
.steps li::before { transition: transform .25s; }
.steps li:hover::before { transform: scale(1.12) rotate(-6deg); }
.led { transition: background .3s; }

/* news */
.news li h3 a, .newsfull h3 a { color: var(--gold-l); text-decoration: none; }
.news li h3 a:hover, .newsfull h3 a:hover { color: #fff; text-decoration: underline; }
.more { display: inline-block; margin-top: 6px; font: 700 13px / 1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.more::after { content: " \2192"; display: inline-block; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.newsfull { padding: 14px 0; border-top: 1px dashed var(--line); }
.newsfull:first-child { border-top: 0; padding-top: 0; }
.newsfull h3 { margin: 6px 0 4px; font: 700 19px / 1.25 var(--display); }
.article .lead { font-size: 15px; color: var(--gold-l); margin: 10px 0 12px; }
.article p { max-width: 74ch; }
.article .back { display: inline-block; margin-top: 12px; padding-left: 18px; padding-right: 18px; }
.cols--doc .box { margin-bottom: 0; }

@media (max-width: 820px) {
  .topline { padding: 6px 12px 38px; }
  .lang { top: auto; bottom: 6px; right: 50%; transform: translateX(50%); }
  .counter--lg .dg { width: 40px; height: 58px; font-size: 40px; }
  .head--short .sparks { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .head::before, .logo__img, .logo__name { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .counter .dg.tick b { animation: none; }
}
