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

:root {
  --color-primary: hsl(13, 60%, 50%);
  --color-primary-light: hsl(13, 60%, 70%);
  --color-primary-dark: hsl(13, 60%, 20%);
  --color-accent: hsl(5, 70%, 55%);
  --color-accent-hover: hsl(5, 70%, 45%);
  --color-bg: hsl(13, 15%, calc(8% * 0.94));
  --color-surface: hsl(13, 10%, calc(14% * 0.94));
  --color-text: hsl(13, 5%, calc(90% * 0.94));
  --color-muted: hsl(13, 8%, 72%);
  --color-border: hsla(13, 30%, 80%, 0.25);

  --space-unit: 29px;
  --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: 11px;
  --radius-lg: calc(11px * 2);

  --shadow-soft: 0 4px 24px hsla(13, 30%, 10%, 0.34);
  --shadow-glow: 0 0 calc(20px * 0.56) hsla(5, 70%, 55%, calc(0.4 * 0.56));
}

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: "Plus Jakarta Sans", sans-serif;
  background-color: var(--color-bg);
  background-image:
          radial-gradient(circle at 12% 18%, hsla(5, 75%, 55%, 0.16), transparent 40%),
          radial-gradient(circle at 88% 0%, hsla(13, 80%, 50%, 0.14), transparent 42%),
          linear-gradient(145deg, hsl(13, 20%, 8%) 0%, hsl(13, 16%, 5%) 55%, hsl(5, 22%, 8%) 100%);
  line-height: 1.55;
}

main {
  flex: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
          90deg,
          hsla(0, 0%, 100%, 0.03) 0,
          hsla(0, 0%, 100%, 0.03) 1px,
          transparent 1px,
          transparent 78px
  );
  opacity: 0.03;
}

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

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

.section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.section-title {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}

.section-intro {
  max-width: 780px;
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn--neon {
  color: #fff;
  background: linear-gradient(110deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-color: hsla(5, 65%, 60%, 0.75);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  color: var(--color-text);
  background: hsla(0, 0%, 100%, 0.03);
}

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  background: hsla(13, 14%, 6%, 0.82);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.logo__dot {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--color-text);
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 84svh;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          linear-gradient(130deg, hsla(13, 20%, 4%, 0.94) 0 58%, hsla(5, 70%, 45%, 0.86) 58% 100%);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(38svw, 460px);
  aspect-ratio: 1 / 1;
  right: clamp(4%, 7vw, 13%);
  top: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(5, 88%, 63%, 0.5), hsla(5, 88%, 63%, 0.08) 58%, transparent 72%);
  filter: blur(2px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-lg);
}

.hero__content {
  max-width: 640px;
  text-align: left;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-xs);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid hsla(5, 72%, 60%, 0.8);
  background: hsla(5, 68%, 56%, 0.15);
}

.hero h1 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(2rem, 5.4vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 0 var(--space-sm);
  max-width: 580px;
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  color: hsl(13, 8%, 86%);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__panel {
  justify-self: end;
  width: min(100%, 410px);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  border: 1px solid hsla(0, 0%, 100%, 0.18);
  backdrop-filter: blur(14px);
  background: hsla(0, 0%, 7%, 0.46);
  box-shadow: var(--shadow-soft);
}

.hero__panel-title {
  margin: 0 0 10px;
  font-size: 1.04rem;
  font-weight: 700;
}

.hero__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid hsla(0, 0%, 100%, 0.16);
  background: hsla(0, 0%, 100%, 0.04);
}

.hero__rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsla(5, 68%, 52%, 0.2);
  border: 1px solid hsla(5, 72%, 56%, 0.5);
  font-weight: 700;
}

.hero__casino {
  font-weight: 700;
}

.hero__bonus {
  display: block;
  color: var(--color-muted);
  font-size: 0.87rem;
}

.hero__score {
  color: #fff;
  font-weight: 700;
}

.banner-18-top,
.banner-18-bottom {
  background: hsla(5, 64%, 44%, 0.17);
  border-top: 1px solid hsla(5, 72%, 60%, 0.3);
  border-bottom: 1px solid hsla(5, 72%, 60%, 0.3);
}

.banner-18-top__inner,
.banner-18-bottom__inner {
  text-align: center;
  color: hsl(13, 8%, 90%);
  padding-top: 14px;
  padding-bottom: 14px;
}

.ranking {
  position: relative;
}

.ranking::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          linear-gradient(hsla(13, 20%, 7%, 0.83), hsla(13, 20%, 7%, 0.83));
  background-position: center;
  background-size: cover;
  opacity: 0.62;
}

.ranking .container {
  position: relative;
}

.ranking__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.casino-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  backdrop-filter: blur(10px);
  background: hsla(0, 0%, 10%, 0.56);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.casino-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
}

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

.casino-card__title {
  margin: 0;
  font-size: 1.24rem;
}

.casino-card__rating {
  margin: 0;
  font-weight: 700;
  color: #ffd777;
}

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

.casino-card__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: hsl(13, 8%, 86%);
}

.trust__grid,
.guide__grid,
.footer__grid {
  display: grid;
  gap: var(--space-sm);
}

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

.trust__item,
.guide__step {
  padding: var(--space-sm);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: hsla(0, 0%, 100%, 0.03);
  backdrop-filter: blur(8px);
}

.trust__item {
  position: relative;
  overflow: hidden;
}

.trust__item-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.trust__icon {
  position: relative;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--color-accent);
}

