@import url('modern-normalize.css');

:root {
  --color-primary: hsl(80, 60%, 50%);
  --color-primary-light: hsl(80, 60%, 70%);
  --color-primary-dark: hsl(80, 60%, 20%);
  --color-accent: hsl(258, 70%, 55%);
  --color-accent-hover: hsl(258, 70%, 45%);
  --color-bg: hsl(80, 15%, calc(8% * 1.07));
  --color-surface: hsl(80, 10%, calc(14% * 1.07));
  --color-text: hsl(80, 5%, calc(90% * 1.07));
  --space-unit: 31px;
  --space-xs: calc(var(--space-unit) * 0.5);
  --space-sm: var(--space-unit);
  --space-md: calc(var(--space-unit) * 2);
  --space-lg: calc(var(--space-unit) * 3);
  --space-xl: calc(var(--space-unit) * 5);
  --radius: 5px;
  --radius-lg: calc(5px * 2);
  --surface-glass: hsla(80, 10%, 18%, 0.7);
  --surface-line: hsla(80, 20%, 80%, 0.25);
  --text-muted: hsla(80, 25%, 86%, 0.85);
  --shadow-elevated: 0 4px 24px hsla(80, 30%, 10%, 0.53);
  --glow-accent: 0 0 calc(20px * 0.07) hsla(258, 70%, 55%, calc(0.4 * 0.07));
  --max-width: 1200px;
  --legal-max-width: 800px;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--color-bg);
  background-image:
          radial-gradient(circle at 10% 20%, hsla(80, 60%, 45%, 0.16), transparent 44%),
          radial-gradient(circle at 90% 12%, hsla(258, 70%, 55%, 0.2), transparent 38%),
          radial-gradient(circle at 50% 86%, hsla(80, 65%, 44%, 0.12), transparent 50%),
          repeating-linear-gradient(
                  0deg,
                  hsla(80, 25%, 70%, 0.04) 0,
                  hsla(80, 25%, 70%, 0.04) 1px,
                  transparent 1px,
                  transparent 4px
          );
  background-attachment: fixed;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: 'Cinzel', serif;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: var(--color-primary-light);
}

.container {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section {
  padding-block: clamp(44px, 7svh, 88px);
}

.section-title {
  margin-bottom: clamp(20px, 4svh, 32px);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.section-text {
  color: var(--text-muted);
  max-width: 70ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-line);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--neon {
  background: linear-gradient(130deg, var(--color-accent), hsl(258, 85%, 67%));
  color: #fff;
  box-shadow: var(--shadow-elevated), var(--glow-accent);
}

.btn--outline {
  background: hsla(80, 10%, 15%, 0.45);
  color: var(--color-text);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: hsla(80, 14%, 8%, 0.78);
  border-bottom: 1px solid var(--surface-line);
}

.header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.logo {
  color: var(--color-primary-light);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--surface-line);
  background-color: var(--color-bg);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero::before {
  background-image:
          linear-gradient(180deg, hsla(80, 15%, 8%, 0.75) 0%, hsla(80, 15%, 8%, 0.88) 100%),
          url('hero-bg-1.jpg');
  animation: heroSlide 10s ease-in-out infinite;
}

.hero::after {
  background-image:
          linear-gradient(180deg, hsla(80, 15%, 8%, 0.75) 0%, hsla(80, 15%, 8%, 0.88) 100%),
          url('hero-bg-2.jpg');
  animation: heroSlide 10s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes heroSlide {
  0%, 45% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-block: clamp(56px, 12svh, 120px);
}

.hero__eyebrow {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-line);
  background: hsla(80, 10%, 16%, 0.64);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.3vw, 4rem);
  max-width: 16ch;
  background: linear-gradient(90deg, hsl(80, 74%, 77%), hsl(258, 92%, 79%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero__actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__badge {
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: var(--radius);
  background: var(--surface-glass);
  border: 1px solid var(--surface-line);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-elevated);
}

.banner-18-top,
.banner-18-bottom {
  background: hsla(80, 7%, 12%, 0.96);
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
}

.banner-18-top .container,
.banner-18-bottom .container {
  padding-top: 14px;
  padding-bottom: 14px;
}

.banner-18-top p,
.banner-18-bottom p {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.ranking {
  background-image:
          linear-gradient(180deg, hsla(80, 20%, 16%, 0.55), hsla(80, 20%, 14%, 0.35)),
          radial-gradient(circle at 85% 0%, hsla(258, 70%, 55%, 0.18), transparent 45%);
}

.ranking__intro {
  margin-bottom: 22px;
}

.ranking__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.casino-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 24px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-elevated);
  display: grid;
  gap: 12px;
}

.casino-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.casino-card__rank {
  color: var(--color-primary-light);
  font-weight: 700;
  font-size: 0.95rem;
}

.casino-card__title {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.casino-card__bonus {
  color: var(--text-muted);
}

.casino-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--surface-line);
  background: hsla(80, 14%, 10%, 0.7);
  font-size: 0.84rem;
}

.trust {
  background-image:
          linear-gradient(145deg, hsla(80, 20%, 16%, 0.6), hsla(80, 20%, 14%, 0.5)),
          radial-gradient(circle at 10% 20%, hsla(80, 60%, 50%, 0.13), transparent 47%);
}

.trust__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 10px;
}

