/* Deadland: крашеный металл гражданской обороны, сигнальный жёлтый, ржавчина для угроз, хаки для исправленного. */

:root {
  color-scheme: dark;

  /* Палитра */
  --okalina: #191c16;      /* фон: тёмная оливковая краска по стали */
  --bronya: #20241c;       /* плиты и панели */
  --bronya-2: #282d23;     /* приподнятые элементы */
  --shov: #3a4033;         /* линии и швы */
  --shov-2: #4d5543;
  --izvest: #ddd6c1;       /* основной текст: известь */
  --pyl: #a19d88;          /* второстепенный текст */
  --pepel: #77755f;        /* третий план */
  --signal: #d8a933;       /* сигнальный жёлтый гражданской обороны */
  --signal-ink: #1b1a10;
  --rust: #a8452c;         /* угроза, «до» */
  --rust-text: #e2805f;
  --khaki: #8f9b5c;        /* безопасно, «после», сделано */
  --khaki-text: #b4c07c;

  /* Шрифты */
  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Golos Text", "Segoe UI", Roboto, sans-serif;
  --f-mono: "PT Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Слои */
  --z-scene: 0;
  --z-content: 1;
  --z-bar: 20;
  --z-grain: 40;

  --bar-h: 56px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--okalina);
  color: var(--izvest);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Зерно поверх всего: краска не бывает идеально ровной */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
}

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

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--signal);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

code {
  font-family: var(--f-mono);
  font-size: 0.86em;
  color: var(--izvest);
  background: rgba(221, 214, 193, 0.07);
  padding: 0 0.2em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0.05em 0.45em 0.1em;
  font-family: var(--f-mono);
  font-size: 0.82em;
  line-height: 1.4;
  text-align: center;
  color: var(--izvest);
  background: var(--bronya-2);
  border: 1px solid var(--shov-2);
  border-bottom-width: 3px;
}

strong {
  font-weight: 600;
  color: var(--izvest);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.6em 1.25em;
  border: 1px solid var(--shov-2);
  background: transparent;
  color: var(--izvest);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.1s ease;
}

.btn:hover {
  border-color: var(--izvest);
}

.btn:active {
  transform: translateY(1px);
}

.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-ink);
}

.btn--signal:hover {
  background: #e6bb4b;
  border-color: #e6bb4b;
}

.btn--ghost {
  background: rgba(25, 28, 22, 0.55);
  backdrop-filter: blur(4px);
}

.btn--small {
  min-height: 38px;
  padding: 0.45em 0.9em;
  font-size: 1.02rem;
}

/* ---------- Закрытый тест ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--shov);
  background: rgba(0, 0, 0, 0.14);
}

.step {
  padding: 22px 24px 26px;
  border-left: 1px solid var(--shov);
}

.step:first-child {
  border-left: 0;
}

.step__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 4.4rem;
  line-height: 0.8;
  color: var(--signal);
}

.step__t {
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
}

.step p {
  max-width: 34ch;
  color: var(--pyl);
  text-wrap: pretty;
}

.testcols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(24px, 5vw, 72px);
  margin-top: clamp(32px, 5vw, 56px);
}

.facts {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.facts li {
  position: relative;
  padding-left: 24px;
  max-width: 60ch;
  text-wrap: pretty;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 2px;
  background: var(--signal);
}

.facts--warn li::before {
  background: var(--rust-text);
}

.testcta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--shov);
}

.btn--big {
  min-height: 58px;
  padding: 0.7em 1.6em;
  font-size: 1.5rem;
}

.testcta__note {
  max-width: 56ch;
  color: var(--pyl);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    border-left: 0;
    border-top: 1px solid var(--shov);
  }

  .step:first-child {
    border-top: 0;
  }

  .testcols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .testcta .btn {
    width: 100%;
  }
}

/* ---------- Верхняя полоса ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: var(--z-bar);
  height: var(--bar-h);
  background: rgba(25, 28, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shov);
}

.bar__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: 100%;
}

.bar__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--izvest);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.bar__nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.bar__nav::-webkit-scrollbar {
  display: none;
}

.bar__nav a {
  position: relative;
  flex: none;
  padding: 6px 0;
  color: var(--pyl);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.bar__nav a:hover,
.bar__nav a[aria-current="true"] {
  color: var(--izvest);
}

.bar__nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--signal);
}

.bar__ver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--pyl);
}

/* Лампа питания: горит, пока сайт видит VERSION */
.lamp {
  width: 8px;
  height: 8px;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(216, 169, 51, 0.16), 0 0 10px rgba(216, 169, 51, 0.6);
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100dvh - var(--bar-h));
  min-height: max(640px, calc(100dvh - var(--bar-h)));
  overflow: hidden;
  background: #0f110d;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: var(--z-scene);
  --x: 62%;
  --y: 62%;
  --r: clamp(200px, 28vw, 420px);
}

