/* ─── Emerald & Gold palette ─────────────────────────────────────────────── */
:root {
  --bg:           #080f0a;
  --surface:      #0d1a0f;
  --surface-soft: #122016;
  --text:         #f0f5ee;
  --muted:        #94b09a;
  --accent:       #c9a84c;      /* gold */
  --accent-light: #e8c96a;
  --emerald:      #2d9e6b;
  --emerald-soft: #1a6646;
  --success:      #3ed598;
  --warning:      #f5c842;
  --danger:       #e05c5c;
  --radius:       18px;
  --shadow:       0 16px 38px rgba(0, 0, 0, 0.48);
  --gold-border:  rgba(201, 168, 76, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45,158,107,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(201,168,76,0.07) 0%, transparent 60%);
  color: var(--text);
  line-height: 1.72;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-light);
  text-decoration: underline;
}

.container {
  width: min(1150px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -10000px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.8rem;
  z-index: 10000;
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 15, 10, 0.82);
  border-bottom: 1px solid var(--gold-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.18s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5.4rem 0 3.2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-hero.jpg") center/cover no-repeat;
  opacity: 0.22;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.9rem;
  align-items: center;
}

/* ─── Panels ─────────────────────────────────────────────────────────────── */
.panel {
  background: linear-gradient(160deg,
    rgba(13, 32, 18, 0.96),
    rgba(8, 20, 12, 0.93));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem;
}

.eyebrow {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  color: var(--accent);
  padding: 0.32rem 0.78rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: rgba(201, 168, 76, 0.08);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0.95rem 0 0.9rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  background: linear-gradient(135deg, #f0f5ee 40%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin: 0 0 0.9rem;
  color: var(--text);
}

h3 {
  color: var(--accent-light);
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  max-width: 64ch;
}

.notice-inline {
  margin-top: 1.25rem;
  border-left: 4px solid var(--warning);
  background: rgba(245, 200, 66, 0.07);
  padding: 1rem 1.05rem;
  border-radius: 10px;
}

.disclosure {
  border: 1px dashed rgba(201, 168, 76, 0.42);
  background: rgba(10, 24, 13, 0.82);
  border-radius: 14px;
  padding: 1.1rem;
}

/* ─── Showcase ───────────────────────────────────────────────────────────── */
.showcase {
  position: relative;
  padding: 1.8rem 0 3.1rem;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-section.jpg") center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
  border-radius: 0;
}

.showcase > * {
  position: relative;
  z-index: 1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.brand-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: linear-gradient(145deg,
    rgba(10, 28, 15, 0.98),
    rgba(6, 18, 10, 0.95));
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201,168,76,0.4);
}

.brand-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.1rem 1.1rem 0.9rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  overflow: hidden;
}

.brand-card__head img {
  width: 180px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  /* плавный fade по краям через mask */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  transition: transform 0.22s, opacity 0.22s;
  opacity: 0.92;
}

.brand-card:hover .brand-card__head img {
  transform: scale(1.04);
  opacity: 1;
}

.score {
  font-weight: 800;
  color: var(--accent-light);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.55);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.brand-card__body {
  padding: 1.15rem 1rem 1.1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 1rem;
}

.tag {
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(201, 168, 76, 0.06);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(201, 168, 76, 0.65);
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.06));
  color: var(--accent-light);
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s;
}

.btn:hover {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(201,168,76,0.28), rgba(201,168,76,0.14));
  border-color: var(--accent-light);
}

.btn.alt {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.btn.alt:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ─── Grid layouts ───────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.95rem;
}

.resource-links a {
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(10, 24, 13, 0.85);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transition: border-color 0.22s, background 0.22s, transform 0.22s, box-shadow 0.22s;
  text-align: center;
}

.resource-links a:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: rgba(201, 168, 76, 0.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.resource-links img {
  width: 160px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  transition: opacity 0.22s, transform 0.22s;
  opacity: 0.88;
}

.resource-links a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* ─── Page content ───────────────────────────────────────────────────────── */
.page-head {
  padding: 3.3rem 0 1.6rem;
}

.content-block {
  margin: 1.35rem 0;
}

main > section {
  margin-bottom: 1.4rem;
}

main > section:last-child {
  margin-bottom: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  margin-top: 3.2rem;
  border-top: 1px solid var(--gold-border);
  padding: 2.7rem 0 1.4rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-footer.jpg") center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.4rem;
}

.legal-mini {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding-top: 1rem;
}

.small {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-orgs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.footer-orgs a {
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 14px;
  padding: 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
  text-align: center;
  font-size: 0.8rem;
}

.footer-orgs a:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--text);
  background: rgba(201, 168, 76, 0.06);
  transform: translateY(-2px);
}