.trust-card__icon {
  font-size: 1.6rem;
}

.guide {
  background-image:
          linear-gradient(180deg, hsla(80, 20%, 14%, 0.7), hsla(80, 20%, 12%, 0.55)),
          radial-gradient(circle at 50% -15%, hsla(258, 70%, 55%, 0.16), transparent 42%);
}

.guide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 8px;
}

.step-card__number {
  font-family: 'Cinzel', serif;
  color: var(--color-primary-light);
  font-size: 1.2rem;
}

.faq {
  background-image:
          linear-gradient(145deg, hsla(80, 22%, 15%, 0.7), hsla(80, 18%, 12%, 0.65)),
          radial-gradient(circle at 85% 20%, hsla(258, 80%, 56%, 0.14), transparent 40%);
}

.faq__wrap {
  max-width: 800px;
}

.faq details {
  background: var(--surface-glass);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-elevated);
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin-top: 8px;
  color: var(--text-muted);
}

.cta-banner {
  background-image:
          linear-gradient(120deg, hsla(258, 70%, 55%, 0.28), hsla(80, 62%, 44%, 0.18));
}

.cta-banner__panel {
  background: var(--surface-glass);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 34px);
  box-shadow: var(--shadow-elevated), var(--glow-accent);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.footer {
  background: hsla(80, 18%, 9%, 0.96);
  border-top: 1px solid var(--surface-line);
  padding-block: clamp(34px, 5svh, 54px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
}

.footer__title {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.footer__links {
  display: grid;
  gap: 8px;
}

.footer__links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer__small {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(0);
  background: hsla(80, 18%, 8%, 0.96);
  border-top: 1px solid var(--surface-line);
  box-shadow: 0 -8px 24px hsla(80, 30%, 10%, 0.4);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.cookie-banner__content {
  display: grid;
  gap: 6px;
}

.cookie-banner__title {
  font-size: 1rem;
}

.cookie-banner__text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#cookie-consent:checked ~ .cookie-banner {
  display: none;
}

.page .section {
  min-height: auto;
}

.page-main {
  padding-block: clamp(40px, 8svh, 90px);
}

.legal-content {
  width: 100%;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-line);
  background: var(--surface-glass);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(8px);
}

.legal-content h1 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

.legal-content h2 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.legal-content p {
  color: var(--text-muted);
}

.page-footer {
  border-top: 1px solid var(--surface-line);
  padding-block: 20px;
}

.page-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-hero {
  padding: clamp(30px, 5svh, 50px) 0;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid var(--surface-line);
  background-image:
          linear-gradient(180deg, hsla(258, 68%, 53%, 0.15) 0%, transparent 60%),
          radial-gradient(circle at 20% 80%, hsla(80, 62%, 45%, 0.12), transparent 50%);
}

.page-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--surface-line);
  box-shadow: var(--shadow-elevated);
}

.page-hero__icon svg {
  width: 40px;
  height: 40px;
}

.page-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  background: linear-gradient(90deg, hsl(80, 74%, 77%), hsl(258, 92%, 79%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero__subtitle {
  color: var(--text-muted);
  max-width: 50ch;
  margin-inline: auto;
}

.legal-content {
  width: 100%;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-line);
  background: var(--surface-glass);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(8px);
}

.legal-content h1 {
  display: none;
}

.info-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-line);
  background: hsla(80, 14%, 10%, 0.5);
}

.info-card--highlight {
  border-color: hsla(258, 70%, 55%, 0.4);
  background: hsla(258, 70%, 55%, 0.08);
}

.info-card--warning {
  border-color: hsla(45, 90%, 50%, 0.3);
  background: hsla(45, 90%, 50%, 0.06);
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.info-card__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.info-card__title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.contact-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-line);
  background: hsla(80, 14%, 10%, 0.5);
  text-align: center;
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.contact-card__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-card__value {
  font-weight: 600;
  color: var(--color-primary-light);
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-line);
  background: hsla(80, 14%, 10%, 0.5);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.support-link:hover {
  border-color: var(--color-primary);
  background: hsla(80, 60%, 50%, 0.1);
}

.support-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.timeline {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 2px solid var(--surface-line);
}

.timeline__item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 20px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
}

.timeline__title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.timeline__text {
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-line);
  background: hsla(80, 14%, 10%, 0.4);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-primary-light);
}

.feature-item__text {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header__inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero h1 {
    max-width: 12.5ch;
  }

  .trust__grid,
  .guide__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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