/* ========== First Casino landing (Usability & Compact UI) ========== */
:root {
  --dark: #101019;
  --hero-bg: #090612;
  --purple: #210a35;
  --yellow: #ffd447;
  --yellow-hover: #ffe074;
  --text-dark: #111111;
  --text-muted: #d0ced6;
  --line: #2a2a38;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-dark);
  background: #f5f6fa;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: #000; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 32px;
  border-radius: 8px; border: 0;
  font-weight: 700; font-size: 15px; color: #111;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn--yellow { background: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 212, 71, .35); }
.btn--lg { min-height: 52px; padding: 0 38px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 0 20px; font-size: 14px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(16, 16, 25, .96); backdrop-filter: blur(8px); height: 64px; border-bottom: 1px solid rgba(255,255,255,.07); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--yellow); }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.burger { display: none; }

.age {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(255, 212, 71, .65);
  border-radius: 50%;
  font-size: 12px; font-weight: 800; color: var(--yellow);
  flex-shrink: 0;
}
.age--header { background: rgba(255, 212, 71, .1); }

/* ---------- Banners ---------- */
.banner { position: relative; overflow: hidden; background: var(--hero-bg); color: #fff; display: flex; align-items: center; }
.banner__pic { position: absolute; inset: 0; }
.banner__pic img { width: 100%; height: 100%; object-fit: cover; }
.banner__body { position: relative; z-index: 1; padding-block: 44px; }
.banner__body--right { display: flex; justify-content: flex-end; }
.banner__text { max-width: 560px; }
.banner__title { font-size: 36px; line-height: 1.15; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.banner__desc { margin: 14px 0 24px; font-size: 16px; line-height: 1.55; color: #e2e0e8; max-width: 500px; }
.banner__sum { margin-top: 8px; font-size: 38px; line-height: 1.12; font-weight: 800; color: var(--yellow); text-shadow: 0 4px 16px rgba(0,0,0,.45); }

/* Hero specifics */
.banner--hero { min-height: 440px; }
.banner--hero .banner__pic img { object-position: 72% 20%; }
.banner--hero .banner__pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,6,18,.92) 0%, rgba(9,6,18,.68) 45%, transparent 72%);
}
.hero__badges { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.badge-21 {
  background: var(--yellow); color: #111; font-weight: 800; font-size: 12px;
  padding: 4px 9px; border-radius: 6px; letter-spacing: .02em;
}
.badge-license {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 6px;
}
.hero__title { font-size: 36px; line-height: 1.15; font-weight: 800; }
.hero__brand { display: block; font-size: 44px; margin-bottom: 4px; letter-spacing: .01em; }
.hero__brand b { color: var(--yellow); }
.hero__warn {
  margin-top: 18px; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.72);
  max-width: 480px;
}
.hero__warn a { color: var(--yellow); text-decoration: underline; }

/* Bonus banner */
.banner--bonus { min-height: 360px; background: #1a0833; }
.banner--bonus .banner__pic img { object-position: center 40%; }
.banner--bonus .banner__pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,6,40,.92) 0%, rgba(20,6,40,.72) 45%, transparent 70%);
}
.banner__note {
  margin-top: 16px; font-size: 13px; line-height: 1.45; color: #e2e0e8;
  background: rgba(0,0,0,.35); display: inline-block; padding: 6px 12px; border-radius: 6px;
}
.banner__note a { color: var(--yellow); font-weight: 600; text-decoration: underline; }

/* Device banner */
.banner--device { min-height: 440px; background: #0a0818; }
.banner--device .banner__pic img { object-position: left center; }
.banner--device .banner__pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(10,8,24,.94) 0%, rgba(10,8,24,.75) 45%, transparent 72%);
}
.banner--device .banner__text { max-width: 500px; }

