:root {
  --bg: #272f34;
  --bg-alt: #354f60;
  --accent-gold: #edd480;
  --accent-gold-light: #e9c26b;
  --accent-gold-dark: #be8f4d;
  --accent-border: #f0dbae;
  --text: #f5f5f7;
  --muted: #b8c4ce;
  --radius: 5px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  --max-width: 1080px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-soft: 8px;
  --section-gap: 36px;
}

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

html {
  scrollbar-gutter: stable;
  /* Root grows with content; background covers full scroll (see body flex layout). */
  background-color: var(--bg);
  background-image: radial-gradient(circle at top, #4b5f6c 0, var(--bg) 55%);
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: transparent;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.site-header-menu-open {
  overflow: hidden;
}

body.site-header-menu-open .site-header {
  position: relative;
  z-index: 210;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px 40px;
}

/* Short pages: keep footer at the bottom of the viewport */
body > main {
  flex: 1 0 auto;
}

.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

/* Header */

.site-header {
  background: #111111;
  flex-shrink: 0;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 14px;
}

.site-header__nav--left {
  flex: 1;
  justify-content: flex-start;
}

.site-header__nav--right {
  flex: 1;
  justify-content: flex-end;
  gap: 12px;
}

.site-header__link {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header__link:hover {
  border-bottom-color: #4eb4e7;
}

button.site-header__link {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 0;
}

.site-header__link--active {
  border-bottom-color: #4eb4e7;
}

.site-header__link--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-soft);
  border: 2px solid var(--accent-border);
  background: linear-gradient(to bottom, var(--accent-gold-light), var(--accent-gold-dark));
  color: #fff;
  font-weight: 700;
  text-shadow: 1px 1px 0.12em rgba(0, 0, 0, 0.45);
}

.site-header__link--button:hover {
  border-bottom-color: var(--accent-border);
  filter: brightness(1.05);
}

.site-header__logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-bottom: -16px;
}

.site-header__logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.site-header__logo-link:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header__logo img {
  display: block;
  height: 118px;
  width: auto;
}

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}

.site-header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__burger--open .site-header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__burger--open .site-header__burger-line:nth-child(2) {
  opacity: 0;
}

.site-header__burger--open .site-header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header__mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: calc(72px + env(safe-area-inset-top, 0px)) 20px 24px;
  background: rgba(17, 17, 17, 0.97);
  overflow-y: auto;
}

.site-header__mobile-panel[hidden] {
  display: none;
}

.site-header__mobile-panel-inner {
  max-width: 400px;
  margin: 0 auto;
}

.site-header__mobile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(78, 180, 231, 0.4);
}

.site-header__mobile-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.site-header__mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-soft);
  border: 2px solid #4eb4e7;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header__mobile-close-icon {
  display: block;
}

.site-header__mobile-close:hover,
.site-header__mobile-close:focus-visible {
  background: rgba(78, 180, 231, 0.2);
  color: #fff;
  outline: none;
}

.site-header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-header__mobile-link {
  display: block;
  padding: 16px 14px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(78, 180, 231, 0.25);
  transition: color 0.15s ease, background 0.15s ease;
}

