:root {
  color-scheme: dark;
  --bg: #08080b;
  --surface: #121217;
  --surface-2: #19191f;
  --text: #fff7ef;
  --muted: #cfd4d0;
  --line: rgba(255, 247, 239, 0.16);
  --accent: #22d6aa;
  --accent-2: #df245b;
  --accent-3: #f4c64f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  padding-bottom: 88px;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0, rgba(34, 214, 170, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(223, 36, 91, 0.12), transparent 42%),
    var(--bg);
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-wrap {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  z-index: 2000;
  top: 0;
  background: rgba(8, 8, 11, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.brand-link {
  width: 144px;
  height: 50px;
  display: block;
  background-image: var(--logo);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  text-decoration: none;
}

.nav-pack {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.section-switch {
  position: relative;
}

.section-switch summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}

.section-switch summary::marker,
.section-switch summary::-webkit-details-marker {
  display: none;
}

.section-switch summary::after {
  content: "v";
  color: var(--accent);
  font-size: 11px;
}

.section-switch[open] summary {
  border-color: rgba(34, 214, 170, 0.45);
}

.section-switch__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 244px;
  padding: 8px;
  display: grid;
  gap: 4px;
  background: rgba(8, 8, 11, 0.98);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
}

.section-switch__list a,
.top-action,
.bottom-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
}

.section-switch__list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.register-action {
  color: #04140f;
  background: var(--accent);
  font-weight: 800;
}

.login-action {
  color: var(--text);
  background: var(--accent-2);
  font-weight: 800;
}

.page-hero {
  padding: 46px 0 34px;
}

.hero-layout,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.crumbs {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14px;
}

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

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.14;
}

h1 {
  max-width: 780px;
  font-size: clamp(34px, 4.7vw, 60px);
}

h2 {
  font-size: clamp(25px, 3vw, 36px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0 0 16px;
}

.lead-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.hero-visual {
  min-height: 310px;
  background-image: var(--media);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(34, 214, 170, 0.38);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.26);
}

.action-pair {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.section {
  padding: 30px 0;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.signal-row div,
.article-cell,
.side-note,
.notice-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-row div {
  min-height: 120px;
  padding: 18px;
}

.signal-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-3);
}

.signal-row span,
.side-note,
.article-cell p,
.notice-band {
  color: var(--muted);
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-list li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #05140f;
  background: var(--accent-3);
  border-radius: 6px;
  font-weight: 900;
}

.side-note {
  padding: 22px;
}

.content-lanes,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-cell {
  padding: 22px;
  border-top: 3px solid rgba(34, 214, 170, 0.5);
}

.article-cell p:last-child,
.side-note p:last-child,
.notice-band p:last-child {
  margin-bottom: 0;
}

.article-cell a {
  color: var(--accent);
}

.notice-band {
  padding: 18px 20px;
  border-color: rgba(244, 198, 79, 0.34);
  background: rgba(244, 198, 79, 0.08);
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 11, 0.96);
}

.site-footer .site-wrap {
  padding: 34px 0 32px;
}

.footer-text {
  color: var(--muted);
  font-size: 14px;
}

.footer-badges {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.footer-badge-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-badge-group--main {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-badges img {
  width: auto;
  height: 22px;
  max-width: 94px;
  display: block;
  padding: 4px 7px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  opacity: 0.92;
}

.footer-badges img[src*="begambleaware"],
.footer-badges img[src*="gam_care"] {
  height: 44px;
  max-width: 236px;
  padding: 8px 12px;
}

.footer-badges img[src*="18plus"] {
  height: 44px;
  min-width: 128px;
  padding: 8px 14px;
}

.footer-badges img[src*="mga"],
.footer-badges img[src*="visa"],
.footer-badges img[src*="mastercard"] {
  height: 44px;
  max-width: 142px;
  padding: 8px 12px;
}

.footer-badges img[src*="btc"],
.footer-badges img[src*="eth"],
.footer-badges img[src*="trx"],
.footer-badges img[src*="ton"],
.footer-badges img[src*="sol"],
.footer-badges img[src*="bch"],
.footer-badges img[src*="ada"],
.footer-badges img[src*="dai"],
.footer-badges img[src*="matic"],
.footer-badges img[src*="shib"],
.footer-badges img[src*="jetton"] {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 999px;
}

.legal-copy {
  max-width: 1040px;
  margin-top: 16px;
  padding: 14px 16px;
  color: rgba(207, 212, 208, 0.78);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(34, 214, 170, 0.62);
  border-radius: 8px;
  font-size: 10.5px;
  line-height: 1.55;
}

.fixed-actions {
  position: fixed;
  z-index: 2100;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 11, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.fixed-actions .site-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fixed-actions__text {
  color: var(--muted);
  font-size: 14px;
}

.bottom-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 1280px) {
  .site-wrap {
    width: min(920px, calc(100% - 32px));
  }

  .topbar-inner {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-pack {
    display: contents;
  }

  .section-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .section-switch summary {
    min-height: 40px;
    min-width: 96px;
    justify-content: center;
    padding: 8px 12px;
  }

  .section-switch__list {
    width: min(270px, calc(100vw - 24px));
    min-width: 0;
  }

  .top-action {
    width: 100%;
    min-height: 50px;
  }

  .top-action.register-action {
    grid-column: 1;
    grid-row: 2;
  }

  .top-action.login-action {
    grid-column: 2;
    grid-row: 2;
  }

  .page-hero {
    padding: 28px 0 24px;
  }

  .hero-layout,
  .split-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-visual {
    min-height: 230px;
  }

  .signal-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: 78px;
  }

  .site-wrap {
    width: min(100% - 24px, 1120px);
  }

  .brand-link {
    width: 136px;
    height: 46px;
  }

  .page-hero {
    padding: 22px 0 24px;
  }

  .hero-layout,
  .split-layout,
  .signal-row,
  .content-lanes,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 214px;
    order: 0;
  }

  .lead-text {
    font-size: 17px;
  }

  .action-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn {
    min-height: 50px;
    padding: 12px 8px;
  }

  .fixed-actions .site-wrap {
    min-height: auto;
    display: block;
    padding: 9px 0;
  }

  .fixed-actions__text {
    display: none;
  }

  .bottom-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .bottom-actions a {
    min-height: 52px;
  }

  .site-footer .site-wrap {
    padding: 24px 0;
  }

  .footer-badges {
    padding: 12px;
  }

  .footer-badge-group {
    justify-content: flex-start;
    gap: 8px;
  }

  .footer-badges img {
    height: 20px;
    max-width: 88px;
  }

  .footer-badges img[src*="begambleaware"],
  .footer-badges img[src*="gam_care"] {
    height: 34px;
    max-width: 172px;
  }

  .footer-badges img[src*="18plus"] {
    height: 34px;
    min-width: 104px;
  }

  .footer-badges img[src*="mga"],
  .footer-badges img[src*="visa"],
  .footer-badges img[src*="mastercard"] {
    height: 34px;
    max-width: 116px;
  }

  .footer-badges img[src*="btc"],
  .footer-badges img[src*="eth"],
  .footer-badges img[src*="trx"],
  .footer-badges img[src*="ton"],
  .footer-badges img[src*="sol"],
  .footer-badges img[src*="bch"],
  .footer-badges img[src*="ada"],
  .footer-badges img[src*="dai"],
  .footer-badges img[src*="matic"],
  .footer-badges img[src*="shib"],
  .footer-badges img[src*="jetton"] {
    width: 30px;
    height: 30px;
  }

  .legal-copy {
    padding: 12px;
    font-size: 9.5px;
  }
}
