/* Альманах в три краски. Белая бумага, три плашки, три наложения. */

@font-face {
  font-family: "Science Gothic";
  src: url("../fonts/ScienceGothic.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 60% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #101218;
  --ink-soft: #3b3f4a;
  --blue: #2a5bff;
  --red: #ff4733;
  --yellow: #ffd60a;
  --green: #1fa34a;   /* синяя + жёлтая */
  --orange: #ff8a00;  /* красная + жёлтая */
  --violet: #6b3fd4;  /* синяя + красная */

  --display: "Science Gothic", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Golos Text", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4.2vw, 48px);
  --page: 1320px;
  --rule: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --stub-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
  scrollbar-color: var(--ink) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--text);
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  padding-bottom: calc(var(--stub-h) + env(safe-area-inset-bottom));
}

::selection { background: var(--yellow); color: var(--ink); }

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

h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
[data-on="dark"] :focus-visible,
.imprint :focus-visible,
.viewer :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

.noscript { padding: 24px var(--gutter); font-weight: 600; }

/* ---------- Обложка ---------- */

.cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 2.2vh, 22px);
  align-content: start;
  min-height: min(calc(100svh - var(--stub-h)), 860px);
  max-width: var(--page);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) clamp(20px, 4vh, 40px);
}

.cover__head { container-type: inline-size; }
.nameplate {
  /* Название издания набрано во всю ширину листа. Строка «АЛЬМАНАХ» в этом начертании
     занимает 6,26 em, вторая — 10,61 em; отсюда доли ширины контейнера. */
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 60%;
  line-height: 0.8;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  padding-top: 0.06em;
}
.nameplate span {
  display: block;
  width: max-content;
  font-size: 14.4vw;
  font-size: min(15.9cqw, 30vh);
}
.nameplate span + span {
  margin-top: 0.14em;
  font-weight: 600;
  font-size: 8.5vw;
  font-size: min(9.38cqw, 17.7vh);
  line-height: 0.9;
  letter-spacing: 0;
}

