:root {
  --page-background: #ffffff;
  --surface-background: #ffffff;
  --soft-background: #f7f7f8;
  --primary-color: #5c1a56;
  --primary-light: #71316c;
  --text-color: #111111;
  --muted-color: #77717a;
  --border-color: #dddddf;
  --success-color: #24a447;
  --container-width: 1160px;
  --content-width: 847px;
  --sidebar-width: 275px;
  --layout-gap: 38px;
  --radius: 10px;
  --shadow: 0 2px 5px rgba(24, 15, 24, .13), 0 12px 30px rgba(24, 15, 24, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: grid;
  grid-template-columns: minmax(16px, 1fr) minmax(0, var(--content-width)) var(--layout-gap) var(--sidebar-width) minmax(16px, 1fr);
  margin: 0;
  min-width: 320px;
  background: var(--page-background);
  color: var(--text-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
header,
footer { grid-column: 1 / -1; }
main { grid-column: 2; min-width: 0; }
.page-aside { grid-column: 4; min-width: 0; align-self: start; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container-width), calc(100% - 32px)); margin-inline: auto; }

header { height: 69px; background: var(--primary-color); color: #fff; }
header nav { height: 69px; display: flex; align-items: center; gap: 28px; }
header .logo { flex: 0 0 auto; font-size: 22px; font-weight: 700; letter-spacing: .1px; }
header .search {
  width: 260px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.86);
}
header .search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }
header ul { margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 26px; list-style: none; }
header li a { display: block; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
header li span { margin-left: 4px; font-size: 11px; }
.menu-toggle { display: none; }

.hero { width: 100%; padding-top: 28px; }
.hero h1 { margin: 0 0 26px; color: #6a2965; font-size: 30px; line-height: 1.2; font-weight: 600; }
.hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 10px; border-radius: 4px; background: #c8a8c5; }
.hero-content > p { margin: 0; font-size: 16px; line-height: 1.62; }
.filters { display: grid; grid-template-columns: 196px 196px 1fr; gap: 23px; margin-top: 18px; align-items: center; }
.filters a { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border: 1px solid #c9c9cd; border-radius: 8px; color: #4e4851; background: #fff; }
.filters a span { font-size: 9px; transform: rotate(45deg); }
.filters > span { height: 39px; display: flex; align-items: center; justify-content: center; color: #918b93; background: #fbfbfb; border-radius: 7px; }
.stats { padding-top: 31px; }
.stats p { position: relative; height: 64px; margin: 0 0 8px; padding: 9px 14px 7px 65px; border: 1px solid #e1e1e4; border-radius: 12px; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.04); line-height: 1.25; }
.stats p span { position: absolute; left: 14px; top: 11px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #f1eaf6; font-size: 19px; }
.stats p:nth-child(2) span { background: #eaf6f0; }
.stats p:nth-child(3) span { background: #fff2d5; }
.stats strong, .stats small { display: block; }
.stats strong { font-size: 17px; }
.stats small { color: #bbb6bc; font-size: 16px; }

.catalog { width: 100%; margin-top: 20px; padding-bottom: 35px; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 22px; }
.game-grid figure { min-width: 0; margin: 0; text-align: center; }
.game-grid picture { display: block; overflow: hidden; border-radius: 9px; background: #ececf0; box-shadow: 0 7px 22px rgba(36,20,36,.12); }
.game-grid img { width: 100%; aspect-ratio: 1.52 / 1; object-fit: cover; transition: transform .2s ease; }
.game-grid a:hover img { transform: scale(1.018); }
.game-grid figcaption { min-height: 49px; padding-top: 10px; font-size: 16px; line-height: 1.1; font-weight: 600; }
.casino-panel > h2 { margin: 0 0 17px; font-size: 19px; font-weight: 500; }
.casino-list { padding: 5px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.casino-list p { height: 64px; margin: 0 0 11px; display: grid; grid-template-columns: 165px 1fr; gap: 5px; }
.casino-list p:last-child { margin-bottom: 0; }
.casino-list picture { overflow: hidden; border-radius: 4px; background: #17121d; }
.casino-list img { width: 100%; height: 100%; object-fit: cover; }
.casino-list span { display: grid; grid-template-rows: 42px 20px; gap: 2px; }
.casino-list span a:first-child { display: grid; place-items: center; border-radius: 4px; background: #29a746; color: #fff; font-size: 15px; }
.casino-list span a:last-child { display: grid; place-items: center; color: #141414; font-size: 14px; text-decoration: underline; }
.feature-filter { margin-top: 28px; padding: 15px 18px 16px; border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.feature-filter h2 { margin: 0 0 5px; font-size: 17px; font-weight: 500; }
.feature-filter h2 small { display: block; font-size: 13px; font-weight: 400; }
.feature-filter ul { max-height: 363px; margin: 5px -7px 0 0; padding: 0 8px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.feature-filter li { border-bottom: 1px solid #e2e2e2; }
.feature-filter li a { min-height: 33px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.feature-filter li span { width: 13px; height: 13px; border: 1px solid #aaa; background: #fff; }


.guide-area {
  width: 100%;
  padding: 35px 0 24px;
  background: var(--soft-background);
}
.guide-area > section {
  padding: 20px 20px 0;
  background: #fff;
  scroll-margin-top: 20px;
}
.guide-area > section:first-child {
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 18px rgba(24,15,24,.04);
}
.guide-area > section + section {
  padding-top: 24px;
  border-top: 1px solid #ececee;
}
.guide-area > section:last-child {
  padding-bottom: 30px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 9px 28px rgba(24,15,24,.07);
}
.guide-area h2 { margin: 0 0 16px; padding-bottom: 13px; border-bottom: 1px solid #dedee0; font-size: 24px; line-height: 1.25; font-weight: 500; }
.guide-area h3 { margin: 20px 0 17px; font-size: 17px; font-weight: 500; }
.guide-area p { margin: 0 0 17px; font-size: 16px; line-height: 1.5; }
.guide-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 14px 0 28px; }
.guide-stats p { min-height: 118px; margin: 0; padding: 15px 10px 12px; border: 1px solid #ededee; border-radius: 9px; box-shadow: var(--shadow); text-align: center; }
.guide-stats p span, .guide-stats p strong, .guide-stats p small { display: block; }
.guide-stats p span { width: 34px; height: 34px; margin: 0 auto 5px; display: grid; place-items: center; border-radius: 50%; background: #fff0db; }
.guide-stats p:nth-child(2) span { background: #efe7ff; }
.guide-stats p:nth-child(3) span { background: #ffe9ef; }
.guide-stats p:nth-child(4) span { background: #e3f6f8; }
.guide-stats p strong { font-size: 18px; }
.guide-stats p small { color: #c0b9c1; font-size: 16px; }

.top-games {
  margin: 0 0 22px;
  padding: 8px 20px 8px 46px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.top-games li { padding: 8px 4px; border-bottom: 1px solid #e2e2e4; }
.top-games li:last-child { border-bottom: 0; }

.page-aside {
  display: block;
  padding-top: 28px;
  padding-bottom: 34px;
}
.page-aside > * { min-width: 0; }
.page-aside > * + * { margin-top: 28px; }
.page-aside .stats { padding-top: 0; }
.page-aside .stats > h2,
.page-aside .casino-panel > h2,
.page-aside .feature-filter > h2,
.page-aside .summary > h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}
.page-aside .stats p { height: 64px; }
.page-aside .feature-filter { margin-top: 0; }
.summary { padding: 15px 18px 16px; border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.summary h2 { padding-bottom: 9px; border-bottom: 1px solid #d7d7d9; }
.summary a { min-height: 42px; display: flex; align-items: center; padding: 7px 8px; border-bottom: 1px solid #ddd; color: #49414a; line-height: 1.3; }
.summary a:last-child { border-bottom: 0; }

.info-card { margin: 0 0 16px; padding: 15px 17px 13px; border: 1px solid #dedee0; border-left: 4px solid #7b2cff; border-radius: 9px; background: #fff; box-shadow: 0 5px 15px rgba(24,15,24,.04); }
.info-card h3 { margin: 0 0 7px; display: flex; align-items: center; gap: 10px; }
.info-card h3 span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f0e6ff; }
.info-card p { margin: 0; }
.info-card.cyan { border-left-color: #21a8be; }
.info-card.cyan h3 span { background: #e2f7fa; }
.info-card.green { border-left-color: #2caf55; }
.info-card.green h3 span { background: #e8f8ed; }
.info-card.orange { border-left-color: #ff8c28; }
.info-card.orange h3 span { background: #fff0e3; }
.bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 23px; }
.bonus-grid .info-card { margin: 0; }
.faq-item { margin-bottom: 12px; border: 1px solid #e8e8ea; background: #fff; }
.faq-item summary {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 20px;
  color: #005cc8;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "›"; flex: 0 0 auto; color: #777; font-size: 23px; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(90deg); }
.faq-item p { margin: 0; padding: 0 20px 16px; color: #4e4a50; }

footer { min-height: 124px; padding: 45px 0 27px; background: var(--primary-color); color: rgba(255,255,255,.72); }
footer .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
footer p { margin: 0; font-size: 14px; line-height: 1.55; }
footer strong { color: #fff; }
footer nav { color: #fff; font-size: 14px; }
.to-top { position: fixed; right: 9px; bottom: 8px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; background: var(--primary-color); color: #fff; font-size: 25px; font-weight: 700; box-shadow: var(--shadow); }

@media (max-width: 1050px) {
  body {
    grid-template-columns: minmax(16px, 1fr) minmax(0, var(--content-width)) 24px 245px minmax(16px, 1fr);
  }
  header nav { gap: 16px; }
  header ul { gap: 13px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > span { grid-column: 1 / -1; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  body { display: block; }
  .hero,
  .catalog,
  .guide-area,
  .page-aside {
    width: min(var(--container-width), calc(100% - 32px));
    margin-inline: auto;
  }
  header { height: auto; min-height: 64px; }
  header nav { min-height: 64px; height: auto; flex-wrap: wrap; padding: 12px 0; }
  header .logo { font-size: 20px; }
  header .search { order: 3; width: 100%; }
  .menu-toggle { margin-left: auto; display: block; padding: 6px 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; font-size: 13px; text-transform: uppercase; }
  header ul { width: 100%; display: none; margin: 0; padding: 8px 0 2px; flex-direction: column; align-items: stretch; gap: 0; }
  header ul.open { display: flex; }
  header li a { padding: 8px 0; }
  .hero { padding-top: 23px; }
  .feature-filter { margin-top: 0; }
  .page-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .page-aside > * + * { margin-top: 0; }
  .guide-stats { gap: 12px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .container { width: min(100% - 24px, var(--container-width)); }
  .hero h1 { font-size: 27px; }
  .hero-content > p { font-size: 15px; }
  .filters { grid-template-columns: 1fr; gap: 10px; }
  .filters > span { grid-column: auto; }
  .stats p { height: 58px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 12px; }
  .game-grid figcaption { font-size: 14px; }
  .casino-list p { grid-template-columns: minmax(0, 1fr) 95px; }
  .hero,
  .catalog,
  .guide-area,
  .page-aside { width: min(100% - 24px, var(--container-width)); }
  .guide-area { padding-top: 20px; }
  .guide-area > section { padding-inline: 14px; }
  .guide-area h2 { font-size: 21px; }
  .guide-stats { grid-template-columns: 1fr 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .page-aside { grid-template-columns: 1fr; }
  footer .container { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-grid figcaption { min-height: 38px; }
  .guide-stats { grid-template-columns: 1fr; }
}
