/* Layout: a two-ink risograph zine you "swallow". A capsule camera travels down one hand-drawn gut that runs through the topics; every other section is a piece of medical paperwork (blister pack, lab stamp, form 025/у, prescription 107-1/у). Single paper look by choice. */
:root {
  --paper: #f8ece3;
  --paper-2: #ecdccf;
  --ink: #1a2230;
  --muted: #4f5866;
  --blue: #2e5a87;
  --red: #d05d70;
  --f-display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><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 .2  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.label { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.hand { font-family: var(--f-hand); font-weight: 700; color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.head { display: grid; gap: 14px; max-width: 48rem; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 {
  font-family: var(--f-display); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02;
  color: var(--blue); letter-spacing: -.01em;
}
.head p { color: var(--muted); max-width: 38rem; }

/* misregistered two-ink type */
.ov { position: relative; display: inline-block; isolation: isolate; }
.ov::after {
  content: attr(data-t); position: absolute; left: .045em; top: .03em; z-index: -1;
  color: var(--blue); mix-blend-mode: multiply; white-space: inherit;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 .82rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 20px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.hot { background: var(--red); }
.btn.small { padding: 10px 14px; font-size: .72rem; box-shadow: 3px 3px 0 var(--ink); }

/* header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper); border-bottom: 3px solid var(--ink);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { font: 400 1.35rem/1 var(--f-display); text-decoration: none; color: var(--blue); }
.logo span { color: var(--red); }
.nav { display: flex; gap: 26px; }
.nav a { font: 600 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { color: var(--red); }
@media (max-width: 760px) { .nav { display: none; } }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero .wrap { position: relative; }
.who { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-bottom: 18px; }
.who b { font: 400 1rem/1 var(--f-display); color: var(--ink); }
.who span { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero h1 { position: relative; z-index: 2; }
.hero .l1 {
  display: block; font: 400 clamp(1.5rem, 3.6vw, 2.9rem)/1.08 var(--f-display); color: var(--ink);
  max-width: 15em;
}
.hero .l2 {
  display: block; margin-top: .06em;
  font: 400 clamp(3rem, 12.4vw, 10.4rem)/.9 var(--f-display); color: var(--red);
  letter-spacing: -.03em; white-space: nowrap;
}
.capsule {
  position: absolute; z-index: 1; margin: 0; pointer-events: none;
  right: -10px; top: -30px; width: clamp(260px, 38vw, 470px);
  animation: bob 6s ease-in-out infinite;
}
.capsule svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: end; margin-top: clamp(28px, 4vw, 44px); position: relative; z-index: 2;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 34rem; }
.lead b { font-weight: 700; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.spec { list-style: none; margin: 0; padding: 18px 20px; border: 2px dashed var(--blue); border-radius: 18px; font: 400 .86rem/1.4 var(--f-mono); display: grid; gap: 10px; background: var(--paper); }
.spec li { display: flex; gap: 10px; align-items: baseline; }
.spec li::after { content: ""; order: 2; flex: 1; border-bottom: 1.5px dotted var(--muted); }
.spec span { order: 1; color: var(--muted); }
.spec b { order: 3; font-weight: 600; color: var(--blue); white-space: nowrap; }
@media (max-width: 760px) {
  .capsule { position: relative; right: auto; top: auto; width: min(100%, 360px); margin: 6px 0 -8px auto; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
}

/* route: the gut */
.route { background: var(--paper-2); border-block: 3px solid var(--ink); }
.gut { position: relative; }
.gut svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gut .layer-tube { z-index: 0; }
.gut .layer-cap { z-index: 3; }
.tube { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; mix-blend-mode: multiply; opacity: .85; }
.tube-lit { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; mix-blend-mode: multiply; opacity: .9; }
.tube-core { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-dasharray: 2 11; stroke-linecap: round; opacity: .9; }
.stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.stop { position: relative; width: min(100%, 470px); }
.stop:nth-child(odd) { align-self: flex-start; }
.stop:nth-child(even) { align-self: flex-end; }
.stop + .stop { margin-top: -30px; }
.stop:has(.node[data-coil]) + .stop { margin-top: 150px; }
.node {
  position: absolute; top: 34px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper); border: 5px solid var(--ink); z-index: 2;
}
.stop:nth-child(odd) .node { right: -15px; }
.stop:nth-child(even) .node { left: -15px; }
.card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 22px;
  padding: 24px 26px 26px; display: grid; gap: 12px;
}
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-top .no { font: 400 1rem/1 var(--f-display); color: var(--red); }
.card-top .len { font: 600 .8rem/1 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.card h3 { font: 400 clamp(1.4rem, 2.4vw, 1.85rem)/1.08 var(--f-display); color: var(--blue); }
.card p { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .74rem/1 var(--f-mono); padding: 7px 11px; border: 1.5px dashed var(--blue); border-radius: 999px; color: var(--blue); background: var(--paper); }
.exit { position: relative; z-index: 1; margin: 80px auto 0; width: min(100%, 720px); }
.exit .node { left: calc(50% - 15px); top: -15px; }
.exit .card { text-align: center; justify-items: center; padding-top: 34px; }
.exit .card h3 { color: var(--ink); }
.exit .chips { justify-content: center; }
.gut-note { position: absolute; z-index: 2; font-size: 1.55rem; line-height: 1; transform: rotate(-6deg); white-space: nowrap; }
@media (max-width: 760px) {
  .stop, .stop:nth-child(odd), .stop:nth-child(even) { align-self: stretch; width: auto; padding-left: 46px; }
  .stop + .stop, .stop:has(.node[data-coil]) + .stop { margin-top: 26px; }
  .stop:nth-child(odd) .node, .stop:nth-child(even) .node { left: 4px; right: auto; width: 24px; height: 24px; border-width: 4px; }
  .exit { margin-top: 40px; padding-left: 46px; }
  .exit .node { left: 4px; top: 30px; width: 24px; height: 24px; border-width: 4px; }
  .exit .card { text-align: left; justify-items: start; padding-top: 24px; }
  .exit .chips { justify-content: flex-start; }
  .gut-note { display: none; }
  .card { padding: 20px; }
}

/* videos: blister pack */
.blister {
  border: 3px solid var(--ink); border-radius: 34px; padding: clamp(18px, 3vw, 34px);
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--blue) 7%, transparent) 14px 15px),
    var(--paper-2);
  display: grid; gap: 22px;
}
.blister-head, .blister-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.blister-head b { font: 400 1.05rem/1 var(--f-display); letter-spacing: 0; color: var(--blue); text-transform: none; }
.blister-foot { text-transform: none; letter-spacing: 0; font-weight: 400; border-top: 2px dashed var(--muted); padding-top: 16px; }
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.cell {
  position: relative; text-decoration: none; display: grid; gap: 10px; align-content: start;
  padding: 28px 30px 26px; border-radius: 64px; border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: inset 0 -10px 0 color-mix(in srgb, var(--blue) 12%, transparent), 0 6px 0 var(--ink);
  transition: transform .18s, box-shadow .18s;
}
.cell::before { /* printed highlight on the plastic bubble */
  content: ""; position: absolute; left: 26px; top: 12px; width: 38%; height: 12px;
  border-top: 3px solid var(--paper-2); border-radius: 50% 50% 0 0; opacity: .9;
}
.cell:hover { transform: translateY(5px); box-shadow: inset 0 4px 0 color-mix(in srgb, var(--blue) 18%, transparent), 0 1px 0 var(--ink); }
.cell .big { font: 400 1.45rem/1.05 var(--f-display); color: var(--red); }
.cell h3 { font: 600 1rem/1.4 var(--f-body); color: var(--ink); }
.cell .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cell .dur { color: var(--blue); }
.cell .soon { background: var(--ink); color: var(--paper); padding: 5px 9px; border-radius: 999px; }

/* myths: stamped */
.myths { background: var(--paper); }
.mlist { display: grid; border-top: 3px solid var(--ink); }
.myth {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px clamp(24px, 5vw, 64px);
  padding-block: clamp(28px, 4vw, 44px); border-bottom: 2px dashed var(--muted); align-items: start;
}
.claim { position: relative; font: 400 clamp(1.45rem, 3vw, 2.3rem)/1.12 var(--f-display); color: var(--blue); }
.claim s { text-decoration-color: var(--red); text-decoration-thickness: .13em; }
.stamp {
  display: inline-block; margin-top: 14px;
  font: 400 1.05rem/1 var(--f-display); letter-spacing: .08em; color: var(--red);
  border: 3px solid var(--red); border-radius: 8px; padding: 8px 12px 6px;
  transform: rotate(-7deg); mix-blend-mode: multiply;
}
.stamp small { display: block; font: 600 .6rem/1.2 var(--f-mono); letter-spacing: .1em; margin-top: 4px; }
.fact { display: grid; gap: 8px; font-size: 1.05rem; }
.fact .label { color: var(--blue); }
.fact b { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--red) 30%, transparent) 58%); font-weight: 600; }
.fact .hand { font-size: 1.5rem; line-height: 1.1; transform: rotate(-2deg); transform-origin: left; color: var(--red); }

