:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #4b5059;
  --rule: #d5dce6;
  --record: #1b3d70;
  --record-bg: #eef3f9;
  --record-rule: #c6d3e6;
  --stamp: #d01f2c;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Golos Text", system-ui, sans-serif;
}
.wrap { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }
a { color: var(--record); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--record); outline-offset: 3px; border-radius: 2px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Штамп: единственный яркий элемент страницы */
.stamp {
  display: inline-block;
  padding: .2em .55em .14em;
  color: var(--stamp);
  border: 3px solid currentColor;
  border-radius: 6px;
  outline: 1.5px solid currentColor;
  outline-offset: -8px;
  font: 700 1em/1 "PT Sans Narrow", "Arial Narrow", sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(var(--tilt, -7deg));
  filter: url(#ink);
  mix-blend-mode: multiply;
  opacity: .92;
}

/* Переключатель языка: штамп переезжает на выбранный язык */
@property --seg {
  syntax: "<length>";
  inherits: true;
  initial-value: 3.25rem;
}
.lang {
  --seg: 3.25rem;
  position: fixed; top: 16px; right: 16px; z-index: 10;
  display: grid; grid-template-columns: repeat(3, var(--seg));
  padding: 4px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(16, 28, 48, .04), 0 14px 32px -18px rgba(16, 28, 48, .45);
  transition: --seg .5s cubic-bezier(.3, 1.45, .45, 1);
  view-transition-name: lang;
}
.lang a {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: .4em;
  height: 38px; overflow: hidden;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.lang b { font: 700 16px/1 "PT Sans Narrow", "Arial Narrow", sans-serif; letter-spacing: .08em; }
.lang small {
  max-width: 0; opacity: 0;
  font-size: 13px; font-weight: 500;
  transition: max-width .45s cubic-bezier(.3, 1.2, .45, 1), opacity .25s;
}
.lang a:hover { color: var(--ink); }
.lang a:focus-visible { outline-offset: -3px; border-radius: 8px; }
.lang a[aria-current], .lang a.is-on { color: var(--stamp); }
.lang.is-moving a[aria-current]:not(.is-on) { color: var(--ink-2); }
.lang-thumb {
  position: absolute; top: 5px; bottom: 5px;
  left: calc(4px + var(--i, 0) * var(--seg) + 3px);
  width: calc(var(--seg) - 6px);
  border: 2.5px solid var(--stamp);
  border-radius: 7px;
  outline: 1px solid var(--stamp);
  outline-offset: -5px;
  transform: rotate(-5deg);
  filter: url(#ink);
  mix-blend-mode: multiply;
  pointer-events: none;
}
@media (hover: hover) {
  .lang:hover, .lang:focus-within, .lang.is-open { --seg: 6.9rem; }
  .lang:hover small, .lang:focus-within small, .lang.is-open small { max-width: 5.5em; opacity: 1; }
}

/* Первый экран */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--rule); }
.headline { position: relative; }
.kicker { margin: 0 0 28px; max-width: 42ch; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
h1 { margin: 0; font-weight: 800; font-size: clamp(40px, 7.6vw, 88px); line-height: .98; letter-spacing: -.035em; }
h1 span { display: block; }
.stamp-hero {
  position: absolute; right: 0; top: .1em;
  font-size: clamp(30px, 4.6vw, 56px);
  --tilt: -8deg;
  animation: thump .42s cubic-bezier(.2, .7, .3, 1.2) .45s both;
}
@keyframes thump {
  from { opacity: 0; transform: rotate(var(--tilt)) scale(1.7); }
  to { opacity: .92; transform: rotate(var(--tilt)) scale(1); }
}
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 32px 64px; align-items: start; margin: 36px 0 0; }
.lead { margin: 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; }

/* Плакат «Пропал адвокат» с отрывными бумажками */
.poster {
  position: relative;
  margin: 0; padding: 18px 16px 0;
  background: #fbf8f1;
  color: #1c1a17;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 20px 34px -20px rgba(16, 28, 48, .5);
  transform: rotate(2.5deg);
  transform-origin: 50% 0;
  animation: slap .5s cubic-bezier(.2, .8, .3, 1.25) .95s both;
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.poster:hover { transform: rotate(1deg) translateY(-3px); }
@keyframes slap {
  from { opacity: 0; transform: rotate(9deg) translateY(-28px) scale(1.08); }
  to { opacity: 1; transform: rotate(2.5deg); }
}
.tape {
  position: absolute; top: -10px; width: 64px; height: 22px;
  background: rgba(226, 214, 180, .72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.tape-l { left: -14px; transform: rotate(-32deg); }
.tape-r { right: -14px; transform: rotate(28deg); }
.poster-title { margin: 0; text-align: center; font: 700 30px/1 "PT Sans Narrow", "Arial Narrow", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.poster-case { margin: 6px 0 10px; text-align: center; color: #6b655c; font-size: 12px; letter-spacing: .04em; }
.poster-photo { display: block; width: 100%; height: auto; border: 1px solid #d9d3c6; }
.poster-facts { margin: 10px 0 0; font-size: 13.5px; line-height: 1.35; }
.poster-facts div + div { margin-top: 6px; }
.poster-facts dt { font-weight: 700; }
.poster-facts dd { margin: 0; }
.poster-call { margin: 12px 0 0; padding-top: 10px; border-top: 1.5px dashed #bdb5a6; font-size: 13px; font-weight: 700; line-height: 1.3; }
.poster-tabs { display: flex; margin: 8px -16px 0; color: inherit; text-decoration: none; }
.poster-tab {
  flex: 1; display: flex; justify-content: center;
  height: 122px; padding: 7px 0;
  border-left: 1.5px dashed #bdb5a6;
  transition: background .2s;
}
.poster-tab-text { writing-mode: vertical-rl; font-size: 9.5px; line-height: 1.2; white-space: nowrap; }
.poster-tab:first-child { border-left: 0; }
.poster-tab b { font-weight: 700; }
.poster-tabs:hover .poster-tab { background: #f3eee2; }
.poster-tabs:hover .poster-tab b { color: var(--record); text-decoration: underline; }
.poster-tab.is-torn { clip-path: polygon(0 0, 100% 0, 100% 12%, 78% 16%, 52% 10%, 26% 17%, 0 11%); }
.poster-tab.is-torn > * { visibility: hidden; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; font-size: 15px; font-weight: 500; }

/* Общие блоки */
.block { padding: clamp(56px, 8vw, 96px) 0; }
h2 { margin: 0; max-width: 20em; font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
.intro { margin: 20px 0 0; max-width: 36em; }
.note { margin: 20px 0 0; max-width: 44em; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.nw { white-space: nowrap; }
.src {
  margin-left: 2px; padding: 0 .32em;
  border: 1px solid currentColor; border-radius: 3px;
  font-size: .68em; font-weight: 700; line-height: 1.35; vertical-align: .35em;
  text-decoration: none;
}

/* Хронология неявок */
.docket { margin: 40px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr) 10rem; gap: 6px 28px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.row-date { font-weight: 700; line-height: 1.4; }
.row-body p { margin: 0; max-width: 36em; }
.row-body .row-case { margin-bottom: 4px; font-weight: 700; }
.row .stamp { justify-self: center; align-self: center; font-size: 21px; }
.row:nth-child(2) .stamp { --tilt: -4deg; }
.row:nth-child(3) .stamp { --tilt: -9deg; }
.row:nth-child(5) .stamp { --tilt: -5deg; }
.row:nth-child(6) .stamp { --tilt: -8deg; }
.row:nth-child(7) .stamp { --tilt: -3deg; }
.row-event { color: var(--ink-2); }
.row-event .row-body { grid-column: 2 / 4; }

/* Смягчающие обстоятельства: честно и с выводом */
.defense { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 8px 28px; margin: 40px 0 0; padding: 24px 0 0; border-top: 2px solid var(--ink); }
.defense-label { margin: 0; padding-top: 3px; color: var(--ink-2); font: 700 15px/1.3 "PT Sans Narrow", "Arial Narrow", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.defense p { margin: 0; max-width: 36em; }
.defense .defense-punch { margin-top: 16px; padding-left: 16px; border-left: 4px solid var(--stamp); font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; line-height: 1.35; }

/* Официальные решения */
.record-block { background: var(--record-bg); }
.record-block h2 { color: var(--record); }
.record-list { display: grid; grid-template-columns: 13rem minmax(0, 1fr); max-width: 56rem; margin: 36px 0 0; border-top: 2px solid var(--record); }
.record-list dt, .record-list dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--record-rule); }
.record-list dt { padding-right: 24px; color: var(--record); font-weight: 700; line-height: 1.45; }

/* Доска следователя: пробка, лампа сверху, карточки на булавках, нитки рисует board.js */
.board {
  --cork: #7a5533;
  --paper-old: #f3ede0;
  --ballpoint: #1c2747;
  --thread: #c8141f;
  --thread-alt: #2a2f3a;
  position: relative;
  margin: 36px 0 0;
  padding: 44px 44px 52px;
  border: 12px solid #2a1c11;
  border-radius: 4px;
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(255, 214, 150, .42), rgba(255, 214, 150, 0) 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .09 0 0 0 0 .03 1.4 0 0 0 -.62'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .78 0 0 0 0 .52 0 1.5 0 0 -.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"),
    var(--cork);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 0 90px 10px rgba(0, 0, 0, .55),
    0 1px 0 1px #4a3322,
    0 24px 50px -18px rgba(0, 0, 0, .55);
  color: var(--ink);
  isolation: isolate;
}
.board-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.board-head { grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 1fr); align-items: start; }
.board-people { margin-top: 78px; }
.board-foot { margin-top: 58px; align-items: start; }

.clip {
  position: relative;
  margin: 0;
  rotate: var(--r, 0deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 3px 10px 18px -6px rgba(0, 0, 0, .6);
}
.clip p { margin: 0; }
.clip-text { color: #3d3a35; font-size: 14.5px; line-height: 1.5; }
.clip-role { margin: 0 0 8px; color: #5f5a50; font: 700 12.5px/1.3 "PT Sans Narrow", "Arial Narrow", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.clip-name { margin: 0 0 8px; font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }

/* Булавки: те, что с data-knot, служат концами ниток */
.pin {
  position: absolute; z-index: 2;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffb3a8 0 8%, #e02a36 30%, #8c0d17 80%);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, .25), 3px 6px 6px rgba(0, 0, 0, .45);
}
.pin-top { top: 16px; left: 50%; }
.pin-low { top: calc(100% - 16px); left: 50%; }

/* Этикетка «кто есть кто» */
.clip-label {
  justify-self: start; margin-top: 18px; padding: 26px 18px 16px;
  background: repeating-linear-gradient(#fbf8f1 0 23px, #d9e2ee 23px 24px) 0 44px / 100% calc(100% - 44px) no-repeat, #fbf8f1;
  color: var(--ballpoint);
  font: 700 27px/1.05 Caveat, "Segoe Print", cursive;
}
.clip-label b { display: block; margin-bottom: 8px; color: var(--ink); font: 700 13px/1.25 "PT Sans Narrow", "Arial Narrow", sans-serif; letter-spacing: .12em; text-transform: uppercase; }

/* Папка фирмы */
.clip-firm { margin-top: 20px; padding: 30px 26px 26px; background: linear-gradient(180deg, #ecd39f, #e2c286); border-radius: 2px 6px 4px 4px; }
.clip-tab {
  position: absolute; top: -26px; left: 18px;
  padding: 6px 16px 4px;
  background: #ecd39f; border-radius: 6px 6px 0 0;
  font: 700 13px/1.3 "PT Sans Narrow", "Arial Narrow", sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.clip-firm .pin-top { left: calc(100% - 34px); }
.clip-firm-body { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 22px; align-items: start; }
.print { position: relative; padding: 7px 7px 20px; background: #fdfcf8; rotate: -3deg; box-shadow: 1px 3px 8px rgba(0, 0, 0, .35); }
.print::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 58px; height: 20px; margin-left: -29px;
  background: rgba(255, 250, 225, .62); rotate: 4deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.print svg { display: block; width: 100%; height: auto; }

/* Жёлтый стикер с адресом */
.clip-note {
  margin-top: 64px; padding: 20px 16px 18px;
  background: linear-gradient(170deg, #fff49a, #f5dd57);
  color: #4a4222; font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 4px 12px 16px -8px rgba(0, 0, 0, .7);
}
.clip-note::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 22px; margin-left: -32px;
  background: rgba(255, 255, 255, .5); rotate: -5deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.clip-note b { display: block; margin-bottom: 6px; color: #b3121d; font: 700 24px/1.05 Caveat, "Segoe Print", cursive; }

/* Полароиды людей */
.polaroid { display: flex; flex-direction: column; padding: 12px 12px 20px; background: #fdfcf8; }
.shot { position: relative; margin: 0 0 12px; background: #1f1d1a; }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .55);
}
.shot-img { display: block; width: 100%; height: auto; filter: sepia(.25) contrast(1.05); }
.shot-stamp { position: absolute; z-index: 2; right: -6px; bottom: -14px; background: rgba(253, 252, 248, .94); mix-blend-mode: normal; opacity: 1; font-size: 15px; --tilt: -9deg; }
.scrawl { margin: 0 0 10px; color: var(--ballpoint); font: 700 29px/1 Caveat, "Segoe Print", cursive; letter-spacing: 0; }

/* Прежняя LLC и подсказка про источники */
.clip-prev {
  grid-column: 1 / 3; justify-self: center; width: min(100%, 36rem);
  padding: 34px 26px 22px;
  background: repeating-linear-gradient(#f6f1e5 0 25px, #dfe4ec 25px 26px) 0 12px, #f6f1e5;
  color: #3d3a35; font-size: 14.5px; line-height: 1.55;
  clip-path: polygon(0 3px, 8% 0, 22% 4px, 39% 1px, 57% 4px, 74% 0, 90% 3px, 100% 1px, 100% 100%, 0 100%);
}
.clip-prev .pin-top { left: 50%; }
.prev-stamp { position: absolute; top: 10px; right: 14px; font-size: 14px; --tilt: 6deg; opacity: .88; }
.clip-hint {
  justify-self: center; max-width: 15rem; margin-top: 8px; padding: 18px 16px 14px;
  background: #fbf8f1; color: var(--ballpoint);
  font: 700 22px/1.1 Caveat, "Segoe Print", cursive;
}
.clip-hint a { color: #b3121d; }
.clip-hint::before {
  content: ""; position: absolute; top: -9px; left: 22%; width: 54px; height: 20px;
  background: rgba(255, 250, 225, .6); rotate: -8deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* Нитки */
.board-strings { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.string path { fill: none; stroke-linecap: butt; }
.string-line { stroke: var(--thread); stroke-width: 2.4; }
.string-alt .string-line { stroke: var(--thread-alt); }
.string-shadow { stroke: rgba(0, 0, 0, .38); stroke-width: 2.6; filter: blur(1.5px); }
.knot-head { fill: url(#pin-g); filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, .45)); }
.string { opacity: 0; }
.board.is-strung .string { opacity: 1; }
.board.is-strung.is-drawing .string path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: string-draw .75s cubic-bezier(.5, 0, .2, 1) calc(var(--j) * .24s) forwards; }
.board.is-strung.is-drawing .knot-end { scale: 0; transform-box: fill-box; transform-origin: center; animation: knot-pop .3s cubic-bezier(.3, 1.6, .5, 1) calc(var(--j) * .24s + .7s) forwards; }
@keyframes string-draw { to { stroke-dashoffset: 0; } }
@keyframes knot-pop { to { scale: 1; } }

/* Карточки прикалываются к доске по очереди */
.board.is-armed:not(.is-live) .clip { opacity: 0; }
.board.is-live .clip { animation: clip-in .62s cubic-bezier(.2, .75, .25, 1.12) calc(var(--i) * .13s) both; }
@keyframes clip-in {
  from { opacity: 0; translate: 0 -34px; scale: 1.1; rotate: calc(var(--r, 0deg) - 5deg); box-shadow: 0 40px 50px -10px rgba(0, 0, 0, .35); }
  45% { opacity: 1; }
}

/* Люди */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 32px 0 0; }
.people div { padding: 18px 0; border-top: 1px solid var(--rule); }
.people dt { font-weight: 700; font-size: 19px; line-height: 1.3; }
.people dd { margin: 4px 0 0; color: var(--ink-2); }

/* Договор */
.contract { background: #eceff3; }
.contract-grid { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 56px; align-items: start; }
.contract-grid > div { position: sticky; top: 32px; }
.bottom-line { margin: 32px 0 0; padding-left: 16px; border-left: 4px solid var(--stamp); font-size: clamp(20px, 2vw, 23px); font-weight: 700; line-height: 1.35; }
.bottom-line + .note { margin-top: 12px; padding-left: 20px; }
.sheet {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4.5vw, 56px);
  background: var(--paper);
  border: 1px solid #d3d8df;
  box-shadow: 0 1px 0 #d3d8df, 0 26px 48px -30px rgba(16, 28, 48, .5);
}
.sheet-title { margin: 0; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.sheet-sub { margin: 6px 0 28px; text-align: center; color: var(--ink-2); font-size: 14px; }
.clauses { margin: 0; padding: 0; list-style: none; counter-reset: clause; }
.clauses li { counter-increment: clause; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); padding: 16px 0; border-top: 1px solid var(--rule); }
.clauses li::before { content: counter(clause) "."; font-weight: 700; }
.clauses h4 { margin: 0 0 4px; font-size: 18px; line-height: 1.35; }
.clauses p { margin: 0; }
mark {
  color: inherit;
  padding: .04em .18em;
  background: linear-gradient(100deg, transparent .12em, rgba(255, 220, 40, .7) .12em, rgba(255, 220, 40, .7) calc(100% - .12em), transparent calc(100% - .12em));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sheet-foot { margin: 8px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Что делать */
.help { border-top: 1px solid var(--rule); }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr);
  padding: 20px 0; border-top: 1px solid var(--rule);
}
.steps li::before { content: counter(step); font-weight: 800; font-size: 28px; line-height: 1.1; }
.steps strong { display: block; margin-bottom: 2px; font-size: 19px; }
.steps p { margin: 0; max-width: 38em; }

/* Петиция: единственный тёмный блок, имейл во всю ширину */
.petition { padding: clamp(64px, 9vw, 112px) 0; background: var(--ink); color: #fff; }
.petition a { color: #fff; }
.petition-kicker { margin: 0 0 16px; color: #ff5a64; font: 700 15px/1 "PT Sans Narrow", "Arial Narrow", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.petition h2 { max-width: 16em; }
.petition-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 56rem; margin: 24px 0 0; color: rgba(255, 255, 255, .8); }
.petition-text p { margin: 0 0 12px; }
.mail { position: relative; margin: clamp(48px, 7vw, 80px) 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22); }
/* Имейл читается фразой: FUCK — IMMIGRATION RELIEF GROUP, остальное приглушено */
.mail-link {
  --hot: #ff3b47;
  --dim: rgba(255, 255, 255, .3);
  display: inline;
  color: var(--dim);
  font: 700 clamp(19px, 5.2vw, 60px)/1.14 "PT Sans Narrow", "Arial Narrow", sans-serif;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail-link .at, .mail-link .rest { color: var(--dim); transition: color .3s; }
.mail-link:hover .at, .mail-link:hover .rest, .mail-link:focus-visible .rest { color: rgba(255, 255, 255, .55); }
.mail-link .w { transition: text-shadow .3s, background-size .3s; }
.mail-link .w-fuck { color: var(--hot); text-shadow: 0 0 .45em rgba(255, 59, 71, .5); }
.mail-link:hover .w-fuck { text-shadow: 0 0 .6em rgba(255, 59, 71, .85); }
/* Под каждым словом своя черта с зазором — слова читаются раздельно без пробелов в адресе */
.mail-link .w-name {
  padding-bottom: .04em;
  color: #fff;
  text-shadow: 0 0 .5em rgba(255, 255, 255, .2);
  background: linear-gradient(90deg, transparent .07em, var(--hot) .07em, var(--hot) calc(100% - .07em), transparent calc(100% - .07em)) 0 100% / 100% .085em no-repeat;
}
.mail-link:hover .w-name { background-size: 100% .13em; }
.w-fuck { --d: .1s; }
.w-name:nth-of-type(3) { --d: .45s; }
.w-name:nth-of-type(4) { --d: .75s; }
.w-name:nth-of-type(5) { --d: 1.05s; }
.mail.is-armed:not(.is-in) .w { color: var(--dim); text-shadow: none; background-size: 0 .085em; }
.mail.is-in .w { animation: word-on .7s cubic-bezier(.3, .7, .3, 1) var(--d) backwards; }
@keyframes word-on {
  from { color: rgba(255, 255, 255, .3); text-shadow: 0 0 0 transparent; background-size: 0 .085em; }
}
.mail-stamp {
  position: absolute; right: 0; top: -.9em;
  color: #ff3b47;
  font-size: clamp(22px, 3vw, 34px);
  mix-blend-mode: normal;
  --tilt: -9deg;
}
.mail.is-armed .mail-stamp { opacity: 0; }
.mail.is-in .mail-stamp { animation: thump .42s cubic-bezier(.2, .7, .3, 1.2) 1.4s both; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 0; }
.mail-copy {
  padding: 11px 20px;
  color: #fff; background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px;
  font: 500 15px/1 "Golos Text", system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.mail-copy:hover { background: #fff; color: var(--ink); border-color: #fff; }
.mail-copy.is-done { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.petition-note { margin: 32px 0 0; max-width: 44em; color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.55; }
.petition-note a { color: rgba(255, 255, 255, .85); }

/* Источники */
footer { padding: 48px 0 64px; border-top: 2px solid var(--ink); font-size: 15px; }
footer h2 { font-size: 22px; letter-spacing: -.01em; }
.sources { margin: 16px 0 0; padding-left: 1.7em; list-style: upper-latin; }
.sources li { padding: 7px 0; scroll-margin-top: 24px; }
.sources li::marker { color: var(--record); font-weight: 700; }
.sources li:target { background: var(--record-bg); }
.disclaimer + .disclaimer { margin-top: 12px; }
.disclaimer { margin: 32px 0 0; max-width: 44em; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .lang { top: 12px; right: 12px; }
  .hero { padding-top: 84px; }
  .stamp-hero { position: static; margin-top: 28px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .row-body, .row-event .row-body { grid-column: 1 / -1; grid-row: 2; }
  .row .stamp { grid-column: 2; grid-row: 1; font-size: 17px; }
  .record-list { grid-template-columns: minmax(0, 1fr); }
  .record-list dt { padding-bottom: 0; border-bottom: 0; }
  .record-list dd { padding-top: 4px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .board { margin-inline: -6px; padding: 26px 26px 34px; border-width: 8px; }
  .board-row, .board-head { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .board-people { margin-top: 30px; gap: 34px; }
  .board-foot { margin-top: 34px; }
  .clip { rotate: calc(var(--r, 0deg) * .4); }
  .clip-label { margin-top: 0; font-size: 24px; }
  .clip-firm { margin-top: 12px; padding: 28px 18px 22px; }
  .clip-firm-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .print { width: min(100%, 11rem); }
  .clip-note { justify-self: end; width: 82%; margin-top: 0; }
  .clip-prev { grid-column: auto; padding-top: 44px; }
  .clip-firm .pin-low, .polaroid .pin-top { left: 16px; }
  .polaroid .pin-low, .clip-prev .pin-top { left: calc(100% - 16px); }
  .defense { grid-template-columns: minmax(0, 1fr); }
  .petition-text { grid-template-columns: minmax(0, 1fr); }
  .mail-stamp { top: -1.3em; }
  .clauses li { grid-template-columns: 1.8rem minmax(0, 1fr); }
  .steps li { grid-template-columns: 2.2rem minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .poster { width: min(100% - 24px, 15.5rem); margin: 12px auto 0; }
  .contract-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contract-grid > div { position: static; }
}

/* Смена языка: новая страница проявляется кругом из штампа, старая уходит в глубину */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-recede .8s cubic-bezier(.65, 0, .25, 1) both; }
  ::view-transition-new(root) { animation: vt-reveal .8s cubic-bezier(.65, 0, .25, 1) both; }
  ::view-transition-group(lang) { animation-duration: .5s; }
}
@keyframes vt-reveal {
  from { clip-path: circle(0 at var(--vt-x, calc(100% - 80px)) var(--vt-y, 36px)); }
  to { clip-path: circle(150vmax at var(--vt-x, calc(100% - 80px)) var(--vt-y, 36px)); }
}
@keyframes vt-recede {
  to { transform: scale(.93); filter: grayscale(1) blur(3px); opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp-hero, .mail.is-in .mail-stamp, .mail.is-in .w, .poster { animation: none; }
  .poster { transition: none; }
  .mail.is-armed .mail-stamp { opacity: .92; }
  .lang, .lang small { transition: none; }
  .board.is-live .clip { animation: none; }
}

@media print {
  .lang { display: none; }
  .hero-links, .poster { display: none; }
  .stamp { filter: none; }
  .board { border: 1px solid #999; background: none; box-shadow: none; }
  .clip { box-shadow: none; outline: 1px solid #ccc; }
  .record-block { background: none; }
  .petition, .petition * { background: none; color: #000; }
  .mail-copy { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; word-break: break-all; }
}
