/* Раскладка: тёмная газетная полоса, на которой лежат вырезки из крафта, кости и бумаги, приклеенные скотчем. */
:root {
  --bg: #11120d;          /* smoky black, полоса */
  --bg-2: #1c1b17;        /* полоса чуть светлее */
  --rein: #312e2e;
  --line: #4e4949;
  --text: #fffbf4;        /* floral white */
  --text-muted: #a9a397;
  --floral: #fffbf4;
  --bone: #d8cfbc;
  --kraft: #bf9f74;
  --news: #cacbcd;
  --ink: #11120d;
  --ink-muted: #3d3932;
  --crust: #d08a45;       /* корочка багета, единственный акцент */
  --crust-deep: #9c5f27;
  --ok: #8fa86b;
  --stop: #c8714f;
  --tape: rgba(216, 207, 188, .72);
  --tape-2: rgba(208, 138, 69, .55);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .55' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .16 0 0 0 0 .07 0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='1' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .14 0 0 0 0 .08 0 0 0 -9 6.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--text); font: 400 1.03rem/1.6 var(--body); overflow-wrap: break-word;
  background-color: var(--bg); background-image: var(--noise);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--crust); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.12; }
h2 { font: 900 clamp(1.9rem, 4.6vw, 3rem)/1.05 var(--display); }
h3 { font: 700 1.2rem/1.2 var(--display); }
p, ul, ol { margin: 0; }
main, .masthead, footer { overflow-x: clip; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.kicker { margin-bottom: 4px; font: 700 1.6rem/1.15 var(--hand); color: var(--crust); display: inline-block; transform: rotate(-2deg); }
.muted { color: var(--text-muted); }

/* ---------- Бумага ---------- */
.sheet { position: relative; color: var(--ink); background-color: var(--floral); background-image: var(--noise); }
.sheet.kraft { background-color: var(--kraft); background-image: var(--speck), var(--fibers), var(--noise); }
.sheet.bone { background-color: var(--bone); background-image: var(--fibers), var(--noise); background-blend-mode: multiply; }
.sheet.news { background-color: var(--news); background-image: repeating-linear-gradient(0deg, rgba(17,18,13,.05) 0 1px, transparent 1px 4px), var(--noise); }
.sheet .muted, .sheet small { color: var(--ink-muted); }
.sheet.dogear { --ear: 26px; clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%); }
.sheet.dogear::before { content: ""; position: absolute; top: 0; right: 0; width: var(--ear); height: var(--ear); background: linear-gradient(225deg, transparent 50%, rgba(17,18,13,.25) 50%, var(--bone) 58%); }
.hatch::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 76px; height: 54px; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(-58deg, var(--ink) 0 1.2px, transparent 1.2px 6px);
  clip-path: polygon(14% 100%, 100% 8%, 100% 100%);
}
.ring::before {
  content: ""; position: absolute; width: 110px; height: 110px; right: -24px; top: 30%; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 5px rgba(120, 72, 30, .22), inset 0 0 0 9px rgba(120, 72, 30, .07);
}
.pencil-box { position: absolute; top: 6px; left: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; overflow: visible; }
.sheet[data-torn="b"] > .pencil-box { height: calc(100% - 22px); }
.sheet[data-torn="t"] > .pencil-box { top: 14px; height: calc(100% - 20px); }
.pencil-box path { fill: none; stroke: var(--ink); stroke-width: 1.3; opacity: .55; stroke-linecap: round; }
.scrib { display: block; width: min(260px, 70%); height: 14px; margin-top: 4px; overflow: visible; }
.scrib path { fill: none; stroke: var(--crust); stroke-width: 3; stroke-linecap: round; }

