:root {
  --bg: #d8fbf3;
  --bg-soft: #effffb;
  --paper: #ffffff;
  --ink: #053f3a;
  --deep: #063a3d;
  --teal: #18c6b0;
  --teal-strong: #08a094;
  --aqua: #70fff0;
  --gold: #ffd24c;
  --orange: #ff9f1a;
  --pink: #f04ac2;
  --red: #ef233c;
  --muted: #55706d;
  --line: rgba(4, 63, 57, 0.15);
  --shadow: 0 22px 54px rgba(4, 63, 57, 0.16);
  --radius: 8px;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  background: #1bbcb2;
  color: #fff;
  box-shadow: 0 10px 28px rgba(4, 63, 57, 0.15);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 74px;
  height: 54px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(135deg, var(--gold), #16e7c8 48%, #0c6e72 100%);
  color: #053434;
  font-size: 19px;
  font-weight: 950;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 10px 24px rgba(4, 63, 57, 0.24);
}

.brand-title {
  line-height: 1;
}

.brand-title strong {
  display: block;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  text-shadow: 0 3px 0 rgba(4, 63, 57, 0.18);
}

.brand-title span {
  display: block;
  margin-top: 6px;
  color: #073d3c;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quick-actions,
.hero-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-actions {
  justify-content: flex-end;
}

.btn,
.quick-actions a,
.hero-actions a,
.read-more,
.article-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-primary,
.quick-actions a:first-child,
.hero-actions a:first-child,
.read-more,
.article-actions a:first-child {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #143400;
  box-shadow: 0 10px 22px rgba(255, 159, 26, 0.28);
}

.btn-secondary,
.quick-actions a:last-child,
.hero-actions a:last-child,
.article-actions a {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(6, 58, 61, 0.2);
  color: #063a3d;
}

.nav {
  background: #20b8af;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(4, 63, 57, 0.12);
  color: #7723c9;
}

.nav-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-inner a:first-child {
  padding-bottom: 6px;
  border-bottom: 3px solid #043f39;
  color: #043f39;
}

.hero {
  padding: 0 0 34px;
  background: linear-gradient(180deg, #19bdb3 0%, #b7fbf0 100%);
  color: #fff;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-height: 506px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 44, 48, 0.94) 0%, rgba(3, 44, 48, 0.73) 34%, rgba(3, 44, 48, 0.22) 66%, rgba(3, 44, 48, 0.02) 100%),
    url("/assets/8qbet-hero-aqua.png") center / cover no-repeat;
  box-shadow: inset 0 -42px 64px rgba(3, 44, 48, 0.28);
}

.hero-content {
  width: min(640px, 100%);
  padding: 60px 0;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6.8vw, 82px);
  line-height: 0.92;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(2, 38, 39, 0.22);
  text-wrap: balance;
}

.hero h1 span {
  color: var(--gold);
}

.hero-text {
  max-width: 540px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.75;
}

.hero-stats {
  width: min(720px, calc(100% - 48px));
  margin: -74px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow);
}

.hero-stat {
  min-height: 102px;
  padding: 18px 22px;
  background: rgba(6, 58, 61, 0.9);
  color: #fff;
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.intro {
  padding: 74px 0 34px;
}

.section-title {
  margin: 0;
  color: #073d3c;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 0.98;
  font-weight: 950;
  text-wrap: balance;
}

.section-copy {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 30px;
  align-items: stretch;
}

.panel,
.feature-panel,
.step,
.news-card,
.info-box,
.article-shell,
.article-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(4, 63, 57, 0.08);
}

.panel {
  padding: clamp(28px, 4vw, 46px);
}

.feature-panel {
  padding: 26px;
  display: grid;
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(4, 63, 57, 0.12);
  border-radius: var(--radius);
  background: #f7fffc;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0bb49f, var(--gold) 70%, var(--pink));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.feature-row h3,
.step h3,
.info-box h3 {
  margin: 0 0 8px;
  color: #063a3d;
  line-height: 1.2;
}

.feature-row h3 {
  font-size: 18px;
}

.feature-row p,
.step p,
.info-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-row p,
.step p {
  font-size: 14px;
}

.link-panel {
  margin-top: 42px;
  padding: 30px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(5, 68, 68, 0.95), rgba(22, 177, 157, 0.88) 50%, rgba(250, 168, 29, 0.9)),
    url("/assets/8qbet-hero-aqua.png") center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}

.link-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1;
  font-weight: 950;
}

.link-panel p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-link {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
}