.hero__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
}

/* Ночь: улица без света */
.hero__dark {
  filter: grayscale(0.75) sepia(0.35) hue-rotate(35deg) brightness(0.24) contrast(1.15);
}

/* Луч фонаря: тёплый, с неровным краем */
.hero__lit {
  filter: saturate(0.6) sepia(0.4) brightness(1.12) contrast(1.1);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0.25) 68%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0.25) 68%, transparent 100%);
}

/* Затемнение под текст и переход в фон страницы */
.hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 13, 0.7) 0%, rgba(15, 17, 13, 0.25) 42%, rgba(15, 17, 13, 0) 62%),
    linear-gradient(0deg, var(--okalina) 0%, rgba(25, 28, 22, 0.7) 18%, rgba(25, 28, 22, 0) 44%),
    radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(10, 11, 8, 0.6) 100%);
}

/* Генератор запускается: свет моргает один раз при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .hero__lit {
    animation: power-on 1.7s steps(1, end) 0.25s both;
  }
}

@keyframes power-on {
  0% { opacity: 0; }
  10% { opacity: 0.7; }
  14% { opacity: 0.05; }
  26% { opacity: 0.85; }
  30% { opacity: 0.2; }
  34% { opacity: 0.6; }
  38% { opacity: 0.1; }
  55% { opacity: 1; }
  100% { opacity: 1; }
}

.hero__in {
  position: relative;
  z-index: var(--z-content);
  padding-top: clamp(48px, 10vh, 120px);
}

.hero__place {
  max-width: 34ch;
  color: var(--pyl);
  font-size: 0.98rem;
}

/* Название набито по трафарету: перемычки режут буквы, краска даёт ореол */
.hero__title {
  margin: 0.04em 0 0.08em -0.04em;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(5.2rem, 21vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--izvest);
  -webkit-mask-image: linear-gradient(180deg, #000 0 41%, transparent 41% 44.5%, #000 44.5% 100%);
  mask-image: linear-gradient(180deg, #000 0 41%, transparent 41% 44.5%, #000 44.5% 100%);
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
}

.hero__lead {
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: #cfc8b2;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Счётчик дней, как в любой игре про выживание */
.daycount {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 14px;
  padding: 14px 18px 16px;
  border-left: 3px solid var(--signal);
  background: rgba(15, 17, 13, 0.62);
  backdrop-filter: blur(4px);
}

.daycount__label {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--signal);
}

.daycount__num {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
}

.daycount__note {
  grid-column: 2;
  grid-row: 2;
  padding-bottom: 4px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--pyl);
}

/* Сводка под первым экраном */
.hero__brief {
  position: relative;
  z-index: var(--z-content);
}

.brief {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(36px, 7vh, 72px);
  margin-bottom: 28px;
  border-top: 1px solid var(--shov);
}

.brief > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  padding: 14px 16px 0 0;
}

.brief > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--shov);
}

.brief dd {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.brief dt {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--pyl);
}

