:root {
  --bg: #090b14;
  --bg-raise: rgba(255, 255, 255, 0.035);
  --bg-soft: #141826;
  --text: #f4f6fb;
  --muted: #9aa3bd;
  --accent: #e10600;
  --label: #8ec8ff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(9, 11, 20, 0.62), rgba(9, 11, 20, 0.72)),
    url("../assets/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.45;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  line-height: 1;
  user-select: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.instruction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 11, 20, 0.72);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.instruction-btn .material-symbols-outlined {
  color: var(--label);
}

.instruction-btn:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.instruction-btn:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 2px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(9, 11, 20, 0.72);
  color: var(--text);
}

.menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 2px;
}

.menu-toggle .material-symbols-outlined {
  font-size: 24px;
}

.side-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 14, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.side-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  width: min(320px, 78vw);
  height: 100%;
  height: 100dvh;
  padding: 56px 20px 28px;
  background: #121829;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.side-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.side-menu__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
}

.side-menu__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.side-menu__close:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 2px;
}

.side-menu__close .material-symbols-outlined {
  font-size: 26px;
}

.side-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: auto 0;
  text-align: center;
}

.side-menu__nav a {
  display: block;
  width: 100%;
  padding: 12px 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.side-menu__nav a:hover {
  color: var(--label);
}

.side-menu__nav a:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 2px;
  border-radius: 8px;
}

.logo__text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f7f8fc;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 0 22px;
}

.seo-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 11, 20, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.seo-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.seo-links a:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 2px;
  color: var(--text);
}

.seo-links .material-symbols-outlined {
  font-size: 18px;
  color: var(--label);
}

.seo-links__pay {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.seo-links__pay--sbp {
  width: 16px;
  height: 16px;
}

.seo-links__pay--mir {
  width: 26px;
  height: 9px;
}

.seo-links__flag {
  flex-shrink: 0;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.seo-links__flag--ru {
  background: linear-gradient(#fff 0 33.33%, #1c4ed8 33.33% 66.66%, #e23b3b 66.66% 100%);
}

.seo-links__flag--by {
  background: linear-gradient(#c8313e 0 62%, #3d9a4a 62% 100%);
}

.hero {
  margin-bottom: 22px;
}

.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.hero__title {
  margin: 0;
  max-width: 640px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.sort-tabs__btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 11, 20, 0.55);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.sort-tabs__btn:hover {
  color: var(--text);
  background: var(--bg-raise);
}

.sort-tabs__btn.is-active {
  color: var(--text);
  background: rgba(225, 6, 0, 0.18);
}

.guide {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.guide[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide::backdrop {
  background: rgba(6, 8, 16, 0.72);
}

.guide__panel {
  width: min(560px, 100%);
  max-height: min(640px, calc(100vh - 32px));
  overflow: auto;
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #151926;
  box-shadow: var(--shadow);
}

.guide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.guide__title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.guide__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--text);
}

.guide__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.guide__close:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 2px;
}

.guide__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.guide__steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.guide__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(142, 200, 255, 0.14);
  color: var(--label);
  font-size: 15px;
  font-weight: 800;
}

.guide__step-title {
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.guide__steps p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.guide__note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rating__head {
  display: grid;
  grid-template-columns: 40px 250px 1fr 280px;
  gap: 16px;
  padding: 8px 18px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rating__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: 40px 250px 1fr 280px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(9, 11, 20, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card__num {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.brand__logo-link {
  display: flex;
  align-items: center;
  height: 48px;
}

.brand__logo {
  width: 148px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__name:hover {
  color: var(--label);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tag .material-symbols-outlined {
  font-size: 16px;
  color: var(--label);
}

.tag:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

.brand__play {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand__play:hover {
  color: var(--accent);
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.info-list .material-symbols-outlined {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 16px;
  color: #7ddea0;
}

.bonus {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.bonus__accept {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.bonus__flags {
  display: flex;
  gap: 6px;
}

.flag {
  display: inline-flex;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bonus__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.bonus__value {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.bonus__value:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.bonus__btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(225, 6, 0, 0.35);
  transition: transform 0.15s ease;
}

.bonus__btn .material-symbols-outlined {
  font-size: 26px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.bonus__btn:hover {
  transform: scale(1.05);
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 20, 0.9);
  color: var(--muted);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 20px;
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__lead {
  margin: 6px 0 0;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.45;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 680px;
}

.site-footer__links a,
.site-footer__links button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.site-footer__links a:hover,
.site-footer__links button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-footer__links a:focus-visible,
.site-footer__links button:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 2px;
  color: var(--text);
}

.site-footer__bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.site-footer__notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-footer__age {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(225, 6, 0, 0.55);
  border-radius: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.site-footer__notice p,
.site-footer__bar {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer__bar {
  flex-shrink: 0;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 8, 16, 0.72);
}

.modal.is-open {
  display: flex;
}

.modal__dialog {
  width: min(460px, 100%);
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #151926;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--text);
}

.modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.modal-item .material-symbols-outlined {
  color: var(--label);
}

.modal-item__mark {
  width: 44px;
  height: 22px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

@media (max-width: 1024px) {
  .rating__head {
    display: none;
  }

  .hero__row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .sort-tabs {
    justify-content: flex-start;
  }

  .card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "num brand"
      "info info"
      "bonus bonus";
    align-items: start;
    gap: 12px 10px;
  }

  .card__num {
    grid-area: num;
    min-width: 1.6rem;
    padding-top: 8px;
  }

  .brand {
    grid-area: brand;
  }

  .info-list {
    grid-area: info;
  }

  .bonus {
    grid-area: bonus;
    align-items: stretch;
    width: 100%;
  }

  .bonus__accept {
    justify-content: flex-end;
  }

  .bonus__cta {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .page {
    width: min(1180px, calc(100% - 20px));
    padding: 16px 0 0;
  }

  .seo-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .instruction-btn {
    padding: 8px 12px 8px 10px;
    font-size: 13px;
  }

  .instruction-btn .material-symbols-outlined {
    font-size: 18px;
  }

  .logo__text {
    font-size: 22px;
  }

  .hero__title {
    font-size: 24px;
  }

  .sort-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .sort-tabs::-webkit-scrollbar {
    display: none;
  }

  .sort-tabs__btn {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .guide__panel {
    padding: 18px 16px 16px;
  }

  .guide__title {
    font-size: 20px;
  }

  .card {
    padding: 14px 12px;
  }

  .brand__logo {
    width: min(148px, 100%);
    height: auto;
    max-height: 48px;
  }

  .tag {
    min-height: 40px;
  }

  .bonus__value {
    min-height: 52px;
    font-size: 15px;
  }

  .bonus__btn {
    width: 52px;
    height: 52px;
  }

  .modal {
    align-items: flex-end;
    padding: 10px;
  }

  .modal__dialog {
    width: 100%;
    max-height: min(86vh, 640px);
    border-radius: 20px 20px 14px 14px;
  }

  .site-footer__inner {
    width: min(1180px, calc(100% - 20px));
  }

  .site-footer__top,
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .site-footer__links a,
  .site-footer__links button {
    min-height: 40px;
  }
}

@media (min-width: 721px) {
  .side-menu,
  .side-menu-overlay,
  .menu-toggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bonus__btn {
    transition: none;
  }

  .side-menu,
  .side-menu-overlay {
    transition: none;
  }
}