.folio {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(8px, 1.4vh, 14px);
  padding: 7px 0 6px;
  border-top: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  font: 700 0.75rem/1.3 var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cover h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 60%;
  font-size: clamp(1.45rem, 6.3vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.cover__lead { display: contents; }
.cover h1 { order: 1; }
.inissue { order: 2; }
.plates3 { order: 3; }
.cover__text { order: 4; }

.cover__text {
  margin-top: 0;
  max-width: 46ch;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.cover__cta { display: none; }

.plates3 { display: grid; place-items: center; min-width: 0; }
.venn {
  width: min(84%, 44vh, 560px);
  height: auto;
  overflow: visible;
}
.venn a { cursor: pointer; }
.venn a:focus-visible { outline: none; }
.venn a:focus-visible circle { stroke: var(--ink); stroke-width: 6; }
.venn circle { transition: filter 0.25s var(--ease); }
.venn a:hover circle { filter: brightness(1.08) saturate(1.1); }

.ink-y { fill: var(--yellow); }
.ink-b { fill: var(--blue); }
.ink-r { fill: var(--red); }
.ink-g { fill: var(--green); }
.ink-o { fill: var(--orange); }
.ink-v { fill: var(--violet); }
.ink-k { fill: var(--ink); }

.venn__type text {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 60%;
  font-size: 25px;
  letter-spacing: 0.02em;
  text-anchor: middle;
  text-transform: uppercase;
  pointer-events: none;
}
.venn__type .on-light { fill: var(--ink); }
.venn__type .on-dark { fill: #fff; }
.venn__type .venn__count { font-size: 74px; font-weight: 900; font-stretch: 60%; letter-spacing: 0; }
.venn__type .venn__unit { font-size: 22px; }

.venn__marks { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.venn__hint { margin-top: 6px; text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }

/* Приводка: краски встают на место по очереди, контур и текст видны с самого начала. */
@media (prefers-reduced-motion: no-preference) {
  .venn__plate { animation: register 1.1s var(--ease) both; }
  .venn__plate--y { --dx: -16px; --dy: -22px; }
  .venn__plate--b { --dx: -26px; --dy: 14px; animation-delay: 0.08s; }
  .venn__plate--r { --dx: 28px; --dy: 12px; animation-delay: 0.16s; }
  .venn__over { animation: overprint 0.5s 0.75s var(--ease) both; }
  .venn__type { animation: overprint 0.4s 0.95s var(--ease) both; }
}
@keyframes register {
  from { transform: translate(var(--dx), var(--dy)); }
  to { transform: none; }
}
@keyframes overprint {
  from { opacity: 0; }
  to { opacity: 1; }
}

.inissue {
  display: grid;
  gap: 0;
  border-top: var(--rule) solid var(--ink);
}
.inissue li { border-bottom: var(--rule) solid var(--ink); }
.inissue a {
  display: grid;
  grid-template-columns: minmax(5.2rem, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  min-height: 48px;
  padding: 11px 0 10px;
  text-decoration: none;
}
.inissue__time {
  font: 900 1.25rem/1 var(--display);
  font-stretch: 60%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.inissue__title { font-weight: 600; line-height: 1.3; }
.inissue a:hover .inissue__title { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Купон ---------- */

.coupon {
  display: inline-grid;
  gap: 2px;
  min-height: 64px;
  padding: 13px 26px 12px;
  background: var(--red);
  color: var(--ink);
  text-decoration: none;
  outline: 2px dashed var(--ink);
  outline-offset: -8px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.coupon__act {
  font: 900 1.25rem/1.05 var(--display);
  font-stretch: 60%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.coupon__price { font-size: 0.875rem; font-weight: 500; }
.coupon__price b { font-weight: 800; }
.coupon:hover { background: var(--ink); color: #fff; outline-color: #fff; }
.coupon:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.coupon--light { background: var(--yellow); }
.coupon--light:hover { background: #fff; color: var(--ink); outline-color: var(--ink); }
.coupon--bare { align-content: center; padding: 16px 30px 15px; }
.coupon--bare .coupon__act { font-size: 1.5rem; }

.stub {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(var(--stub-h) + env(safe-area-inset-bottom));
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--red);
  color: var(--ink);
  text-decoration: none;
  border-top: 2px dashed var(--ink);
  transition: transform 0.35s var(--ease);
}
.stub__act {
  font: 900 1.25rem/1 var(--display);
  font-size: clamp(1rem, 4.7vw, 1.25rem);
  font-stretch: 60%;
  text-transform: uppercase;
  white-space: nowrap;
}
.stub__price { font-weight: 700; font-size: clamp(0.875rem, 3.9vw, 1rem); white-space: nowrap; }
.stub { transition: transform 0.35s var(--ease), visibility 0s; }
.stub[data-hidden="true"] { transform: translateY(110%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s 0.35s; }
.stub:focus-visible { outline-offset: -5px; }

/* ---------- Содержание ---------- */

.contents__head {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 88px) var(--gutter) 18px;
  display: grid;
  gap: 10px;
}
.contents__head h2,
.plain h2 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 60%;
  font-size: clamp(1.9rem, 8.4vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.contents__hint { max-width: 44ch; font-size: 1rem; color: var(--ink-soft); }

.scale {
  display: flex;
  gap: 8px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 6px var(--gutter) 22px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.scale::-webkit-scrollbar { display: none; }
.scale button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 15px 8px 9px;
  border: var(--rule) solid var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.scale i {
  width: 26px; height: 26px;
  background: var(--c, var(--ink));
  border: 1.5px solid var(--ink);
}
.scale button[data-rubric="all"] i {
  background: conic-gradient(var(--yellow) 0 33.3%, var(--red) 0 66.6%, var(--blue) 0);
  border-radius: 50%;
}
.scale button:hover { background: var(--yellow); }
.scale button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.scale button[aria-pressed="true"] i { border-color: #fff; }

[data-rubric="home"] { --c: var(--yellow); --on: var(--ink); }
[data-rubric="office"] { --c: var(--blue); --on: #fff; }
[data-rubric="video"] { --c: var(--red); --on: var(--ink); }
[data-rubric="course"] { --c: var(--green); --on: var(--ink); }
[data-rubric="web"] { --c: var(--orange); --on: var(--ink); }
[data-rubric="research"] { --c: var(--violet); --on: #fff; }

.rubric {
  background: var(--c);
  color: var(--on);
  --soft: color-mix(in srgb, var(--on) 84%, var(--c));
  scroll-margin-top: 0;
}
.rubric[data-on="dark"] { --soft: var(--on); }
.rubric[hidden] { display: none; }
.rubric__in {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 72px) var(--gutter) clamp(34px, 6vw, 80px);
}
.rubric__head {
  display: grid;
  gap: 8px;
  padding-bottom: clamp(16px, 3vw, 28px);
}
.rubric__head h3 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 60%;
  font-size: clamp(1.9rem, 8.4vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: -0.008em;
  text-transform: uppercase;
  text-wrap: balance;
}
.rubric__note { font-size: 1rem; font-weight: 600; color: var(--soft); }

.work { border-top: var(--rule) solid var(--on); scroll-margin-top: 8px; }
.work:last-child { border-bottom: var(--rule) solid var(--on); }

.work__row {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-areas: "thumb title" "thumb lead" "tag tag";
  column-gap: 14px;
  row-gap: 4px;
  padding: 16px 0 18px;
}
.work__thumb {
  grid-area: thumb;
  align-self: start;
  width: 92px;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: var(--rule) solid var(--on);
  overflow: hidden;
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__thumb--type { display: grid; place-items: center; color: var(--ink); }
.work__thumb--type svg { width: 54%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linejoin: miter; }
.work__title {
  grid-area: title;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 60%;
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  line-height: 1.1;
  text-wrap: balance;
}
.work__title button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
}
.work__title button::after { content: ""; position: absolute; inset: 0; }
.work__title button:focus-visible { outline: none; }
.work__row:has(button:focus-visible) { outline: 3px solid var(--on); outline-offset: 4px; }
.work__lead { grid-area: lead; font-size: 1rem; line-height: 1.4; color: var(--soft); }

.work__foot {
  grid-area: tag;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.work__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.875rem;
}
.work__more svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  transition: transform 0.3s var(--ease);
}
.work[data-open="true"] .work__more svg { transform: rotate(45deg); }
.work__row:hover .work__title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }

/* Ценник времени: три способа доказать — три формы. */
.tag {
  --tag-bg: var(--ink);
  --tag-fg: #fff;
  display: inline-grid;
  justify-items: start;
  gap: 3px;
  padding: 8px 12px 7px;
  background: var(--tag-bg);
  color: var(--tag-fg);
  rotate: -2.5deg;
  transition: rotate 0.3s var(--ease);
}
.work:nth-child(even) .tag { rotate: 2deg; }
.work__row:hover .tag, .work[data-open="true"] .tag { rotate: 0deg; }
[data-rubric="office"] .tag, [data-rubric="research"] .tag { --tag-bg: #fff; --tag-fg: var(--ink); }
.tag__v {
  font: 900 1.5rem/0.95 var(--display);
  font-stretch: 60%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tag__k {
  font: 700 0.75rem/1.3 var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag[data-kind="machine"] {
  outline: 2px solid var(--tag-bg);
  outline-offset: 3px;
}
.tag[data-kind="approx"] {
  background: transparent;
  color: var(--on, var(--ink));
  outline: 2px dashed currentColor;
  outline-offset: -2px;
}
.tag[data-kind="building"] {
  background: transparent;
  color: var(--on, var(--ink));
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.tag[data-kind="building"] .tag__v { font-size: 1.25rem; }
.tag--plain { rotate: none; }

/* ---------- Заметка: белый лист внутри краски ---------- */

.work__body { overflow: clip; }
.work__body[hidden] { display: none; }
.sheet {
  --pad: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 20px var(--pad) 26px;
  background: var(--paper);
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .work[data-open="true"] .sheet { animation: unfold 0.55s var(--ease) both; }
}
@keyframes unfold {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.sheet :focus-visible { outline-color: var(--ink); }

.sheet__text, .sheet__foot { display: grid; gap: 14px; align-content: start; max-width: 66ch; }
.sheet__side { display: grid; gap: 20px; min-width: 0; align-content: start; }
.block { display: grid; gap: 8px; }
.sheet__task { font-size: 1.25rem; line-height: 1.4; }
.sheet b.run { font-weight: 800; }
.sheet h5 {
  margin-top: 4px;
  font: 800 1.25rem/1.3 var(--display);
  font-stretch: 60%;
}
.ticks { display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--ink); stroke-width: 3; }
.sheet__note { font-size: 1rem; color: var(--ink-soft); }
.sheet__note b { color: var(--ink); }
.sheet__proof {
  padding-top: 10px;
  border-top: var(--rule) solid var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.sheet__proof span { display: inline-block; margin-right: 0.5em; }
.sheet__proof i {
  display: inline-block;
  width: 0.72em; height: 0.72em;
  margin-right: 0.4em;
  background: var(--c);
  border: 1.5px solid var(--ink);
  vertical-align: 0.02em;
}

.plates {
  display: flex;
  gap: 10px;
  margin: 0 calc(var(--pad) * -1);
  padding: 2px var(--pad) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--ink) transparent;
  scrollbar-width: thin;
}
.plate {
  flex: none;
  position: relative;
  height: clamp(200px, 56vw, 340px);
  border: var(--rule) solid var(--ink);
  background: #f1f2f4;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.plate img { height: 100%; width: auto; }
.plate:hover { border-color: var(--blue); }
.plates__hint { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }

.films { display: flex; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.film { flex: none; display: grid; gap: 6px; scroll-snap-align: start; }
.film video { background: var(--ink); border: var(--rule) solid var(--ink); }
.film--tall video { height: min(68vh, 520px); width: auto; aspect-ratio: 9 / 16; }
.film--wide { flex: 1 1 100%; min-width: 0; }
.film--wide video { width: 100%; height: auto; }
.film figcaption, .frame figcaption { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }

.frame { display: grid; gap: 8px; }
.frame iframe { width: 100%; border: var(--rule) solid var(--ink); background: #fff; }
.frame__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.out {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: var(--rule) solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.out svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.out:hover { background: var(--ink); color: #fff; }
.fold { margin-top: 4px; }
.sound audio { width: 100%; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--rule) solid var(--ink); border-left: var(--rule) solid var(--ink); }
.facts div { padding: 12px 12px 11px; border-right: var(--rule) solid var(--ink); border-bottom: var(--rule) solid var(--ink); }
.facts dt { font: 900 2rem/1 var(--display); font-stretch: 60%; font-variant-numeric: tabular-nums; }
.facts dd { margin: 4px 0 0; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }

.chain { display: grid; gap: 0; }
.chain li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; font-weight: 600; }
.chain svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 2.6; }

.clock { display: grid; gap: 7px; }
.clock li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 10px; align-items: center; }
.clock b { font: 800 1rem/1 var(--display); font-stretch: 60%; font-variant-numeric: tabular-nums; text-align: right; }
.clock span { position: relative; display: block; padding: 3px 0 5px; font-size: 0.875rem; font-weight: 600; }
.clock span::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); background: var(--c); border-bottom: 1px solid var(--ink); }

.tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.tbl caption { text-align: left; padding-bottom: 6px; font-weight: 700; color: var(--ink-soft); font-size: 0.875rem; }
.tbl th, .tbl td { padding: 8px 10px 7px 0; text-align: left; border-bottom: 1px solid var(--ink); }
.tbl thead th { border-bottom-width: var(--rule); font-weight: 800; }
.tbl tbody tr:last-child td { font-weight: 800; border-bottom-width: var(--rule); }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; padding-right: 0; padding-left: 10px; }

.building { font-weight: 600; padding: 4px 0; }

/* Сырой ввод человека: заметки как есть, набраны машинописью на жёлтом листке. */
.rawin { padding: 14px 16px 15px; background: color-mix(in srgb, var(--yellow) 30%, #fff); border: var(--rule) solid var(--ink); }
.rawin h5 { margin: 0 0 8px; }
.rawin__lines { display: grid; gap: 4px; font: 500 0.875rem/1.4 ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace; }

/* ---------- Объявление ---------- */

.ad { background: var(--red); color: var(--ink); border-top: 3px dashed var(--ink); border-bottom: 3px dashed var(--ink); scroll-margin-top: 0; }
.ad__in { max-width: var(--page); margin: 0 auto; padding: clamp(40px, 8vw, 104px) var(--gutter); display: grid; gap: clamp(22px, 4vw, 44px); }
.ad h2 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 60%;
  font-size: clamp(1.9rem, 8.4vw, 5.25rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}
.ad__main, .imprint__main, .imprint__side { display: grid; gap: clamp(24px, 6vw, 40px); }
.ad__lead { margin-top: 14px; max-width: 40ch; font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
.ad__price { display: grid; gap: 2px; }
.ad__sum {
  color: #fff;
  font: 900 clamp(3rem, 13.4vw, 6rem)/0.9 var(--display);
  font-stretch: 60%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ad__per { font-weight: 700; font-size: 1rem; }
.ad h3 { font: 800 1.25rem/1.3 var(--display); font-stretch: 60%; margin-bottom: 10px; }
.ad .ticks svg { stroke: var(--ink); }
.ad .ticks li { font-weight: 500; }
.ad__meta { display: grid; gap: 6px; font-weight: 600; }
.steps { counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 500; }
.steps li::before { content: counter(s); font: 900 1.5rem/1 var(--display); font-stretch: 60%; }
.ad__go { display: grid; gap: 10px; justify-items: start; }
.ad__alt { font-weight: 600; }

/* ---------- Спокойные полосы ---------- */

.plain__in { max-width: var(--page); margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(28px, 5vw, 56px); display: grid; gap: clamp(18px, 3vw, 32px); }
.plain--small .plain__in { padding-top: clamp(20px, 4vw, 40px); }
.plain__side { display: grid; gap: 18px; }
.plain__lead { max-width: 56ch; font-size: 1.25rem; line-height: 1.45; }
.never { display: grid; gap: 0; border-top: var(--rule) solid var(--ink); }
.never li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 0 12px; border-bottom: var(--rule) solid var(--ink); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.never svg { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 3.2; }
.plain__how { max-width: 60ch; padding: 16px 18px 17px; background: var(--yellow); color: var(--ink); font-weight: 600; line-height: 1.45; }
.plain--small h2 { font-size: clamp(1.6rem, 6.4vw, 3rem); }
.small { display: grid; gap: 12px; font-size: 1rem; color: var(--ink-soft); }
.small li { max-width: 62ch; }
.legend { display: flex; flex-wrap: wrap; gap: 20px 26px; align-items: center; padding: 6px 2px 10px; }

/* ---------- Выходные данные ---------- */

.imprint { background: var(--blue); color: #fff; --on: #fff; }
.imprint__in { max-width: var(--page); margin: 0 auto; padding: clamp(40px, 8vw, 104px) var(--gutter) clamp(32px, 6vw, 72px); display: grid; gap: clamp(22px, 4vw, 44px); }
.imprint h2 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 60%;
  font-size: clamp(1.9rem, 8.4vw, 5.25rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}
.imprint__lead { margin-top: 14px; max-width: 44ch; font-size: 1.25rem; font-weight: 500; }
.meter { display: grid; gap: 6px; }
.meter__v {
  color: var(--yellow);
  font: 900 clamp(1.9rem, 8.2vw, 4.5rem)/0.95 var(--display);
  font-stretch: 60%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.meter__k { font-weight: 700; }
.imprint__facts { display: grid; gap: 0; border-top: var(--rule) solid #fff; }
.imprint__facts li { padding: 11px 0 10px; border-bottom: var(--rule) solid #fff; font-weight: 500; }
.imprint__who { display: grid; gap: 6px; max-width: 52ch; }
.imprint__who h3 { font: 800 1.5rem/1.15 var(--display); font-stretch: 60%; }
.imprint__who p { color: #fff; }
.imprint__go { display: grid; gap: 10px; justify-items: start; }
.imprint__fine { font-size: 0.875rem; font-weight: 600; color: #fff; }

/* ---------- Просмотр ---------- */

.viewer {
  width: 100vw; max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: var(--ink);
  color: #fff;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.viewer[open] { display: grid; }
.viewer::backdrop { background: var(--ink); }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding: max(8px, env(safe-area-inset-top)) 10px 8px 16px; }
.viewer__cap { flex: 1; min-width: 0; font-weight: 700; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__orig { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.viewer button { display: grid; place-items: center; width: 48px; height: 48px; }
.viewer button svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; }
.viewer button:hover { background: #fff; }
.viewer button:hover svg { stroke: var(--ink); }
.viewer button:disabled { opacity: 0.35; cursor: default; }
.viewer button:disabled:hover { background: none; }
.viewer button:disabled:hover svg { stroke: #fff; }
.viewer__stage { display: grid; place-items: center; min-height: 0; overflow: auto; touch-action: pan-y pinch-zoom; }
.viewer__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; }
.viewer__nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); }
.viewer__nav p { min-width: 5.5rem; text-align: center; font: 800 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Планшет и шире ---------- */

@media (min-width: 720px) {
  .work__row {
    grid-template-columns: 168px minmax(0, 1fr) auto;
    grid-template-areas: "thumb title tag" "thumb lead tag";
    column-gap: 22px;
    align-items: start;
    padding: 22px 0 24px;
  }
  .work__thumb { width: 168px; }
  .work__lead { max-width: 56ch; }
  .work__foot { flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 16px; margin-top: 2px; }
  .sheet { --pad: clamp(20px, 3vw, 40px); padding: 30px var(--pad) 38px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .cover {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "head art" "lead art" "issue issue";
    column-gap: clamp(28px, 4vw, 64px);
    row-gap: clamp(16px, 2.6vh, 30px);
    min-height: min(100svh, 900px);
    padding-top: clamp(18px, 3vh, 36px);
  }
  .cover__head { grid-area: head; }
  .cover h1, .inissue, .plates3, .cover__text { order: 0; }
  .cover__lead { display: block; grid-area: lead; align-self: start; }
  .cover__text { margin-top: 16px; }
  .plates3 { grid-area: art; align-self: center; }
  .venn { width: min(100%, 76vh, 600px); }
  .inissue { grid-area: issue; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--rule) solid var(--ink); }
  .inissue li { border-bottom: 0; padding-right: 22px; }
  .inissue li + li { border-left: var(--rule) solid var(--ink); padding-left: 22px; }
  .cover__text { font-size: 1.25rem; }
  .cover__cta { display: grid; gap: 10px; justify-items: start; margin-top: clamp(18px, 3vh, 30px); }
  .cover__alt { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }

  .stub {
    left: auto; right: 24px; bottom: 24px;
    min-height: 0;
    display: grid; gap: 2px; justify-content: start;
    padding: 12px 22px 11px;
    border: 0;
    outline: 2px dashed var(--ink);
    outline-offset: -7px;
  }
  .stub[data-hidden="true"], body[data-reading="true"] .stub { transform: translateY(calc(100% + 40px)); visibility: hidden; }
  .stub:hover { background: var(--ink); color: #fff; outline-color: #fff; }

  .sheet {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "text side" "foot side";
    grid-template-rows: auto 1fr;
    column-gap: clamp(24px, 3.4vw, 52px);
  }
  .sheet__text { grid-area: text; }
  .sheet__side { grid-area: side; }
  .sheet__foot { grid-area: foot; }
  .sheet--text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "foot"; }
  .plates, .films { margin: 0; padding-left: 0; padding-right: 0; }
  .plate { height: 340px; }
  .ad__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .ad__main { grid-row: span 3; }
  .plain__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .plain__side { gap: 22px; }
  .imprint__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
}

/* Движение уже обёрнуто в no-preference; здесь снимаются только перемещения, смена цвета остаётся. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stub, .tag, .work__more svg, .venn circle { transition: none; }
}
