/* Сайт студии: тёмная тёплая тема, системные шрифты (никаких сторонних запросов), портрет и десктоп. */
:root {
  --bg: #14110f;
  --bg2: #1d1815;
  --card: #231d19;
  --line: #3a2f27;
  --ink: #efe6d8;
  --muted: #a8998a;
  --accent: #e0a64b;
  --accent2: #c2452f;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans);
  /* подвал всегда внизу, даже на короткой странице */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #f2c27a; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1040px; margin: 0 auto; padding: 18px 20px;
}
.mark { font: 700 22px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.mark::after { content: "."; color: var(--accent2); }
.top__nav { display: flex; gap: 20px; font-size: 15px; }
.top__nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.top__nav a:hover { color: var(--ink); }

main { flex: 1 0 auto; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px 40px; }

.hero { padding: 56px 0 40px; max-width: 720px; }
.hero__kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); }
.hero__lead { color: var(--muted); font-size: 19px; margin: 0; }
.hero .btn { margin-top: 26px; }
.hero--short { padding-bottom: 8px; }

section { margin-top: 40px; }
section > h2 { font-size: 28px; }

.games { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.games > h2 { grid-column: 1 / -1; margin-bottom: 0; }
.game {
  background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; display: flex; flex-direction: column;
}
.game h3 { font-size: 26px; margin-bottom: .2em; }
.game__tag { color: var(--accent); margin: 0 0 12px; font-size: 15px; }
.game p { margin: 0 0 12px; }
.game__kind { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin: 0 0 8px !important; }
.game .btn, .game .soon { margin-top: auto; align-self: flex-start; }
.game > p:last-of-type { margin-bottom: 18px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; background: var(--accent2); color: var(--ink);
  text-decoration: none; font-weight: 600; border: 1px solid #e0674f;
}
.btn:hover { background: #d4513a; color: #fff; }
.soon { color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 16px; }

.about, .contact { max-width: 760px; }
.about__list { padding-left: 1.3em; }
.about__list li { margin-bottom: 10px; }
.doc__table { width: 100%; max-width: 760px; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc__table th, .doc__table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc__table th { color: var(--muted); font-weight: 600; }
.num { text-align: right !important; white-space: nowrap; }
small { color: var(--muted); }


.doc { max-width: 760px; padding-top: 24px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); }
.doc h2 { font-size: 21px; margin-top: 1.8em; }
.doc__kicker { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.doc__lead { font-size: 18px; color: var(--ink); }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }

.req { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; }
.req:empty { display: none; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }

.foot { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; flex-shrink: 0; }
.foot__in { max-width: 1040px; margin: 0 auto; padding: 28px 20px 36px; font-size: 14px; color: var(--muted); }
.foot__brand { color: var(--ink); }
.foot__docs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }

@media (max-width: 360px) {
  .top { flex-wrap: wrap; }
  .top__nav { width: 100%; justify-content: space-between; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top { padding: 14px 16px; gap: 12px; }
  .mark { font-size: 20px; }
  .top__nav { gap: 14px; font-size: 14px; }
  .hero__lead { font-size: 17px; }
  .game { padding: 20px; }
  .game h3 { font-size: 23px; }
  .btn { display: block; text-align: center; }
  .game .btn { align-self: stretch; }
  main, .foot__in { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 32px 0 24px; }
  .games { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
  .req dd { margin-bottom: 6px; }
}
