/* Не сгорит.рф. Values follow the design mockup "G · Полная страница"
   (hero art: "Арт №1 · Пепел"). Fonts are self-hosted, no third-party
   requests. Plex Mono is a subset of the full IBM release: the Google Fonts
   cut lacks box-drawing/block glyphs (┌─│░▒▓█), and a fallback font with a
   different advance would misalign the art's stacked layers. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/golos-text-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/golos-text-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url(../fonts/ibm-plex-mono-400.woff2) format("woff2");
}

:root {
  --bg: #17120f;
  --bg-2: #211a15;
  --line: #2b221c;
  --line-2: #3d332b;
  --text: #f6eee3;
  --text-2: #d9cfc0;
  --muted: #bfb2a3;
  --orange: #ff6a2b;
  --orange-2: #ff8a55;
  --yellow: #ffd23f;
  --yellow-2: #ffe68a;
  --green: #3ee08f;
  --art-bg: #0a0807;
  --display: "Unbounded", sans-serif;
  --body: "Golos Text", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

a { color: var(--yellow); }
a:hover { color: var(--yellow-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

img, svg { display: block; max-width: 100%; }

/* Unbounded is very wide: a word longer than a narrow phone may break
   instead of pushing the page sideways. */
h1, h2, h3 { overflow-wrap: break-word; }
.nw { white-space: nowrap; }
@media (min-width: 561px) { .nw-md { white-space: nowrap; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.disp { font-family: var(--display); }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--yellow);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- header / footer ---------- */

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo span { color: var(--orange); }

.site-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 15px; }
.site-nav a:not(.btn-outline) { color: var(--text); text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn-outline):hover { color: var(--yellow); }

.t-short { display: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  background: var(--yellow);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--orange);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:hover { color: var(--bg); background: var(--yellow-2); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--orange); }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.site-footer .logo { font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--yellow); }

/* ---------- hero: "Пепел" ANSI art behind the copy ---------- */

.hero {
  position: relative;
  min-height: max(680px, calc(54 * min(15px, 1.04vw)));
  background: var(--art-bg);
  overflow: hidden;
}

