:root {
  --bg: #12061f;
  --bg-alt: #1e0b33;
  --surface: #2a1245;
  --gold: #f5c542;
  --gold-dark: #d4a017;
  --gold-light: #ffe08a;
  --text: #f7f2ff;
  --muted: #c9b8df;
  --line: #4a2d6b;
  --header-h: 72px;
  --radius: 8px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

.content .wrapper a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1em;
  line-height: 1.6;
  font-size: 1.05em;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.7em;
  font-weight: 700;
  color: #fff;
}

h1 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }

.wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
}

/* Header */
.top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(18, 6, 31, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.top .wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding-top: 0;
  padding-bottom: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}

.logo img {
  width: auto;
  height: 44px;
  max-width: 155px;
}

.header-spacer {
  height: var(--header-h);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  color: #1a062e;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  box-shadow: 0 2px 0 #9a7510;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-login {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold);
  box-shadow: none;
}

.btn-login:hover {
  background: rgba(245, 197, 66, 0.12);
  filter: none;
}

.btn-cta {
  margin: 1.25em 0 0.5em;
  font-size: 1.05rem;
  padding: 14px 22px;
  width: fit-content;
}

/* Hamburger */
.hamburger-box {
  position: relative;
  margin-left: 4px;
}

.checkbox {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  display: none;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.hamburger-lines {
  width: 26px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines .line {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  margin: 0 12px 0 0;
}

.top-menu a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.top-menu a:hover {
  color: var(--gold);
}

/* Banner — CLS locked */
.banner-wrap {
  padding-top: 16px;
  padding-bottom: 8px;
}

.banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.banner a {
  display: block;
  text-decoration: none;
}

.banner picture {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 600;
  background: linear-gradient(135deg, #2a0a45 0%, #12061f 100%);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.banner-cta {
  position: absolute;
  left: 3%;
  bottom: 8%;
  z-index: 2;
}

/* Content blocks */
.blocks > section,
.blocks > .block {
  padding: 8px 0 20px;
}

.blocks > .block:nth-child(odd) {
  background: var(--bg-alt);
}

.blocks > .block:nth-child(even) {
  background: var(--bg);
}

.html-block {
  padding-top: 22px;
  padding-bottom: 22px;
}

/* Table of contents */
.content-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 0;
  background: var(--surface);
  margin: 12px 0 20px;
}

.content-table-title {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-bottom: 12px;
  gap: 8px;
  user-select: none;
}

.content-table-title p {
  margin: 0;
  font-size: 1.15em;
  font-weight: 600;
}

.menu-arrow {
  margin-left: auto;
  transition: transform 0.25s ease;
}

.content-table.active .menu-arrow {
  transform: rotate(180deg);
}

.content-table nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.content-table ul {
  list-style: none;
  padding: 0 0 8px;
  margin: 0;
  font-size: 1em;
}

.content-table li {
  margin-bottom: 12px;
  font-weight: 600;
}

.content-table a {
  color: var(--gold-light);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 1em;
  margin: 1em 0 1.4em;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
  word-wrap: break-word;
}

th {
  background: rgba(245, 197, 66, 0.12);
  color: var(--gold-light);
  font-weight: 700;
}

ul, ol {
  font-size: 1.05em;
  line-height: 1.7;
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

ul li::marker,
ol li::marker {
  color: var(--gold);
}

ul li,
ol li {
  margin-bottom: 0.35em;
}

.top-menu a.is-active {
  color: var(--gold);
}

/* FAQ visual */
.faq-list h3 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--line);
  font-size: 1.15em;
  font-weight: 600;
}

.faq-list h3 + p {
  color: var(--muted);
}

/* Footer */
.bottom {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  margin-top: 12px;
}

.bottom .wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.bottom-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.92rem;
}

.bottom-menu a {
  color: var(--muted);
  text-decoration: none;
}

.bottom-menu a:hover {
  color: var(--gold);
}

.bottom-copy {
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.age-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Mobile / tablet */
@media (max-width: 980px) {
  .top-menu {
    display: none;
  }

  .checkbox,
  .hamburger {
    display: flex;
  }

  .hamburger-box input:checked ~ .top-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: calc(var(--header-h) - 8px);
    right: 0;
    min-width: min(88vw, 320px);
    background: rgba(18, 6, 31, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 20;
  }

  .hamburger-box input:checked ~ .top-menu a {
    font-size: 1rem;
    padding: 4px 0;
  }

  .hamburger-box input:checked ~ .hamburger .line1 {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hamburger-box input:checked ~ .hamburger .line2 {
    opacity: 0;
  }

  .hamburger-box input:checked ~ .hamburger .line3 {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .top-actions .btn {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .logo img {
    height: 36px;
    max-width: 130px;
  }
}

@media (max-width: 719px) {
  :root {
    --header-h: 64px;
  }

  .wrapper {
    padding-left: 14px;
    padding-right: 14px;
  }

  .banner picture {
    aspect-ratio: 800 / 1000;
  }

  .banner-cta {
    left: 50%;
    right: auto;
    bottom: 5%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
  }

  .banner-cta .btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th, td {
    min-width: 140px;
  }

  .top-actions .btn-login {
    display: none;
  }
}

@media (max-width: 400px) {
  .top-actions .btn-sign-up {
    padding: 10px 10px;
    font-size: 0.82rem;
  }
}