/* Сигнальная лента */
.tape {
  position: relative;
  z-index: var(--z-content);
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, #17150d 14px 28px);
  opacity: 0.92;
}

/* ---------- Разделы ---------- */

.sec {
  padding: clamp(64px, 10vw, 128px) 0 clamp(72px, 11vw, 140px);
}

.sec--plate {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 160px),
    var(--bronya);
  border-top: 1px solid var(--shov);
  border-bottom: 1px solid var(--shov);
}

.sec__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: end;
  gap: 16px 56px;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--shov);
}

.sec__head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.sec__head p {
  max-width: 62ch;
  color: var(--pyl);
  text-wrap: pretty;
}

.sub {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1;
  margin-bottom: 6px;
}

.sub__note {
  color: var(--pepel);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* ---------- Журнал: панель фильтров ---------- */

.journal {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.tools {
  position: sticky;
  top: calc(var(--bar-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100dvh - var(--bar-h) - 40px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--shov) transparent;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  min-width: 0;
}

.field--pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.field--pair label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--pyl);
  padding: 0;
}

.input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  background: var(--bronya);
  border: 1px solid var(--shov-2);
  border-radius: 0;
  color: var(--izvest);
  font-size: 0.95rem;
  transition: border-color 0.18s ease;
}

.input::placeholder {
  color: var(--pepel);
}

.input:hover,
.input:focus {
  border-color: var(--pyl);
}

select.input {
  appearance: none;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--pyl) 50%),
    linear-gradient(135deg, var(--pyl) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* Разделы журнала: список-переключатель */
.cats {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--shov);
}

.cat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 2px 9px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--shov);
  border-left: 3px solid transparent;
  color: var(--pyl);
  font-size: 0.93rem;
  text-align: left;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.cat:hover {
  color: var(--izvest);
  background: rgba(221, 214, 193, 0.03);
}

.cat[aria-pressed="true"] {
  color: var(--izvest);
  border-left-color: var(--signal);
  background: rgba(216, 169, 51, 0.06);
}

.cat__n {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--pepel);
}

.cat[aria-pressed="true"] .cat__n {
  color: var(--signal);
}

/* Сегментный переключатель */
.seg {
  display: flex;
  border: 1px solid var(--shov-2);
}

.seg button {
  flex: 1;
  min-height: 40px;
  padding: 6px 12px;
  background: none;
  border: 0;
  color: var(--pyl);
  font-size: 0.93rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.seg button + button {
  border-left: 1px solid var(--shov-2);
}

.seg button:hover {
  color: var(--izvest);
}

.seg button[aria-pressed="true"] {
  background: var(--izvest);
  color: var(--okalina);
  font-weight: 600;
}

.seg--wide {
  display: inline-flex;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.seg--wide button {
  flex: none;
}

.seg__n {
  margin-left: 6px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  opacity: 0.7;
}

.tools__row {
  display: flex;
  gap: 8px;
}

.tools__row .btn {
  flex: 1;
}

.tools__count {
  font-size: 0.88rem;
  color: var(--pepel);
}

/* ---------- Журнал: записи по дням ---------- */

.day + .day {
  margin-top: 56px;
}

.day__head {
  position: sticky;
  top: var(--bar-h);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0 12px;
  background: var(--okalina);
  border-bottom: 2px solid var(--izvest);
}

.day__n {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 0.9;
}

.day__date {
  color: var(--pyl);
  font-size: 0.95rem;
}

.day__count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--pepel);
}

.entry {
  position: relative;
  border-bottom: 1px solid var(--shov);
}

.entry__head {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 28px;
  gap: 4px 22px;
  padding: 22px 0 22px;
  cursor: pointer;
}