.site-header__mobile-link:hover,
.site-header__mobile-link:focus-visible {
  color: var(--accent-gold);
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.site-header__mobile-link--active {
  color: var(--accent-gold);
  border-bottom-color: #4eb4e7;
}

@media (min-width: 761px) {
  .site-header__burger {
    display: none !important;
  }

  .site-header__mobile-panel {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .site-header__inner {
    padding: 12px 14px 0;
  }

  .site-header__nav {
    gap: 12px;
  }

  .site-header__link {
    font-size: 12px;
  }

  .site-header__link--button {
    padding: 8px 12px;
  }

  .site-header__logo img {
    height: 100px;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px max(18px, env(safe-area-inset-right, 0px)) 10px
      max(18px, env(safe-area-inset-left, 0px));
  }

  .site-header__burger {
    display: flex;
    grid-column: 1;
  }

  .site-header__nav--left {
    display: none;
  }

  .site-header__logo {
    grid-column: 2;
    justify-self: center;
    margin-bottom: -8px;
  }

  .site-header__nav--right {
    grid-column: 3;
    padding-bottom: 8px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow);
}

.btn--primary {
  background: linear-gradient(to bottom, var(--accent-gold-light), var(--accent-gold-dark));
  color: #fff;
  border: 2px solid var(--accent-border);
  text-shadow: 1px 1px 0.12em rgba(0, 0, 0, 0.5);
}

/* Make key CTA buttons consistent size */
.hero__content .btn--primary,
.prefooter__cta.btn--primary {
  font-size: 18px;
  line-height: 1.1;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Hero */

.hero {
  text-align: center;
  padding: 60px 16px 40px;
}

.hero__content {
  background: #4b5f6c;
  border-radius: var(--radius-soft);
  padding: 40px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(237, 212, 128, 0.25);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 38px);
  color: var(--accent-gold);
}

.hero__subtitle {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Details promo */

.details-promo {
  display: grid;
  grid-template-columns: minmax(340px, 40%) 1fr;
  background: linear-gradient(to right, #b08a47 0 40%, #ececec 40% 100%);
  overflow: hidden;
}

.details-promo__media {
  min-height: 350px;
  background-image: url(../images/ui/lion-foreground.png), url(../images/ui/lion-background.jpg);
  background-position: right bottom, left top;
  background-size: contain, cover;
  background-repeat: no-repeat;
}

.details-promo__content {
  padding: 26px 24px 24px;
  color: #2a2f35;
}

.details-promo__content h2 {
  margin: 0 0 14px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #2d3b45;
}

.details-promo__content p {
  margin: 0 0 10px;
  color: #2f3b44;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .details-promo {
    grid-template-columns: 1fr;
    background: #ececec;
  }

  .details-promo__media {
    min-height: 240px;
    background-size: auto 95%, cover;
  }
}

/* Sections: rhythm between top-level page blocks only (avoids nested section gaps). */

.page > section + :is(section, aside) {
  margin-top: var(--section-gap);
}

/* Flush full-bleed band after CTA (override sibling gap; matches pre–refactor .advantages-grid margin). */
.page > section + section.advantages-grid {
  margin-top: 0;
}

/* Prefooter is last inside main: drop main bottom padding so the strip meets the site footer. */
.page:has(> aside.prefooter:last-child) {
  padding-bottom: 0;
}

.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;
}

h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text);
}

.faq h2 {
  color: var(--accent-gold);
}

/* Slots */

.slots h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  color: var(--accent-gold);
}

.slots__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .slots__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .slots__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.slot-card {
  display: block;
  min-width: 0;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: rgba(75, 95, 108, 0.5);
  border: 1px solid rgba(237, 212, 128, 0.2);
}

.slot-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 180;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.2);
}

/* Slots CTA */

.slots-cta {
  padding: 54px 16px 68px;
  text-align: center;
  background: #272f34;
}

.slots-cta__text {
  margin: 0 auto 30px;
  max-width: min(1120px, 100%);
  color: #f2f5f8;
  font-size: clamp(18px, 2.1vw, 32px);
  line-height: 1.35;
}

.slots-cta__text strong {
  font-weight: 800;
}

.slots-cta__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  line-height: 1.05;
  min-width: 260px;
  padding: 14px 24px;
  font-size: clamp(22px, 2.2vw, 28px);
}

@media (max-width: 768px) {
  .hero__content .btn--primary,
  .prefooter__cta.btn--primary {
    font-size: 16px;
  }

  .slots-cta {
    padding: 42px 14px 56px;
  }

  .slots-cta__text {
    font-size: clamp(16px, 4.5vw, 28px);
    margin-bottom: 22px;
  }

  .slots-cta__button {
    min-width: 200px;
    padding: 11px 16px;
    font-size: clamp(18px, 6.5vw, 28px);
  }
}

