:root {
  --tb-red: #e50918;
  --tb-red-dark: #8b0008;
  --tb-black: #08090d;
  --tb-ink: #111827;
  --tb-muted: #6b7280;
  --tb-gold: #ffcc32;
  --tb-gold-deep: #f0a400;
  --tb-line: #e5e7eb;
  --tb-soft: #f7f8fb;
  --tb-white: #ffffff;
  --tb-footer: #090d14;
  --tb-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tb-ink);
  background: var(--tb-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.tb-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.tb-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #08090d, #160b0c);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.tb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

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

.tb-logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.tb-logo span:first-child {
  color: var(--tb-red);
}

.tb-logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin: 0 2px;
  place-items: center;
  border-radius: 50%;
  color: var(--tb-black);
  background: var(--tb-red);
  font-size: 20px;
}

.tb-social {
  display: flex;
  gap: 8px;
}

.tb-social span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1f6feb;
  font-size: 11px;
  font-weight: 800;
}

.tb-social span:nth-child(2) {
  background: #22a7f0;
}

.tb-social span:nth-child(3) {
  background: #e62117;
}

.tb-social span:nth-child(4) {
  background: #3a6dd8;
}

.tb-social span:nth-child(5) {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tb-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.tb-btn-gold {
  color: #160e00;
  background: linear-gradient(180deg, #ffe16d, var(--tb-gold));
  box-shadow: 0 8px 20px rgba(255, 204, 50, 0.26);
}

.tb-btn-dark {
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 204, 50, 0.8);
}

.tb-btn-outline {
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.75);
}

.tb-nav-wrap {
  background: linear-gradient(180deg, #f01722, #c9000d);
}

.tb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  min-height: 54px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tb-nav::-webkit-scrollbar {
  display: none;
}

.tb-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.tb-nav a.is-active::after,
.tb-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 4px;
  border-radius: 999px;
  background: var(--tb-gold);
}

.tb-hero {
  color: #fff;
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 204, 50, 0.2), transparent 32%),
    linear-gradient(110deg, #0b0507 0%, #39090b 38%, #8d0008 100%);
}

.tb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 28px;
  min-height: 470px;
  padding: 48px 0 34px;
}

.tb-hero h1 {
  max-width: 590px;
  margin: 0 0 22px;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.tb-hero h1 strong {
  display: block;
  color: var(--tb-gold);
}

.tb-hero p {
  max-width: 520px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.tb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tb-hero-art {
  min-width: 0;
}

.tb-hero-art img {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.tb-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  padding: 0 0 28px;
}

.tb-trust-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 14, 0.62);
}

.tb-trust-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--tb-red);
}

.tb-trust-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.tb-trust-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
}

.tb-trust-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.tb-section {
  padding: 46px 0;
  background: #fff;
}

.tb-section-title {
  margin: 0 0 30px;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  letter-spacing: 0;
}

.tb-section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--tb-red);
}

.tb-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.tb-intro-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--tb-shadow);
}

.tb-intro-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tb-intro-copy h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.18;
}

.tb-red-line {
  width: 58px;
  height: 4px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: var(--tb-red);
}

.tb-intro-copy p {
  margin: 0 0 16px;
  color: var(--tb-muted);
  font-size: 16px;
}

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

.tb-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.tb-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tb-card-body {
  min-height: 162px;
  padding: 18px;
}

.tb-card h3 {
  margin: 0 0 9px;
  font-size: 19px;
}

.tb-card p {
  margin: 0 0 12px;
  color: var(--tb-muted);
  font-size: 14px;
}

.tb-card-arrow {
  display: flex;
  justify-content: flex-end;
  color: var(--tb-red);
  font-size: 28px;
  line-height: 1;
}

.tb-guide {
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.tb-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 28px 18px;
}

.tb-step {
  position: relative;
  min-width: 0;
  padding: 0 18px;
  text-align: center;
}

.tb-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -24px;
  width: 48px;
  border-top: 2px dotted var(--tb-red);
}

.tb-step-num {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tb-red);
  font-weight: 900;
}

.tb-step-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  place-items: center;
  color: var(--tb-ink);
}

.tb-step-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.tb-step h3 {
  margin: 0 0 9px;
  font-size: 16px;
  font-weight: 900;
}

.tb-step p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 13px;
}

.tb-news-list {
  display: grid;
  gap: 10px;
}

.tb-news-row {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) 120px 28px;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.tb-news-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  object-fit: cover;
}

.tb-news-row h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.35;
}

.tb-news-row p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 14px;
}