.trust__title,
.guide__title {
  position: relative;
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.trust__text,
.guide__text {
  position: relative;
  margin: 0;
  color: var(--color-muted);
}

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

.guide__number {
  display: inline-flex;
  margin-bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid hsla(5, 72%, 60%, 0.5);
  background: hsla(5, 72%, 60%, 0.12);
}

.faq__list {
  width: 100%;
  display: grid;
  gap: 16px;
}

.faq__item {
  padding: 4px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: hsla(0, 0%, 100%, 0.03);
  backdrop-filter: blur(9px);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
}

.faq__item p {
  margin: 0 0 14px;
  color: var(--color-muted);
}

.cta-banner {
  position: relative;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          linear-gradient(hsla(13, 20%, 7%, 0.78), hsla(13, 20%, 7%, 0.78));
  background-size: cover;
  background-position: center;
}

.cta-banner .container {
  position: relative;
}

.cta-banner__box {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid hsla(0, 0%, 100%, 0.22);
  background: hsla(0, 0%, 7%, 0.45);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.cta-banner__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.cta-banner__text {
  margin: 0 0 var(--space-sm);
  max-width: 700px;
  color: hsl(13, 8%, 86%);
}

.footer {
  padding-top: var(--space-lg);
  padding-bottom: calc(var(--space-xl) + 72px);
  background: hsla(13, 20%, 5%, 0.92);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.footer p {
  margin: 0 0 8px;
  color: var(--color-muted);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer__note {
  margin-top: var(--space-sm);
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(0);
  border-top: 1px solid hsla(5, 72%, 60%, 0.45);
  background: hsla(13, 18%, 6%, 0.95);
  backdrop-filter: blur(10px);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: 12px;
  padding-bottom: 12px;
}

.cookie-banner__title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.cookie-banner__text {
  margin: 0;
  color: var(--color-muted);
}

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

.cookie-banner__actions label {
  cursor: pointer;
}

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

.page .header__inner {
  justify-content: flex-start;
}

.page-hero {
  position: relative;
  padding: var(--space-lg) 0 var(--space-md);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(13, 20%, 6%, 0.95) 0%, hsla(5, 30%, 12%, 0.9) 100%);
}

.page-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-md);
}

.page-hero__content {
  max-width: 560px;
}

.page-hero__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-xs);
  padding: 14px;
  border-radius: var(--radius);
  background: hsla(5, 68%, 52%, 0.15);
  border: 1px solid hsla(5, 72%, 56%, 0.4);
}

.page-hero__icon svg {
  width: 100%;
  height: 100%;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.page-hero__subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.page-hero__visual {
  position: relative;
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 1 / 1;
}

.page-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid hsla(0, 0%, 100%, 0.15);
}

.page-hero__visual--svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__visual--svg svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.page-hero__glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(5, 80%, 55%, 0.25), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}

.legal-content {
  width: 100%;
  margin: 0 auto;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: hsla(0, 0%, 100%, 0.04);
  backdrop-filter: blur(10px);
}

.legal-content--no-top-radius {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

.legal-content h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

.legal-content h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.legal-content h2:not(:first-of-type) {
  margin-top: var(--space-sm);
}

.legal-content p {
  margin: 0 0 var(--space-sm);
  color: var(--color-muted);
}

.legal-content__section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-radius: var(--radius);
  background: hsla(0, 0%, 100%, 0.02);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
}

.legal-content__section-icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: var(--radius);
  background: hsla(5, 68%, 52%, 0.1);
  border: 1px solid hsla(5, 72%, 56%, 0.3);
  flex-shrink: 0;
}

.legal-content__section-icon svg {
  width: 100%;
  height: 100%;
}

.legal-content__section h2 {
  margin: 0 0 6px;
}

.legal-content__section p {
  margin: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.contact-card {
  padding: var(--space-sm);
  border-radius: var(--radius);
  background: hsla(0, 0%, 100%, 0.03);
  border: 1px solid var(--color-border);
  text-align: center;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-xs);
  padding: 12px;
  border-radius: 50%;
  background: hsla(5, 68%, 52%, 0.12);
  border: 1px solid hsla(5, 72%, 56%, 0.35);
}

.contact-card__icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
  color: var(--color-muted);
}

.contact-card a {
  font-weight: 600;
}

.support-banner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius);
  background: hsla(120, 40%, 35%, 0.12);
  border: 1px solid hsla(120, 50%, 45%, 0.3);
}

.support-banner__icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 50%;
  background: hsla(120, 50%, 40%, 0.15);
  border: 1px solid hsla(120, 50%, 50%, 0.4);
  flex-shrink: 0;
}

.support-banner__icon svg {
  width: 100%;
  height: 100%;
}

.support-banner__content h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: hsl(120, 40%, 70%);
}

.support-banner__content p {
  margin: 0;
  color: var(--color-muted);
}

.support-banner__content a {
  color: hsl(120, 50%, 65%);
}

.page .footer {
  padding-bottom: var(--space-lg);
}

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

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

  .hero__panel {
    justify-self: start;
  }

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

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

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

@media (max-width: 768px) {
  .header__inner {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
  }

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

  .hero {
    min-height: 80svh;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .hero::before {
    background:
            linear-gradient(160deg, hsla(13, 20%, 4%, 0.94) 0 66%, hsla(5, 70%, 45%, 0.8) 66% 100%);
    background-size: cover;
    background-position: center;
  }

  .hero__actions,
  .cookie-banner__actions {
    width: 100%;
  }

  .hero__actions .btn,
  .cookie-banner__actions .btn {
    flex: 1 1 170px;
  }

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

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

  .page-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-hero__content {
    max-width: 100%;
  }

  .page-hero__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero__visual {
    display: none;
  }

  .legal-content__section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .legal-content__section-icon {
    margin: 0 auto;
  }

  .support-banner {
    flex-direction: column;
    text-align: center;
  }
}