:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --game: #ff8a3d;
  --game-dark: #913a0f;
  --tool: #3f6df6;
  --tool-dark: #173a9a;
  --brand: #17324d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--tool), var(--brand)); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 650; }
nav a:hover, nav a.active { color: var(--ink); }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: clamp(70px, 10vw, 132px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(36px, 7vw, 92px); }
.eyebrow { margin: 0 0 14px; color: var(--tool); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(44px, 8vw, 84px); }
h2 { font-size: clamp(30px, 5vw, 48px); }
h3 { font-size: 22px; }
.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(18px, 2.4vw, 22px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; text-decoration: none; font-weight: 750; }
.button.primary { color: #fff; background: var(--ink); }
.button.secondary { background: #fff; border: 1px solid var(--line); }

.signal-card, .product-card, .info-card, .doc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(23,32,51,.07);
}
.signal-card { padding: 30px; border-radius: 28px; }
.signal-card strong { display: block; margin-bottom: 8px; font-size: 22px; }
.signal-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.signal-row b { color: var(--ink); }

.section { padding: 76px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head p { max-width: 580px; color: var(--muted); }
.product-grid, .info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.product-card { position: relative; overflow: hidden; min-height: 340px; padding: 34px; border-radius: 28px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 64px rgba(23,32,51,.12); }
.product-card.game { background: linear-gradient(145deg, #fff8f1, #fff); }
.product-card.tool { background: linear-gradient(145deg, #f1f5ff, #fff); }
.product-card .tag { display: inline-flex; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card.game .tag { color: var(--game-dark); background: #ffe1ca; }
.product-card.tool .tag { color: var(--tool-dark); background: #dce6ff; }
.product-card h3 { max-width: 420px; margin: 34px 0 12px; font-size: clamp(30px, 4vw, 44px); }
.product-card p { max-width: 520px; color: var(--muted); }
.product-icon { width: 92px; height: 92px; margin-top: 28px; border-radius: 22px; object-fit: cover; box-shadow: 0 12px 30px rgba(23,32,51,.16); }
.product-link { position: absolute; right: 30px; bottom: 28px; font-weight: 800; }

.info-card { padding: 28px; border-radius: 22px; }
.info-card p, .doc-card p, .muted { color: var(--muted); }
.info-card code { overflow-wrap: anywhere; }

.app-hero { padding: 68px 0; }
.app-hero-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 30px; }
.app-icon { width: 132px; height: 132px; border-radius: 30px; object-fit: cover; box-shadow: 0 18px 40px rgba(23,32,51,.18); }
.app-hero h1 { margin-bottom: 12px; font-size: clamp(42px, 7vw, 72px); }
.facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.fact { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 700; }

.document { width: min(840px, calc(100% - 40px)); margin: 44px auto 72px; padding: clamp(28px, 5vw, 58px); border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.document h1 { font-size: clamp(38px, 6vw, 62px); }
.document h2 { margin-top: 36px; font-size: 24px; }
.document li { margin-bottom: 8px; }
.document .date { color: var(--muted); }
.notice { padding: 18px 20px; border-left: 4px solid var(--tool); border-radius: 0 12px 12px 0; background: #f2f6ff; }

footer { padding: 34px clamp(20px, 5vw, 72px); color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; width: min(1120px, 100%); margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }

@media (max-width: 760px) {
  .site-header { position: static; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 15px; }
  nav { flex-wrap: wrap; gap: 12px 18px; }
  .hero-grid, .product-grid, .info-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .section-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .app-hero-inner { grid-template-columns: 1fr; }
  .app-icon { width: 104px; height: 104px; border-radius: 24px; }
}
