:root {
  --bg: #0b0c0e;
  --bg-elev: #12141a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --muted: #9aa3b2;
  --accent: #c8f542;
  --accent-ink: #12140c;
  --radius: 12px;
  --btn-h: 44px;
  --btn-px: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
  z-index: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 12, 14, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  height: var(--btn-h);
  padding: 0 var(--btn-px);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn {
  height: var(--btn-h);
  min-width: 148px;
  padding: 0 var(--btn-px);
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-muted {
  background: #1a1d24;
  color: var(--muted);
  cursor: default;
}

.btn-checker-swap {
  display: grid;
  place-items: center;
}

.btn-checker-swap span {
  grid-area: 1 / 1;
}

.btn-checker-swap span:last-child {
  opacity: 0;
}

.btn-checker:hover .btn-checker-swap span:first-child,
.btn-checker:focus-visible .btn-checker-swap span:first-child,
.btn-checker:active .btn-checker-swap span:first-child {
  opacity: 0;
}

.btn-checker:hover .btn-checker-swap span:last-child,
.btn-checker:focus-visible .btn-checker-swap span:last-child,
.btn-checker:active .btn-checker-swap span:last-child {
  opacity: 1;
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 88px 0 40px;
}

.hero-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
}

h2 {
  font-size: 32px;
  font-weight: 800;
}

h3 {
  font-size: 22px;
}

.lead,
.section-copy {
  color: var(--muted);
  max-width: 62ch;
}

.hero-inner .lead {
  margin-inline: auto;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions {
  justify-content: center;
}

.card-actions .btn {
  flex: 1;
  min-width: 0;
}

.section,
.hero {
  scroll-margin-top: 84px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 32px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  background: #101218;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

a.game-card:hover {
  border-color: rgba(200, 245, 66, 0.4);
}

.game-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08090c;
}

.game-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.badge-row {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(11, 12, 14, 0.82);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.badge-row .badge {
  position: static;
}

.game-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-body p {
  color: var(--muted);
  margin: 10px 0 0;
  min-height: 66px;
}

.game-body .card-actions {
  margin-top: auto;
  padding-top: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.about-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 238px;
}

.about-logo img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101218;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card .btn {
  margin-top: auto;
  width: 100%;
}

.contact-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner-center {
  justify-content: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  text-align: center;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

.legal {
  max-width: 820px;
  margin: 28px 0 72px;
}

.legal h2 {
  margin: 36px 0 16px;
  font-size: 24px;
}

.legal h3 {
  margin: 28px 0 12px;
  font-size: 18px;
}

.legal p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.legal-num {
  margin: 16px 0 4px !important;
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101218;
  color: var(--text) !important;
}

.page-intro {
  padding: 40px 0 8px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.crumb a:hover {
  color: var(--text);
}

.crumb-sep {
  opacity: 0.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cheat-card .game-body p {
  min-height: 0;
}

.cheat-card .price-from {
  color: var(--text);
}

.price-from {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
}

.price-from .price-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.price-old {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: line-through;
  letter-spacing: 0;
}

.badge-ok {
  color: var(--accent);
  border-color: rgba(200, 245, 66, 0.35);
}

.badge-risk,
.pill-risk {
  color: #f0c14a;
  border-color: rgba(240, 193, 74, 0.4);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.product-main {
  display: grid;
  gap: 12px;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery-main {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #08090c;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.gallery-thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #08090c;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.gallery-thumbs button.is-active,
.gallery-thumbs button:hover {
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buy-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101218;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buy-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buy-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.buy-head h1 {
  font-size: 24px;
}

.buy-head .eyebrow {
  margin: 0 0 4px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.pill-ok {
  color: var(--accent);
  border-color: rgba(200, 245, 66, 0.35);
}

.buy-card .lead,
.buy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.plan-list {
  display: grid;
  gap: 8px;
}

.plan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0f14;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.plan-row:hover,
.plan-row.is-active {
  border-color: var(--accent);
}

.plan-row.is-active {
  background: rgba(200, 245, 66, 0.08);
}

.plan-radio {
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.plan-row.is-active .plan-radio {
  border-color: var(--accent);
}

.plan-row.is-active .plan-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
}

.plan-price {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.plan-row.is-active .plan-price {
  color: var(--accent);
}

.plan-row.is-active .price-old {
  color: rgba(243, 244, 246, 0.7);
}

.plan-row.is-active .price-new {
  font-size: 26px;
}

.price-now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price-now .price-old {
  font-size: 18px;
}

.price-now .price-rub {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.buy-card .btn {
  width: 100%;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0f14;
  font-size: 13px;
}

.spec-list span {
  color: var(--muted);
}

.cheat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cheat-tab {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cheat-tab:hover,
.cheat-tab.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.fn-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #101218;
}

.fn-item + .fn-item {
  border-top: 1px solid var(--line);
}

.fn-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  list-style: none;
}

.fn-item summary::-webkit-details-marker,
.fn-item summary::marker {
  display: none;
  content: "";
}

.fn-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.fn-item[open] .fn-chevron {
  transform: rotate(225deg);
}

.fn-body {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
}

.fn-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.fn-body strong {
  color: var(--text);
}

.fn-sub {
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101218;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-card .btn {
  margin-top: 8px;
  width: 100%;
}

.fn-list[hidden],
.spec-list[hidden],
.support-card[hidden] {
  display: none;
}

.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.buy-modal[hidden] {
  display: none;
}

.buy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.72);
}

.buy-modal-card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101218;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buy-modal-card h2 {
  font-size: 24px;
}

.buy-modal-card .btn {
  width: 100%;
}

.buy-modal-plan {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.buy-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.buy-modal-close:hover {
  color: var(--text);
  background: #0d0f14;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .catalog-grid,
  .contact-grid,
  .about-grid,
  .product-grid,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .buy-card {
    position: static;
  }

  .plan-price {
    font-size: 16px;
  }

  .plan-row.is-active .price-new {
    font-size: 20px;
  }

  .price-now {
    font-size: 40px;
  }
}
