:root {
  --bg: #050807;
  --ink: #fff3dc;
  --muted: #c9bfa8;
  --gold: #e9b858;
  --gold-soft: #ffe7a6;
  --green: #103c35;
  --green-2: #0a2727;
  --panel: rgba(12, 18, 17, .86);
  --panel-2: rgba(18, 25, 23, .92);
  --line: rgba(255, 231, 166, .22);
  --line-soft: rgba(255, 231, 166, .12);
  --shadow: 0 26px 80px rgba(0, 0, 0, .48);
  --radius-a:0;
  --radius-b:0;
}
* { box-sizing: border-box; }
*, *::before, *::after { border-radius:0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(233, 184, 88, .04) 0 1px, transparent 1px 34px) 0 0 / 34px 34px,
    radial-gradient(circle at 12% 0, rgba(16, 60, 53, .62), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(63, 42, 12, .36), transparent 32%),
    var(--bg);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.66;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0 0 16px; }
.wrap { width: min(1180px, calc(100% - 34px)); margin: auto; }
.topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius:0;
  background: rgba(5, 8, 7, .82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}
.topbar__in { min-height: 76px; display: flex; align-items: center; gap: 14px; }
.logo img { width: 112px; height: 54px; object-fit: contain; }
.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 6px;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  border-radius:0;
  background: rgba(255, 255, 255, .026);
}
.nav a { padding: 10px 11px; border-radius:0; color: var(--muted); font-weight: 860; font-size: 14px; }
.nav a:hover, .nav a.is-active { color: var(--gold-soft); background: rgba(233, 184, 88, .14); }
.actions { display: flex; gap: 9px; }
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--gold);
  border-radius:0;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #251806;
  font-weight: 900;
  box-shadow: 0 13px 30px rgba(233, 184, 88, .2);
  cursor: pointer;
}
.btn--ghost { color: var(--gold-soft); background: rgba(255, 255, 255, .035); box-shadow: none; }
.menu { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius:0; background: #09100f; color: var(--gold-soft); }
.menu span, .menu::before, .menu::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.12; color: var(--ink); font-family: Georgia, serif; letter-spacing: 0; }
h1 { font-size: clamp(42px, 6vw, 82px); overflow-wrap: anywhere; }
h2 { margin-bottom: 18px; font-size: clamp(28px, 3.6vw, 46px); overflow-wrap: anywhere; }
h3 { margin: 18px 0 8px; font-size: 22px; }
.hero { position: relative; overflow: hidden; min-height: 720px; display: grid; align-items: center; margin-top: -88px; padding-top: 96px; }
.hero__bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 7, .98), rgba(5, 8, 7, .58)), url('../img/royalxo-fin-home.webp') center / cover fixed; transform: translate3d(0, var(--parallax-y, 0), 0); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/64px 64px; pointer-events: none; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 780px); gap: 38px; align-items: end; padding: 112px 0 78px; }
.hero__copy { display: grid; gap: 22px; }
.lead { max-width: 820px; color: #eadfc7; font-size: 20px; }
.hero__media { margin: 0; border: 1px solid var(--line); border-radius:0; overflow: hidden; box-shadow: var(--shadow); transform: translateY(22px); }
.hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__stats, .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.stat, .card { border: 1px solid var(--line); border-radius:0; padding: 17px; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(16,60,53,.16)); box-shadow: var(--shadow); }
.stat b, .card b { display: block; margin-bottom: 6px; color: var(--gold-soft); }
.stat b { font-size: 24px; }
.stat span, .card span { display: block; color: var(--muted); font-size: 13px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.section { position: relative; padding: 78px 0; }
.section::before { content: ""; position: absolute; left: max(12px, calc((100% - 1180px) / 2 - 22px)); top: 54px; bottom: 54px; width: 3px; border-radius:0; background: linear-gradient(180deg, var(--gold), rgba(16, 60, 53, .7), transparent); }
.section--paper { background: linear-gradient(180deg, rgba(255,255,255,.036), rgba(16,60,53,.09)); }
.section--dark { background: linear-gradient(135deg, rgba(12, 32, 29, .58), rgba(5, 8, 7, .86)); }
.flow-block { display: flow-root; }
.media { border: 1px solid var(--line); border-radius:0; overflow: hidden; min-height: 280px; background: #111; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.media--float { float: right; width: min(510px, 43%); margin: 0 0 24px 38px; }
.section:nth-of-type(4n + 1) .media--float { float: left; margin: 0 38px 24px 0; border-radius:0; }
.tablebox { margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius:0; background: rgba(8, 13, 12, .86); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid rgba(255,255,255,.05); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th:last-child, td:last-child { border-right: 0; }
th { color: var(--gold-soft); background: rgba(233, 184, 88, .1); font-size: 14px; }
td { color: #f1e8d4; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.024); }
.parallax-panel { position: relative; min-height: 430px; display: grid; align-items: center; overflow: hidden; background-image: linear-gradient(90deg, rgba(5,8,7,.88), rgba(5,8,7,.45)), var(--parallax-image); background-size: cover; background-position: center; background-attachment: fixed; }
.parallax-panel--compact { min-height: 320px; }
.parallax__shade { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(233,184,88,.08), transparent 45%); }
.parallax__content { position: relative; max-width: 760px; }
.subhero { padding: 104px 0 56px; margin-top: -88px; padding-top: 142px; background: linear-gradient(135deg, rgba(16,60,53,.48), rgba(67,43,10,.25)); }
.subhero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 34px; align-items: center; }
.subhero__media { margin: 0; border: 1px solid var(--line); border-radius:0; overflow: hidden; box-shadow: var(--shadow); }
.subhero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius:0; background: rgba(12,18,17,.82); overflow: hidden; }
.faq button { width: 100%; padding: 16px 18px; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 900; font-size: 16px; cursor: pointer; }
.faq button::after { content: "+"; float: right; color: var(--gold); font-size: 22px; }
.faq__item.open button::after { content: "-"; }
.faq__item div { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq__item.open div { display: block; }
.footer { padding: 44px 0 28px; border-top: 1px solid var(--line); background: #030504; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .65fr .65fr .9fr; gap: 24px; }
.footer__logo { width: 96px; height: auto; margin-bottom: 10px; }
.footer p, .footer a { color: #beb49f; }
.footer__links { display: grid; gap: 8px; }
.payrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pay { border: 1px solid var(--line); border-radius:0; padding: 5px 9px; color: var(--muted); font-size: 12px; }
.legal-line { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; color: #9e9585; font-size: 13px; }
.cookie { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: none; width: min(780px, calc(100% - 32px)); gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius:0; background: rgba(6, 10, 9, .97); box-shadow: var(--shadow); }
.cookie.is-visible { display: flex; }
.cookie p { flex: 1; margin: 0; color: var(--muted); line-height: 1.45; }
.cookie a { color: var(--gold-soft); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.error { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 120px 0 72px; }
.error h1 { font-size: clamp(72px, 16vw, 150px); }
@media (max-width: 980px) {
  .topbar { top: 0; width: 100%; border-left: 0; border-right: 0; border-radius:0; }
  .menu { display: block; margin-left: auto; }
  .nav { position: fixed; top: 86px; left: 12px; right: 12px; display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius:0; background: rgba(5,8,7,.98); box-shadow: var(--shadow); }
  .nav.is-open { display: grid; }
  .actions { display: none; }
  .hero { margin-top: 0; padding-top: 0; min-height: 0; }
  .hero__bg, .parallax-panel { background-attachment: scroll; }
  .hero__in, .subhero__grid, .hero__stats, .cards, .footer__grid { grid-template-columns: 1fr; }
  .hero__in { padding: 38px 0 58px; }
  .hero__media { order: -1; transform: none; }
  .media--float, .section:nth-of-type(4n + 1) .media--float { float: none; width: 100%; margin: 0 0 22px; }
  .subhero { margin-top: 0; padding-top: 58px; }
  .legal-line { display: grid; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 24px, 1180px); }
  h1 { font-size: clamp(40px, 13vw, 62px); }
  .lead { font-size: 18px; }
  .section { padding: 54px 0; }
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tr { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  td { border: 0; padding: 10px 14px; background: transparent !important; }
  td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--gold-soft); font-size: 12px; font-weight: 900; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 36vh; overflow: auto; flex-direction: column; gap: 10px; padding: 14px; }
  .cookie p { font-size: 14px; line-height: 1.35; }
  .cookie .btn { align-self: flex-start; min-height: 40px; padding: 9px 16px; }
}