.quick-link strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 18px;
}

.quick-link span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
}

.media-section {
  padding: 54px 0;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: stretch;
}

.media-card {
  min-height: 382px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: url("/assets/8qbet-hero-aqua.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 44, 48, 0.86), rgba(3, 44, 48, 0.1));
}

.media-card-content {
  width: min(390px, calc(100% - 56px));
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
}

.media-card-content h2 {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1.05;
}

.media-card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.83);
  line-height: 1.65;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  padding: 22px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #2ff4d7);
  color: #063a3d;
  font-size: 20px;
  font-weight: 950;
}

.step h3 {
  font-size: 21px;
}

.article-band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.article-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.article-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  overflow: hidden;
  background: #fff;
}

.news-thumb {
  min-height: 154px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background:
    linear-gradient(115deg, rgba(3, 44, 48, 0.88), rgba(24, 198, 176, 0.38)),
    url("/assets/8qbet-hero-aqua.png") center / cover no-repeat;
  color: #fff;
}

.news-thumb span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.news-thumb strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.news-body {
  padding: 22px;
}

.news-body time {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.news-body h3 {
  margin: 0 0 12px;
  color: #063a3d;
  font-size: 22px;
  line-height: 1.14;
}

.news-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.info-section {
  padding: 68px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-box {
  padding: 26px;
}

.info-box h3 {
  font-size: 23px;
}

.article-page {
  padding: 58px 0 72px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.article-shell {
  padding: clamp(24px, 4vw, 42px);
}

.article-shell h1 {
  margin: 0 0 14px;
  color: #063a3d;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 950;
  text-wrap: balance;
}

.article-meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-body {
  color: #233b38;
  font-size: 17px;
  line-height: 1.86;
}

.article-body h2,
.article-body h3 {
  margin: 30px 0 12px;
  color: #063a3d;
  line-height: 1.18;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px 20px;
  padding: 0;
}

.article-body li {
  margin: 0 0 10px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-side {
  padding: 22px;
}

.article-side h2 {
  margin: 0 0 16px;
  color: #063a3d;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 950;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-item {
  padding: 15px;
  border-radius: 7px;
  background: #f5fffb;
  border: 1px solid rgba(4, 63, 57, 0.12);
}

.side-item strong {
  display: block;
  color: #063a3d;
  font-size: 15px;
  line-height: 1.35;
}

.side-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  padding: 42px 0;
  background: #21bcb2;
  color: #063a3d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer strong {
  color: var(--gold);
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(4, 63, 57, 0.28);
}

.footer p {
  margin: 0;
  color: rgba(3, 52, 52, 0.8);
  line-height: 1.6;
  font-weight: 700;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 26px, 720px);
  }

  .topbar-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 48px;
    height: 40px;
    font-size: 14px;
  }

  .brand-title strong {
    font-size: 24px;
  }

  .brand-title span,
  .quick-actions a:first-child,
  .nav-inner a:not(:first-child) {
    display: none;
  }

  .nav-inner {
    min-height: 44px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-visual {
    min-height: 626px;
    background:
      linear-gradient(180deg, rgba(3, 44, 48, 0.68) 0%, rgba(3, 44, 48, 0.48) 42%, rgba(3, 44, 48, 0.9) 100%),
      url("/assets/8qbet-hero-aqua.png") center / cover no-repeat;
  }

  .hero-content {
    padding: 34px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-stats {
    width: calc(100% - 26px);
    margin-top: -100px;
    grid-template-columns: 1fr;
  }

  .hero-stat {
    min-height: auto;
    padding: 15px 18px;
  }

  .split,
  .link-panel,
  .media-grid,
  .article-head,
  .news-grid,
  .info-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 52px;
  }

  .panel,
  .feature-panel,
  .link-panel {
    padding: 22px;
  }

  .quick-link-grid {
    grid-template-columns: 1fr;
  }

  .media-card {
    min-height: 420px;
  }

  .step {
    grid-template-columns: 44px 1fr;
  }

  .step-number {
    width: 44px;
    height: 44px;
  }

  .article-band,
  .info-section {
    padding: 52px 0;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 520px) {
  .quick-actions a {
    min-height: 36px;
    padding: 0 13px;
    font-size: 12px;
  }

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

  .feature-row {
    grid-template-columns: 44px 1fr;
    padding: 14px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  .media-card-content {
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .news-body h3,
  .info-box h3 {
    font-size: 20px;
  }

  .article-shell,
  .article-side {
    padding: 20px;
  }
}