.entry__ver {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.entry__num small {
  font-size: 0.6em;
  color: var(--pyl);
}

.entry__num {
  color: var(--pyl);
}

.entry.is-milestone .entry__num {
  color: var(--izvest);
}

.entry.is-patch .entry__num {
  font-size: 1.9rem;
  color: var(--pepel);
}

.entry.is-current .entry__num {
  color: var(--signal);
}

.stamp {
  align-self: flex-start;
  padding: 3px 7px 2px;
  border: 1px solid currentColor;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
}

.stamp--now {
  color: var(--signal);
  transform: rotate(-3deg);
}

.stamp--proto {
  color: var(--pyl);
}

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.85rem;
  color: var(--pepel);
}

.entry__meta code {
  background: none;
  padding: 0;
  color: var(--pepel);
}

.entry__title {
  margin-top: 4px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.32;
  text-wrap: balance;
}

.entry__toggle {
  all: unset;
  cursor: pointer;
}

.entry__toggle:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.entry__sum {
  max-width: 72ch;
  margin-top: 6px;
  color: var(--pyl);
  font-size: 0.97rem;
  text-wrap: pretty;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  padding: 2px 8px;
  border: 1px solid var(--shov-2);
  font-size: 0.78rem;
  color: var(--pyl);
}

.tag--combat {
  border-color: rgba(168, 69, 44, 0.7);
  color: var(--rust-text);
}

.entry__chev {
  width: 28px;
  height: 28px;
  margin-top: 6px;
  border: 1px solid var(--shov-2);
  position: relative;
  transition: border-color 0.18s ease;
}

.entry__chev::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--pyl);
  border-bottom: 2px solid var(--pyl);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.22s ease;
}

.entry__head:hover .entry__chev {
  border-color: var(--izvest);
}

.entry.is-open .entry__chev::before {
  transform: translate(-50%, -20%) rotate(-135deg);
}

.entry__head:hover .entry__title {
  color: #fff8e4;
}

/* Раскрытие: высота анимируется через сетку */
.entry__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.entry.is-open .entry__body {
  grid-template-rows: 1fr;
}

.entry__inner {
  min-height: 0;
  overflow: hidden;
}

.entry__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 30px 130px;
}

.entry__content.has-media {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  color: #c9c2ad;
  max-width: 78ch;
}

.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

.points strong {
  color: var(--izvest);
}

.techbox {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bronya);
  border-left: 3px solid var(--shov-2);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--pyl);
  overflow-wrap: anywhere;
}

.techbox__name {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--izvest);
}

.techbox code {
  background: none;
  padding: 0;
  color: var(--izvest);
}

.media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bronya);
  border: 1px solid var(--shov);
  filter: saturate(0.75) contrast(1.04);
  transition: filter 0.2s ease, border-color 0.2s ease;
}

.shot:hover img {
  filter: none;
  border-color: var(--pyl);
}

.shot span {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--pepel);
}

.empty {
  padding: 48px 24px;
  border: 1px dashed var(--shov-2);
  text-align: center;
}

.empty h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.empty p {
  margin: 10px auto 18px;
  max-width: 44ch;
  color: var(--pyl);
}

/* ---------- Оптимизация ---------- */

.gauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--shov);
}

.gauge {
  padding: 26px 32px 28px 0;
  border-bottom: 1px solid var(--shov);
}

.gauge:nth-child(even) {
  padding: 26px 0 28px 32px;
  border-left: 1px solid var(--shov);
}

.gauge__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gauge__head h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
}

.gauge__gain {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--khaki-text);
}

.gauge__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.gauge__what {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--pyl);
}

.gauge__track {
  position: relative;
  height: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--shov);
}

.gauge__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  transform-origin: left;
}

