:root {
  --bg: #0b0a0e;
  --panel: rgba(18, 16, 22, 0.92);
  --line: rgba(228, 194, 122, 0.22);
  --line-strong: rgba(228, 194, 122, 0.48);
  --text: #f4f0e6;
  --muted: #aaa394;
  --gold: #e0c48a;
  --gold-2: #f3e2bc;
  --danger: #e09a8c;
  --ok: #9dccb0;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  --serif: "Cinzel", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  top: 0 !important;
  overflow-x: hidden;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(11, 10, 14, 0.2), #0b0a0e 420px),
    url("../img/sky-band.png") center top / 100% 480px no-repeat,
    #0b0a0e;
}
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: white; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--gold);
  color: #24180c;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
main { padding-bottom: 12px; }

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 10, 14, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.bar { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; }
.brand strong { font-family: var(--serif); font-weight: 600; letter-spacing: 0.16em; font-size: 15px; }
.brand span { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-toggle, .nav-burger { display: none; }
nav.primary { display: flex; gap: 4px; }
nav.primary a { color: var(--text); padding: 8px 12px; border-bottom: 2px solid transparent; }
nav.primary a.active { color: var(--gold-2); border-bottom-color: var(--gold); }
nav.primary a:hover { color: white; }
.mast-tools { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.account-links { display: flex; align-items: center; gap: 14px; }
.account-links a { color: var(--text); }
.lang-switch { margin: 0; flex-direction: row; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; letter-spacing: 0; text-transform: none; }
.lang-switch select { min-width: 8.5rem; padding: 6px 8px; border-radius: 2px; background: #0c0b10; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 11px 16px; color: var(--text); background: transparent; cursor: pointer;
}
.btn.small { padding: 7px 12px; font-size: 15px; }
.btn:hover { border-color: var(--gold-2); color: white; }
.btn.gold { background: var(--gold); color: #24180c; border-color: var(--gold); font-weight: 600; }
.btn.gold:hover { color: #24180c; filter: brightness(1.06); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.hero { position: relative; margin-top: 28px; overflow: hidden; min-height: 320px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero.home { min-height: 460px; }
.hero img.cover { width: 100%; height: 320px; object-fit: cover; }
.hero.home img.cover { height: 460px; }
.hero .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 36px 28px;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 12, 0.94));
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.03em; }
.hero h1 { margin: 0 0 10px; font-size: clamp(42px, 6vw, 76px); line-height: 0.98; }
.hero .lead, .page-head .lead { max-width: 38rem; color: var(--text); margin: 0; }
.kicker { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; }
.page-head { margin: 28px 0 8px; }
.page-head h1 { margin: 6px 0 8px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.panel h1 { margin: 6px 0 8px; font-size: clamp(30px, 4vw, 42px); }

.page-banner { position: relative; margin: 28px 0 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 320px; }
.page-banner > img { width: 100%; height: 320px; object-fit: cover; }
.page-banner .page-head {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 56px 28px 22px;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 12, 0.94));
}
.page-banner .page-head h1 { margin-bottom: 6px; }

.band { margin-top: 42px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: 28px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; }
.steps li { margin: 0; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.steps img.shot { width: 100%; height: 140px; object-fit: cover; }
.steps .pad { padding: 16px 18px 18px; }
.step-no { display: block; margin-bottom: 8px; color: var(--gold); font-family: var(--serif); letter-spacing: 0.16em; font-size: 13px; }
.steps h3 { margin: 0 0 8px; font-size: 24px; }
.steps p { margin: 0 0 10px; }
.realm-value { font-family: var(--serif); font-size: 26px; color: var(--gold-2); line-height: 1.2; }

.feature { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 0; border: 1px solid var(--line); background: var(--panel); }
.feature:not(:has(img)) { grid-template-columns: 1fr; }
.feature img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.feature .pad { padding: 32px 30px; }
.feature h3 { margin: 10px 0; font-size: 32px; line-height: 1.15; }
.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }

.card { background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.card img.shot { width: 100%; height: 190px; object-fit: cover; }
.card .pad, .panel { padding: 18px 20px 20px; }
.card h3 { margin: 8px 0; font-size: 22px; }
.card h3 a, .feature h3 a { color: var(--text); }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); margin: 18px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.paths a.card { color: var(--text); min-height: 100%; }
.paths a.card:hover, .card:hover { border-color: var(--line-strong); }
.paths img.shot { height: 210px; }

.story { width: min(740px, 100%); margin: 28px auto 8px; }
.story-cover { width: 100%; max-height: 440px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 22px; }
.story h1 { margin: 8px 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.story-body p { font-size: 18px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
input, textarea, select {
  background: #0c0b10;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); border-color: transparent; }
.flash { padding: 12px 14px; margin: 16px 0; border: 1px solid var(--line); }
.flash.ok { border-color: var(--ok); color: var(--ok); }
.flash.bad { border-color: var(--danger); color: var(--danger); }
.split { display: grid; grid-template-columns: 1fr 0.85fr; gap: 22px; align-items: stretch; margin: 28px 0; }
.split img.side { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border: 1px solid var(--line); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop-grid .card { display: flex; flex-direction: column; }
.shop-grid .card .pad { display: flex; flex-direction: column; flex: 1; }
.shop-grid .card .price { margin-top: auto; }
.shop-grid img.shot { height: 240px; }
.price { font-family: var(--serif); color: var(--gold-2); font-size: 22px; margin: 8px 0; }
.shop-grid select { width: 100%; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.subnav a { color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.subnav a.active { color: var(--gold-2); border-bottom-color: var(--gold); }
footer.site-foot { margin-top: 48px; border-top: 1px solid var(--line); }
footer.site-foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; padding: 32px 0 48px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; }
footer.site-foot strong { color: var(--text); font-family: var(--serif); font-weight: 600; letter-spacing: 0.08em; }
footer.site-foot p { margin: 4px 0 0; color: var(--muted); }
footer.site-foot nav { display: flex; flex-direction: column; align-items: flex-start; }
footer.site-foot .kicker { margin-bottom: 8px; }
footer.site-foot a { color: var(--muted); padding: 3px 0; }
footer.site-foot a:hover { color: white; }
.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 4px; }
.stat b { display: block; font-family: var(--serif); font-size: 28px; color: var(--gold-2); }
.meter { height: 6px; margin: 4px 0 12px; background: rgba(224, 196, 138, 0.12); }
.meter span { display: block; height: 100%; background: var(--gold); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ok); }
.dot.off { background: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); }
code { color: var(--gold-2); }

@media (max-width: 860px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .grid, .shop-grid, .split, .feature, .news-list, .paths, .steps, footer.site-foot .wrap, .stats { grid-template-columns: 1fr; }
  .hero.home, .hero.home img.cover { min-height: 0; height: auto; }
  .hero.home img.cover, .hero img.cover, .page-banner > img { height: 280px; }
  .hero .caption, .hero.home .caption { position: static; background: #100e14; padding: 22px 18px 24px; }
  .split img.side, .feature img { min-height: 220px; }
  .page-banner { min-height: 0; }
  .page-banner .page-head { position: static; background: var(--panel); padding: 18px; }
  .nav-burger { display: inline-flex; margin-left: auto; border: 1px solid var(--line); padding: 6px 10px; cursor: pointer; }
  nav.primary { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #0b0a0e; border-bottom: 1px solid var(--line); padding: 8px 18px 14px; }
  .nav-toggle:checked ~ nav.primary { display: flex; }
  .bar { position: relative; flex-wrap: wrap; min-height: 68px; padding: 8px 0; }
  .mast-tools { order: 3; width: 100%; margin-left: 0; justify-content: space-between; padding-bottom: 8px; }
  .foot-brand { align-items: flex-start; }
}
