:root {
  --main-bg: #181a27;
  --surface: #23263a;
  --surface-2: #2b2d44;
  --text: #ffffff;
  --muted: #e0e0e7;
  --muted-2: #bfc7f8;
  --accent: #43e7f7;
  --accent2: #b978ff;
  --danger: #f54b77;
  --success: #19e393;
  --warning: #fbbf24;
  --gradient: linear-gradient(120deg, #43e7f7 0%, #b978ff 100%);
  --border-radius: 28px;
  --shadow: 0 12px 48px #43e7f733, 0 2px 12px #2225;
  --shadow-strong: 0 18px 64px #b978ff33, 0 4px 18px #0006;
}

/* Base */
html {
  box-sizing: border-box;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  background: var(--main-bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  margin: 0;
  line-height: 1.4;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.header--scrolled {
  background: rgba(24, 26, 39, 0.55);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid #ffffff14;
  box-shadow: 0 6px 24px #0006;
}
.header__top-offer {
  width: 100%;
  background: var(--gradient);
  color: #0c1020;
  text-align: center;
  font-weight: 700;
  padding: 0.8em 0.5em;
  font-size: 1.02em;
  letter-spacing: 0.2px;
}
.header__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.8em 1em 0.5em 1em;
  position: relative;
  gap: 1em;
}
.header__logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
}
.header__nav {
  flex: 1;
}
.menu {
  display: flex;
  gap: 1.2em;
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu__item a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7em 1.2em;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.menu__item--active a,
.menu__item a[aria-current="page"],
.menu__item a:hover {
  background: var(--accent2);
}
.header__warn {
  display: flex;
  align-items: center;
  font-size: 1em;
  gap: 0.6em;
  background: rgba(67, 231, 247, 0.07);
  border-radius: 9px;
  padding: 0.2em 1em;
  margin-left: 1em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.warn__age {
  background: var(--danger);
  color: #fff;
  border-radius: 7px;
  padding: 0.2em 0.8em;
  font-weight: bold;
  font-size: 1.03em;
  flex-shrink: 0;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  margin-left: 1em;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  align-items: center;
}
.burger:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}
.burger__icon {
  position: relative;
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.burger__icon::before,
.burger__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger__icon::before {
  transform: translateY(-8px);
}
.burger__icon::after {
  transform: translateY(8px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100vw;
  height: 100vh;
  background: var(--main-bg);
  box-shadow: -12px 0 32px #0007;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 2em 1.2em;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav__close {
  background: none;
  border: none;
  font-size: 2em;
  color: #fff;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 1em;
}
.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2em 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.mobile-nav__list a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 600;
  padding: 0.4em 0.4em;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-nav__list a[aria-current="page"],
.mobile-nav__list a:hover {
  background: var(--accent2);
}
.mobile-nav__warn {
  margin-top: auto;
  font-size: 0.98em;
  color: #f4de93;
}

/* Hero */
.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--main-bg);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0b0d16aa, #0b0d16dd),
    url("../images/banner-page.webp") center/cover no-repeat;
  opacity: 0.7;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  background: rgba(43, 45, 68, 0.52);
  border-radius: 22px;
  box-shadow: 0 2px 22px #43e7f722;
  padding: 1.5em 2em;
}
.hero__title {
  font-size: 2.1em;
  font-weight: 900;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 22px #2228;
  color: #fff;
}
.hero__subtitle {
  font-size: 1.08em;
  font-weight: 500;
  color: #e0e0e7;
  margin-bottom: 0.2em;
}

/* Casinos */
.casinos {
  max-width: 980px;
  margin: 2em auto;
  padding: 0 1em;
}
.casino-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(35, 37, 52, 0.97);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 180px;
  margin-bottom: 2em;
  transition: transform 0.22s ease, box-shadow 0.24s ease;
}
/* Animated neon gradient border */
.casino-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px; /* border thickness */
  border-radius: var(--border-radius);
  background: linear-gradient(120deg, #43e7f7, #b978ff, #43e7f7);
  background-size: 200% 200%;
  animation: borderGlow 4.5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude; /* show only the border */
  pointer-events: none;
}
@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.casino-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.casino-card__left {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #23263a 60%, #43e7f7 100%);
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  padding: 1em 0.7em 1em 0.7em;
  min-width: 120px;
}
.casino-card__index {
  background: var(--accent2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3em;
  box-shadow: 0 2px 12px #b978ff44;
  border: 2px solid #fff2;
  margin-bottom: 1em;
  flex-shrink: 0;
}
.casino-card__logo-wrap {
  align-self: center;
}
.casino-card__logo {
  height: 105px;
  width: 105px;
  border-radius: 18px;
  box-shadow: 0 2px 24px #b978ffaa, 0 1px 12px #43e7f766;
  object-fit: contain;
  border: 1px solid #fff4;
  transition: transform 0.2s ease;
  padding: 5px;
}
.casino-card:hover .casino-card__logo {
  transform: scale(1.04);
}

.casino-card__main {
  flex: 3;
  padding: 1.2em 1.7em 1.2em 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.casino-card__brand {
  font-size: 1.21em;
  font-weight: 700;
  color: var(--accent2);
}
.casino-card__bonus {
  font-size: 1.02em;
  font-weight: 600;
  color: var(--accent);
  background: rgba(67, 231, 247, 0.13);
  border-radius: 9px;
  padding: 0.3em 0.7em;
  margin: 0.2em 0 0.8em 0;
}
.casino-card__bonus b {
  color: var(--danger);
}
.casino-card__desc {
  margin-bottom: 0.7em;
  font-size: 0.98em;
  color: #ebe8fd;
  font-weight: 500;
  line-height: 1.5;
}
.casino-card__tag {
  display: inline-block;
  font-size: 0.92em;
  font-weight: 600;
  margin: 0.2em 0.7em 0.2em 0;
  padding: 0.16em 0.7em;
  border-radius: 7px;
  background: #23263a;
  color: #222;
}
.casino-card__tag--safe {
  background: #19e393;
}
.casino-card__tag--fast {
  background: #43e7f7;
}
.casino-card__tag--verified {
  background: #b978ff;
}
.casino-card__tag--premium {
  background: #fbbf24;
}
.casino-card__tag--support {
  background: #43e7f7;
}

.casino-card__payments {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin: 0.7em 0 0.1em 0;
}
.casino-card__payments img {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 7px #b978ff88);
  background: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 2px 10px #b978ff22;
}

.casino-card__right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.2em 1em 1.2em 0.3em;
  min-width: 130px;
  background: linear-gradient(120deg, #23263a 80%, #b978ff 100%);
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}
.casino-card__eval {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.1em;
}
.casino-card__eval-label {
  font-size: 0.97em;
  color: #fff;
  opacity: 0.77;
  font-weight: 600;
  margin-bottom: 0.12em;
}
.casino-card__score-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rating-circle {
  width: 54px;
  height: 54px;
  transform: rotate(-90deg);
}
.rating-circle__bg {
  stroke: #44486a;
  stroke-width: 4;
  fill: none;
}
.rating-circle__fill {
  stroke: var(--success);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  transition: stroke-dashoffset 2s cubic-bezier(0.89, -0.1, 0.47, 1.21);
}
.casino-card__score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  color: var(--success);
  font-size: 1.12em;
  text-shadow: 0 2px 10px #19e39344;
}
.casino-card__cta {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 0.8em 1.8em;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.08em;
  cursor: pointer;
  box-shadow: 0 2px 20px #43e7f799;
  transition: transform 0.17s, box-shadow 0.22s, background 0.29s;
  margin-top: 0.7em;
  margin-bottom: 0.2em;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.casino-card__cta:hover {
  animation: btn-vibrate 0.22s linear;
  box-shadow: 0 8px 28px #b978ffaa;
  background: linear-gradient(120deg, #b978ff 0%, #43e7f7 100%);
}
@keyframes btn-vibrate {
  0% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-2px);
  }
  26% {
    transform: translateX(2px);
  }
  48% {
    transform: translateX(-2px);
  }
  64% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Info block */
.casino-info {
  max-width: 980px;
  margin: 2.5em auto;
  font-size: 1.08em;
  color: #dbdefd;
  background: rgba(43, 45, 68, 0.55);
  border-radius: 22px;
  box-shadow: 0 2px 38px #43e7f722;
  padding: 2em 1.3em;
}
.casino-info h2,
.casino-info h3 {
  color: var(--accent2);
}

/* Footer */
.footer {
  background: #23263a;
  padding: 2em 2em;
  margin-top: 2em;
  box-shadow: 0 -2px 24px #18194733;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
}
.footer__nav img {
  margin-right: 1em;
  border-radius: 8px;
  padding: 4px;
}
.footer__about {
  max-width: 360px;
  color: #bfc7f8;
}
.footer__legal {
  font-size: 1.07em;
  margin-top: 1em;
}
.footer__legal a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.22s;
  font-weight: 600;
  margin-right: 1em;
  white-space: nowrap;
}
.footer__legal a:hover {
  color: var(--danger);
}
.footer__copy {
  max-width: 1200px;
  margin: 1em auto 0 auto;
  padding-top: 1em;
  border-top: 1px solid #ffffff14;
  text-align: center;
  color: #bfc7f8;
  font-size: 0.95em;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .header__wrap,
  .casinos,
  .footer,
  .casino-info {
    max-width: 99vw;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  .menu {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .header__warn {
    flex: 1 1 100%;
    margin-left: 0;
  }
}
@media (max-width: 700px) {
  .header__top-offer {
    font-size: 0.8em;
  }
  .hero__title {
    font-size: 1.8em;
  }
  .hero {
    min-height: 200px;
  }
  .hero__subtitle {
    display: none;
  }
  .header__wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6em;
  }
  .header__logo {
    margin-bottom: 0;
    order: 1;
  }
  .burger {
    order: 2;
    margin-left: 0;
  }
  .header__warn {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 0.6em;
    font-size: 0.7em;
  }
  .casino-card {
    flex-direction: column;
    min-height: 0;
    margin-bottom: 2em;
  }
  .casino-card__left {
    flex-direction: row;
    justify-content: space-between;
    gap: 2em;
  }
  .casino-card__left,
  .casino-card__right {
    border-radius: 0;
    padding: 1em;
  }
  .casino-card__main {
    padding: 1em;
  }
  .footer__inner {
    flex-direction: column;
    gap: 1.2em;
  }
  .footer__about {
    margin-right: 0;
  }
  .casino-card__logo {
    width: auto;
  }
}
.reg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}
.footer__nav.reg a {
  display: block;
  width: 100px;
  height: 60px;
}

.footer__nav.reg a:first-child {
  width: 60px;
  height: 60px;
}

.footer__nav.reg a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