.is-before .gauge__fill {
  background: repeating-linear-gradient(90deg, var(--rust) 0 6px, #8e3a25 6px 8px);
}

.is-after .gauge__fill {
  background: repeating-linear-gradient(90deg, var(--khaki) 0 6px, #78834c 6px 8px);
}

.gauge__val {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.is-before .gauge__val {
  color: var(--rust-text);
}

.is-after .gauge__val {
  color: var(--khaki-text);
}

.gauge__note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--pyl);
  max-width: 60ch;
}

@media (prefers-reduced-motion: no-preference) {
  .gauges.is-seen .gauge__fill {
    animation: gauge-fill 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .gauges.is-seen .is-after .gauge__fill {
    animation-delay: 0.25s;
  }
  .gauges:not(.is-seen) .gauge__fill {
    transform: scaleX(0);
  }
}

@keyframes gauge-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Сравнение «до и после» с ползунком */
.compares {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
}

.cmp__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f110d;
  border: 1px solid var(--shov-2);
  user-select: none;
  touch-action: pan-y;
}

.cmp__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.cmp__before img {
  filter: saturate(0.85);
}

.cmp__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--signal);
  pointer-events: none;
}

.cmp__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(90deg, transparent 9px, var(--signal-ink) 9px 11px, transparent 11px 15px, var(--signal-ink) 15px 17px, transparent 17px 21px, var(--signal-ink) 21px 23px, transparent 23px) center / 32px 12px no-repeat,
    var(--signal);
}

.cmp__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.cmp__stage:has(.cmp__range:focus-visible) {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.cmp__tag {
  position: absolute;
  top: 12px;
  padding: 3px 8px;
  background: rgba(15, 17, 13, 0.82);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  pointer-events: none;
}

.cmp__tag--before {
  left: 12px;
  color: var(--rust-text);
}

.cmp__tag--after {
  right: 12px;
  color: var(--khaki-text);
}

.cmp figcaption {
  margin-top: 16px;
}

.cmp figcaption h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
}

.cmp figcaption p {
  margin-top: 6px;
  max-width: 58ch;
  color: var(--pyl);
  font-size: 0.95rem;
}

/* ---------- Крафт: инвентарь ---------- */

.inv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.inv__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--shov);
}

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  padding: 10px 6px 8px;
  background: rgba(221, 214, 193, 0.04);
  border: 1px solid rgba(221, 214, 193, 0.09);
  color: var(--pyl);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.slot:hover {
  background: rgba(221, 214, 193, 0.08);
  border-color: rgba(221, 214, 193, 0.24);
  color: var(--izvest);
}

.slot--empty,
.slot--empty:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(221, 214, 193, 0.05);
}

.slot[aria-pressed="true"] {
  background: rgba(216, 169, 51, 0.1);
  border-color: var(--signal);
  color: var(--izvest);
}

.slot img {
  width: 52%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
}

.slot__name {
  font-size: 0.74rem;
  line-height: 1.2;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slot__stack {
  position: absolute;
  top: 5px;
  right: 7px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--pepel);
}

.inv__card {
  position: sticky;
  top: calc(var(--bar-h) + 20px);
  padding: 24px;
  background: var(--bronya);
  border: 1px solid var(--shov);
  border-top: 3px solid var(--signal);
}

.inv__top {
  display: flex;
  gap: 18px;
  align-items: center;
}

.inv__icon {
  flex: none;
  width: 88px;
  height: 88px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--shov);
}

.inv__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inv__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 0.92;
}

.inv__id {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--pepel);
}

.inv__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0 16px;
  border-top: 1px solid var(--shov);
  border-bottom: 1px solid var(--shov);
}

.inv__stats div {
  padding: 10px 0;
}

.inv__stats div + div {
  padding-left: 16px;
  border-left: 1px solid var(--shov);
}

.inv__stats dt {
  font-size: 0.8rem;
  color: var(--pepel);
}

.inv__stats dd {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.inv__role {
  font-size: 0.95rem;
  color: #c9c2ad;
}

/* Рецепты: это цепочка, поэтому нумерация */
.recipes {
  list-style: none;
  counter-reset: step;
  margin: 12px 0 clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--shov);
}

.recipe {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--shov);
}

.recipe::before {
  content: counter(step);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--pepel);
}

.recipe__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.recipe__in .chip + .chip::before {
  content: "+";
  margin: 0 8px 0 -2px;
  color: var(--pepel);
}

