:root {
  color-scheme: dark;
  --bg: #101010;
  --paper: rgba(25, 22, 19, .94);
  --paper2: rgba(36, 31, 26, .9);
  --text: #f1e8d7;
  --muted: #c9b995;
  --gold: #e6c57f;
  --line: rgba(230, 197, 127, .28);
  --accent: #8b3329;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.58;
  background:
    linear-gradient(180deg, rgba(16,16,16,.80), rgba(16,16,16,.98)),
    url("https://www.timezero-re.com/i/screen/tz7_1.jpg") center top / cover fixed,
    #101010;
}
body.green { --accent: #58714f; }
body.red { --accent: #8b3329; }
body.steel { --accent: #52687a; }
body.dust { --accent: #9a6a35; }
body.blue { --accent: #41657f; }
body.violet { --accent: #665082; }
body.gray { --accent: #6c6c65; }
body.archive {
  --paper: rgba(28, 20, 12, .95);
  --muted: #d7bd8b;
  background:
    linear-gradient(90deg, rgba(24,16,9,.96), rgba(24,16,9,.82) 58%, rgba(24,16,9,.98)),
    url("https://www.timezero-re.com/i/screen/tz7_1.jpg") right top / 58rem auto fixed no-repeat,
    #181009;
}
body.online {
  --paper: rgba(8, 22, 18, .94);
  --muted: #b8d1b1;
  --gold: #dcecc1;
  background:
    linear-gradient(180deg, rgba(5,18,15,.94), rgba(8,14,12,.98)),
    url("https://www.timezero-re.com/i/screen/tz7_2.jpg") center center / cover fixed,
    #07120f;
}
body.official {
  --paper: rgba(31, 15, 16, .94);
  --muted: #e5b9b1;
  background:
    linear-gradient(180deg, rgba(22,9,10,.94), rgba(12,10,10,.98)),
    url("https://www.timezero-re.com/i/screen/tz7_3.jpg") center top / cover fixed,
    #160a0b;
}
body.tests {
  --paper: rgba(10, 20, 28, .95);
  --muted: #b4c9d8;
  --gold: #d7edf6;
  background:
    linear-gradient(180deg, rgba(7,14,20,.96), rgba(8,12,16,.99)),
    url("https://www.timezero-re.com/i/screen/tz7_4.jpg") right center / 56rem auto fixed no-repeat,
    #071018;
}
body.world {
  --paper: rgba(35, 25, 14, .93);
  --muted: #e0c399;
  background:
    linear-gradient(180deg, rgba(28,18,9,.82), rgba(15,12,9,.98)),
    url("https://www.timezero-re.com/i/screen/tz7_2.jpg") center center / cover fixed,
    #1c1309;
}
body.download {
  --paper: rgba(8, 18, 28, .95);
  --muted: #b7d4e6;
  background:
    linear-gradient(90deg, rgba(6,14,23,.98), rgba(8,20,31,.88), rgba(6,14,23,.98)),
    url("https://www.timezero-re.com/i/screen/tz7_3.jpg") left center / 56rem auto fixed no-repeat,
    #071421;
}
body.quick {
  --paper: rgba(25, 15, 31, .95);
  --muted: #d1bde1;
  --gold: #f0ddff;
  background:
    linear-gradient(180deg, rgba(22,12,30,.96), rgba(10,9,14,.99)),
    url("https://www.timezero-re.com/i/screen/tz7_4.jpg") center top / cover fixed,
    #150d1e;
}
body.community {
  --paper: rgba(20, 20, 18, .96);
  --muted: #c9c7b4;
  --gold: #e8d99a;
  background:
    linear-gradient(90deg, rgba(15,15,13,.96), rgba(24,24,20,.88), rgba(15,15,13,.98)),
    url("https://www.timezero-re.com/i/screen/tz7_1.jpg") center center / cover fixed,
    #11110f;
}
a { color: var(--gold); }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 34px 0 18px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px;
  align-items: center;
}
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: 13px; letter-spacing: 0; }
h1 { color: #ffe3a3; font-size: 44px; line-height: 1.08; margin: 12px 0; letter-spacing: 0; }
h2 { color: #ffe3a3; margin: 0 0 12px; font-size: 24px; letter-spacing: 0; }
h3 { color: #ffe3a3; margin: 0 0 6px; font-size: 18px; letter-spacing: 0; }
.lead { font-size: 18px; color: #fbefd8; margin: 0; max-width: 780px; }
.shot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); background: #15120f; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(230,197,127,.56);
  background: var(--accent);
  color: #fff4d4;
  text-decoration: none;
  font-weight: 700;
}
.btn.secondary { background: rgba(25,22,19,.72); color: var(--gold); }
.panel { margin: 20px 0; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack { display: grid; gap: 14px; }
.card, .step, .route, .rule, .link-card {
  background: rgba(255,255,255,.045);
  border-left: 4px solid var(--accent);
  padding: 13px 14px;
}
.timeline { counter-reset: t; display: grid; gap: 12px; }
.timeline li { list-style: none; padding: 12px 14px; background: rgba(255,255,255,.045); border-left: 4px solid var(--accent); }
.timeline li::before { counter-increment: t; content: counter(t) ". "; color: var(--gold); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.num { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; background: var(--accent); color: white; font-weight: 700; margin-bottom: 8px; }
.checks, .features, .tiles, .routes, .site-links, .article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-card { display: block; color: var(--text); text-decoration: none; }
.link-card span { display: block; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.article { max-width: 860px; }
.article p { margin: 0 0 14px; }
.crumb { display: inline-block; color: var(--muted); margin-bottom: 10px; font-size: 13px; }
.rules { display: grid; gap: 10px; padding: 0; margin: 0; }
.rules li { list-style: none; }
.note { color: var(--muted); font-size: 13px; margin-top: 16px; }
footer { padding: 22px 0 36px; color: var(--muted); font-size: 12px; }

body.archive .hero { padding-top: 54px; border-bottom: 1px solid var(--line); }
body.archive .hero-inner { grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: end; }
body.archive .shot { order: -1; aspect-ratio: 3 / 4; filter: sepia(.34) contrast(1.05); }
body.archive .panel { border-left: 0; border-right: 0; background: rgba(28,20,12,.90); }
body.archive .card { background: rgba(255,235,190,.055); border-left: 0; border-top: 3px solid var(--accent); }
body.archive .timeline li { background: rgba(255,235,190,.055); border-left: 0; border-bottom: 1px solid var(--line); }
body.old-news {
  background:
    linear-gradient(90deg, rgba(11,10,9,.98), rgba(39,27,14,.90) 46%, rgba(8,8,8,.98)),
    url("https://www.timezero-re.com/i/screen/tz7_1.jpg") right top / 62rem auto fixed no-repeat,
    #0b0a09;
}
body.old-news .hero { max-width: 1120px; border-bottom: 0; }
body.old-news .archive-news-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) 280px;
  gap: 24px;
  align-items: end;
}
body.old-news .archive-mark {
  min-height: 220px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(230,197,127,.16), rgba(139,51,41,.08)),
    rgba(0,0,0,.42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe3a3;
  font-size: 58px;
  font-weight: 700;
}
.news-archive-summary {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.year-nav a {
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--gold);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  font-weight: 700;
}
.news-archive { display: grid; gap: 28px; }
.year-block {
  border-top: 2px solid var(--line);
  padding-top: 18px;
}
.year-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.year-count { color: var(--muted); font-size: 13px; }
.old-news-list { display: grid; gap: 10px; }
.old-news-item {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(230,197,127,.22);
}
.old-news-item time {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}
.old-news-item h3 { margin-top: 0; }
.old-news-item p { margin: 0 0 10px; }
.old-news-source {
  color: var(--muted);
  font-size: 12px;
}

body.online .hero { padding-top: 28px; }
body.online .hero-inner { grid-template-columns: 1fr; }
body.online .shot { display: none; }
body.online .panel { border: 1px solid rgba(153,196,142,.32); background: rgba(6,19,15,.92); }
body.online .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.online .step { border-left: 0; border-top: 4px solid var(--accent); min-height: 190px; }
body.online .actions .btn { min-width: 170px; justify-content: center; }

body.official .hero-inner { grid-template-columns: minmax(0, 1fr) 310px; }
body.official .shot { aspect-ratio: 1; border-radius: 50%; border-width: 4px; filter: saturate(.82) contrast(1.15); }
body.official .panel { background: rgba(31,15,16,.92); border: 2px solid rgba(208,88,72,.34); }
body.official .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.official .card { border-left: 0; border: 1px solid rgba(208,88,72,.35); }
body.official .card h3::before { content: "✓ "; color: var(--gold); }

body.tests .hero-inner { grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); }
body.tests .shot { aspect-ratio: 16 / 10; object-position: right center; filter: contrast(1.18) saturate(.8); }
body.tests .panel { background: rgba(8,18,26,.93); border-color: rgba(120,160,185,.38); }
body.tests .step, body.tests .card { border-left: 0; border-bottom: 1px solid rgba(160,195,215,.28); font-family: Consolas, "Courier New", monospace; }
body.tests h2::before { content: "> "; color: var(--gold); }

body.world .hero { min-height: 66vh; display: flex; align-items: center; }
body.world .hero-inner { grid-template-columns: minmax(0, 1fr); }
body.world .shot { width: min(820px, 100%); aspect-ratio: 21 / 8; }
body.world .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.world .panel { background: rgba(36,25,14,.88); border-top: 1px solid rgba(220,178,120,.36); border-left: 0; border-right: 0; }
body.world .card { border-left: 0; background: rgba(0,0,0,.22); }

body.download .hero-inner { grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr); }
body.download .shot { order: -1; aspect-ratio: 4 / 5; object-position: left center; }
body.download .panel { background: rgba(7,18,29,.94); border-color: rgba(97,155,190,.34); }
body.download .rules { counter-reset: r; }
body.download .rule { border-left: 0; border-bottom: 1px solid rgba(140,190,220,.28); }
body.download .rule::before { counter-increment: r; content: "файл " counter(r) ": "; color: var(--gold); font-weight: 700; }

body.quick .hero-inner { grid-template-columns: 1fr; text-align: center; }
body.quick .shot { width: min(720px, 100%); margin: 0 auto; aspect-ratio: 21 / 7; }
body.quick .actions { justify-content: center; }
body.quick .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.quick .panel { background: rgba(25,15,31,.92); border: 1px solid rgba(170,120,210,.34); }
body.quick .card { border-left: 0; border-top: 4px solid var(--accent); text-align: center; }

body.community .hero-inner { grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); }
body.community .shot { order: -1; aspect-ratio: 16 / 11; filter: grayscale(.25) contrast(1.08); }
body.community .panel { background: rgba(18,18,16,.94); border-color: rgba(210,200,150,.28); }
body.community .route { border-left: 0; border-top: 1px solid var(--line); padding-left: 42px; position: relative; }
body.community .route::before { content: "#"; position: absolute; left: 14px; color: var(--gold); font-weight: 700; }
body.community .routes { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  body { background-attachment: scroll; }
  h1 { font-size: 32px; }
  .hero-inner, .split, .steps, .checks, .features, .tiles, .routes, .site-links, .article-grid { grid-template-columns: 1fr; }
  body.world .hero { min-height: auto; }
  body.archive .shot, body.download .shot, body.community .shot { order: 0; }
  body.old-news .archive-news-hero, .news-archive-summary, .old-news-item { grid-template-columns: 1fr; }
  body.old-news .archive-mark { min-height: 120px; font-size: 38px; justify-content: flex-start; padding-left: 18px; }
}