/* ---------- Features ---------- */
.features { background: var(--dark); color: #fff; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.06); }
.features__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features li {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 16px 18px;
  font-size: 15px; font-weight: 600; line-height: 1.3; text-align: left;
}
.features svg { width: 38px; height: 38px; color: var(--yellow); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 36px 0; }
.section__title { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .01em; margin-bottom: 24px; }
.section--games { background: #f4f5f8; }
.section--steps { background: #ffffff; padding: 32px 0; }
.section--steps .container { max-width: 1040px; }
.section--steps .section__title { margin-bottom: 20px; }
.section--faq { background: #f4f5f8; padding-bottom: 48px; }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0 auto 28px; }
.game {
  display: block; position: relative;
  aspect-ratio: 5 / 4; border-radius: 14px; overflow: hidden;
  background: var(--dark);
  box-shadow: 0 8px 20px rgba(16,16,25,.14);
  transition: transform .25s ease, box-shadow .25s ease;
}
.game img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.game__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(16, 16, 25, .55); backdrop-filter: blur(2px);
  color: #111; font-weight: 800; font-size: 14px;
  opacity: 0; transition: opacity .25s ease;
}
.game__play::before {
  content: ""; position: absolute; width: 110px; height: 38px;
  background: var(--yellow); border-radius: 20px; z-index: -1;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.game__play svg { width: 18px; height: 18px; }
.game:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(16,16,25,.28); }
.game:hover img { transform: scale(1.04); }
.game:hover .game__play { opacity: 1; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li {
  display: flex; align-items: center; gap: 14px;
  background: #f7f8fc; border: 1px solid #e6e8f0; border-radius: 12px;
  padding: 16px 18px;
}
.steps__num {
  flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--purple); color: var(--yellow); font-weight: 800; font-size: 18px;
}
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; color: var(--text-dark); }
.steps p { font-size: 14px; color: #4a4a55; line-height: 1.35; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq__item {
  background: #fff; border: 1px solid #e1e3ec; border-radius: 10px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(16,16,25,.04);
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] {
  border-color: #c9cde0;
  box-shadow: 0 6px 18px rgba(16,16,25,.08);
}
.faq__q {
  list-style: none;
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: none; border: 0; text-align: left;
  font-weight: 700; font-size: 16px; color: var(--text-dark);
  cursor: pointer; user-select: none; transition: background .15s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { background: #fafbfe; }
.faq__q svg { width: 20px; height: 20px; flex: 0 0 20px; transition: transform .25s ease; color: #555; }
.faq__item[open] .faq__q { background: #fafbfe; border-bottom: 1px solid #eef0f6; }
.faq__item[open] .faq__q svg { transform: rotate(180deg); color: var(--purple); }
.faq__a p { padding: 14px 20px 18px; font-size: 15px; line-height: 1.6; color: #3b3b45; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 32px 0 36px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 20px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.footer__nav a:hover, .footer__legal a:hover { color: var(--yellow); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 13px; color: #b5b3be;
}
.footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.footer__legalinfo {
  border-top: 1px solid var(--line); padding-top: 18px;
  font-size: 13px; line-height: 1.6; color: #a8a6b3; display: grid; gap: 10px;
}
.footer__legalinfo a { color: #fff; text-decoration: underline; }
.footer__warn {
  font-weight: 600; font-size: 13px; color: #e2e0e8;
  background: rgba(255, 212, 71, .08); border: 1px solid rgba(255, 212, 71, .25);
  padding: 12px 16px; border-radius: 8px; line-height: 1.55;
}
.footer__warn a { color: var(--yellow); font-weight: 700; text-decoration: underline; }

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta { display: none; }

/* ================== Responsive ================== */
@media (min-width: 1600px) {
  .banner--hero { min-height: 480px; }
}

@media (max-width: 1023px) {
  .nav { gap: 16px; font-size: 13px; }
  .features__list { grid-template-columns: repeat(2, 1fr); }
  .games { gap: 12px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
}

/* Mobile / tablet: компактне компонування без чорних дір */
@media (max-width: 899px) {
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 10px; background: none; border: 0; margin-right: -8px;
  }
  .burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header__actions { margin-left: auto; }
  .header__cta { display: none; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-top: 1px solid var(--line);
    padding: 8px 20px 20px; font-size: 15px;
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity .2s;
  }
  .nav.is-open { max-height: calc(100vh - 64px); visibility: visible; opacity: 1; overflow-y: auto; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { display: inline-flex; margin-top: 16px; min-height: 46px; font-size: 15px; }

  /* На мобільному текст лягає у вільну верхню зону мобільних банерів без чорних провалів */
  .banner { flex-direction: column; align-items: stretch; }
  .banner__body { order: 1; padding-top: 24px; padding-bottom: 0; z-index: 2; }
  .banner__body--right { justify-content: flex-start; }
  .banner__text, .banner--device .banner__text { max-width: none; margin: 0; text-align: left; }
  .banner__desc { max-width: 480px; margin: 10px 0 16px; font-size: 14.5px; }

  .banner__pic {
    position: relative; inset: auto; order: 2;
    width: 100%; overflow: hidden;
  }
  .banner__pic::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 42%; z-index: 1;
    background: linear-gradient(to bottom, var(--banner-bg) 8%, transparent);
  }
  .banner--hero .banner__pic::after,
  .banner--bonus .banner__pic::after,
  .banner--device .banner__pic::after { display: none; }

  /* Індивідуальне підтягування кожного мобільного банера у вільну верхню зону */
  .banner--hero { --banner-bg: #07061a; min-height: 0; background: #07061a; }
  .banner--hero .banner__pic { margin-top: -155px; aspect-ratio: 1 / 1.15; max-height: 460px; }
  .banner--hero .banner__pic img { object-position: center 68%; }

  .banner--bonus { --banner-bg: #17062c; min-height: 0; background: #17062c; }
  .banner--bonus .banner__pic { margin-top: -120px; aspect-ratio: 1 / 1.05; max-height: 420px; }
  .banner--bonus .banner__pic img { object-position: center 62%; }

  .banner--device { --banner-bg: #0a0818; min-height: 0; background: #0a0818; }
  .banner--device .banner__pic { margin-top: -175px; aspect-ratio: 1 / 1.05; max-height: 420px; }
  .banner--device .banner__pic img { object-position: center 88%; }

  .hero__title, .banner__title { font-size: clamp(22px, 6vw, 27px); line-height: 1.15; }
  .hero__brand { font-size: clamp(26px, 7vw, 32px); }
  .banner--bonus .banner__title { font-size: 19px; opacity: .9; }
  .banner__sum { font-size: clamp(21px, 5.6vw, 28px); white-space: nowrap; margin-top: 4px; }
  .hero__warn {
    margin-top: 12px; font-size: 11px; line-height: 1.4;
    background: rgba(7, 6, 26, .65); backdrop-filter: blur(4px);
    padding: 8px 10px; border-radius: 6px;
  }
  .banner__note { margin-top: 12px; font-size: 12px; background: rgba(15, 5, 30, .72); backdrop-filter: blur(4px); }

  /* Переваги: компактна сітка 2x2 */
  .features { padding: 18px 0; }
  .features__list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .features li { padding: 12px; gap: 10px; font-size: 13px; border-radius: 10px; justify-content: flex-start; }
  .features svg { width: 30px; height: 30px; }

  /* Ігри: сітка 2 в ряд, 5-та картка широким банером з плашкою Грати */
  .games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .games li:last-child { grid-column: 1 / -1; }
  .games li:last-child .game { aspect-ratio: 16 / 8.5; }
  .games li:last-child .game img { object-position: center 32%; }

  .footer { padding-bottom: 92px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Липка CTA-плашка внизу мобільного екрана */
  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(16, 16, 25, .94); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 212, 71, .35); border-radius: 12px;
    padding: 10px 12px 10px 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
    transform: translateY(130%); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .sticky-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .sticky-cta__info { display: flex; flex-direction: column; min-width: 0; }
  .sticky-cta__tag { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--yellow); letter-spacing: .04em; }
  .sticky-cta__title { font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta__btn { min-height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: 8px; flex-shrink: 0; width: auto !important; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .section { padding: 28px 0; }
  .section__title { font-size: 21px; margin-bottom: 18px; }
  .btn { width: 100%; max-width: 380px; }
  .banner .btn, .center .btn { width: 100%; }
}

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