.recipe__tool {
  font-size: 0.88rem;
  color: var(--pyl);
}

.recipe__out {
  display: flex;
  align-items: center;
  gap: 14px;
}

.recipe__out::before {
  content: "";
  flex: none;
  width: 28px;
  height: 12px;
  background: var(--pepel);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'><path d='M0 5h21V0l7 6-7 6V7H0z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'><path d='M0 5h21V0l7 6-7 6V7H0z'/></svg>") center / contain no-repeat;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.chip img {
  width: 34px;
  height: 34px;
  padding: 4px;
  background: rgba(221, 214, 193, 0.05);
  border: 1px solid var(--shov);
  object-fit: contain;
}

.chip--out {
  font-weight: 600;
}

.chip--out img {
  border-color: var(--signal);
}

.craft-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--izvest);
}

.table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 11px 12px 11px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--shov);
}

.table thead th {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--pyl);
  white-space: nowrap;
}

.table tbody th {
  font-weight: 600;
  color: var(--izvest);
}

.table td {
  color: #c9c2ad;
}

.table td:nth-child(3),
.table td:nth-child(5) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table tbody tr:hover th,
.table tbody tr:hover td {
  background: rgba(221, 214, 193, 0.03);
}

.build {
  padding: 24px;
  background: var(--bronya);
  border: 1px solid var(--shov);
}

.build p {
  margin-top: 14px;
  font-size: 0.94rem;
  color: #c9c2ad;
}

.keys {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--shov);
}

.keys div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--shov);
}

.keys dd {
  font-size: 0.92rem;
  color: #c9c2ad;
}

/* ---------- Кадры ---------- */

.frames {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(14px, 1.6vw, 22px);
}

.frame {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
}

.frame--wide {
  grid-column: span 2;
}

.frame--big {
  grid-column: span 2;
  grid-row: span 2;
}

.frame__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f110d;
  border: 1px solid var(--shov);
}

.frame--big .frame__img {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
}

.frame--big .frame__img img {
  position: absolute;
  inset: 0;
}

.frame__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) sepia(0.18) contrast(1.06) brightness(0.86);
  transition: filter 0.3s ease, transform 0.5s ease;
}

.frame:hover .frame__img img,
.frame:focus-visible .frame__img img {
  filter: none;
  transform: scale(1.02);
}

.frame__title,
.frame__desc {
  display: block;
}

.frame__title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.frame__desc {
  margin-top: 2px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--pepel);
}

/* ---------- Идеи ---------- */

.ideas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--shov);
}

.idea {
  display: grid;
  align-content: start;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--shov);
}

.idea__n {
  grid-row: span 3;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--pepel);
  font-variant-numeric: tabular-nums;
}

.idea__title {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.32;
}

.idea__desc {
  font-size: 0.9rem;
  color: var(--pyl);
}

.idea__status {
  justify-self: start;
  margin-top: 6px;
  padding: 1px 7px;
  border: 1px solid var(--shov-2);
  font-size: 0.78rem;
  color: var(--pyl);
}

.idea.is-done .idea__n {
  color: var(--khaki-text);
}

.idea.is-done .idea__status {
  border-color: var(--khaki);
  color: var(--khaki-text);
}

.idea.is-approved .idea__status {
  border-color: rgba(216, 169, 51, 0.55);
  color: var(--signal);
}

/* ---------- Подвал ---------- */

.foot {
  background: #13150f;
}

.foot__in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px 40px;
  padding-top: 36px;
  padding-bottom: 40px;
  color: var(--pyl);
  font-size: 0.92rem;
}

.foot__mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--izvest);
}

/* ---------- Просмотр кадра ---------- */

.lb {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 3vw, 40px);
  border: 0;
  background: transparent;
  color: var(--izvest);
}

.lb::backdrop {
  background: rgba(10, 11, 8, 0.94);
}