.footer-orgs img {
  width: 110px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  opacity: 0.82;
  transition: opacity 0.22s, transform 0.22s;
}

.footer-orgs a:hover img {
  opacity: 1;
  transform: scale(1.06);
}

/* ─── Overlays / dialogs ─────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 4, 0.88);
  display: none;
  place-items: center;
  z-index: 1000;
}

.overlay.active {
  display: grid;
}

.dialog {
  width: min(580px, 94vw);
  background: linear-gradient(160deg, #0d2210, #081409);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.dialog h2 {
  margin-top: 0;
  color: var(--accent-light);
}

/* ─── Restricted view ────────────────────────────────────────────────────── */
.restricted {
  min-height: 100vh;
  display: none;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.restricted.active {
  display: grid;
}

/* ─── Misc ───────────────────────────────────────────────────────────────── */
ul.clean {
  padding-left: 1.25rem;
}

ul.clean li {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

ul.clean li::marker {
  color: var(--accent);
}

/* ─── Topbar compliance strip ────────────────────────────────────────────── */
.topbar-compliance {
  background: rgba(8, 20, 10, 0.97);
  border-bottom: 1px solid rgba(201, 168, 76, 0.28);
  font-size: 0.78rem;
  padding: 0.38rem 0;
  color: var(--muted);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.topbar-badge {
  background: var(--accent);
  color: #080f0a;
  font-weight: 800;
  border-radius: 6px;
  padding: 0.1rem 0.42rem;
  font-size: 0.76rem;
  flex-shrink: 0;
}

.topbar-sep {
  color: rgba(201,168,76,0.35);
}

.topbar-compliance a {
  color: var(--accent-light);
}

/* ─── Disclaimer box (hero) ──────────────────────────────────────────────── */
.disclaimer-box {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.disclaimer-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.disc-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--warning);
  line-height: 1.4;
}

/* ─── Responsible gambling block (hero sidebar) ──────────────────────────── */
.resp-block {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(45, 158, 107, 0.08);
  border: 1px solid rgba(45, 158, 107, 0.3);
  border-radius: 12px;
}

.resp-block__age {
  background: var(--emerald);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 0.25rem 0.55rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.resp-block p {
  margin: 0.2rem 0 0;
}

/* ─── Showcase disclaimer ────────────────────────────────────────────────── */
.showcase-disclaimer {
  font-size: 0.83rem;
  color: var(--muted);
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ─── 18+ badge ──────────────────────────────────────────────────────────── */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #080f0a;
  font-weight: 900;
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 0.12rem 0.44rem;
  flex-shrink: 0;
}

.badge-18.sm {
  font-size: 0.7rem;
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
}

/* ─── Card disclaimer ────────────────────────────────────────────────────── */
.card-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}

/* ─── Full-width RG banner ───────────────────────────────────────────────── */
.rg-banner {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.rg-banner__inner {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(26,102,70,0.22), rgba(10,24,13,0.6));
  border: 1px solid rgba(45,158,107,0.4);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.rg-banner__age {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--emerald);
  border: 3px solid var(--emerald);
  border-radius: 14px;
  padding: 0.2rem 0.7rem;
  flex-shrink: 0;
  line-height: 1.2;
  text-align: center;
}

.rg-banner__text {
  flex: 1;
}

.rg-banner__text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.rg-banner__text p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.rg-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.rg-banner__links a {
  font-size: 0.82rem;
  color: var(--accent-light);
  background: rgba(201,168,76,0.09);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  transition: background 0.18s;
}

.rg-banner__links a:hover {
  text-decoration: none;
  background: rgba(201,168,76,0.18);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    padding: 0.5rem 0;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 0.9rem;
  }

  .brand-card__head img {
    width: 140px;
    height: 50px;
  }

  .resource-links img {
    width: 120px;
    height: 40px;
  }

  .footer-orgs img {
    width: 90px;
    height: 30px;
  }

  .rg-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-inner {
    gap: 0.4rem;
  }
}