.pepel {
  /* 160×45 cells; Plex Mono advance is exactly 0.6em → 96f × 54f. */
  --f: min(15px, 1.04vw);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--art-bg);
  color: #d9cfc0;
  font-family: var(--mono);
  overflow: hidden;
}
.pepel-stage { position: relative; }
.pepel-layer {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--f);
  line-height: 1.2;
  letter-spacing: 0;
  white-space: pre;
  font-kerning: none;
  font-variant-ligatures: none;
}
.pepel-layer + .pepel-layer { position: absolute; inset: 0; }
.pepel-layer.l0 { color: #5f574d; }
.pepel-layer.l1 { color: #4a4552; }
.pepel-layer.l2 { color: #ff5a1f; }
.pepel-layer.l3 { color: #ffc93c; }
.pepel-layer.l4 { color: #8c2a1d; }
.pepel-layer.l5 { color: #3ee08f; }
.pepel-layer.l6 { color: #2a6e4c; }

.pepel-vignette, .pepel-scan, .pepel-shade { position: absolute; inset: 0; pointer-events: none; }
.pepel-vignette { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%); }
.pepel-scan { background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0, rgba(0,0,0,.22) 1px, transparent 1px, transparent 3px); }
/* Keeps the copy readable over the fire; the green copy block on the
   right stays at full strength. */
.pepel-shade { background: linear-gradient(90deg, rgba(10,8,7,.94) 0%, rgba(10,8,7,.88) 44%, rgba(10,8,7,0) 64%); }

.pepel-status {
  position: absolute;
  left: 24px;
  top: 18px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: #a39b8c;
}
.pepel-status .burn { color: #ff7a45; }
.pepel-status .safe { color: var(--green); }

.pepel-toggle {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  background: rgba(10,8,7,.8);
  color: #a39b8c;
  border: 1px solid #2c2622;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px;
  min-height: 40px;
  cursor: pointer;
}
.pepel-toggle:hover { color: var(--text); border-color: #4a4038; }

.hero-copy { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero-panel { max-width: 600px; }

.tag {
  margin: 0;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--green);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  margin: 24px 0 0;
  font-family: var(--display);
  font-size: min(74px, 5.1vw); /* "Всякое бывает" is 9.4em: one line, clear of the copy block */
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--orange);
  /* keeps the orange letters apart from the orange fire passing behind them */
  text-shadow: 0 0 28px rgba(10,8,7,.9), 0 2px 6px rgba(10,8,7,.8);
}
.lead { margin: 26px 0 0; font-size: 20px; line-height: 1.5; color: #e6dccd; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.link-under {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
  color: var(--text-2);
}
.hero-facts strong { color: var(--yellow); }

/* ---------- ticker band ---------- */

/* The band is wider than the page and tilted; the wrapper cuts its sides
   (no horizontal scroll) and its padding leaves room for the tilt. */
.band-clip { position: relative; z-index: 1; overflow: hidden; padding: 20px 0; margin: -20px 0; }
.band {
  background: var(--orange);
  color: var(--bg);
  transform: rotate(-1.2deg);
  margin: 0 -20px;
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.band p { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; text-align: center; }

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); }
.kicker { margin: 0; font-size: 15px; font-weight: 700; }
.kicker.green { color: var(--green); }
.kicker.orange { color: var(--orange); }
.h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 46px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.kicker + .h2 { margin-top: 12px; }
.h2.xl { font-size: 54px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
.h2 .green { color: var(--green); }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.risks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 44px 0 0; padding: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split.top { align-items: start; }

.risk {
  background: var(--bg-2);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.risk h3 { margin: 0; font-size: 18px; }
.risk p { margin: 0; font-size: 15px; color: var(--muted); }

.steps { margin: 44px 0 0; }
.step {
  background: var(--bg);
  border: 2px solid var(--line-2);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step.first { border-color: var(--green); }
.step-num { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 900; line-height: 1; }
.step h3 { margin: 0; font-size: 21px; }
.step p { margin: 0; }
.step p:not([class]) { color: var(--text-2); }
.step .pill {
  margin: auto 0 0;
  align-self: flex-start;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 15px;
  border: 2px solid currentColor;
}
.step .pill.solid { background: var(--green); border-color: var(--green); color: var(--bg); }
.c-green { color: var(--green); }
.c-yellow { color: var(--yellow); }
.c-orange { color: var(--orange); }
.c-orange-2 { color: var(--orange-2); }

.footnote { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.places { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; list-style: none; padding: 0; }
.places li { border: 2px solid var(--line-2); border-radius: 999px; padding: 8px 16px; }
.places li.places-title { margin: 0 8px 0 0; font-weight: 700; border: 0; padding: 0; }
.places li.other { border-style: dashed; color: var(--muted); }

.card {
  background: var(--bg-2);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.team-intro { margin: 18px 0 0; max-width: 680px; color: var(--text-2); }
.team { margin: 40px 0 0; }
.trait {
  background: var(--bg-2);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trait h3 { margin: 6px 0 0; font-size: 19px; }
.trait p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- contact ---------- */

.contact { padding: 104px 0; }
.contact .lead-2 { margin: 22px 0 0; color: var(--text-2); max-width: 460px; }
.contact .aside { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.contact .aside + .aside { margin-top: 10px; }

/* No form for now: the site collects nothing, people write to the e-mail. */
.reach { gap: 16px; padding: 30px; }
.reach-label { margin: 0; font-size: 15px; font-weight: 700; color: var(--green); }
.reach-email {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--yellow);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.reach-email:hover { text-decoration: underline; text-underline-offset: 5px; }
.reach-text { margin: 0; color: var(--text-2); }
.reach .btn-primary { margin-top: 6px; width: 100%; }
.warn { margin: 0; font-size: 14px; color: var(--yellow); }

/* ---------- inner pages ---------- */
/* Used by 404.html, and by drafts/privacy.html when it's published again. */

.page { padding: 72px 0 96px; }
.page .wrap { max-width: 860px; }
.page h1 { margin: 0; font-family: var(--display); font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.page .meta { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.page h2 { margin: 44px 0 0; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.page p, .page li { color: var(--text-2); }
.page p { margin: 14px 0 0; }
.page ul { margin: 14px 0 0; padding-left: 22px; }
.page li + li { margin-top: 6px; }

.lost { min-height: 62vh; display: flex; align-items: center; padding: 72px 0; }
.lost pre {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.2;
  color: #5f574d;
  white-space: pre;
  overflow: hidden;
}
.lost pre b { font-weight: 400; color: var(--orange); }
.lost h1 { margin: 0; font-family: var(--display); font-size: clamp(36px, 6vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
.lost h1 span { color: var(--green); }
.lost p { margin: 22px 0 32px; color: var(--text-2); max-width: 520px; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .wrap { padding: 0 18px; }
  .split { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
  .risks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2, .h2.xl { font-size: min(32px, 7.6vw); }
  .section { padding: 72px 0; }
  .contact { padding: 80px 0; }

  /* Art moves under the copy and is cropped to its right half, where the
     green copy block sits; 2vw cells → 192vw × 108vw, right-aligned. */
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding-top: 52px; padding-bottom: 36px; }
  .hero h1 { font-size: min(84px, 16vw); white-space: normal; }
  .pepel { --f: 2vw; position: relative; inset: auto; order: 1; height: calc(54 * var(--f)); }
  .pepel-stage { position: absolute; top: 0; right: 0; }
  .pepel-shade { background: linear-gradient(180deg, var(--art-bg) 0%, rgba(10,8,7,0) 18%); }
  .pepel-status { left: 18px; top: 14px; font-size: 11px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* One-row header: the section links are a scroll away, the hero has its own. */
  .site-header .wrap { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .logo { font-size: 18px; }
  .site-nav a:not(.btn-outline) { display: none; }
  .t-long { display: none; }
  .t-short { display: inline; }
  .risks { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  .hero-cta .btn-primary { width: 100%; font-size: 17px; padding: 0 20px; }
  .link-under { padding: 0 4px; }
  .band p { font-size: 18px; }
  .reach { padding: 22px; }
  .reach .btn-primary { font-size: 17px; padding: 0 16px; }
  .reach-email { font-size: min(21px, 6vw); } /* the address stays on one line down to 320px */
  .trait { padding: 22px; }
  .page h1 { font-size: clamp(22px, 6.2vw, 30px); }
  .lost pre { font-size: 2.6vw; }
}