.lb[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb__fig {
  display: flex;
  flex-direction: column;
  max-width: min(1600px, 100%);
  max-height: 100%;
}

.lb__fig img {
  min-height: 0;
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border: 1px solid var(--shov-2);
  background: #0f110d;
}

.lb__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 14px;
}

.lb__count {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--pepel);
}

.lb__cap {
  flex: 1;
  min-width: 200px;
  font-size: 0.95rem;
}

.lb__btns {
  display: flex;
  gap: 8px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .journal {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .entry__content.has-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frames {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .frame--wide {
    grid-column: auto;
  }

  .craft-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .recipe {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  }

  .recipe__tool {
    grid-column: 2 / -1;
    grid-row: 2;
  }
}

@media (max-width: 860px) {
  :root {
    --bar-h: 96px;
  }

  .brief {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brief > div:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .brief > div:nth-child(n + 4) {
    margin-top: 14px;
    border-top: 1px solid var(--shov);
  }

  .bar {
    height: auto;
  }

  .bar__in {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 10px;
  }

  .bar__mark {
    order: 1;
    height: 38px;
  }

  .bar__ver {
    order: 2;
    margin-left: auto;
  }

  .bar__nav {
    order: 3;
    flex-basis: 100%;
    height: 46px;
    align-items: center;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .hero__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .daycount {
    justify-self: start;
  }

  .sec__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .journal {
    grid-template-columns: minmax(0, 1fr);
  }

  .tools {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 18px;
    background: var(--bronya);
    border: 1px solid var(--shov);
  }

  .cats {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    border-top: 0;
    margin-inline: -18px;
    padding: 0 18px 4px;
    scrollbar-width: none;
  }

  .cat {
    flex: none;
    width: auto;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--shov-2);
  }

  .cat[aria-pressed="true"] {
    border-color: var(--signal);
  }

  .day__head {
    top: var(--bar-h);
  }

  .entry__head {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .entry__ver {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .entry__main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .entry__chev {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .entry__content {
    padding-left: 0;
  }

  .gauges,
  .compares,
  .ideas {
    grid-template-columns: minmax(0, 1fr);
  }

  .gauge,
  .gauge:nth-child(even) {
    padding: 22px 0 24px;
    border-left: 0;
  }

  .inv {
    grid-template-columns: minmax(0, 1fr);
  }

  .inv__card {
    position: static;
  }

  .frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frame--big {
    grid-row: auto;
  }

  .frame--big .frame__img {
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .foot__in {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .hero__title {
    font-size: clamp(4rem, 23.5vw, 9rem);
  }

  .brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief > div:nth-child(n) {
    padding: 12px 12px 0 0;
    border-left: 0;
    margin-top: 0;
    border-top: 0;
  }

  .brief > div:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--shov);
  }

  .brief > div:nth-child(n + 3) {
    margin-top: 12px;
    border-top: 1px solid var(--shov);
  }

  .brief > div:last-child {
    grid-column: 1 / -1;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }


  .recipe {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .recipe::before {
    grid-row: span 3;
    align-self: start;
    font-size: 1.8rem;
  }

  .recipe__tool,
  .recipe__out {
    grid-column: 2;
    grid-row: auto;
  }

  .media {
    grid-template-columns: minmax(0, 1fr);
  }

  .frames {
    grid-template-columns: minmax(0, 1fr);
  }

  .frame--wide,
  .frame--big {
    grid-column: auto;
  }

  .lb__btns {
    width: 100%;
  }

  .lb__btns .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* SEO: текст для читалок и роботов, который не рисуется глазами */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* SEO: слепок журнала и идей до запуска скрипта, app.js заменяет его целиком */
.snap { margin: 0 0 1.25rem; }
.snap h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.snap p { margin: 0; opacity: 0.85; }

/* Запись журнала без подробностей (собрана из git игры): раскрывать нечего */
.entry.is-flat .entry__toggle {
  cursor: default;
}

.entry.is-flat .entry__chev {
  visibility: hidden;
}