/* Advantages grid */

.advantages-grid {
  padding: 40px 12px 48px;
  background: #2f3d48;
}

.advantages-grid__inner {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 992px) {
  .advantages-grid__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.advantages-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-soft);
  overflow: hidden;
  border: 1px solid rgba(237, 212, 128, 0.28);
  background: var(--bg-alt);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.advantages-card__media {
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  line-height: 0;
}

.advantages-card__img {
  display: block;
  width: 100%;
  height: auto;
}

.advantages-card__title {
  margin: 0;
  padding: 12px 10px 14px;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.35;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-gold);
  text-align: center;
  border-top: 1px solid rgba(237, 212, 128, 0.15);
}

@media (max-width: 560px) {
  .advantages-grid {
    padding: 32px 12px 40px;
  }

  .advantages-grid__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .advantages-card__title {
    padding: 14px 14px 16px;
    font-size: clamp(14px, 3.5vw, 17px);
  }
}

/* FAQ */

.faq__item {
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
  border: 1px solid rgba(176, 138, 71, 0.2);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  list-style: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: color 0.15s ease;
}

.faq__question-text {
  flex: 1;
  min-width: 0;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent-gold);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  padding-inline-start: 4px;
}

.faq__item[open] > .faq__question::after {
  content: "\2212";
  font-size: 1.45rem;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::-moz-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--accent-gold);
}

.faq__question:hover::after {
  color: var(--accent-gold-light);
}

.faq__answer {
  padding: 0 16px 12px;
  color: var(--muted);
}

/* SEO content */

.seo-content p {
  margin: 0 0 1em;
  line-height: 1.65;
  color: var(--muted);
}

.seo-content h2 {
  margin: 1.5em 0 0.75em;
  font-size: 18px;
}

.legal-page h1 {
  margin: 0 0 0.75em;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  color: var(--accent-gold);
}

.legal-page .btn {
  margin-top: 0.5rem;
}

/* Text links in main content only (header/footer are outside main.page) */
main.page a:not(.btn) {
  color: var(--accent-gold-light);
  text-decoration: none;
}

main.page a:not(.btn):visited {
  color: var(--accent-gold-light);
}

main.page a:not(.btn):hover {
  color: var(--accent-gold);
}

main.page a:not(.btn):focus-visible {
  color: var(--accent-gold);
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.login-page {
  max-width: 520px;
  margin: 0 auto;
}

.login-card {
  margin: 1.5rem 0 1.75rem;
  padding: 22px 20px 26px;
  border-radius: var(--radius-soft);
  background: var(--bg-alt);
  border: 1px solid rgba(237, 212, 128, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.login-card__note {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.login-card__cta {
  width: 100%;
}

/* Prefooter */

.prefooter {
  background: #4b5f6c;
  padding: 24px 16px 32px;
}

.prefooter__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.prefooter__cta {
  letter-spacing: 0.05em;
}

.prefooter__headline {
  margin: 0 0 24px;
  font-size: clamp(15px, 2.1vw, 20px);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prefooter__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.prefooter__logo-img {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .prefooter {
    padding: 32px 24px 40px;
  }
}

/* Footer */

.site-footer {
  background: #000;
  padding: 32px 16px 24px;
  color: #fff;
  flex-shrink: 0;
}

.site-footer__container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 24px;
}

.footer-nav__link {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-nav__link:hover {
  color: var(--accent-gold);
}

.footer-icons {
  margin-bottom: 24px;
}

.footer-icons__payments {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-icons__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-icons__row--payments {
  gap: 20px 28px;
}

.footer-payment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 44px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.footer-payment__img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.site-footer__legal {
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 800px;
  font-style: italic;
}

