:root {
  --orange: #ff5b00;
  --dark: #0d1631;
  --text: #111827;
  --muted: #4b5563;
  --light: #f8f8f8;
  --beige: #f2efeb;
  --line: #e5e7eb;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

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

.container {
  width: min(1160px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--orange);
}

.brand-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.51rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-weight: 500;
  color: #374151;
}

.site-nav a:hover {
  color: #111827;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 12px;
  font-weight: 600;
}

.hero {
  padding: 0;
  background: #05070f;
}

.hero-inner {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  max-width: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: translate(-14%, 22%) scale(1.18);
  transform-origin: center center;
}

.hero-panel {
  position: relative;
  z-index: 2;
  width: 462px;
  border-radius: 24px 0 0 24px;
  padding: 34px 28px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.hero-badge {
  margin: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff0e7;
  color: #b45309;
  font-weight: 600;
  display: inline-block;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  max-width: 13ch;
  font-weight: 800;
  margin-top: 14px;
}

.hero-description {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: 1.04rem;
  color: #334155;
  line-height: 1.6;
}

.hero-button {
  margin-top: 18px;
  background: var(--orange);
  color: #ffffff;
  border-radius: 999px;
  padding: 15px 32px;
  font-weight: 600;
}

.stats {
  background: var(--light);
  border-top: 1px solid #f0f0f0;
}

.stats-grid {
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff0e7;
  color: var(--orange);
  margin-bottom: 14px;
}

.stat-item strong {
  display: block;
  font-size: 2.7rem;
  line-height: 1.1;
}

.stat-item span {
  color: #4b5563;
}

.section {
  padding: 74px 0;
}

.games h2,
.about h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  margin-bottom: 14px;
}

.section-description {
  text-align: center;
  color: #6b7280;
  margin: 0 auto;
  max-width: 44ch;
  font-size: 1.3rem;
}

.games-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.game-card {
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-content {
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-content h3 {
  color: var(--orange);
  font-size: 2rem;
  margin-bottom: 12px;
}

.game-content p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 1.17rem;
  flex: 1;
}

.store-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn-store {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 600;
}

.btn-dark {
  background: var(--dark);
  color: #ffffff;
}

.btn-orange {
  background: var(--orange);
  color: #ffffff;
}

.about {
  background: var(--beige);
}

.about-inner {
  text-align: center;
  max-width: 920px;
}

.about-inner p {
  margin: 18px auto 0;
  color: #374151;
  font-size: 1.22rem;
  max-width: 54ch;
}

.site-footer {
  background: #0a1635;
  color: #ffffff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-footer .brand-text {
  color: #ffffff;
  font-size: 1.44rem;
}

.brand-footer .brand-logo {
  background: #ffffff;
}

.footer-inner p {
  margin: 0;
  color: #d1d5db;
}

.footer-contact {
  color: #f3f4f6;
  font-weight: 500;
}

.footer-contact:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .hero-inner {
    display: block;
    min-height: auto;
    border-radius: 0;
  }

  .hero-media {
    position: relative;
    min-height: 360px;
  }

  .hero-panel {
    width: auto;
    margin: 14px;
    border-radius: 20px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 30px 0;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 3vw;
    right: 3vw;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-inner {
    padding: 0;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-panel {
    padding: 22px 18px;
  }

  .store-actions {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