/* about: form 025/у */
.about { background: var(--paper-2); border-top: 3px solid var(--ink); }
.form {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 10px 10px 0 var(--blue);
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
}
.form-head {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  padding: 14px 22px; border-bottom: 3px solid var(--ink);
  font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
.form-head b { color: var(--red); }
.photo {
  position: relative; margin: 22px; aspect-ratio: 4 / 5; max-width: 100%;
  border: 2px solid var(--ink); background: var(--paper-2); overflow: hidden;
}
.photo .tone, .photo .tone2 {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--blue) 2.1px, transparent 2.6px);
  background-size: 8px 8px;
  -webkit-mask-image: radial-gradient(ellipse 25% 21% at 50% 38%, #000 97%, transparent 100%), radial-gradient(ellipse 48% 34% at 50% 100%, #000 97%, transparent 100%);
          mask-image: radial-gradient(ellipse 25% 21% at 50% 38%, #000 97%, transparent 100%), radial-gradient(ellipse 48% 34% at 50% 100%, #000 97%, transparent 100%);
}
.photo .tone2 { background-image: radial-gradient(circle, var(--red) 2.1px, transparent 2.6px); transform: translate(5px, 3px); mix-blend-mode: multiply; opacity: .8; }
.photo .hand { position: absolute; left: 12px; right: 12px; top: 10px; font-size: 1.35rem; line-height: 1.05; color: var(--ink); }
.fields { padding: 22px 26px 26px 4px; display: grid; gap: 20px; align-content: start; }
.fields h2 { font: 400 clamp(2rem, 4.4vw, 3.2rem)/1 var(--f-display); color: var(--blue); }
.rows { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 1.5px dotted var(--muted); }
.row span { font: 600 .72rem/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row b { font-weight: 600; }
.ph { font-family: var(--f-mono); font-weight: 600; font-size: .92rem; color: var(--red); border-bottom: 2px dashed var(--red); }
.fields .sub { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.rx-hand { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx-hand li { font: 700 1.5rem/1.15 var(--f-hand); color: var(--blue); padding-left: 1.3em; position: relative; }
.rx-hand li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-family: var(--f-body); font-size: 1.1rem; top: .2em; }
.sign { display: flex; align-items: end; gap: 14px; font: 600 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sign svg { width: 150px; height: 46px; }
.sign path { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 760px) {
  .form { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 var(--blue); }
  .photo { margin: 18px 18px 0; max-width: 260px; }
  .fields { padding: 20px 18px 22px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .myth { grid-template-columns: minmax(0, 1fr); }
}

/* channels: prescription 107-1/у */
.rx {
  max-width: 860px; background: var(--paper); border: 3px solid var(--ink); border-radius: 6px;
  padding: clamp(20px, 3.4vw, 40px); display: grid; gap: 20px;
  box-shadow: -10px 10px 0 var(--red);
}
.rx-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rx-top b { font: 400 1.6rem/1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--blue); }
.rx-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rx-list a {
  display: grid; grid-template-columns: 3.2rem minmax(0, 11rem) minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline;
  padding: 16px 4px; border-bottom: 1.5px dotted var(--muted); text-decoration: none; transition: background .15s;
}
.rx-list a:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.rx-list .rp { font: 700 1.5rem/1 var(--f-hand); color: var(--red); }
.rx-list .name { font: 400 1.3rem/1.1 var(--f-display); color: var(--blue); }
.rx-list .ds { color: var(--ink); }
.rx-list .ds small { display: block; font: 600 .68rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rx-list .go { font: 400 1.2rem/1 var(--f-display); color: var(--red); }
.rx-sig { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: baseline; }
.rx-sig p { font: 400 .95rem/1.4 var(--f-mono); }
.rx-sig .hand { font-size: 1.9rem; transform: rotate(-4deg); }
@media (max-width: 640px) {
  .rx-list a { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .rx-list .ds { grid-column: 2 / 4; }
  .rx-list .go { grid-row: 1; grid-column: 3; }
}

/* ask: tear-off notice */
.ask {
  margin-top: clamp(48px, 7vw, 80px); max-width: 860px; margin-left: auto;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 6px; overflow: hidden;
  transform: rotate(.6deg);
}
.ask-body { padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 14px; justify-items: start; }
.ask-body h3 { font: 400 clamp(1.6rem, 3.4vw, 2.4rem)/1.05 var(--f-display); color: var(--red); }
.ask-body p { max-width: 36rem; }
.tabs { display: flex; border-top: 2px dashed var(--ink); overflow: hidden; }
.tabs span {
  flex: 0 0 auto; writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 14px 10px; border-left: 2px dashed var(--ink);
  font: 600 .7rem/1 var(--f-mono); letter-spacing: .06em; color: var(--blue); white-space: nowrap;
  transition: transform .2s;
}
.tabs span:nth-child(3) { visibility: hidden; } /* one already torn off */
.tabs span:hover { transform: rotate(180deg) translateY(6px) rotate(2deg); }

/* footer */
footer { background: var(--blue); color: var(--paper); }
footer .wrap { padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; font-size: .9rem; }
footer .big { font: 400 clamp(2.4rem, 9vw, 6rem)/.9 var(--f-display); color: var(--paper); letter-spacing: -.02em; }
footer .big span { color: var(--red); }
footer p { max-width: 52rem; opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .capsule { animation: none; }
  .cell, .btn, .tabs span { transition: none; }
}

/* ---------- inner pages: same two-ink zine, now as a document system ---------- */

/* header: full nav, phone menu */
.top .wrap { position: relative; }
.nav { gap: 20px; }
.nav a[aria-current="page"] { color: var(--red); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.nav-doc { font: 600 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--red); }
.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; font: 600 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu nav {
  position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: calc(100% + 3px);
  width: min(320px, calc(100vw - 40px)); background: var(--paper); border: 3px solid var(--ink); border-top: 0;
  padding: 8px 18px 14px; display: grid; box-shadow: 6px 6px 0 var(--blue); z-index: 30;
}
.menu nav a { padding: 11px 0; border-bottom: 1.5px dotted var(--muted); text-decoration: none; font-weight: 600; }
.menu nav a:last-child { border-bottom: 0; }
.menu nav a[aria-current="page"] { color: var(--red); }
@media (max-width: 1160px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 520px) { .top .btn.small, .nav-doc { display: none; } }

/* small link with an arrow */
.more {
  font: 600 .76rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--red); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px;
  justify-self: start; width: fit-content;
}
.more:hover { color: var(--blue); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--red); }

/* breadcrumbs and page head */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 600 .7rem/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 44px); border-bottom: 3px solid var(--ink); }
.page-head .wrap { display: grid; gap: 16px; justify-items: start; }
.page-head h1 { font: 400 clamp(2rem, 5.6vw, 4.2rem)/1.02 var(--f-display); color: var(--blue); letter-spacing: -.01em; max-width: 20em; }
.page-head .intro { max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 600 .72rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.draft { border: 2px dashed var(--red); border-radius: 14px; padding: 12px 16px; font: 400 .84rem/1.55 var(--f-mono); max-width: 48rem; background: var(--paper); }
.draft b { color: var(--red); }
.draft a { color: var(--blue); }
.organ-stat { font: 400 clamp(2.4rem, 7vw, 4.6rem)/1 var(--f-display); color: var(--red); }

/* article */
.article { padding-block: clamp(36px, 5vw, 64px); }
.article .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article .wrap.one { grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 44rem; display: grid; gap: 18px; min-width: 0; }
.prose h2 { font: 400 clamp(1.35rem, 2.6vw, 1.85rem)/1.12 var(--f-display); color: var(--blue); margin-top: 18px; scroll-margin-top: 96px; }
.prose p { font-size: 1.05rem; line-height: 1.72; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.summary { border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px; background: var(--paper-2); display: grid; gap: 8px; }
.summary .label { color: var(--blue); }
.urgent { border: 3px solid var(--red); border-radius: 18px; padding: 18px 20px; display: grid; gap: 12px; scroll-margin-top: 96px; margin-top: 10px; }
.urgent h2 { margin: 0; color: var(--red); }
.disclaimer { font-size: .9rem !important; color: var(--muted); border-top: 2px dashed var(--muted); padding-top: 14px; }
.aside { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: 18px; min-width: 0; }
.toc { border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; background: var(--paper); display: grid; gap: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--red); }
.vcard {
  display: grid; gap: 8px; text-decoration: none; border: 2px solid var(--ink); border-radius: 36px;
  padding: 18px 22px; background: var(--paper); box-shadow: 0 5px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.vcard:hover { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.vcard .big { font: 400 1.2rem/1.1 var(--f-display); color: var(--red); }
.vrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
@media (max-width: 900px) {
  .article .wrap { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}

/* listings */
.listing { padding-block: clamp(36px, 5vw, 64px); }
.listing .wrap { display: grid; gap: 40px; }
.lead-in { margin-bottom: 4px; }
.group { display: grid; gap: 14px; }
.group h2 { font: 400 clamp(1.25rem, 2.4vw, 1.65rem)/1.1 var(--f-display); color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.group h2 small { font: 600 .7rem/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.alist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.alist a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 6px;
  border-bottom: 1.5px dotted var(--muted); text-decoration: none; align-items: baseline;
}
.alist a:hover { background: color-mix(in srgb, var(--red) 8%, transparent); }
.alist .t { font-weight: 600; font-size: 1.06rem; color: var(--blue); }
.alist .m { font: 600 .68rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.alist .tags { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font: 600 .62rem/1 var(--f-mono); padding: 5px 8px; border-radius: 999px; border: 1.5px solid var(--red); color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile {
  display: grid; gap: 10px; align-content: start; text-decoration: none; border: 2px solid var(--ink); border-radius: 22px;
  padding: 22px; background: var(--paper); transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--blue); }
/* колонки переключаются там, где «Двенадцатиперстная» ещё помещается целиком */
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1120px) { .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles-3 { grid-template-columns: minmax(0, 1fr); } }
.tile h2 { font: 400 1.35rem/1.1 var(--f-display); color: var(--blue); margin: 0; }
@media (max-width: 370px) { .tile h2 { font-size: 1.15rem; } }
.tile .no { font: 400 1rem/1 var(--f-display); color: var(--red); }
.tile .stat { font: 600 .8rem/1 var(--f-mono); color: var(--red); }
.tile p { color: var(--muted); }
.tile .m { font: 600 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* video page */
.player {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border: 3px solid var(--ink); border-radius: 24px;
  background: var(--ink); display: grid; place-items: center; overflow: hidden;
}
.player .big { font: 400 clamp(1.6rem, 4vw, 3rem)/1 var(--f-display); color: var(--red); text-align: center; padding-inline: 20px; }
.player .soon { position: absolute; top: 16px; left: 16px; background: var(--red); color: var(--ink); font: 600 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 7px 11px; border-radius: 999px; }
.player .dur { position: absolute; right: 18px; bottom: 16px; font: 600 .85rem/1 var(--f-mono); color: var(--paper); }
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }
details.transcript, details.faq { border: 2px solid var(--ink); border-radius: 18px; padding: 14px 18px; background: var(--paper); }
details.transcript summary, details.faq summary { cursor: pointer; font-weight: 600; }
details.transcript summary { font: 600 .8rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
details[open] > summary { margin-bottom: 12px; }
details.transcript p, details.faq p { margin-top: 10px; }

/* doctor page */
.aside .photo { margin: 0; }
.plain { list-style: none; padding-left: 0 !important; }

/* doctors section */
.docband { background: var(--blue); color: var(--paper); }
.docband .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 10px; font: 600 .72rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.docband a { color: var(--paper); }
.gate {
  border: 3px solid var(--ink); border-radius: 6px; padding: clamp(20px, 4vw, 40px); background: var(--paper);
  box-shadow: 10px 10px 0 var(--red); display: grid; gap: 16px; max-width: 760px;
}
.gate h2 { font: 400 clamp(1.3rem, 3vw, 1.9rem)/1.1 var(--f-display); color: var(--blue); }
#razdely { scroll-margin-top: 96px; }
.tbl { overflow-x: auto; border-top: 2px solid var(--ink); }
.tbl table { border-collapse: collapse; width: 100%; }
.tbl th, .tbl td { border-bottom: 1.5px dotted var(--muted); padding: 10px 12px; text-align: left; vertical-align: top; }
.tbl th { font: 600 .68rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tbl td:first-child { font: 400 1.1rem/1.2 var(--f-display); color: var(--red); white-space: nowrap; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.shot { margin: 0; display: grid; gap: 8px; }
.shot div {
  aspect-ratio: 4 / 3; max-width: 100%; border: 2px solid var(--ink); border-radius: 50%;
  background: radial-gradient(circle, var(--red) 2px, transparent 2.6px) 0 0 / 9px 9px, var(--paper-2);
}
.shot figcaption { font: 400 .8rem/1.4 var(--f-mono); color: var(--muted); }
.sheet { border: 3px solid var(--ink); border-radius: 6px; padding: clamp(20px, 4vw, 36px); background: var(--paper); box-shadow: -10px 10px 0 var(--blue); display: grid; gap: 14px; }
.sheet h2 { margin: 0; }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; gap: 12px !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 10px; }
.steps li::before { content: counter(s); font: 400 1.4rem/1.2 var(--f-display); color: var(--red); }

/* sitemap */
.tree, .tree ul { list-style: none; padding-left: 0 !important; display: grid; gap: 6px; }
.tree > li { padding-block: 10px; border-bottom: 1.5px dotted var(--muted); }
.tree > li > a { font: 400 1.15rem/1.2 var(--f-display); color: var(--blue); text-decoration: none; }
.tree ul { margin-top: 8px !important; padding-left: 18px !important; border-left: 2px solid var(--line, var(--paper-2)); }
.tree ul a { text-decoration: none; }
.tree a:hover { color: var(--red); }

/* footer columns */
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-block: 8px 18px; }
footer h3 { font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
footer a { text-decoration: none; color: var(--paper); }
footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .vcard, .tile { transition: none; }
}

/* ---------- вариант /3: «Только что в Телеграме» — лента, как чек из процессора после обследования ---------- */
:root { --thermal: #fbfbf6; }
.fresh { background: var(--paper); border-bottom: 3px solid var(--ink); padding-block: clamp(48px, 7vw, 88px); }
.fresh .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.fresh-intro { display: grid; gap: 16px; justify-items: start; }
.fresh-intro h2 { font: 400 clamp(2rem, 5vw, 3.6rem)/1.02 var(--f-display); color: var(--blue); }
.fresh-intro p { max-width: 32rem; }
.fresh .note, .feed-note { font: 400 .74rem/1.4 var(--f-mono); color: var(--muted); }
.live { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 0; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.printer { filter: drop-shadow(8px 8px 0 color-mix(in srgb, var(--blue) 30%, transparent)); }
.printer .slot {
  position: relative; z-index: 2; height: 30px; border-radius: 12px 12px 4px 4px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; padding-inline: 16px;
  font: 600 .62rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
}
.printer .slot i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
.tape {
  margin: -4px 16px 0; padding: 26px 22px 34px; background: var(--thermal); color: var(--ink);
  font: 400 .88rem/1.55 var(--f-mono); transform: rotate(.6deg); transform-origin: top center;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
  animation: print 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes print { from { transform: translateY(-36px) rotate(0deg); } to { transform: translateY(0) rotate(.6deg); } }
.tape-head, .tape-foot { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--muted); }
.tape-head { padding-bottom: 12px; border-bottom: 1.5px dashed var(--muted); }
.tape-foot { padding-top: 14px; }
.tape-item { display: grid; gap: 6px; padding-block: 14px; border-bottom: 1.5px dashed var(--muted); }
.tape-item time { font-weight: 600; color: var(--red); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.tape-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .74rem; }
.tape-links a { color: var(--blue); }
@media (max-width: 860px) { .fresh .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- вариант /4: превью соцсетей в блоке «Где смотреть» — экран телефона выезжает справа ---------- */
.rx.with-feeds { max-width: 760px; position: relative; }
.feed-hint { font-size: 1.5rem; line-height: 1.1; color: var(--red); transform: rotate(-2deg); transform-origin: left; }
.rx-list li { position: relative; }
.peek {
  display: none; margin: -6px 0 12px 3.2rem; cursor: pointer; background: var(--paper); color: var(--blue);
  border: 1.5px dashed var(--blue); border-radius: 999px; padding: 6px 12px; font: 600 .68rem/1 var(--f-mono);
  letter-spacing: .06em; text-transform: uppercase;
}
.peek[aria-expanded="true"] { background: var(--blue); color: var(--paper); }
.feed {
  --fb: #ffffff; --ft: #14171c; --fm: #6b7280; --fa: var(--blue); --fl: rgba(0, 0, 0, .08);
  position: relative; width: 320px; max-width: 100%; display: grid; gap: 10px;
  border: 3px solid var(--ink); border-radius: 34px; padding: 22px 12px 14px; background: var(--fb); color: var(--ft);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--ink) 18%, transparent);
  font: 400 .86rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.feed::after { content: ""; position: absolute; top: 8px; left: 50%; width: 64px; height: 6px; border-radius: 6px; background: var(--ink); transform: translateX(-50%); }
.feed a { color: inherit; text-decoration: none; }
.feed-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; border-bottom: 1px solid var(--fl); }
.feed .ava {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--blue); border: 2px solid var(--ink); font: 400 .72rem/1 var(--f-display);
}
.feed .who { display: grid; line-height: 1.2; }
.feed .who small { color: var(--fm); font-size: .74rem; }
.feed-cta { justify-self: stretch; text-align: center; padding: 10px; border-radius: 12px; background: var(--fa); color: #fff !important; font-weight: 600; }
.feed-note { text-align: center; }

.feed-telegram { --fb: #dfe8d6; --fa: #2aabee; --fl: rgba(0, 0, 0, .1); }
.feed-telegram .feed-top { background: #fff; margin: -4px -4px 0; border-radius: 16px; border: 0; }
.chat { display: grid; gap: 8px; }
.bubble { position: relative; justify-self: start; max-width: 92%; background: #fff; border-radius: 14px 14px 14px 4px; padding: 8px 10px 18px; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.bubble a { color: var(--fa); font-size: .78rem; }
.bubble time { position: absolute; right: 10px; bottom: 4px; font-size: .66rem; color: var(--fm); }

.feed-youtube { --fa: #e62117; }
.feed-vk { --fa: #0077ff; --fb: #f5f7fa; }
.feed-rutube { --fb: #14171c; --ft: #eef0f3; --fm: #9aa3ae; --fa: #ff4f66; --fl: rgba(255, 255, 255, .12); }
.vids { display: grid; gap: 10px; }
.vid { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; align-items: start; }
.vid .th {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: var(--red); padding: 6px;
}
.vid:nth-child(2) .th { background: var(--blue); }
.vid:nth-child(3) .th { background: var(--ink); }
.vid .th b { font: 400 .72rem/1.05 var(--f-display); color: var(--paper); text-align: center; }
.vid .th i { position: absolute; right: 4px; bottom: 4px; font-style: normal; font-size: .62rem; background: rgba(0, 0, 0, .75); color: #fff; padding: 1px 4px; border-radius: 4px; }
.vid .vt { display: grid; gap: 4px; font-weight: 600; font-size: .8rem; }
.vid .vt small { font-weight: 400; color: var(--fm); }
.feed-vk .vid .th, .feed-vk .feed-cta { border-radius: 8px; }

.feed-instagram { --fa: #d62976; }
.feed-instagram .ava { border: 0; box-shadow: 0 0 0 2px var(--fb), 0 0 0 4px #d62976; background: var(--paper); }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.reel { aspect-ratio: 3 / 4; display: grid; place-items: center; padding: 6px; background: var(--red); }
.reel:nth-child(3n+2) { background: var(--blue); }
.reel:nth-child(3n) { background: var(--ink); }
.reel span { font: 400 .62rem/1.05 var(--f-display); color: var(--paper); text-align: center; }

/* мышь и широкий экран: экран выезжает справа от рецепта при наведении или фокусе */
@media (hover: hover) and (min-width: 1120px) {
  .feed {
    position: absolute; left: calc(100% + 64px); top: 50%; z-index: 6;
    opacity: 0; visibility: hidden; transform: translate(-12px, -42%) rotate(1.5deg);
    transition: opacity .18s ease, transform .22s ease, visibility .18s;
  }
  .feed::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 72px; }
  .rx-list li:hover .feed, .rx-list li:focus-within .feed { opacity: 1; visibility: visible; transform: translate(0, -42%) rotate(1.5deg); }
}
/* телефон и планшет: превью открывается кнопкой под строкой */
@media not all and (hover: hover) and (min-width: 1120px) {
  .peek { display: inline-flex; }
  .feed { display: none; margin: 0 0 16px 3.2rem; width: min(320px, calc(100% - 3.2rem)); }
  .rx-list li.open .feed { display: grid; }
  .feed-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tape, .live, .printer .slot i { animation: none; }
  .feed { transition: none; }
}
/* стиль строк рецепта (.rx-list a) не должен действовать на ссылки внутри превью */
.rx-list .feed a { display: inline; grid-template-columns: none; padding: 0; border-bottom: 0; background: none; }
.rx-list .feed a:hover { background: none; }
.rx-list .feed .vid { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; align-items: start; }
.rx-list .feed .reel { display: grid; padding: 6px; }
.rx-list .feed .feed-cta { display: block; padding: 10px; }
.rx-list .feed .feed-cta { background: var(--fa); color: #fff; border-radius: 12px; text-align: center; font-weight: 600; }
@media (hover: hover) and (min-width: 1120px) {
  .feed { top: -40px; transform: translateX(-12px) rotate(1.5deg); }
  .rx-list li:nth-child(n+3) .feed { top: auto; bottom: -40px; }
  .rx-list li:hover .feed, .rx-list li:focus-within .feed { transform: translateX(0) rotate(1.5deg); }
}
.rx-list .feed .reel { background: var(--red); }
.rx-list .feed .reel:nth-child(3n+2) { background: var(--blue); }
.rx-list .feed .reel:nth-child(3n) { background: var(--ink); }

/* ---------- вариант /5: видео-кружок автора в шапке раздела (как видеосообщение в Телеграме и поле зрения эндоскопа) ---------- */
.page-head.has-krug .wrap { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.page-head.has-krug .wrap > :not(.krug) { grid-column: 1; }
.krug {
  grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0;
  width: clamp(180px, 21vw, 250px); display: grid; gap: 10px; justify-items: center; text-align: center;
}
.krug-btn {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 100%; padding: 0; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--paper-2);
}
.krug-btn:focus-visible { outline-offset: 10px; border-radius: 50%; }
.krug-face { position: absolute; inset: 6px; border-radius: 50%; overflow: hidden; background: var(--paper-2); animation: breathe 4s ease-in-out infinite alternate; }
.krug-face .tone, .krug-face .tone2 {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--blue) 2.1px, transparent 2.6px); background-size: 8px 8px;
  -webkit-mask-image: radial-gradient(ellipse 22% 21% at 50% 40%, #000 97%, transparent 100%), radial-gradient(ellipse 46% 30% at 50% 100%, #000 97%, transparent 100%);
          mask-image: radial-gradient(ellipse 22% 21% at 50% 40%, #000 97%, transparent 100%), radial-gradient(ellipse 46% 30% at 50% 100%, #000 97%, transparent 100%);
}
.krug-face .tone2 { background-image: radial-gradient(circle, var(--red) 2.1px, transparent 2.6px); transform: translate(5px, 3px); mix-blend-mode: multiply; opacity: .8; }
@keyframes breathe { to { transform: scale(1.035); } }
.krug.playing .krug-face .tone2 { animation: jitter .45s steps(2) infinite; }
@keyframes jitter { 50% { transform: translate(3px, 5px); } }
.krug-ring { position: absolute; left: -12px; top: -12px; width: calc(100% + 24px); height: calc(100% + 24px); pointer-events: none; overflow: visible; }
.krug-ring circle { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 302; stroke-dashoffset: 302; transform: rotate(-90deg); transform-origin: 50% 50%; }
.krug-play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .15s;
}
.krug-play::after { content: ""; position: absolute; left: 21px; top: 15px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--ink); }
.krug-btn:hover .krug-play { transform: scale(1.07); }
.krug.playing .krug-play { opacity: 0; }
.krug-dur {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); background: var(--ink); color: var(--paper);
  font: 600 .68rem/1 var(--f-mono); padding: 5px 8px; border-radius: 999px;
}
.krug figcaption { font-size: 1.3rem; line-height: 1.1; transform: rotate(-3deg); }
.krug-sub { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--paper); font: 500 .82rem/1.45 var(--f-body); }
.krug-sub:empty { display: none; }
.krug-end { display: grid; gap: 8px; justify-items: center; }
.krug-end[hidden] { display: none; }
.krug-end .label { color: var(--blue); }
.krug-ctas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.krug-again { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--blue); font: 600 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: underline; }
.krug-text { width: 100%; text-align: left; }
.krug-text summary { cursor: pointer; font: 600 .7rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); text-align: center; }
.krug-text p { margin-top: 8px; font-size: .86rem; line-height: 1.5; }
.krug-note { font: 400 .66rem/1.4 var(--f-mono); color: var(--muted); }
@media (max-width: 760px) {
  .page-head.has-krug .wrap { grid-template-columns: minmax(0, 1fr); }
  .krug { grid-column: 1; grid-row: auto; width: 180px; justify-self: start; justify-items: start; text-align: left; margin-top: 8px; }
  .krug-end, .krug-ctas { justify-items: start; justify-content: flex-start; }
  .krug-text summary { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .krug-face, .krug.playing .krug-face .tone2 { animation: none; }
}
/* кружок: на 30% меньше, кнопка и время масштабируются вместе с кругом; субтитры видны только экранному диктору */
.krug { width: clamp(126px, 14.7vw, 175px); }
.krug-play { width: 32%; height: 32%; margin: 0; transform: translate(-50%, -50%); border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.krug-play::after { left: 34%; top: 26%; width: 40%; height: 48%; border: 0; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.krug-btn:hover .krug-play { transform: translate(-50%, -50%) scale(1.07); }
.krug-dur { font-size: .6rem; padding: 4px 6px; bottom: 7%; }
.krug figcaption { font-size: 1.12rem; }
.krug-sub { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .krug { width: 126px; } }

/* кружок на главной: между заголовком и эндоскопом, как видеосообщение в Телеграме */
.krug.krug-home { position: absolute; left: 44%; top: 38px; z-index: 3; width: clamp(90px, 10vw, 140px); display: block; }
.krug-home .krug-btn { box-shadow: 4px 4px 0 var(--blue); }
.krug-home .krug-end {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: 230px; z-index: 4;
  padding: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
}
@media (max-width: 760px) {
  .krug.krug-home { left: auto; right: 0; top: 0; width: 84px; }
  .hero .wrap:has(.krug-home) .who { padding-right: 96px; }
  .krug-home .krug-end { left: auto; right: 0; transform: none; }
}
/* по рисунку владельца: верх кружка на уровне строки «Сергей Юдин», низ — на уровне «вижу желудок» */
.krug.krug-home { top: 0; width: clamp(90px, 11.4vw, 150px); }
@media (max-width: 760px) { .krug.krug-home { width: 84px; } }
.krug-close { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; border: 0; background: none; cursor: pointer; font: 400 1.3rem/1 var(--f-body); color: var(--ink); }
.krug-home .krug-end .label { padding-right: 18px; }
@media (max-width: 760px) { .krug.krug-home { right: 14px; } }