/* ---------- Наклейки, скотч, булавки, скрепки ---------- */
.stick { position: relative; transform: rotate(var(--r, 0deg)); filter: drop-shadow(2px 6px 0 rgba(0,0,0,.5)); min-width: 0; }
.stick > .sheet { padding: 30px 20px 20px; }
.tape {
  --tc: var(--tape);
  position: absolute; z-index: 3; width: 92px; height: 26px; top: -12px; left: calc(50% - 46px);
  transform: rotate(var(--tr, -3deg)); transform-origin: 0% 50%; transform-style: preserve-3d; perspective: 220px;
}
.tape.amber { --tc: var(--tape-2); }
.tape.corner { width: 58px; top: -6px; left: -14px; --tr: -38deg; }
.tape.corner-r { width: 58px; top: -6px; left: auto; right: -14px; --tr: 38deg; transform-origin: 100% 50%; }
.tape i { position: absolute; top: 0; bottom: 0; display: block; background-color: var(--tc); background-image: linear-gradient(100deg, rgba(255,255,255,.2) 0 30%, transparent 48%), var(--noise); }
.tape .tb { left: 0; right: 32%; clip-path: polygon(0 10%, 5% 0, 11% 12%, 100% 0, 100% 100%, 9% 92%, 0 100%, 6% 64%, 0 45%, 6% 26%); }
.tape .tf { left: 67.5%; width: 17%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.6, .45, 1); }
.tape .tf2 { left: 99%; width: 102%; transform-origin: 0 50%; transition: transform .55s cubic-bezier(.3, 1.6, .45, 1), filter .4s; clip-path: polygon(0 0, 100% 6%, 84% 30%, 100% 52%, 86% 74%, 100% 100%, 0 100%); }
.tape::after { content: ""; position: absolute; left: 58%; right: -14%; top: 30%; bottom: -60%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); opacity: 0; transition: opacity .4s; pointer-events: none; transform: translateZ(-1px); }
.tape.corner-r .tb { left: 32%; right: 0; transform: scaleX(-1); }
.tape.corner-r .tf { left: auto; right: 67.5%; transform-origin: 100% 50%; }
.tape.corner-r .tf2 { left: auto; right: 99%; transform-origin: 100% 50%; transform: scaleX(-1); }
.tape.corner-r::after { left: -14%; right: 58%; }
.pin { display: none; position: absolute; z-index: 3; top: -9px; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 14%, var(--crust) 16% 58%, var(--crust-deep) 100%); box-shadow: 1px 3px 2px rgba(0,0,0,.5); }
html.a-pins .tape { display: none; }
html.a-pins .pin { display: block; }
.clip { position: absolute; z-index: 3; top: -24px; left: 10px; width: 18px; height: 44px; }
.clip path { fill: none; stroke: #9a9a9a; stroke-width: 3; stroke-linecap: round; }

/* ---------- Шапка-газета ---------- */
.masthead { padding-block: 18px 0; }
.issue-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; font: .78rem var(--mono); color: var(--text-muted); border-bottom: 1px solid var(--text); padding-bottom: 6px; }
.paper-name { font: 900 clamp(2rem, 7vw, 5rem)/.98 var(--display); text-align: center; padding-block: 16px 4px; letter-spacing: -.01em; }
.paper-tag { text-align: center; font: 500 .95rem var(--mono); color: var(--bone); padding-bottom: 12px; }
.double-rule { border-top: 3px solid var(--text); border-bottom: 1px solid var(--text); height: 7px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 16px; }
.avatar { width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--bone); background-color: var(--kraft); background-image: var(--fibers); color: var(--ink); display: grid; place-items: center; font: 900 1.7rem var(--display); flex: none; position: relative; }
.avatar small { position: absolute; bottom: -8px; right: -16px; font: 700 1rem var(--hand); background: var(--floral); color: var(--ink); padding: 0 6px; transform: rotate(6deg); white-space: nowrap; }
.who b { font: 900 1.6rem/1.1 var(--display); display: block; }
.who span { font: 500 .92rem var(--mono); color: var(--text-muted); }
.contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.contact { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1.5px solid var(--bone); background: transparent; text-decoration: none; font-size: .92rem; cursor: pointer; }
.contact svg { width: 18px; height: 18px; flex: none; }
.contact:hover { background: var(--bone); color: var(--ink); }
.lang { display: inline-flex; border: 1.5px solid var(--bone); }
.lang button { border: 0; background: transparent; padding: 7px 10px; font: 600 .82rem var(--mono); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.ticker { display: flex; flex-wrap: wrap; gap: 6px 22px; border-block: 1px solid var(--text); padding-block: 8px; font-size: .9rem; }
.ticker b { font: 600 .76rem var(--mono); text-transform: uppercase; background: var(--crust); color: var(--ink); padding: 2px 7px; }
.ticker span::before { content: "✶ "; color: var(--crust); }

/* ---------- Меню ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); background-image: var(--noise); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 8px 22px; padding-block: 10px; }
.nav-links { display: flex; gap: 4px 20px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.nav-links a { text-decoration: none; font-weight: 600; white-space: nowrap; padding-block: 4px; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a.on { border-bottom-color: var(--crust); }

/* ---------- Кнопки ---------- */
.btn {
  --fg: var(--text); --bd: var(--bone); --bgc: transparent; --sh: var(--line);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border: 2px solid var(--bd); background: var(--bgc); color: var(--fg); font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--sh); white-space: nowrap; transition: box-shadow .12s, transform .12s;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sh); }