.tb-news-date {
  color: var(--tb-muted);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.tb-news-arrow {
  color: var(--tb-red);
  font-size: 32px;
  line-height: 1;
  text-align: center;
}

.tb-news-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.tb-pagination {
  margin-top: 22px;
  text-align: center;
}

.tb-pagination ul,
.tb-pagination ol {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tb-pagination a,
.tb-pagination span,
.tb-pagination li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--tb-red);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.tb-article-hero {
  padding: 68px 0 62px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.96), rgba(139, 0, 8, 0.9)),
    url("/assets/topbet-hero.png") center / cover;
}

.tb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.tb-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.45);
}

.tb-article-title {
  max-width: 840px;
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: 0;
}

.tb-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.tb-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 52px 0 70px;
}

.tb-article-main {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--tb-shadow);
}

.tb-article-cover img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.tb-article-body {
  padding: 34px;
  font-size: 17px;
}

.tb-article-body h2,
.tb-article-body h3 {
  line-height: 1.25;
  letter-spacing: 0;
}

.tb-article-body h2 {
  margin: 30px 0 12px;
  font-size: 28px;
}

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

.tb-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

.tb-page-title {
  margin-bottom: 14px;
  color: var(--tb-red-dark);
  font-size: 20px;
  font-weight: 900;
}

.tb-pagebreak {
  margin-top: 24px;
  color: var(--tb-red);
  font-weight: 800;
}

.tb-article-nav {
  display: grid;
  gap: 8px;
  padding: 0 34px 32px;
  color: var(--tb-red);
  font-weight: 800;
}

.tb-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.tb-side-box {
  padding: 22px;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.tb-side-box h2 {
  margin: 0 0 12px;
  color: var(--tb-red-dark);
  font-size: 20px;
}

.tb-side-box p,
.tb-side-box li {
  color: var(--tb-muted);
  font-size: 14px;
}

.tb-side-box ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0;
}

.tb-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, #111827, #08090d);
}

.tb-footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 0.8fr 1.05fr;
  gap: 40px;
  padding: 46px 0 36px;
}

.tb-footer .tb-logo {
  margin-bottom: 18px;
  font-size: 34px;
}

.tb-footer .tb-logo-mark {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.tb-footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.tb-footer p,
.tb-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.tb-footer-links {
  display: grid;
  gap: 10px;
}

.tb-support {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.tb-support strong {
  display: block;
  margin-bottom: 10px;
  color: var(--tb-gold);
}

.tb-support .tb-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 14px;
  font-size: 14px;
}

.tb-copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .tb-topbar,
  .tb-brand-area {
    align-items: flex-start;
  }

  .tb-social {
    display: none;
  }

  .tb-nav {
    justify-content: flex-start;
    gap: 30px;
  }

  .tb-hero-grid,
  .tb-intro,
  .tb-article-wrap {
    grid-template-columns: 1fr;
  }

  .tb-trust,
  .tb-product-grid,
  .tb-guide-grid,
  .tb-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .tb-shell {
    width: min(100% - 24px, 1180px);
  }

  .tb-header {
    position: static;
  }

  .tb-topbar {
    min-height: 78px;
  }

  .tb-logo {
    font-size: 30px;
  }

  .tb-logo-mark {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .tb-actions {
    display: grid;
    gap: 8px;
  }

  .tb-actions .tb-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }

  .tb-nav {
    min-height: 52px;
    gap: 26px;
  }

  .tb-nav a {
    min-height: 52px;
    font-size: 12px;
  }

  .tb-hero-grid {
    padding: 36px 0 22px;
  }

  .tb-hero h1 {
    font-size: 33px;
  }

  .tb-hero p {
    font-size: 16px;
  }

  .tb-hero-art img {
    max-height: 310px;
  }

  .tb-trust,
  .tb-product-grid,
  .tb-guide-grid,
  .tb-footer-main {
    grid-template-columns: 1fr;
  }

  .tb-trust-item {
    padding: 14px;
  }

  .tb-section {
    padding: 36px 0;
  }

  .tb-section-title {
    font-size: 25px;
  }

  .tb-news-row {
    grid-template-columns: 106px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 10px;
  }

  .tb-news-date {
    grid-column: 2 / 3;
    text-align: left;
    font-size: 12px;
  }

  .tb-news-arrow {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    font-size: 24px;
  }

  .tb-news-row h3 {
    font-size: 14px;
  }

  .tb-news-row p {
    font-size: 12px;
  }

  .tb-article-title {
    font-size: 32px;
  }

  .tb-article-body {
    padding: 24px;
    font-size: 16px;
  }

  .tb-article-nav {
    padding: 0 24px 26px;
  }
}
