:root {
  --kx-bg: #f5f3ef;
  --kx-surface: #ffffff;
  --kx-ink: #14161c;
  --kx-ink-2: #2a2e3a;
  --kx-muted: #5b6070;
  --kx-line: #e6e2da;
  --kx-orange: #f47a1f;
  --kx-orange-2: #ff9a3d;
  --kx-gold: #e8b04b;
  --kx-night: #11131f;
  --kx-night-2: #1a1d2e;
  --kx-violet: #5b4bdb;
  --kx-grad: linear-gradient(135deg, #ffb347 0%, #f47a1f 55%, #d95c0a 100%);
  --kx-shadow: 0 10px 30px rgba(20, 22, 28, 0.08);
  --kx-shadow-lg: 0 24px 60px rgba(20, 22, 28, 0.14);
  --kx-r: 18px;
  --kx-r-sm: 12px;
  --kx-wrap: 1240px;
  --kx-top: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.7; color: var(--kx-ink-2); background: var(--kx-bg); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; color: var(--kx-ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.85rem, 4vw, 2.9rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.2rem; line-height: 1.35; font-weight: 700; margin-bottom: 10px; }
p { color: var(--kx-muted); }
p + p { margin-top: 14px; }
.kx-wrap { max-width: var(--kx-wrap); margin: 0 auto; padding: 0 24px; }
.kx-intro { font-size: 1.08rem; color: var(--kx-ink-2); font-weight: 500; }

/* Buttons */
.kx-cta { cursor: pointer; user-select: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem; white-space: nowrap; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.kx-cta svg { flex: 0 0 auto; }
.kx-cta--main { background: var(--kx-grad); color: #fff; box-shadow: 0 10px 24px rgba(244, 122, 31, 0.35); }
.kx-cta--main:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(244, 122, 31, 0.45); }
.kx-cta--ghost { background: transparent; color: var(--kx-ink); border-color: var(--kx-ink); }
.kx-cta--ghost:hover { background: var(--kx-ink); color: #fff; }
.kx-cta--light { background: #fff; color: var(--kx-ink); }
.kx-cta--light:hover { transform: translateY(-2px); }
.kx-cta--onDark { border-color: rgba(255,255,255,0.35); color: #fff; background: rgba(255,255,255,0.04); }
.kx-cta--onDark:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.kx-cta--xl { padding: 17px 34px; font-size: 1.02rem; }
.kx-cta--block { width: 100%; }
.kx-cta:focus-visible { outline: 3px solid var(--kx-violet); outline-offset: 3px; }
.kx-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Top bar */
.kx-top { position: sticky; top: 0; z-index: 100; height: var(--kx-top); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--kx-line); }
.kx-top .kx-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kx-brand img { height: 38px; width: auto; }
.kx-top-act { display: flex; gap: 10px; }
.kx-top-act .kx-cta { padding: 11px 22px; }

/* Hero */
.kx-hero { position: relative; padding-bottom: 40px; }
.kx-hero-media { height: 440px; background: #0a0a0a url("../../img/hero.webp") right center / cover no-repeat; position: relative; }
.kx-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 55%), linear-gradient(180deg, rgba(245,243,239,0) 70%, var(--kx-bg) 100%); }
.kx-hero-card { position: relative; z-index: 2; margin-top: -250px; max-width: 720px; background: var(--kx-surface); border-radius: 26px; padding: 44px 46px; box-shadow: var(--kx-shadow-lg); border-top: 5px solid var(--kx-orange); }
.kx-hero-card h1 { margin-bottom: 18px; }
.kx-hero-card p { font-size: 1.04rem; }

/* Layout */
.kx-layout { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; padding: 30px 0 80px; }
.kx-side { position: sticky; top: calc(var(--kx-top) + 24px); display: flex; flex-direction: column; gap: 18px; }
.kx-toc { background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-r); padding: 18px 14px; }
.kx-toc ol { list-style: none; counter-reset: t; display: flex; flex-direction: column; gap: 2px; }
.kx-toc li { counter-increment: t; }
.kx-toc a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--kx-muted); transition: background .15s, color .15s; }
.kx-toc a::before { content: counter(t, decimal-leading-zero); font-family: 'Sora', sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--kx-orange); min-width: 20px; }
.kx-toc a:hover, .kx-toc a.is-on { background: #fff2e6; color: var(--kx-ink); }
.kx-sidecard { background: var(--kx-night); border-radius: var(--kx-r); padding: 26px 22px; text-align: center; position: relative; overflow: hidden; }
.kx-sidecard::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(244,122,31,0.35); filter: blur(70px); top: -90px; right: -80px; }
.kx-sidecard img { width: 84px; margin: 0 auto 18px; position: relative; }
.kx-sidecard .kx-cta { position: relative; }
.kx-sidecard .kx-cta + .kx-cta { margin-top: 10px; }

