/* Sierra Casino — landing (inspired layout). Tokens + responsive layout */

:root {
  --bg-deep: #040810;
  --bg: #0a0f18;
  --bg-elevated: #10192a;
  --bg-muted: #0c121c;
  --border: rgba(56, 189, 248, 0.2);
  --border-strong: rgba(14, 165, 233, 0.42);
  --gold: #1d4ed8;
  --gold-bright: #38bdf8;
  --gold-dim: #0369a1;
  --text: #eef6ff;
  --text-muted: #94a3b8;
  --danger: #ff4d6d;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.14), 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --container: min(1160px, calc(100% - 2 * clamp(16px, 4vw, 32px)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.1), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(29, 78, 216, 0.16), transparent 50%),
    var(--bg);
  min-height: 100dvh;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #e0f2fe;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--gold);
  color: #f0f9ff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.96), rgba(10, 15, 24, 0.82));
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  width: 150px;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: conic-gradient(from 210deg, var(--gold), #7dd3fc, var(--gold-dim), var(--gold-bright));
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.logo__text {
  font-size: 1.15rem;
}

.logo__accent {
  color: var(--gold);
  margin-left: 0.2em;
}

.logo--footer .logo__mark {
  width: 32px;
  height: 32px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav__list a:hover {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  background: transparent; /* reset for <button> */
  appearance: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.btn-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, #7dd3fc, var(--gold-bright), var(--gold));
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.35);
  border: none;
}

.btn--primary:hover {
  filter: brightness(1.06);
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
}

.btn--outline:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #fff;
}

.btn--lg {
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 20% 40%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(40% 60% at 85% 20%, rgba(29, 78, 216, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg-muted), var(--bg));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
}

.hero__amount {
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.trust-row li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.hero__panel {
  display: grid;
  gap: 1rem;
}

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(16, 25, 42, 0.95), rgba(10, 15, 24, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.offer-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.offer-card__media {
  flex: 0 0 clamp(4.25rem, 32%, 7.5rem);
  max-width: 7.5rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.offer-card__img {
  width: 100%;
  height: auto;
  max-height: clamp(3.25rem, 10vw, 5.25rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
}

.offer-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.offer-card__value {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.offer-card__link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

.offer-card__link:hover {
  border-color: var(--gold-bright);
}

/* Sections */
.section {
  padding: clamp(1.5rem, 5vw, 2.5rem) 0;
}

.section--muted {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
}

.section__subtitle {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.section-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Search */
.search-section .container {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: min(640px, 100%);
  justify-content: center;
}

.search-bar__input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  outline: none;
}

.search-bar__input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

.search-bar__btn {
  min-height: 48px;
  padding-inline: 1.35rem;
}

.lucky-btn {
  min-height: 48px;
}

.search-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 42ch;
}

/* Categories */
.category-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 0.75rem;
}

.category-pill {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  min-height: 4.5rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.category-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.expert {
  margin-bottom: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-pill__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.category-pill__label {
  font-weight: 500;
}

.category-pill__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.category-pill__thumb {
  flex-shrink: 0;
  width: clamp(2.25rem, 5vw, 2.65rem);
  height: clamp(2.25rem, 5vw, 2.65rem);
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--gold-bright);
}

.category-pill__thumb svg {
  width: 58%;
  height: 58%;
  max-width: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-pill__thumb svg [fill]:not([fill="none"]) {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .category-pill {
    padding: 0.75rem 0.85rem;
    min-height: 4rem;
    gap: 0.5rem;
  }
}

@media (min-width: 481px) and (max-width: 720px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Games */
.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.game-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.game-card--lucky {
  outline: 2px solid var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22), 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.game-card__art {
  /* aspect-ratio: 16 / 10; */
  background-size: cover;
  background-position: center;
}

.game-card__art--1 {
  background-image: linear-gradient(135deg, #3a1418, #ff6b35 40%, #ffd369);
}
.game-card__art--2 {
  background-image: linear-gradient(135deg, #1a1f4a, #6c5ce7, #a29bfe);
}
.game-card__art--3 {
  background-image: linear-gradient(135deg, #0d2f3a, #00cec9, #55efc4);
}
.game-card__art--4 {
  background-image: linear-gradient(135deg, #0c1929, #2563eb, #7dd3fc);
}

.game-card__body {
  padding: 0.85rem 1rem 1rem;
}

.game-card__title {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.game-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Winners table */
.winners-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.winners-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.winners-table th,
.winners-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.winners-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.winners-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

.winners-table .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold-bright);
}

/* Stats */
.stats-section .container {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.stats-intro {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.stats-intro .section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.stats-intro .btn {
  margin-top: 1rem;
}

.stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.stat-card {
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  text-align: center;
}

.stat-card__value {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.stat-card__label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Providers */
.provider-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.provider-chip {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.provider-chip:hover {
  border-color: var(--border-strong);
}

/* Promo split */
.promo-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.inline-links a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.promo-split__visual {
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.28), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(29, 78, 216, 0.38), transparent 50%),
    var(--bg-elevated);
    background-image: url(images/something-special.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Content blocks (text / 60-40 / 40-60) */


.content-text-only__inner .section__subtitle {
  margin-bottom: 1.25rem;
}

.content-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(1.35rem, 4vw, 2.75rem);
  align-items: center;
}

.content-split--media-left .content-split__grid {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
}

.content-split__copy .section__title {
  margin-bottom: 0.35rem;
}

.content-split__copy .section__subtitle {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.content-split__figure {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(16, 25, 42, 0.75), rgba(10, 15, 24, 0.85));
  box-shadow: var(--shadow-glow);
  padding: clamp(0.85rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-split__figure img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.28));
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--border);
  background: #030712;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer__tagline {
  color: var(--text-muted);
  max-width: 40ch;
  margin-top: 0.75rem;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.footer__heading {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer__col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__age a {
  color: inherit;
  font-weight: 700;
}

.footer__copy {
  margin: 0;
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(4, 8, 16, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem clamp(16px, 4vw, 32px) 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav__list a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .header__actions {
    margin-left: 0;
    margin-top: 1rem;
    flex-direction: column;
  }

  .header__actions .btn {
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    order: -1;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .promo-split__grid {
    grid-template-columns: 1fr;
  }

  .promo-split__visual {
    min-height: 180px;
    order: -1;
  }

  .content-split__grid {
    grid-template-columns: 1fr;
  }

  .content-split--media-left .content-split__grid {
    grid-template-columns: 1fr;
  }

  /* media-right: заголовок и текст сверху, изображение снизу (естественный порядок DOM) */
  .content-split--media-right .content-split__figure {
    order: 1;
  }

  .content-split--media-right .content-split__copy {
    order: 0;
  }

  /* media-left: на мобильном изображение сверху — порядок DOM уже «медиа → текст» */
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar__input,
  .search-bar__btn {
    width: 100%;
  }
}
