:root {
  --primary: #0e2a47;
  --primary-dark: #071525;
  --primary-soft: #1a3d5c;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-light: #dcfce7;
  --bg: #eff6ff;
  --bg-card: #ffffff;
  --text: #0e2a47;
  --text-muted: #4b6a8a;
  --border: rgba(14, 42, 71, 0.12);
  --shadow: 0 8px 32px rgba(14, 42, 71, 0.1);
  --radius: 12px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

body.has-mobile-cta {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Update bar */
.update-bar {
  background: var(--primary-dark);
  color: #b8d4f0;
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.update-bar strong {
  color: #fff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(14, 42, 71, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--primary);
  white-space: nowrap;
}

.logo em {
  color: var(--accent);
  font-style: normal;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.nav {
  flex: 1;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--primary);
  background: var(--accent-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn--header {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(14, 42, 71, 0.9) 0%, rgba(14, 42, 71, 0.7) 100%),
    url("images/hero.webp") center / cover no-repeat;
  color: #fff;
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1rem;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-bar__icon {
  font-size: 1.125rem;
}

/* Rank table */
.casinos {
  padding: 2rem 0 2.5rem;
}

.casinos__heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  font-weight: 800;
  text-align: center;
}

.rank-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rank-table__head {
  display: none;
}

.rank-row {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.rank-row--top {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
}

.rank-row__main {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.rank-row__rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
}

.rank-row--top .rank-row__rank {
  background: var(--accent);
  color: var(--primary-dark);
}

.rank-row__logo {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg);
}

.rank-row__logo img {
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.rank-row__info {
  flex: 1;
  min-width: 0;
}

.rank-row__badge {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.rank-row__info h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.rank-row__rating {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.rank-row__stars {
  color: #f59e0b;
}

.rank-row__bonus {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.rank-row__bonus-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.rank-row__bonus-value {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--primary);
}

.rank-row__perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.375rem;
}

.rank-row__perks li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rank-row__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.rank-row__cta {
  display: flex;
  justify-content: stretch;
}

.rank-row__cta .btn {
  width: 100%;
}

/* SEO */
.seo {
  padding: 2rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.seo h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 800;
}

.seo__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.seo__text p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq {
  padding: 2rem 0;
}

.faq h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 800;
}

.faq__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item h3 {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item h3::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq__item.is-open h3::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  display: none;
}

.faq__item.is-open p {
  display: block;
}

.faq__more {
  display: inline-flex;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.faq__more:hover {
  text-decoration: underline;
}

/* Responsible */
.responsible {
  padding: 2rem 0;
  background: var(--primary-dark);
  color: #b8d4f0;
  text-align: center;
}

.responsible__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.375rem 0.875rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  background: #dc2626;
  border-radius: var(--radius-pill);
}

.responsible h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.25rem;
}

.responsible p {
  margin: 0 0 0.5rem;
  max-width: 560px;
  margin-inline: auto;
}

.responsible__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.responsible__links a {
  color: var(--accent);
  font-weight: 700;
}

.responsible__links a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--primary);
  color: #b8d4f0;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.footer__nav a {
  font-weight: 600;
  color: #fff;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__domain {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: #fff;
}

.footer__copy {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.footer__disclaimer {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  max-width: 640px;
  margin-inline: auto;
  opacity: 0.85;
}

.footer__age {
  margin: 0;
  font-size: 0.875rem;
}

/* Mobile CTA */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(14, 42, 71, 0.12);
}

.mobile-cta-bar .btn {
  width: 100%;
}

/* Page subpages */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 2rem 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.page-content {
  padding: 2rem 0 2.5rem;
}

.page-content h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.page-content a {
  color: var(--accent-dark);
  font-weight: 600;
}

.page-content a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
  margin-top: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Tablet+ */
@media (min-width: 600px) {
  .trust-bar {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .rank-table__head {
    display: grid;
    grid-template-columns: 48px 1.6fr 1.2fr 1.4fr 140px;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }

  .rank-row {
    display: grid;
    grid-template-columns: 48px 1.6fr 1.2fr 1.4fr 140px;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
  }

  .rank-row__main {
    grid-column: 2;
    gap: 0.75rem;
  }

  .rank-row__rank {
    grid-column: 1;
    grid-row: 1;
  }

  .rank-row__bonus {
    grid-column: 3;
    padding: 0.5rem 0.75rem;
  }

  .rank-row__perks {
    grid-column: 4;
  }

  .rank-row__cta {
    grid-column: 5;
    justify-content: center;
  }

  .rank-row__cta .btn {
    width: auto;
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }

  .mobile-cta-bar {
    display: block;
  }
}

@media (min-width: 900px) {
  .header__inner .btn--header {
    margin-left: auto;
  }
}

/* Mobile nav */
@media (max-width: 767px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    cursor: pointer;
    padding: 6px;
  }

  .nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.2s;
  }

  .nav {
    order: 4;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 280px;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
  }

  .nav__list a {
    padding: 0.75rem 0.5rem;
  }

  .btn--header {
    display: none;
  }

  .mobile-cta-bar {
    display: block;
  }
}