.kx-main { display: flex; flex-direction: column; gap: 28px; }
.kx-block { background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-r); padding: 42px 44px; box-shadow: var(--kx-shadow); scroll-margin-top: calc(var(--kx-top) + 24px); }
.kx-tag { display: inline-flex; align-items: center; gap: 8px; font-family: 'Sora', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kx-orange); margin-bottom: 12px; }
.kx-tag::before { content: ""; width: 22px; height: 2px; background: var(--kx-orange); }

/* Block: about — image right */
.kx-duo { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 34px; align-items: center; }
.kx-pic { border-radius: var(--kx-r); overflow: hidden; box-shadow: var(--kx-shadow-lg); position: relative; }
.kx-pic img { width: 100%; height: 100%; object-fit: cover; }
.kx-pic--tall { aspect-ratio: 4 / 5; }
.kx-pic-badge { position: absolute; left: 14px; bottom: 14px; width: 62px; height: 62px; border-radius: 16px; background: rgba(17,19,31,0.85); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.kx-pic-badge img { width: 40px; height: auto; }

/* Block: access — dark */
.kx-block--dark { background: var(--kx-night); border-color: var(--kx-night); color: #d6d9e6; position: relative; overflow: hidden; }
.kx-block--dark::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 280px; height: 280px; background: url("../../img/emblem.webp") center / contain no-repeat; opacity: 0.08; pointer-events: none; }
.kx-block--dark h2, .kx-block--dark h3 { color: #fff; }
.kx-block--dark p { color: #a9aec2; }
.kx-block--dark .kx-intro { color: #eef0f7; }
.kx-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; position: relative; z-index: 1; }
.kx-check { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: var(--kx-r-sm); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--kx-orange-2); }

/* Block: games — sub-panels */
.kx-sub { margin-top: 30px; display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; padding-top: 30px; border-top: 1px dashed var(--kx-line); }
.kx-sub-pic { border-radius: var(--kx-r-sm); overflow: hidden; aspect-ratio: 1 / 1; background: #0a0a0a; }
.kx-sub-pic img { width: 100%; height: 100%; object-fit: cover; }
.kx-sub h3 { display: flex; align-items: center; gap: 10px; }
.kx-sub h3 .kx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kx-orange); flex: 0 0 auto; }

/* Block: aviator — violet */
.kx-block--fly { background: linear-gradient(150deg, #241e5e 0%, #15142e 60%); border: none; color: #d8d6f2; position: relative; overflow: hidden; }
.kx-block--fly h2 { color: #fff; }
.kx-block--fly p { color: #b7b4d9; }
.kx-block--fly .kx-intro { color: #fff; }
.kx-block--fly .kx-tag { color: var(--kx-orange-2); }
.kx-block--fly .kx-tag::before { background: var(--kx-orange-2); }
.kx-plane { position: absolute; right: 34px; top: 30px; color: rgba(255,154,61,0.9); transform: rotate(-12deg); }
.kx-fly-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.kx-fly-cols > div { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--kx-r-sm); padding: 22px; }
.kx-fly-cols > div p { margin: 0; }
.kx-curve { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: 0.25; pointer-events: none; }

/* Block: register — orange */
.kx-block--go { background: var(--kx-grad); border: none; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.kx-block--go h2, .kx-block--go p { color: #fff; }
.kx-block--go .kx-tag { color: #fff; }
.kx-block--go .kx-tag::before { background: #fff; }
.kx-block--go .kx-intro { color: #fff; }
.kx-paper { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--kx-r); padding: 26px; }
.kx-paper p { color: #fff7ef; }

/* Block: bonus */
.kx-promo { margin: 24px 0 20px; border-radius: var(--kx-r); overflow: hidden; box-shadow: var(--kx-shadow-lg); cursor: pointer; transition: transform .2s; }
.kx-promo:hover { transform: translateY(-3px); }
.kx-tbl { margin: 22px 0; border-radius: var(--kx-r-sm); overflow: hidden; border: 1px solid var(--kx-line); }
.kx-tbl table { width: 100%; border-collapse: collapse; }
.kx-tbl th, .kx-tbl td { text-align: left; padding: 15px 18px; font-size: 0.93rem; vertical-align: middle; }
.kx-tbl th { background: var(--kx-ink); color: #fff; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.86rem; }
.kx-tbl td { border-top: 1px solid var(--kx-line); color: var(--kx-muted); }
.kx-tbl tbody tr:nth-child(even) td { background: #faf8f5; }
.kx-tbl td:first-child { color: var(--kx-ink); font-weight: 700; }
.kx-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff2e6; color: #c25a0d; font-weight: 600; font-size: 0.85rem; }
.kx-note { margin-top: 18px; padding: 18px 22px; border-radius: var(--kx-r-sm); background: #fff8f1; border-left: 4px solid var(--kx-orange); }
.kx-note p { color: var(--kx-ink-2); }

/* Block: payments — steps line */
.kx-pay { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: start; }
.kx-pay-ico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.kx-pay-ico span { aspect-ratio: 1 / 1; border-radius: var(--kx-r-sm); background: var(--kx-bg); border: 1px solid var(--kx-line); display: flex; align-items: center; justify-content: center; color: var(--kx-orange); }
.kx-pay-text { background: var(--kx-bg); border-radius: var(--kx-r); padding: 26px; }

/* Block: security — icon list */
.kx-shield { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.kx-shield-ico { width: 86px; height: 86px; border-radius: 24px; background: var(--kx-night); color: var(--kx-orange-2); display: flex; align-items: center; justify-content: center; box-shadow: var(--kx-shadow-lg); }

/* FAQ */
.kx-qa { margin-top: 10px; border-top: 1px solid var(--kx-line); }
.kx-qa details { border-bottom: 1px solid var(--kx-line); }
.kx-qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; }
.kx-qa summary::-webkit-details-marker { display: none; }
.kx-qa summary h3 { margin: 0; font-size: 1.05rem; }
.kx-qa summary i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--kx-bg); position: relative; transition: background .2s, transform .2s; }
.kx-qa summary i::before, .kx-qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--kx-ink); transform: translate(-50%, -50%); transition: transform .2s; }
.kx-qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.kx-qa details[open] summary i { background: var(--kx-orange); }
.kx-qa details[open] summary i::before { background: #fff; }
.kx-qa details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); background: #fff; }
.kx-qa details > p { padding-right: 52px; }
.kx-qa details > p:last-child { padding-bottom: 24px; }

/* Final + footer */
.kx-final { background: var(--kx-night); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.kx-final::before { content: ""; position: absolute; inset: 0; background: url("../../img/hero.webp") right center / cover no-repeat; opacity: 0.35; }
.kx-final .kx-wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.kx-final img { height: 64px; width: auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.6)); }
.kx-final .kx-row { margin-top: 0; }
.kx-foot { background: #0b0c14; padding: 26px 0; }
.kx-foot .kx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kx-foot img { height: 30px; width: auto; }
.kx-18 { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--kx-orange); color: var(--kx-orange); font-weight: 800; font-size: 0.78rem; font-family: 'Sora', sans-serif; }

/* Mobile bar */
.kx-mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 10px 12px; gap: 10px; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--kx-line); box-shadow: 0 -8px 24px rgba(0,0,0,0.08); }
.kx-mbar .kx-cta { flex: 1; padding: 13px 10px; }

/* Appear */
.kx-up { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.kx-up.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .kx-up { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .kx-layout { display: block; padding-top: 10px; }
  .kx-main { margin-top: 20px; }
  .kx-side { position: sticky; top: var(--kx-top); z-index: 90; margin: 0 -24px; gap: 0; }
  .kx-toc { border-radius: 0; border-left: 0; border-right: 0; padding: 10px 24px; background: rgba(245,243,239,0.96); backdrop-filter: blur(8px); }
  .kx-toc ol { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .kx-toc ol::-webkit-scrollbar { display: none; }
  .kx-toc a { white-space: nowrap; background: #fff; border: 1px solid var(--kx-line); }
  .kx-toc li { flex: 0 0 auto; }
  .kx-sidecard { display: none; }
  .kx-block { scroll-margin-top: calc(var(--kx-top) + 76px); }
}
@media (max-width: 820px) {
  .kx-hero-media { height: 300px; background-image: url("../../img/hero-m.webp"); background-position: center; }
  .kx-hero-media::after { background: linear-gradient(180deg, rgba(245,243,239,0) 55%, var(--kx-bg) 100%); }
  .kx-hero-card { margin-top: -90px; padding: 30px 24px; border-radius: 22px; }
  .kx-block { padding: 30px 22px; }
  .kx-duo, .kx-block--go, .kx-pay, .kx-fly-cols, .kx-sub { grid-template-columns: 1fr; }
  .kx-pic--tall { aspect-ratio: 16 / 10; }
  .kx-sub-pic { aspect-ratio: 16 / 9; }
  .kx-checks { grid-template-columns: repeat(3, 1fr); }
  .kx-shield { grid-template-columns: 1fr; }
  .kx-shield-ico { width: 64px; height: 64px; border-radius: 18px; }
  .kx-plane { width: 46px; height: 46px; right: 18px; top: 18px; }
  .kx-qa details > p { padding-right: 0; }
  .kx-tbl { overflow-x: auto; }
  .kx-tbl table { min-width: 520px; }
  .kx-top-act .kx-cta--ghost { display: none; }
  .kx-brand img { height: 30px; }
  .kx-row .kx-cta { flex: 1 1 100%; }
  .kx-final .kx-wrap { justify-content: center; text-align: center; }
  .kx-mbar { display: flex; }
  body { padding-bottom: 72px; }
}
@media (max-width: 420px) {
  .kx-wrap { padding: 0 16px; }
  .kx-side { margin: 0 -16px; }
  .kx-toc { padding: 10px 16px; }
  .kx-top-act .kx-cta { padding: 10px 16px; font-size: 0.88rem; }
}