.btn-main { --fg: var(--ink); --bd: var(--ink); --bgc: var(--crust); --sh: var(--bone); }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.sheet .btn, dialog .btn { --fg: var(--ink); --bd: var(--ink); --sh: var(--ink); }
.sheet .btn-main, dialog .btn-main { --bgc: var(--crust); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.bun-legs { position: absolute; left: 50%; bottom: calc(100% - 4px); width: 46px; height: 30px; margin-left: -23px; pointer-events: none; opacity: 0; z-index: 2; }
.bun-legs path, .bun-legs rect, .bun-legs circle { vector-effect: non-scaling-stroke; }
.broken { visibility: hidden; }
.half { position: fixed; z-index: 70; pointer-events: none; margin: 0; }

/* ---------- Первая полоса ---------- */
.hero { padding-block: 40px 36px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.slogan { font: 900 clamp(2.5rem, 6.6vw, 4.6rem)/1 var(--display); }
.slogan em { font-style: italic; color: var(--crust); }
.lead { font-size: 1.15rem; max-width: 52ch; color: var(--bone); }
.lead b { color: var(--text); }
.sign-wrap { justify-self: start; margin-top: 28px; }
.sign { display: inline-grid; gap: 2px; padding: 18px 24px 16px !important; text-align: center; }
.sheet.board { background-color: #1c1b17; background-image: var(--noise); color: var(--text); }
.sign strong { font: 900 1.25rem var(--display); letter-spacing: .1em; }
.sign.open strong { color: #b9e483; }
.sign.full strong { color: #ffa476; }
.sign span { font: 500 .85rem var(--mono); color: var(--bone); }
.sign-frame { position: absolute; inset: 5px; border: 2px solid var(--bone); outline: 1px solid var(--bone); outline-offset: -6px; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.doodle { display: inline-flex; align-items: center; gap: 4px; font: 700 1.35rem var(--hand); color: var(--bone); transform: rotate(-4deg); }
.doodle svg { width: 46px; height: 30px; }
.doodle path { fill: none; stroke: var(--bone); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.photo > .sheet { padding: 24px 14px 12px; }
.photo svg#bun { display: block; width: 100%; height: auto; }
.photo figcaption { font: 700 1.3rem/1.15 var(--hand); margin-top: 8px; }
.params { display: grid; gap: 6px; margin-top: 10px; }
.param { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 3em; align-items: center; gap: 8px; font: .78rem var(--mono); }
.param input { width: 100%; accent-color: var(--crust-deep); }
.param output { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Разделы ---------- */
section.band { padding-block: 60px; border-top: 1px solid var(--line); }
.band-alt { background-color: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 6px; margin-bottom: 34px; align-items: end; }
.sec-head > * { grid-column: 1 / -1; }
.sec-head > h2 { grid-column: 1; grid-row: 2; }
.sec-head .mascot { grid-column: 2; grid-row: 2; justify-self: start; width: clamp(96px, 13vw, 140px); height: auto; overflow: visible; margin-bottom: -4px; }
.sec-head h2 { cursor: default; }
.mascot .ink { stroke: #11120d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.mascot [class^="m-"], .mascot [class*=" m-"] { transform-box: view-box; }
.m-arm-r { transform-origin: 86px 32px; } .m-arm-l { transform-origin: 24px 32px; }
.m-eyes { transform-origin: 54px 30px; transform-box: view-box; } .m-bang { transform-origin: 101px 14px; } .m-whole { transform-origin: 55px 58px; }
.m-o { opacity: 0; } .m-lines { stroke-dasharray: 90; stroke-dashoffset: 0; }
.sec-head p { color: var(--text-muted); max-width: 62ch; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 30px; padding-top: 10px; }
.work > .sheet { padding: 26px 12px 18px; display: grid; gap: 10px; }
.frame { aspect-ratio: 16 / 10; max-width: 100%; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--rein); background-image: var(--noise); color: var(--text); }
.frame .play { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--bone); display: grid; place-items: center; }
.frame .play::after { content: ""; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--bone); margin-left: 4px; }
.frame small { position: absolute; bottom: 8px; left: 10px; right: 10px; font: .75rem var(--mono); color: var(--text-muted) !important; }
.chip { justify-self: start; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border: 1.5px solid var(--ink); }
.chip.wip { background: var(--crust); }
.chip.done { background: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 4px 12px; font: .78rem var(--mono); list-style: none; padding: 0; color: var(--ink-muted); }
.work-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.date { font: .78rem var(--mono); color: var(--ink-muted); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 34px 26px; align-items: start; }
.service > .sheet { display: grid; gap: 12px; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.main-dish { font: 700 1.2rem var(--hand); color: var(--ink); }
.status { font: 600 .72rem var(--mono); text-transform: uppercase; padding: 3px 8px; border: 1.5px solid var(--ink); white-space: nowrap; }
.status.open { background: var(--ok); }
.status.wait { background: var(--news); }
.status.closed { background: var(--stop); }
.sizes { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sizes td { padding: 7px 0; border-bottom: 1.5px dashed rgba(17,18,13,.35); }
.sizes td:last-child { text-align: right; font: 600 1rem var(--mono); }
.note { font-size: .9rem; }
.price-hint { margin-top: 18px; font: 700 1.3rem/1.2 var(--hand); color: var(--bone); max-width: 60ch; }
.base-box { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.base-box h3 { margin-bottom: 10px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 14px; height: 8px; border-left: 3px solid var(--crust-deep); border-bottom: 3px solid var(--crust-deep); transform: rotate(-45deg); }
.vb { margin-top: 14px; padding: 14px 16px; background: var(--ink); color: var(--text); display: grid; gap: 6px; }
.vb b { font-family: var(--display); }
.vb ul { padding-left: 18px; color: var(--bone); font-size: .93rem; }
.vb .muted { color: var(--text-muted); }

.receipt {
  background-color: var(--floral); background-image: var(--noise); color: var(--ink); padding: 20px 20px 26px; font: .88rem/1.5 var(--mono); position: relative; min-width: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px));
}
.receipt h3 { font: 600 .95rem var(--mono); text-transform: uppercase; text-align: center; letter-spacing: .1em; }
.receipt .sub { text-align: center; color: var(--ink-muted); font-size: .76rem; margin-bottom: 10px; }
.line { display: flex; align-items: baseline; gap: 6px; }
.line .name { min-width: 0; }
.line .dots { flex: 1; border-bottom: 1.5px dotted var(--ink-muted); transform: translateY(-4px); min-width: 16px; }
.line .price { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.line small { display: block; color: var(--ink-muted); font-size: .74rem; }
.receipt hr { border: 0; border-top: 1.5px dashed var(--ink); margin: 10px 0; }
.total { font-size: 1.05rem; font-weight: 600; }

.steps { list-style: none; padding: 0; counter-reset: st; display: grid; max-width: 840px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 16px; padding-block: 18px; border-bottom: 1px dashed var(--line); }
.steps li::before { content: counter(st); grid-row: span 2; font: 900 2.3rem/1 var(--display); color: var(--crust); }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--bone); }
.only { font: 700 1.2rem var(--hand); color: var(--crust); margin-left: 8px; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stages span { font: .76rem var(--mono); border: 1px solid var(--bone); padding: 2px 8px; }
.times { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 26px 20px; max-width: 840px; }
.time > .sheet { padding: 26px 16px 14px; }
.time b { font: 900 1.5rem var(--display); display: block; }
.times + p { margin-top: 14px; max-width: 840px; }

.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 34px 26px; align-items: start; }
.card > .sheet { display: grid; gap: 10px; }
.card ul { padding-left: 20px; display: grid; gap: 6px; }
.cando { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 34px 26px; margin-top: 40px; }
.example { font: 700 1.1rem var(--hand); color: var(--ink-muted); }
.terms { margin-top: 56px; }

footer { border-top: 3px double var(--text); padding-block: 26px 44px; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 30px 26px; align-items: start; }
.faq details > summary { cursor: pointer; list-style: none; font: 700 1.08rem/1.3 var(--display); display: flex; justify-content: space-between; gap: 12px; }
.faq details > summary::-webkit-details-marker { display: none; }
.faq details > summary::after { content: "+"; font: 600 1.2rem var(--mono); flex: none; }
.faq details[open] > summary::after { content: "−"; }
.faq details p { margin-top: 10px; }
.faq .sheet.dogear { clip-path: none; } .faq .sheet.dogear::before, .faq .hatch::after { display: none; }
.draft-note { font: 700 1.2rem var(--hand); color: var(--crust); }
.anchor-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; font: .78rem var(--mono); color: var(--text-muted); cursor: pointer; }
.anchor-link:hover { color: var(--crust); }
.anchor-link svg { width: 14px; height: 14px; }
.out { font-size: .9rem; border-top: 1.5px dashed rgba(17,18,13,.35); padding-top: 8px; }
.out b { font-family: var(--display); }
.to-top { position: fixed; z-index: 35; left: max(14px, env(safe-area-inset-left, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); border: 2px solid var(--bone); background: var(--bg); color: var(--text); font: 600 .82rem var(--mono); padding: 9px 12px; cursor: pointer; }
@media (min-width: 861px) { .to-top { display: none !important; } }
.copy-receipt { width: min(100%, 360px); justify-self: stretch; }
.copy-receipt .tag { display: inline-block; font: 600 .76rem var(--mono); background: var(--ink); color: var(--floral); padding: 2px 8px; margin: 6px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; font-size: .92rem; }

/* ---------- Бланк заявки ---------- */
dialog.order { width: min(980px, 100%); max-height: min(92vh, 920px); padding: 0; border: 0; color: var(--ink); background: var(--bone); background-image: var(--fibers), var(--noise); box-shadow: 10px 10px 0 #000; overflow: auto; overscroll-behavior: contain; }
dialog.order::backdrop { background: rgba(0, 0, 0, .7); }
.order-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.order-main { padding: 22px 24px 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.order-side { padding: 22px 18px; min-width: 0; background: rgba(17, 18, 13, .08); border-left: 2px dashed rgba(17,18,13,.4); }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-head h2 { font-size: 1.6rem; }
.x { border: 2px solid var(--ink); background: var(--floral); width: 38px; height: 38px; cursor: pointer; font-size: 1.3rem; line-height: 1; flex: none; }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 6px; background: rgba(17,18,13,.2); }
.progress span.on { background: var(--ink); }
.step-label { font: .8rem var(--mono); color: var(--ink-muted); }
.wait-note, .warn { background: var(--floral); border-left: 4px solid var(--crust-deep); padding: 10px 12px; font-size: .92rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend, .q { font: 700 1.05rem var(--display); margin-bottom: 6px; padding: 0; }
.q { margin-top: 8px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.choice { position: relative; display: grid; gap: 2px; padding: 12px; border: 2px solid var(--ink); background: var(--floral); cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice small { color: var(--ink-muted); font-size: .82rem; }
.choice:has(input:checked) { background: var(--crust); box-shadow: 3px 3px 0 var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.extras { display: grid; gap: 8px; }
.extra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; background: var(--floral); border: 2px solid var(--ink); }
.extra label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-width: 0; }
.extra input[type="checkbox"], .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--crust-deep); flex: none; }
.extra small { display: block; color: var(--ink-muted); font-size: .82rem; }
.extra .p { font: 600 .9rem var(--mono); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); }
.qty button { width: 30px; height: 30px; border: 0; background: var(--bone); cursor: pointer; font-weight: 700; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font: 600 .9rem var(--mono); }
.field { display: grid; gap: 5px; font-weight: 600; font-size: .95rem; min-width: 0; }
.field small { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea, .ref-row input { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--floral); border: 2px solid var(--ink); padding: 10px 12px; }
.refs { display: grid; gap: 8px; }
.ref-row { display: flex; gap: 8px; }
.ref-row button { flex: none; width: 44px; border: 2px solid var(--ink); background: var(--floral); cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.link-btn { justify-self: start; border: 0; background: none; padding: 0; font: 700 1.25rem var(--hand); cursor: pointer; color: var(--crust-deep); text-decoration: underline; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.err { color: #7a2b14; font-weight: 700; font-size: .95rem; }
.err.info { color: var(--ink-muted); font-weight: 500; }
.order-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.done-box { display: grid; gap: 12px; justify-items: start; padding-top: 10px; }
.stamp { font: 900 1.7rem var(--display); color: var(--crust-deep); border: 4px solid var(--crust-deep); padding: 6px 16px; transform: rotate(-6deg); letter-spacing: .08em; }
.summary { display: grid; gap: 6px; font-size: .95rem; margin: 0; }
.summary div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 10px; }
.summary span:first-child { color: var(--ink-muted); }
.order-side .receipt { box-shadow: none; }
.receipt.stub { min-height: 0; height: 22px; padding: 0; clip-path: polygon(0 0, 100% 0, 100% 40%, 95% 100%, 90% 35%, 84% 90%, 78% 30%, 72% 100%, 66% 45%, 60% 95%, 54% 30%, 48% 85%, 42% 40%, 36% 100%, 30% 35%, 24% 90%, 18% 45%, 12% 100%, 6% 40%, 0 85%); }

/* ---------- Ловушка для ботов ---------- */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* ---------- (панель заготовки удалена) ---------- */
.proto-toggle { position: fixed; z-index: 40; right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); border: 2px solid var(--bone); background: var(--bone); color: var(--ink); font: 600 .82rem var(--mono); padding: 9px 12px; cursor: pointer; }
.proto { position: fixed; z-index: 40; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 46px); width: min(340px, calc(100vw - 28px)); max-height: 70vh; overflow: auto; background: var(--floral); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 #000; padding: 14px; display: grid; gap: 12px; font-size: .9rem; }
.proto h3 { font-size: 1rem; }
.proto p { color: var(--ink-muted); font-size: .82rem; }
.proto label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.proto input { accent-color: var(--crust-deep); margin-top: 4px; }
.proto .seg { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Анимации ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.a-peel .stick:not(.photo):hover .tape .tf { transform: rotateY(-62deg); }
  html.a-peel .stick:not(.photo):hover .tape .tf2 { transform: rotateY(-96deg); filter: brightness(.72) saturate(.8); }
  html.a-peel .stick:not(.photo):hover .tape.corner-r .tf { transform: rotateY(62deg); }
  html.a-peel .stick:not(.photo):hover .tape.corner-r .tf2 { transform: scaleX(-1) rotateY(96deg); filter: brightness(.72) saturate(.8); }
  html.a-peel .stick:not(.photo):hover .tape::after { opacity: 1; }
  .mascot.go .m-arm-r.wave { animation: wave .5s ease-in-out infinite alternate; }
  .mascot.go .m-arm-l.wave { animation: wave-l .5s ease-in-out infinite alternate; }
  @keyframes wave { from { transform: rotate(-35deg); } to { transform: rotate(22deg); } }
  @keyframes wave-l { from { transform: rotate(35deg); } to { transform: rotate(-22deg); } }
  .mascot.go .m-whole { animation: bob .5s ease-in-out infinite alternate; }
  @keyframes bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-4px) rotate(2deg); } }
  .mascot.go .m-lines { animation: write 2.2s linear infinite; }
  @keyframes write { from { stroke-dashoffset: 90; } 80%, to { stroke-dashoffset: 0; } }
  .mascot.go .m-pen { animation: scribble .22s ease-in-out infinite alternate; }
  @keyframes scribble { from { transform: translate(-3px, 0); } to { transform: translate(3px, 2px); } }
  .mascot.go .m-k1 { animation: knob 1.1s ease-in-out infinite alternate; }
  .mascot.go .m-k2 { animation: knob 0.8s .2s ease-in-out infinite alternate-reverse; }
  .mascot.go .m-k3 { animation: knob 1.3s .4s ease-in-out infinite alternate; }
  @keyframes knob { from { transform: translateX(-4px); } to { transform: translateX(9px); } }
  .mascot.go .m-arm-r.reach { animation: reach .55s ease-in-out infinite alternate; }
  @keyframes reach { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
  .mascot.go .m-bang { animation: pulse .6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3) rotate(8deg); } }
  .mascot.k-surprise.go .m-eyes { transform: scale(1.35); transition: transform .2s; }
  .mascot.k-surprise.go .m-o { opacity: 1; } .mascot.k-surprise.go .m-mouth { opacity: 0; }
  .mascot.go .m-whole.jump { animation: jump .6s ease-in-out infinite; }
  @keyframes jump { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px) rotate(-3deg); } }
  html.a-pins .stick:hover { animation: sway 1.4s ease-in-out; transform-origin: 50% 0; }
  @keyframes sway { 0%, 100% { transform: rotate(var(--r, 0deg)); } 25% { transform: rotate(calc(var(--r, 0deg) + 2.6deg)); } 60% { transform: rotate(calc(var(--r, 0deg) - 1.6deg)); } }
  html.a-print .receipt.printing { animation: print 1.1s steps(10, end); }
  @keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-16px); } to { clip-path: inset(0 0 0 0); transform: none; } }
  html.a-bun .btn-main:hover .bun-legs { opacity: 1; animation: hop .42s ease-in-out infinite; }
  html.a-bun .btn-main:hover { animation: wobble .42s ease-in-out infinite; }
  @keyframes hop { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-9px) rotate(5deg); } }
  @keyframes wobble { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg) translateY(1px); } }
  .crumb { position: fixed; z-index: 75; width: var(--s); height: var(--s); background: var(--crust); border-radius: 40% 55% 45% 50%; pointer-events: none; box-shadow: inset -1px -1px 0 var(--crust-deep); animation: fall .9s cubic-bezier(.3, .1, .7, 1) forwards; }
  @keyframes fall { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
}

@media (max-width: 860px) {
  .hero-in, .base-box, .order-in { grid-template-columns: minmax(0, 1fr); }
  .order-side { border-left: 0; border-top: 2px dashed rgba(17,18,13,.4); }
  .contacts { margin-left: 0; }
}
@media (max-width: 560px) {
  .nav .btn { padding: 8px 12px; font-size: .88rem; }
  .order-main { padding: 18px 16px; }
  dialog.order { max-height: 100%; height: 100%; max-width: 100%; margin: 0; box-shadow: none; }
  .param { grid-template-columns: 7.6em minmax(0, 1fr) 2.6em; }
  .summary div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- Видео в карточках ---------- */
.play-btn { border: 0; width: 100%; padding: 0; cursor: pointer; font: inherit; }
.play-btn:hover .play { background: var(--crust); }
iframe.frame { border: 0; width: 100%; height: auto; }
