:root {
  --blue: #3246c9;
  --blue-dark: #2536a3;
  --pink: #ef3f74;
  --purple: #7b3fe4;
  --bg: #f0efed;
  --card: #fff;
  --line: #e2e0dc;
  --text: #262a35;
  --muted: #6b7284;
  --wrap: 1460px;
  --r: 12px;
  --shadow: 0 2px 10px rgba(30, 34, 50, .07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font: 400 16px/1.6 -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a,
button,
summary {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: .15s;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--signup {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  border-radius: 999px;
}

.btn--signup:hover {
  filter: brightness(1.07);
}

.btn--signin {
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 999px;
}

.btn--signin:hover {
  background: var(--blue);
  color: #fff;
}

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

.header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  margin-right: auto;
}

.nav ul {
  display: flex;
  gap: 22px;
}

.nav a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: .15s;
}

.nav a:hover {
  color: var(--text);
}

.nav a.is-active {
  color: var(--blue);
  border-color: var(--blue);
}

.nav__hot {
  color: var(--pink)!important;
  font-style: italic;
}

.header__btns {
  display: flex;
  gap: 10px;
}

.burger {
  display: none;
  width: 26px;
  height: 18px;
  border: 0;
  background: none;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.offer {
  width: calc(100% - 48px);
  max-width: calc(var(--wrap) - 48px);
  margin: 34px auto 0;
  padding: 26px 30px;
  border-radius: var(--r);
  background: linear-gradient(110deg, #3246c9, #6b4ae0 60%, #8b45d6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.offer__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #cfd6ff;
}

.offer h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 4px 0 6px;
}

.offer p {
  color: #dfe3ff;
  font-size: 15px;
}

.offer .btn {
  flex: 0 0 auto;
  padding: 14px 32px;
  font-size: 15px;
}

.btn--light {
  background: #fff;
  color: var(--blue);
}

.btn--light:hover {
  background: #eef0ff;
}

.catalog {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  margin-top: 26px;
}

.cats {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  height: max-content;
}

.cats__search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f6f4;
  font: inherit;
  font-size: 14px;
  margin-bottom: 10px;
}

.cats__search input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.cats a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.cats a:hover {
  background: #f3f2ef;
  color: var(--text);
}

.cats a.is-active {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
}

.catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.catalog__head h2 {
  font-size: 22px;
}

.catalog__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.games {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.game {
  flex: 0 0 calc((100% - 48px)/4);
  aspect-ratio: 642/864;
  border-radius: var(--r);
  overflow: hidden;
  background: #dedbd6;
  box-shadow: var(--shadow);
  transition: .18s;
}

.game--aviator {
  background: #0d1b3e;
}

.game--aviator img {
  object-fit: contain;
  padding: 14px;
}

.game:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(30, 34, 50, .16);
}

.game:active {
  transform: translateY(-1px);
}

.game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bonus {
  margin-top: 34px;
}

.bonus h2,
.vip h2,
.faq h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f7f6f4;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: #faf9f7;
}

.vip {
  width: calc(100% - 48px);
  max-width: calc(var(--wrap) - 48px);
  margin: 34px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.vip__text {
  max-width: 860px;
}

.vip__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--pink);
}

.vip h2 {
  margin: 2px 0 8px;
}

.vip p {
  color: var(--muted);
  font-size: 15px;
}

.faq {
  margin-top: 34px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--blue);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin-top: 10px;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
}

.content {
  max-width: none;
  padding: 0;
  margin-top: 34px;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.content__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 24px 40px;
}

.content h1 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin-bottom: 14px;
}

.content h2 {
  font-size: 20px;
  margin: 24px 0 8px;
}

.content p {
  color: var(--muted);
  margin-bottom: 10px;
}

.footer {
  max-width: none;
  padding: 0;
  background: #9aa0a9;
  color: #1f232c;
}

.footer__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 24px;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 14px;
  font-weight: 600;
}

.footer__links a:hover {
  color: #fff;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 22px;
  margin: 18px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer__badges li {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .55);
}

.age {
  font-weight: 800;
}

.footer__copy {
  font-size: 13px;
}

@media (max-width: 1200px) {
  .nav ul {
    gap: 16px;
  }
  .nav a {
    font-size: 13px;
  }
  .catalog {
    grid-template-columns: 210px 1fr;
  }
  .game {
    flex: 0 0 calc((100% - 32px)/3);
  }
}

@media (max-width: 980px) {
  .burger {
    display: flex;
    order: 3;
  }
  .nav {
    display: none;
    order: 4;
    width: 100%;
    margin: 0;
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }
  .header__in {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }
  .logo {
    margin-right: auto;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  .cats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .cats a {
    padding: 8px 14px;
    border: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .game {
    flex: 0 0 calc((100% - 12px)/2);
  }
  .games {
    gap: 12px;
  }
  .vip {
    padding: 20px;
  }
  .footer__links {
    gap: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .header__in {
    gap: 8px;
    padding: 10px 12px;
  }
  .logo img {
    height: 28px;
  }
  .header .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}
