:root {
  --bg: #0e1521;
  --bg-alt: #111a28;
  --surface: #18212f;
  --surface-2: #1f2a3b;
  --footer: #080b11;
  --accent: #f57120;
  --accent-2: #ff8c42;
  --accent-grad: linear-gradient(135deg, #ff8c42 0%, #f15a1b 100%);
  --text: #ffffff;
  --body: #c4cddb;
  --muted: #9aa7b8;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --header-h: 72px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --font-head: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(241, 90, 27, .35);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(241, 90, 27, .5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { color: #fff; border-color: var(--accent); background: rgba(245, 113, 32, .12); }
.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: .78rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 27, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { width: 148px; height: auto; }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--body);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .btn { height: 44px; padding-top: 0; padding-bottom: 0; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 110;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-close {
  width: 40px; height: 40px;
  font-size: 1.4rem; line-height: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
}
.mobile-drawer nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--body);
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer nav a:hover,
.mobile-drawer nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .05); }
.mobile-drawer .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #0a0f17 url("../img/hero-beach.webp") no-repeat center right / cover;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 19, .96) 0%, rgba(8, 12, 19, .82) 38%, rgba(8, 12, 19, .35) 70%, rgba(8, 12, 19, .15) 100%);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  line-height: 1.12;
  color: #fff;
  max-width: 620px;
}
.hero-title span { color: var(--accent); }
.hero-text {
  margin-top: 16px;
  max-width: 520px;
  color: var(--body);
  font-size: 1.02rem;
}
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section shell ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 26px; }
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: #fff;
  line-height: 1.2;
}
.section-title b { color: var(--accent); font-weight: 800; }
.section-sub { margin-top: 8px; color: var(--muted); max-width: 720px; }

/* ---------- Filter pills ---------- */
.filter-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 22px;
  -webkit-overflow-scrolling: touch;
}
.filter-pills::-webkit-scrollbar { height: 5px; }
.filter-pills::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; }
.pill {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
}
.pill:hover, .pill.is-active { color: #fff; background: var(--accent-grad); border-color: transparent; }

/* ---------- Slot grid ---------- */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.slot-tile {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.slot-tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.slot-thumb { display: block; position: relative; aspect-ratio: 5 / 7; background: var(--surface-2); overflow: hidden; }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 19, .55);
  opacity: 0;
  transition: opacity .2s ease;
}
.slot-tile:hover .slot-overlay { opacity: 1; }
.slot-overlay span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: var(--accent-grad);
  padding: 10px 20px;
  border-radius: 999px;
}
.slot-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  color: var(--body);
  padding: 9px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slots-more { margin-top: 26px; text-align: center; }

/* ---------- Tournaments ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.tournament-card {
  background: linear-gradient(150deg, var(--surface-2) 0%, #131c29 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.tournament-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.tournament-card h3,
.tournament-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 6px;
}
.tournament-prize { color: var(--muted); margin-bottom: 18px; }
.tournament-prize strong { color: #fff; font-size: 1.1rem; }

/* ---------- Promotions ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.promo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: #0a0f17 center / cover no-repeat;
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 12, 19, .95) 0%, rgba(8, 12, 19, .45) 100%);
}
.promo-body { position: relative; }
.promo-body .tournament-tag { margin-bottom: 8px; }
.promo-card h3,
.promo-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 14px;
  max-width: 360px;
}

/* ---------- SEO content ---------- */
.article { padding: 56px 0; background: var(--bg-alt); }
.article-inner { max-width: 880px; margin: 0 auto; }
.article h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.18;
  color: #fff;
  margin-bottom: 22px;
}
.article h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  color: #fff;
  margin: 38px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.article h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.16rem;
  color: #fff;
  margin: 26px 0 10px;
}
.article p { margin-bottom: 16px; }
.article a { text-decoration: underline; }
.article strong { color: #fff; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 4px; list-style: none; }
.article ul li, .article ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.article ol { counter-reset: li; }
.article ol li { counter-increment: li; }
.article ol li::before {
  content: counter(li);
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.table-scroll::-webkit-scrollbar { height: 7px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: .92rem;
}
.article th, .article td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article thead th {
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  white-space: nowrap;
}
.article tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
.article tbody tr:hover { background: rgba(245, 113, 32, .07); }
.article td strong { color: #fff; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--accent-grad);
  text-align: center;
  padding: 40px 0;
}
.cta-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  color: #fff;
  margin-bottom: 8px;
}
.cta-strip .cta-sub { color: rgba(255, 255, 255, .9); margin-bottom: 18px; }
.cta-strip .btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.cta-strip .btn-ghost:hover { background: rgba(255, 255, 255, .15); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--border);
  padding: 48px 0 26px;
  font-size: .9rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { width: 160px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent); }

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.pay-badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .03em;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 13px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  color: var(--muted);
}
.footer-bottom p { font-size: .84rem; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.footer-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

/* ---------- 404 ---------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 16px;
  min-height: 56vh;
}
.error-code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: #fff;
  margin: 10px 0 12px;
}
.error-page p { max-width: 440px; margin-bottom: 24px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { min-height: 420px; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .container { padding: 0 24px; }
  .slots-grid { grid-template-columns: repeat(6, 1fr); }
  .burger { display: none; }
  .main-nav { display: block; }
  .header-actions { margin-left: 0; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
