:root {
  --bg-main: #020617;
  --bg-elevated: #020818;
  --bg-soft: #030918;
  --border-subtle: #111827;
  --border-strong: #1f2933;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;

  --accent-primary: #4f46e5;
  --accent-secondary: #22c55e;
  --accent-soft: #a5b4fc;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;

  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.9);
  --shadow-subtle: 0 14px 38px rgba(15, 23, 42, 0.7);
}

/* RESET */

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

html,
body {
  margin: 0;
  padding: 0;
}

body.layout-body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, #0b1220 0, transparent 50%),
    linear-gradient(180deg, #020617 0, #020617 100%);
}

/* лёгкий grain */

body.layout-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle, rgba(15, 23, 42, 0.6) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 70px;
}

/* LOGO */

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    conic-gradient(from 210deg, var(--accent-primary), var(--accent-secondary), #0ea5e9, var(--accent-primary));
}

.logo-text {
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* NAV */

.main-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-link {
  position: relative;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.88);
}

.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* BUTTONS (для каждой кнопки стиль) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: #e5e7eb;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.btn--lg {
  padding: 9px 22px;
  font-size: 0.93rem;
}

/* основная */

.btn--primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: transparent;
  color: #f9fafb;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.65);
}

.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.85);
}

/* более спокойная вторичная */

.btn--secondary {
  background: #0b1220;
  border-color: #1f2937;
  color: #e5e7eb;
}

.btn--secondary:hover {
  background: #111827;
}

/* прозрачная с рамкой */

.btn--outline {
  background: transparent;
  border-color: #374151;
  color: #e5e7eb;
}

.btn--outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* ghost-кнопка */

.btn--ghost {
  background: rgba(15, 23, 42, 0.95);
  border-color: #1f2937;
  color: #e5e7eb;
}

.btn--ghost:hover {
  background: #111827;
}

/* как текстовая */

.btn--link {
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  color: var(--accent-soft);
}

.btn--link:hover {
  text-decoration: underline;
}

/* HEADER RIGHT */

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* MAIN LAYOUT */

.site-main {
  padding: 32px 0 64px;
}

/* HERO */

.hero {
  padding: 16px 0 44px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 26px 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, #0b1220, transparent 60%),
    radial-gradient(circle at 100% -10%, #020617, transparent 60%),
    #020617;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
}

/* тонкая линия внизу hero */

.hero-inner::after {
  content: "";
  position: absolute;
  inset-inline: 11%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.5;
}

/* HERO LEFT */

.hero-left {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.hero-title span {
  background: linear-gradient(120deg, #e5e7eb, var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 20px;
  max-width: 520px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-note {
  margin: 0;
}

/* chips с играми */

.hero-games-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* HERO RIGHT */

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-panel-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}

/* HERO RIGHT — аккуратный блок вместо панели продавца */

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-aside {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-aside-card {
  position: relative;
  border-radius: 18px;
  padding: 14px 14px 16px;
  background:
    radial-gradient(circle at top left, #0b1220, transparent 60%),
    #020818;
  border: 1px solid #111827;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
  overflow: hidden;
}

.hero-aside-card--soft {
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.18), transparent 55%),
    #020818;
}

.hero-aside-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
}

.hero-aside-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.hero-aside-text {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #9ca3af;
}

.hero-aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-aside-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #111827;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.hero-aside-badge {
  position: absolute;
  right: 6px;
  bottom: -18px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid #1f2937;
  font-size: 0.78rem;
  color: #9ca3af;
}

.hero-aside-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}




/* базовая панель */

.hero-panel {
  position: relative;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 14px 14px 16px;
}

/* главная панель */

.hero-panel--main {
  z-index: 3;
}

/* верхняя и нижняя панель "под" ней */

.hero-panel--top {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 64%;
  z-index: 2;
}

.hero-panel--bottom {
  position: absolute;
  bottom: -22px;
  left: -10px;
  width: 74%;
  z-index: 1;
}

/* MAIN PANEL CONTENT */

.hero-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-kicker {
  margin: 0 0 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.panel-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 500;
}

.panel-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: #bbf7d0;
}

/* метрики */

.hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric {
  padding: 10px 10px 11px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid #111827;
}

.metric-label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.metric-value {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.metric-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* список заказов */

.hero-panel-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 0;
}

.order-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-game {
  font-size: 0.86rem;
}

.order-type {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.order-price {
  font-size: 0.86rem;
  font-weight: 500;
}

/* боковая верхняя панель */

.panel-small-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.panel-games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.panel-game-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #020617;
  border: 1px solid #111827;
}

/* боковая нижняя панель */

.panel-small-text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* SECTIONS */

.section {
  padding: 30px 0 42px;
}

.section-alt {
  padding: 32px 0 44px;
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.section-header {
  margin-bottom: 22px;
}

.section-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.section-subtitle {
  margin: 0;
  max-width: 600px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* GRID / CARDS */

.cards-grid {
  display: grid;
  gap: 16px;
}

/* GAME CARDS */

.games-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.game-card {
  position: relative;
  padding: 16px 16px 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(#020617, #020617) padding-box,
    linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(34, 197, 94, 0.5)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset-inline: -30%;
  top: -40%;
  height: 60%;
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.95);
  filter: brightness(1.03);
}

.game-card:hover::after {
  opacity: 1;
}

.game-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.game-logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #111827, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.game-title {
  margin: 0;
  font-size: 1.02rem;
}

.game-sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.game-text {
  margin: 8px 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.game-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #111827;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--accent-secondary);
}

.link-inline::after {
  content: "→";
  font-size: 0.86em;
}

/* BENEFITS */

.benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.benefit-card {
  padding: 16px 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.benefit-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.benefit-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* STEPS */

.steps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  position: relative;
  padding: 16px 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.step-number {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(31, 41, 55, 0.85);
}

.step-title {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.step-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}


/* ОТЗЫВЫ */

.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.review-card {
  padding: 16px 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.review-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.review-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}


/* CTA */

.section-cta {
  padding: 34px 0 46px;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.cta-title {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.cta-subtitle {
  margin: 0;
  max-width: 480px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* FOOTER */

.site-footer {
  margin-top: 30px;
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 22px 0 18px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-text {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-title {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.footer-link {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: color 0.15s ease, transform 0.12s ease;
}

.footer-link:hover {
  color: var(--text-main);
  transform: translateX(1px);
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  padding: 8px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
}



/* ADAPTIVE */

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-right {
    justify-content: flex-start;
    order: -1;
  }

  .hero-panel--top,
  .hero-panel--bottom {
    display: none;
  }

  .hero-panel--main {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .hero-inner {
    padding: 20px 18px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* адаптив: на мобиле блок уезжает под текст */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-right {
    justify-content: flex-start;
    order: -1;
  }

  .hero-aside-badge {
    position: static;
    transform: none;
    margin-top: 4px;
  }
}