:root {
  --bg: #0f1117;
  --bg-card: #ffffff;
  --bg-muted: #f4f5f8;
  --text: #1a1d26;
  --text-muted: #5c6370;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: #fff1f2;
  --header: #12151c;
  --border: #e8eaef;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 17, 23, 0.08);
  --shadow-hover: 0 12px 40px rgba(15, 17, 23, 0.12);
  --container: min(1140px, calc(100% - 32px));
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #eef0f5 0%, #f8f9fc 40%, #f0f2f7 100%);
  color: var(--text);
  padding-top: 0;
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header */
header {
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

header .table,
header .table-cell {
  height: auto !important;
  display: block;
}

.logo {
  float: none;
  order: 1;
}

.logo img {
  height: 52px;
  width: auto;
}

.menuBtn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 3;
  margin: 0;
  float: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.lang-top {
  float: none;
  order: 2;
  margin-left: auto;
}

.nav {
  float: none;
  order: 4;
  width: 100%;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
  margin: 0;
  padding: 0 0 8px;
  max-height: none;
  overflow: visible;
  background: transparent;
}

.nav li {
  display: inline-block;
  line-height: 1.4;
  margin: 0;
  float: none;
}

.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 4px;
  border-radius: 6px;
  transition: color 0.2s;
}

.nav a::before {
  display: none;
}

.nav a:hover {
  color: #fda4af;
}

header .clearfix {
  display: none;
}

/* Hero */
main {
  margin: 40px 0 64px;
}

.main-header {
  width: 100%;
  float: none;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.desk-text {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

.main-awards {
  float: none;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.main-awards img {
  max-height: 56px;
  width: auto;
  margin: 0 !important;
}

.main-header + .main-awards,
.main-awards {
  clear: both;
}

.clearfix {
  display: none;
}

/* Brand cards */
.brandsList {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: grid;
  grid-template-columns: 52px minmax(170px, 220px) minmax(240px, 1fr) repeat(2, minmax(110px, 140px)) minmax(132px, 150px);
  align-items: center;
  gap: 12px 20px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: visible;
}

.brand:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #d1d5db;
  background: var(--bg-card);
}

.brand[data-rank="1"] {
  border-color: #fecdd3;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.brand[data-rank="2"] {
  border-color: #e2e8f0;
}

.brand .table,
.brand .table-cell {
  display: block !important;
  height: auto !important;
  width: auto !important;
  float: none !important;
}

.brand-img,
.brand-offer,
.brand-total,
.brand-total-pay,
.brand-play {
  float: none !important;
  margin: 0 !important;
  width: auto !important;
}

.brand-img img {
  width: 100%;
  max-width: 182px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 14px rgba(15, 17, 23, 0.15));
}

.brand-img .table-cell {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
}

.brand-img {
  justify-self: start;
}

.brand-offer p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 4px 0 0;
}

.brand-offer span,
.brand-tContent span {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.brand-tContent p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.brand-tContent {
  border: none !important;
  padding: 0 !important;
}

.brand-total::before,
.brand-total-pay::before,
.brand-total-pay::after {
  display: none !important;
}

.brand-num {
  position: static;
  transform: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 12px;
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow);
  justify-self: center;
  align-self: center;
}

.brand:nth-child(1) .brand-num,
.brand:nth-child(2) .brand-num,
.brand:nth-child(3) .brand-num {
  background: linear-gradient(135deg, var(--accent) 0%, #9f1239 100%);
  color: #fff;
}

.brand-play a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0 20px;
  height: 46px;
  line-height: 1;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.brand-play {
  justify-self: end;
}

.brand-play a:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.brand .clearfix {
  display: none;
}

/* SEO */
.seo-content {
  margin-top: 48px;
  padding: 40px 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.seo-content h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin: 0 0 14px;
}

.seo-content p,
.seo-content li {
  line-height: 1.65;
  color: #364152;
}

.casino-review {
  margin: 20px 0 0;
  padding: 20px 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}

.review-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.pros-cons .pros,
.pros-cons .cons {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafbff;
}

.pros-cons h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.pros-cons ul {
  margin: 0;
  padding-left: 18px;
}

.pros-cons li + li {
  margin-top: 6px;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.seo-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
}

.seo-table th,
.seo-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.seo-table tbody tr:nth-child(even) {
  background: #fafbff;
}

.seo-table tbody tr:hover {
  background: #f2f5ff;
}

.seo-table th {
  background: var(--header);
  color: #e2e8f0;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seo-table td strong {
  color: #111827;
}

.seo-table .highlight {
  color: #9f1239;
  font-weight: 700;
}

.brand-play-hero,
.page-22bet-hero .brand-play-hero,
.page-1win-hero .brand-play-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.brand-play-hero:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.page-22bet-hero,
.page-1win-hero {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-card {
  padding: 20px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.feature-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

footer {
  background: var(--header);
  padding: 32px 0;
  margin-top: 24px;
}

footer .table,
footer .table-cell {
  height: auto !important;
}

.footer-note {
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 1050px) {
  body {
    padding-top: 0;
  }

  header {
    position: sticky;
  }

  .openMenu .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--header);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
  }

  .openMenu .nav a {
    display: block;
    padding: 12px;
    text-align: right;
  }

  .menuBtn {
    display: flex;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .brand {
    grid-template-columns: 48px minmax(125px, 170px) minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    padding: 16px 16px 16px 20px;
    gap: 12px;
  }

  .brand-num {
    grid-row: 1 / 3;
    position: relative;
    left: 0;
    top: auto;
    transform: none;
    align-self: start;
  }

  .brand-img {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-offer {
    grid-column: 2 / 5;
    grid-row: 2;
  }

  .brand-total,
  .brand-total-pay {
    display: none !important;
  }

  .brand-play {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
  }

  .brand-play a {
    min-width: 110px;
    height: 42px;
    font-size: 14px;
  }
}

@media (max-width: 650px) {
  .main-header,
  .main-awards {
    display: block;
  }

  .seo-content {
    padding: 24px 18px;
  }

  .brand-img img {
    max-width: 140px;
  }

  .brand-offer span {
    display: block;
  }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  margin-bottom: 8px;
  color: var(--accent);
}

.faq-list p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.seo-faq {
  display: grid;
  gap: 10px;
}

.seo-faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 480px) {
  .brand {
    grid-template-columns: 40px 1fr;
  }

  .brand-play {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
  }

  .brand-play a {
    width: 100%;
  }

  .logo img {
    height: 44px;
  }

  .brand-img img {
    max-width: 145px;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }
}
