/* Игла и напёрсток — workroom ticket. Demo by NXAI.
   Ink on tracing paper, thread-red marks, tape-yellow measures. */

:root {
  --paper: #F2EFE8;
  --paper-2: #FAF8F3;
  --paper-3: #E8E3D7;
  --paper-4: #DCD5C5;
  --ink: #1C2541;
  --ink-2: #2D3859;
  --thread: #B5392C;
  --thread-d: #952C21;
  --tape: #EEC643;
  --tape-d: #D8AC2A;
  --chalk: #5C6475;
  --river: #CBD3DD;
  --line: rgba(28, 37, 65, .13);
  --line-2: rgba(28, 37, 65, .3);

  --f-display: "Old Standard TT", "Times New Roman", Georgia, serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  --t-2xl: clamp(2.2rem, 1.4rem + 3.2vw, 3.9rem);
  --t-3xl: clamp(2.5rem, 1rem + 4.7vw, 5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --paper-shadow: drop-shadow(0 1px 0 rgba(28, 37, 65, .08)) drop-shadow(0 22px 26px rgba(28, 37, 65, .16));
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
h1, h2, h3, p, li, figcaption, blockquote, td, th { overflow-wrap: break-word; }
/* only long words get hyphenated, and only in headings: body copy stays clean */
@media (max-width: 520px) {
  .sec__title, .step__title, .panel__title, .doc h1, .doc h2 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--tape); color: var(--ink); }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; border-radius: 2px; }
.skip:focus { top: 52px; }
html:not(.js) .js-only { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.45em; border: 1.5px solid transparent; border-radius: 2px;
  font: 500 var(--t-sm)/1.1 var(--f-body); letter-spacing: .02em; text-decoration: none; text-align: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn--thread { background: var(--thread); color: #fff; }
.btn--thread::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(255, 255, 255, .55); border-radius: 1px; pointer-events: none; }
.btn--thread:hover { background: var(--thread-d); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: .6em 1.1em; }
.btn--wide { width: 100%; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fig { font: italic 400 1em/1 var(--f-display); color: var(--thread); margin-right: .55em; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 5; }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__thimble { fill: var(--ink); }
.brand__dots { fill: var(--paper); }
.brand__thread { fill: none; stroke: var(--thread); stroke-width: 2.2; stroke-linecap: round; }
.brand__needle { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.brand__eye { fill: var(--paper); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 400 1.32rem/1.05 var(--f-display); white-space: nowrap; }
.brand__name i { color: var(--thread); }
.brand__sub { font: 400 .68rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--chalk); white-space: nowrap; }
.top__nav { display: none; gap: 26px; }
.top__nav a, .top__phone { font-size: var(--t-sm); text-decoration: none; position: relative; padding: 6px 0; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--thread) 0 5px, transparent 5px 8px); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top__nav a:hover::after, .top__nav a:focus-visible::after { transform: scaleX(1); }
.top__phone { display: none; font-family: var(--f-mono); }
@media (max-width: 400px) { .top__in { gap: 12px; } .brand__sub { display: none; } .top .btn--sm { padding-inline: .8em; font-size: .8rem; white-space: nowrap; } .brand__name { font-size: 1.15rem; } .brand__mark { width: 34px; height: 34px; } }
@media (min-width: 1000px) { .top__nav { display: flex; } .top__phone { display: inline-block; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 92px) 0 clamp(56px, 7vw, 110px); isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(28, 37, 65, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 37, 65, .075) 1px, transparent 1px),
    linear-gradient(rgba(28, 37, 65, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 37, 65, .035) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 88px); } }
.nw { white-space: nowrap; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chalk); }
.hero__kicker span + span::before { content: "·"; margin-right: 18px; color: var(--thread); }
.hero__title { font: 400 var(--t-3xl)/1.02 var(--f-display); letter-spacing: -.018em; margin: .38em 0 .55em; text-wrap: balance; }
.hero__title em {
  font-style: italic; display: inline-block; white-space: nowrap;
  background-image: repeating-linear-gradient(90deg, var(--thread) 0 12px, transparent 12px 19px);
  background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 94%;
  transition: background-size 1.1s var(--ease) .95s;
}
.ml-ready .hero__title em:not(.is-in) { background-size: 0 3px; }
.hero__sub { display: grid; gap: 26px; max-width: 560px; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.status { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--t-sm)/1.3 var(--f-mono); color: var(--ink); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chalk); flex: none; position: relative; }
.status.is-open .status__dot { background: #3E8E5A; box-shadow: 0 0 0 0 rgba(62, 142, 90, .5); animation: pulse 2.4s ease-out infinite; }
.status.is-closed .status__dot { background: var(--thread); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 142, 90, .45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(62, 142, 90, 0); } }

/* hero ticket */
.hero__ticket { position: relative; margin: 0 auto; width: min(100%, 420px); padding: 26px 0 0; }
@media (max-width: 519px) {
  .hero__ticket { width: 92%; }
  .tape--mini { width: 108%; margin-left: -4%; }
  .hero__ticket .ticket { padding-inline: 20px; }
  .hero__ticket .ticket__head b { font-size: .95rem; letter-spacing: .03em; }
}
.hero__ticket .ticket-wrap { transform: rotate(-3.2deg); }
.ml-ready .hero__ticket[data-reveal]:not(.is-in) { transform: translate3d(0, 46px, 0) rotate(-6deg); }
.pin { position: absolute; z-index: 3; top: -6px; left: 50%; width: 30px; height: 48px; transform: translateX(-50%) rotate(8deg); filter: drop-shadow(1px 3px 2px rgba(28, 37, 65, .3)); }
.pin__head { fill: var(--thread); }
.pin__needle { stroke: #8A8F9C; stroke-width: 2; stroke-linecap: round; }
.hand-note { position: absolute; left: -18px; top: 178px; transform: translateX(-100%) rotate(-6deg); padding-right: 54px; font: 600 1.65rem/1 var(--f-hand); color: var(--thread); white-space: nowrap; display: none; }
.hand-note svg { position: absolute; right: 0; top: 2px; width: 50px; height: 34px; fill: none; stroke: var(--thread); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tape--mini { width: 112%; margin: -6px 0 0 -6%; transform: rotate(1.6deg); height: 30px; position: relative; z-index: -1; }
@media (min-width: 1180px) { .hand-note { display: block; } }

/* ---------- ticket (shared) ---------- */
.ticket-wrap { filter: var(--paper-shadow); }
.ticket {
  position: relative; background-color: var(--paper-2);
  background-image: radial-gradient(rgba(28, 37, 65, .045) 1px, transparent 1.2px);
  background-size: 4px 4px;
  padding: 30px 26px 26px; font: 400 .9rem/1.5 var(--f-mono); color: var(--ink);
  -webkit-mask: radial-gradient(circle 5px at 8px 0, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
  mask: radial-gradient(circle 5px at 8px 0, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
}
.ticket::after { content: ""; position: absolute; inset: 14px 10px 10px; border: 1px dashed rgba(28, 37, 65, .2); pointer-events: none; }
.ticket--hero { padding-bottom: 62px; font-size: .94rem; }
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.ticket__head b { font: 700 1.05rem/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.ticket__head span { font-weight: 500; color: var(--thread); white-space: nowrap; }
.ticket__meta { font-size: .72rem; letter-spacing: .04em; color: var(--chalk); margin: 8px 0 14px; }
.ticket__item { font: italic 400 1.2rem/1.2 var(--f-display); margin: 14px 0 6px; }
.ticket__item:first-of-type { margin-top: 0; }
.ticket__lines { list-style: none; margin: 0; padding: 0; }
.tl { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.tl__n { width: 18px; height: 18px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--thread); color: #fff; font-size: .68rem; font-weight: 500; transform: translateY(-1px); }
.tl__name { min-width: 0; }
.tl__lead { flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted rgba(28, 37, 65, .4); transform: translateY(-5px); }
.tl__price { white-space: nowrap; font-weight: 500; }
.tl--total { margin-top: 12px; padding-top: 10px; border-top: 1.5px solid var(--ink); font-size: 1.02rem; }
.tl--total .tl__name { font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.tl--total .tl__price { font-size: 1.15rem; }
.tl--express { color: var(--thread); }
.ticket__ready { margin-top: 12px; padding: 8px 10px; background: rgba(238, 198, 67, .35); font-weight: 500; }
.ticket__foot { margin-top: 10px; font-size: .74rem; color: var(--chalk); }
.stamp {
  position: absolute; right: 22px; bottom: 18px; padding: 5px 10px 4px; border: 2px solid var(--thread); border-radius: 3px;
  color: var(--thread); font: 600 .8rem/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase;
  transform: rotate(-13deg); opacity: .82; mix-blend-mode: multiply;
}
.ml-ready .hero__ticket .tl, .ml-ready .hero__ticket .ticket__ready { opacity: 0; }
.ml-ready .hero__ticket.is-in .tl, .ml-ready .hero__ticket.is-in .ticket__ready { animation: print .5s var(--ease) forwards; animation-delay: calc(.75s + var(--i, 0) * .2s); }
.ml-ready .hero__ticket .stamp { opacity: 0; }
.ml-ready .hero__ticket.is-in .stamp { animation: stamp .38s cubic-bezier(.3, 1.6, .5, 1) 1.75s forwards; }
@keyframes print { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-13deg) scale(1.8); } to { opacity: .82; transform: rotate(-13deg) scale(1); } }

/* ---------- photo wipe ----------
   A paper cover slides off the photo. Used instead of motion-lite's clip reveal: Chrome's
   IntersectionObserver counts the target's own clip-path, so a fully clipped figure below the
   fold never reports an intersection and its lazy image never loads. */
.ml-ready [data-reveal="wipe"] { opacity: 1 !important; transform: none !important; }
.ml-ready [data-reveal="wipe"]::after { content: ""; position: absolute; inset: -1px; z-index: 2; background: var(--paper); transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); pointer-events: none; }
.ml-ready [data-reveal="wipe"].is-in::after { transform: scaleY(0); }

/* ---------- tape measure ---------- */
.tape { position: relative; height: 36px; overflow: hidden; background: linear-gradient(180deg, #F3D35E, var(--tape) 40%, var(--tape-d)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .14); }
.tape__track {
  position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 240px);
  background-image:
    linear-gradient(90deg, var(--ink) 1.2px, transparent 1.2px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 37, 65, .75) 1px, transparent 1px);
  background-size: 40px 15px, 20px 10px, 4px 6px;
  background-repeat: repeat-x; background-position: 0 0;
  will-change: transform;
}
.tape__n { position: absolute; top: 15px; font: 500 10.5px/1 var(--f-mono); color: var(--ink); transform: translateX(3px); }
.tape__n--ten { background: var(--thread); color: #fff; padding: 2px 3px; top: 14px; }
.tape--mini .tape__n { top: 12px; font-size: 9.5px; }

/* ---------- stats ---------- */
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; }
.stat { display: grid; grid-template-columns: minmax(118px, auto) 1fr; gap: 18px; align-items: baseline; padding: 22px 0; }
.stat + .stat { border-top: 1.5px dashed var(--line-2); }
.stat__num { font: 400 clamp(2.3rem, 1.6rem + 2.6vw, 3.8rem)/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.stat__num small { font-size: .45em; font-style: italic; color: var(--chalk); letter-spacing: 0; }
.stat__label { font-size: var(--t-sm); color: var(--chalk); max-width: 30ch; }
@media (min-width: 820px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { grid-template-columns: 1fr; gap: 10px; padding: 34px 32px 36px; }
  .stat:first-child { padding-left: 0; }
  .stat + .stat { border-top: 0; border-left: 1.5px dashed var(--line-2); }
}

/* ---------- photo band ---------- */
.band { margin: 0; }
.band__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.band__media img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; object-position: 50% 40%; }
.band__cap { padding-block: 16px 34px; font-size: var(--t-sm); color: var(--chalk); max-width: calc(var(--max)); }
@media (min-width: 700px) { .band__media { aspect-ratio: 16 / 7; max-height: 82vh; } .band__media img { top: -8%; height: 116%; } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4.5vw, 60px); }
.sec__no { font: italic 400 var(--t-lg)/1 var(--f-display); color: var(--thread); }
.sec__title { font: 400 var(--t-2xl)/1.02 var(--f-display); letter-spacing: -.012em; text-wrap: balance; }
.sec__title em { font-style: italic; color: var(--thread); }
.sec__lead { color: var(--chalk); max-width: 50ch; }
@media (min-width: 900px) {
  .sec__head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-rows: auto auto; column-gap: 56px; align-items: end; }
  .sec__head .sec__no { grid-column: 1; }
  .sec__head .sec__title { grid-column: 1; }
  .sec__head .sec__lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; padding-bottom: .5em; }
}

/* ---------- § 1 price ---------- */
.price__bar { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: flex-end; border-bottom: 1.5px solid var(--ink); margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1.5px; max-width: 100%; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; min-height: 50px; padding: 10px 16px 12px; border: 1.5px solid transparent; border-bottom: 0; background: transparent;
  font: 400 1.12rem/1.1 var(--f-display); color: var(--chalk); border-radius: 3px 3px 0 0; position: relative;
  transition: color .2s, background-color .2s;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--paper-2); border-color: var(--ink); border-bottom: 1.5px solid var(--paper-2); }
.tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 12px; right: 12px; top: 6px; height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 5px, transparent 5px 8px); }
@media (max-width: 759px) {
  .search { order: -1; width: 100% !important; margin-bottom: 4px !important; }
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .hero__kicker { flex-direction: column; gap: 2px; }
  .hero__kicker span + span::before { display: none; }
}
.search { display: flex; align-items: center; gap: 8px; min-height: 48px; width: min(100%, 320px); margin-bottom: 6px; padding: 0 4px; border: 1.5px solid var(--line-2); border-radius: 2px; background: var(--paper-2); }
.search:focus-within { border-color: var(--ink); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--chalk); stroke-width: 1.8; stroke-linecap: round; margin-left: 8px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 8px 12px 0; font: 400 1rem var(--f-mono); outline: none; }
.search input::placeholder { color: var(--chalk); opacity: .8; }
.search:has(input:focus-visible) { outline: 2px solid var(--thread); outline-offset: 2px; }

.panels { position: relative; }
.panel { display: grid; gap: 32px; padding: 24px 0 8px; }
.panel + .panel { border-top: 1px dashed var(--line-2); }
.js .panels.is-tabbed .panel + .panel { border-top: 0; }
.panel[hidden] { display: none; }
.panel__title { font: italic 400 var(--t-xl)/1.1 var(--f-display); margin-bottom: 10px; }
.panels.is-tabbed .panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: auto minmax(18px, 1fr) auto; grid-template-areas: "name name name" "days lead price";
  align-items: baseline; gap: 4px 12px; padding: 14px 6px; border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.row:hover { background: linear-gradient(90deg, rgba(238, 198, 67, .22), rgba(238, 198, 67, 0) 80%); }
.row[hidden] { display: none; }
.row__name { grid-area: name; font-weight: 500; }
.row__name small { display: block; font-weight: 400; font-size: var(--t-sm); color: var(--chalk); margin-top: 1px; }
.row__lead { grid-area: lead; align-self: end; height: 0; border-bottom: 2px dotted var(--line-2); transform: translateY(-.42em); }
.row__days { grid-area: days; font: 400 var(--t-sm)/1.2 var(--f-mono); color: var(--chalk); white-space: nowrap; }
.row__price { grid-area: price; font: 500 1rem/1.2 var(--f-mono); white-space: nowrap; text-align: right; }
.row mark { background: var(--tape); color: inherit; padding: 0 1px; }
@media (min-width: 640px) {
  .row { grid-template-columns: minmax(0, max-content) minmax(24px, 1fr) 7.5ch 10.5ch; grid-template-areas: "name lead days price"; gap: 0 14px; }
  .row__lead { align-self: baseline; height: auto; transform: translateY(-.32em); }
  .row__name small { display: inline; margin-left: .6em; }
  .row__name small::before { content: "— "; }
}
.calc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px; font-weight: 500; color: var(--thread); text-decoration: none; border-bottom: 1.5px dashed currentColor; }
.calc-link:hover { color: var(--thread-d); }
.calc-link span { transition: transform .25s var(--ease); }
.calc-link:hover span { transform: translateX(4px); }
.panel__fig { margin: 0; align-self: start; position: relative; }
.panel__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-3); }
.panel__fig figcaption { font-size: var(--t-sm); color: var(--chalk); margin-top: 10px; }
.panels.is-searching .panel__fig, .panels.is-searching .calc-link { display: none; }
.search-empty { padding: 32px 0; display: grid; gap: 16px; justify-items: start; color: var(--chalk); }
.search-empty[hidden] { display: none; }
@media (min-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 56px; padding-top: 28px; }
  .panel__fig { position: sticky; top: 24px; }
  .panel__fig img { aspect-ratio: 4 / 5; }
  .panels.is-searching .panel { grid-template-columns: 1fr; }
}

/* ---------- § 2 living receipt ---------- */
.calc { background: var(--paper-3); position: relative; }
.calc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--thread) 0 10px, transparent 10px 16px); opacity: .7; }
.calc__grid { display: grid; gap: 36px; align-items: start; }
.board {
  position: relative; padding: 16px; border-radius: 4px; background-color: var(--paper-2);
  background-image: linear-gradient(rgba(28, 37, 65, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 37, 65, .05) 1px, transparent 1px);
  background-size: 20px 20px; box-shadow: 0 1px 0 rgba(28, 37, 65, .06), 0 20px 50px -30px rgba(28, 37, 65, .4);
}
.board::after { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(28, 37, 65, .18); border-radius: 2px; pointer-events: none; }
.gtabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; z-index: 1; }
.gtab {
  display: grid; justify-items: center; gap: 4px; min-height: 68px; padding: 8px 4px; border: 1.5px solid var(--line-2); border-radius: 2px;
  background: var(--paper); font: 500 .8rem/1.1 var(--f-body); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s;
}
.gtab svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.gtab:hover { border-color: var(--ink); }
.gtab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gtab { position: relative; }
.gtab[data-count]:not([data-count="0"])::after { content: attr(data-count); position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--thread); color: #fff; font: 500 .68rem/18px var(--f-mono); text-align: center; }
.board__body { display: grid; gap: 8px; margin-top: 10px; position: relative; z-index: 1; }
.board__draw { position: relative; display: grid; place-items: center; padding: 8px 0; }
.garment { width: 100%; max-width: 300px; height: auto; display: none; overflow: visible; }
.garment.is-active { display: block; animation: lay .5s var(--ease); }
@keyframes lay { from { opacity: 0; transform: translateY(10px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
html:not(.js) .garment[data-g="pants"] { display: block; }
.g-body path { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.g-detail { fill: none; stroke: var(--ink); stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; }
.g-detail circle, .g-detail rect { fill: var(--paper); }
.g-stitch { stroke-dasharray: 3 3; opacity: .8; }
.g-crease { stroke-dasharray: 1 5; opacity: .5; }
.g-zip { stroke-dasharray: 1.5 1.5; stroke-width: 3; opacity: .8; }
.g-welt { stroke-width: 2.2; }
.zone { cursor: pointer; }
.zone__hit { fill: transparent; stroke: transparent; pointer-events: all; }
.zone__hit--line { fill: none; stroke-width: 16; stroke-linecap: round; }
.zone__chalk { fill: none; stroke: var(--thread); stroke-width: 2.3; stroke-dasharray: 6 4; stroke-linecap: round; opacity: 0; transition: opacity .25s, stroke .25s; pointer-events: none; }
.zone__chalk--zip { stroke-width: 4.5; stroke-dasharray: 2 2; stroke-linecap: butt; }
.zone__fill { fill: url(#hatch); stroke: var(--thread); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: 0; transition: opacity .25s; pointer-events: none; }
.zone:hover .zone__chalk { opacity: .55; stroke: var(--tape-d); }
.zone:hover .zone__fill { opacity: .25; }
.zone.is-on .zone__chalk { opacity: 1; stroke: var(--thread); animation: march .7s linear; }
.zone.is-on .zone__fill { opacity: .55; }
@keyframes march { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
.mark { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; pointer-events: none; }
.mark circle { fill: var(--thread); stroke: var(--paper-2); stroke-width: 2; }
.mark text { fill: #fff; font: 500 11px var(--f-mono); text-anchor: middle; dominant-baseline: central; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.ops { border: 0; margin: 0; padding: 0; min-width: 0; }
.ops__legend { font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chalk); padding: 0; margin-bottom: 6px; }
.ops__list { display: grid; }
.op { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; padding: 8px 6px; border-bottom: 1px dashed var(--line-2); cursor: pointer; transition: background-color .2s; }
.op:hover { background: rgba(238, 198, 67, .2); }
.op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.op__box { width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 500 .75rem/1 var(--f-mono); color: #fff; background: var(--paper-2); transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
.op.is-on .op__box { background: var(--thread); border-color: var(--thread); transform: scale(1.06); }
.op input:focus-visible + .op__box { outline: 2px solid var(--thread); outline-offset: 3px; }
.op__name { font-weight: 500; line-height: 1.3; }
.op__meta { font: 400 .8rem/1.3 var(--f-mono); color: var(--chalk); text-align: right; white-space: nowrap; }
@media (max-width: 519px) {
  .op { grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "box name" "box meta"; row-gap: 2px; }
  .op__box { grid-area: box; }
  .op__name { grid-area: name; }
  .op__meta { grid-area: meta; text-align: left; }
}
@media (max-width: 719px) { .garment { max-width: 230px; } }
.peek { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px; background: var(--paper-2); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 0 14px 30px -12px rgba(28, 37, 65, .45); font: 500 .88rem/1.25 var(--f-mono); text-decoration: none; transform: translateY(calc(100% + 90px)); transition: transform .35s var(--ease); }
.peek.is-shown { transform: none; }
.peek b { color: var(--thread); font-weight: 600; white-space: nowrap; }
.peek__go { white-space: nowrap; color: var(--thread); }
@media (min-width: 1000px) { .peek { display: none; } }
.ops__hint { font: 500 1.35rem/1.1 var(--f-hand); color: var(--thread); margin-top: 12px; transform: rotate(-2deg); }
@media (min-width: 720px) {
  .board { padding: 22px; }
  .board__body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
  .gtab { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 10px; font-size: .9rem; }
}
.calc__side { display: grid; gap: 18px; }
.ticket--live { min-height: 320px; }
.ticket--live .tl.is-new { animation: print .45s var(--ease); }
.ticket__empty { font: 500 1.45rem/1.15 var(--f-hand); color: var(--chalk); padding: 26px 0 18px; }
.ticket__when { font-size: .74rem; color: var(--chalk); margin-top: 4px; }
.express {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; min-height: 60px; padding: 18px 16px 12px;
  background: linear-gradient(180deg, #F3D35E, var(--tape) 45%, var(--tape-d)); cursor: pointer; color: var(--ink); font-size: var(--t-sm);
}
.express::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background-image: linear-gradient(90deg, var(--ink) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 37, 65, .7) 1px, transparent 1px); background-size: 40px 7px, 4px 4px; background-repeat: repeat-x; opacity: .7; }
.express input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.express__ui { width: 46px; height: 26px; border-radius: 13px; background: rgba(28, 37, 65, .25); position: relative; transition: background-color .25s; }
.express__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.express input:checked + .express__ui { background: var(--thread); }
.express input:checked + .express__ui::after { transform: translateX(20px); }
.express input:focus-visible + .express__ui { outline: 2px solid var(--ink); outline-offset: 3px; }
.express b { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.send__label { font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chalk); margin-bottom: 10px; }
.send__btns { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.send__btns .btn { padding-inline: .6em; }
.send__note { margin-top: 10px; font-size: var(--t-sm); color: var(--thread); }
@media (min-width: 1000px) {
  .calc__grid { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .85fr); gap: 48px; }
  .calc__side { position: sticky; top: 20px; }
}

/* ---------- § 3 visits ---------- */
.visits__grid { display: grid; gap: 48px; }
.visits__intro { display: grid; gap: 16px; align-content: start; }
.master { margin: 18px 0 0; position: relative; max-width: 440px; }
.master img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-3); }
.master figcaption { margin-top: 12px; font-size: var(--t-sm); color: var(--chalk); max-width: 40ch; }
.master figcaption b { color: var(--ink); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 60px; width: 2px; background: repeating-linear-gradient(180deg, var(--thread) 0 9px, transparent 9px 15px); }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; padding-bottom: 46px; }
.step > :not(.step__num) { grid-column: 2; }
.step__num { grid-row: 1 / span 4; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); font: 400 2rem/1 var(--f-display); position: relative; z-index: 1; }
.step__num--spool { border-style: dashed; border-color: var(--thread); }
.step__num--spool svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.step__num--spool .spool-thread { stroke: var(--thread); stroke-width: 1.4; }
.step__when { font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--thread); padding-top: 6px; }
.step__title { font: 400 var(--t-xl)/1.15 var(--f-display); margin: 8px 0 10px; }
.step p:not(.step__when) { color: var(--ink-2); max-width: 54ch; }
.step--between .step__title { font-style: italic; }
.step__img { margin-top: 18px; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; }
.visits__note { margin-top: 12px; padding: 22px 24px; border: 1.5px dashed var(--line-2); border-radius: 3px; color: var(--ink-2); display: grid; gap: 6px; max-width: 900px; }
.hand { font: 600 1.6rem/1 var(--f-hand); color: var(--thread); }
@media (min-width: 960px) {
  .visits__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
  .visits__intro { position: sticky; top: 24px; align-self: start; }
  .steps { padding-top: 120px; }
  .steps::before { top: 150px; }
  .visits__note { grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-left: auto; }
}

/* ---------- § 4 before / after ---------- */
.ba__grid { display: grid; gap: 32px; align-items: start; }
.ba__switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-2); border-radius: 22px; background: transparent; font-size: var(--t-sm); font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.compare { position: relative; border: 1.5px solid var(--ink); background-color: var(--paper-2);
  background-image: linear-gradient(rgba(28, 37, 65, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 37, 65, .06) 1px, transparent 1px);
  background-size: 24px 24px; display: grid; grid-template-columns: 1fr 1fr; }
.compare[hidden], .compare.is-live[hidden] { display: none; }
.compare__layer { position: relative; }
.compare__layer + .compare__layer { border-left: 1.5px dashed var(--thread); }
.compare__layer svg { width: 100%; height: auto; }
.compare__tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; background: var(--paper); border: 1px solid var(--ink); font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.compare__tag--after { left: auto; right: 12px; background: var(--ink); color: var(--paper); }
.compare__handle, .compare__range { display: none; }
.compare.is-live { display: block; aspect-ratio: 48 / 29; overflow: hidden; --pos: 50%; touch-action: pan-y; }
.compare.is-live .compare__layer { position: absolute; inset: 0; border: 0; }
.compare.is-live .compare__layer svg { height: 100%; }
.compare.is-live .compare__layer--after { clip-path: inset(0 0 0 var(--pos)); background-color: var(--paper-2);
  background-image: linear-gradient(rgba(28, 37, 65, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 37, 65, .06) 1px, transparent 1px); background-size: 24px 24px; background-position: -1.5px -1.5px; }
.compare.is-live .compare__handle { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; border-left: 2px dashed var(--thread); z-index: 3; pointer-events: none; }
.compare__grip { position: absolute; top: 50%; left: 0; width: 48px; height: 48px; margin: -24px 0 0 -25px; border-radius: 50%; background: var(--thread); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(28, 37, 65, .3); }
.compare__grip svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare.is-live .compare__range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; -webkit-appearance: none; appearance: none; }
.compare.is-live:has(.compare__range:focus-visible) { outline: 2px solid var(--thread); outline-offset: 4px; }
.ba-floor { stroke: var(--chalk); stroke-width: 1.5; stroke-dasharray: 2 4; }
.ba-cloth { fill: #39456A; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.ba-fold { fill: none; stroke: rgba(242, 239, 232, .45); stroke-width: 1.4; stroke-linecap: round; }
.ba-crease { fill: none; stroke: rgba(242, 239, 232, .3); stroke-width: 1; stroke-dasharray: 2 5; }
.ba-shoe { fill: #14192B; }
.ba-ghost { fill: none; stroke: var(--chalk); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ba-dim { fill: none; stroke: var(--thread); stroke-width: 1.6; }
.ba-dim--ink { stroke: var(--chalk); }
.ba-arrow { fill: none; stroke: var(--chalk); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ba-hand { font: 600 30px var(--f-hand); fill: var(--chalk); }
.ba-hand, .ba-mono { paint-order: stroke; stroke: var(--paper-2); stroke-width: 5px; stroke-linejoin: round; }
.ba-hand--sm { font-size: 25px; }
.ba-hand--red { fill: var(--thread); }
.ba-mono { font: 500 15px var(--f-mono); fill: var(--ink); letter-spacing: .04em; }
.ba-skin { fill: #F4E9DD; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.ba-shirt { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.ba-btn { fill: #E9E2D2; stroke: var(--ink); stroke-width: 1.2; }
.order { padding: 26px 24px 22px; background: var(--paper-2); border-top: 3px solid var(--ink); }
.order[hidden] { display: none; }
html:not(.js) .order[hidden] { display: block; margin-top: 16px; }
html:not(.js) .compare[hidden] { display: grid; margin-top: 16px; }
.order__no { font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--thread); }
.order__list { margin: 16px 0 0; padding: 0 0 0 1.3em; display: grid; gap: 12px; }
.order__list li::marker { font-family: var(--f-display); font-style: italic; color: var(--thread); }
.order__list b { font-weight: 600; }
.order__sum { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1.5px dashed var(--line-2); font: 500 var(--t-sm) var(--f-mono); }
@media (min-width: 960px) {
  .ba__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 56px; }
  .ba__info { padding-top: 58px; }
}
.reviews { display: grid; gap: 18px; margin-top: clamp(48px, 6vw, 88px); }
.stub {
  margin: 0; position: relative; padding: 24px 22px 22px 34px; background: var(--paper-2);
  -webkit-mask: radial-gradient(circle 4px at 0 8px, transparent 98%, #000) 0 0 / 100% 16px repeat-y;
  mask: radial-gradient(circle 4px at 0 8px, transparent 98%, #000) 0 0 / 100% 16px repeat-y;
}
.stub::before { content: ""; position: absolute; left: 16px; top: 12px; bottom: 12px; border-left: 1.5px dashed var(--line-2); }
.stub__no { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--thread); }
.stub__text { margin: 12px 0 16px; color: var(--ink-2); }
.stub__who { font: 600 1.5rem/1 var(--f-hand); color: var(--ink); }
@media (min-width: 820px) {
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .stub:nth-child(1) { transform: rotate(-.6deg); }
  .stub:nth-child(2) { transform: translateY(18px) rotate(.4deg); }
  .stub:nth-child(3) { transform: rotate(-.3deg); }
  .ml-ready .stub[data-reveal]:not(.is-in) { transform: translate3d(0, 28px, 0); }
}

/* ---------- § 5 photo estimate ---------- */
.photo-est { background: var(--paper-3); }
.photo-est__grid { display: grid; gap: 40px; align-items: start; }
.photo-est__intro { display: grid; gap: 16px; }
.tips__title { margin-top: 18px; font-weight: 600; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tips li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.tips svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tips b { font-weight: 600; }
.form { position: relative; display: grid; gap: 18px; padding: 28px 20px 24px; background: var(--paper-2); box-shadow: 0 30px 60px -40px rgba(28, 37, 65, .5); }
.form::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(181, 57, 44, .35); pointer-events: none; }
.form > * { position: relative; z-index: 1; }
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field__label { font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--chalk); padding: 0; }
.opt { text-transform: none; letter-spacing: 0; opacity: .75; margin-left: 4px; }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 2px;
  transition: border-color .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--thread); outline-offset: 2px; }
.field ::placeholder { color: var(--chalk); opacity: .7; }
.drop { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; border: 1.5px dashed var(--line-2); border-radius: 2px; cursor: pointer; color: var(--ink-2); transition: border-color .2s, background-color .2s; }
.drop:hover { border-color: var(--thread); background: rgba(181, 57, 44, .04); }
.drop svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--thread); stroke-width: 1.6; stroke-linejoin: round; }
.drop__text { font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#f-photo:focus-visible + * , .field:has(#f-photo:focus-visible) .drop { outline: 2px solid var(--thread); outline-offset: 2px; }
.channels__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-2); border-radius: 22px; font-size: var(--t-sm); font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip-radio input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--thread); outline-offset: 2px; }
.consent { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; padding: 4px 0; }
.consent input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.consent__box { width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); display: grid; place-items: center; }
.consent input:checked + .consent__box { background: var(--thread); border-color: var(--thread); }
.consent input:checked + .consent__box::after { content: ""; width: 11px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--thread); outline-offset: 2px; }
.consent a { color: var(--thread); text-underline-offset: 3px; }
.form__note { font-size: .8rem; color: var(--chalk); text-align: center; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form { padding: 36px 34px 30px; } }
@media (min-width: 960px) { .photo-est__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }

/* ---------- § 6 address ---------- */
.where__grid { display: grid; gap: 32px; align-items: start; }
.map { border: 1.5px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.map__svg { width: 100%; height: auto; }
.m-bg { fill: var(--paper-3); }
.m-river { fill: var(--river); }
.m-road { fill: none; stroke: var(--paper-2); stroke-width: 20; }
.m-road-edge { fill: none; stroke: rgba(28, 37, 65, .28); stroke-width: 22.5; }
.m-garden { fill: url(#garden); stroke: var(--chalk); stroke-width: 1; stroke-dasharray: 3 3; }
.m-house { fill: var(--tape); stroke: var(--ink); stroke-width: 1.5; }
.m-label text { font: 500 10.5px var(--f-mono); fill: var(--chalk); letter-spacing: .05em; dominant-baseline: middle; }
.m-label--park { font-style: italic; }
.m-volga { font: italic 400 40px var(--f-display); fill: #8796AA; }
.m-pin__head { fill: var(--thread); }
.m-pin__needle { stroke: #7D8392; stroke-width: 2.4; stroke-linecap: round; }
.m-pin__pulse { fill: none; stroke: var(--thread); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.m-callout rect { fill: var(--ink); }
.m-callout__t { font: 400 16px var(--f-display); fill: var(--paper); }
.m-callout__s { font: 400 10.5px var(--f-mono); fill: var(--tape); letter-spacing: .04em; }
.m-compass circle { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; }
.m-compass path { fill: var(--thread); }
.m-compass text { font: 500 11px var(--f-mono); fill: var(--ink); }
.m-scale path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.m-scale text { font: 500 11px var(--f-mono); fill: var(--ink); }
.where__info { display: grid; gap: 20px; }
.status--big { font-size: 1rem; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 2px; justify-self: start; background: var(--paper-2); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.hours th, .hours td { padding: 12px 4px; border-bottom: 1px dashed var(--line-2); text-align: left; font-weight: 400; }
.hours td { font-family: var(--f-mono); text-align: right; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { background: rgba(238, 198, 67, .38); font-weight: 600; }
.hours tr.is-today th::after { content: " · сегодня"; font: 400 .75rem var(--f-mono); color: var(--thread); }
.where__addr { font: 400 var(--t-xl)/1.25 var(--f-display); }
.where__contact { display: grid; gap: 12px; padding-top: 6px; border-top: 1.5px solid var(--ink); }
.where__phone { font: 500 1.35rem/1.3 var(--f-mono); text-decoration: none; padding-top: 12px; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.where__phone:hover { color: var(--thread); }
.where__ch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.where__ch .btn { padding-inline: .4em; }
.where__pay { font-size: var(--t-sm); color: var(--chalk); }
@media (max-width: 599px) {
  .map { position: relative; aspect-ratio: 1 / 1.08; }
  .map__svg { position: absolute; top: 0; left: -40%; width: 165%; max-width: none; height: auto; }
  .m-label text { font-size: 12.5px; }
  .m-callout__t { font-size: 18px; }
  .m-callout__s { font-size: 11.5px; }
  .m-volga { font-size: 30px; }
}
@media (min-width: 960px) { .where__grid { grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 56px; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(242, 239, 232, .82); padding-bottom: calc(28px + var(--dock-h)); font-size: var(--t-sm); }
.foot a { color: var(--paper); text-underline-offset: 3px; text-decoration-color: rgba(242, 239, 232, .4); }
.foot a:hover { color: var(--tape); }
.foot :focus-visible { outline-color: var(--tape); }
.foot__marquee { --ml-gap: 0px; --ml-speed: 46s; gap: 0; padding: 26px 0; border-bottom: 1px solid rgba(242, 239, 232, .14); font: italic 400 clamp(2rem, 1.4rem + 2.6vw, 3.6rem)/1 var(--f-display); color: var(--paper); white-space: nowrap; overflow: hidden; display: flex; }
.foot__marquee span { padding-right: .9em; }
.foot__marquee span::after { content: "✕"; font: 400 .35em/1 var(--f-mono); color: var(--thread); vertical-align: middle; margin-left: .9em; position: relative; top: -.3em; }
.foot__grid { display: grid; gap: 28px; padding-block: 44px 34px; }
.foot__name { font: 400 1.6rem/1.1 var(--f-display); color: var(--paper); margin-bottom: 8px; }
.foot__name i { color: var(--tape); }
.foot__h { font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tape); margin-bottom: 8px; }
.foot__grid p { line-height: 1.75; }
.foot__bottom { position: relative; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-top: 22px; font-size: .8rem; color: rgba(242, 239, 232, .6); }
.foot__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px dashed rgba(242, 239, 232, .2); }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; } }

/* ---------- mobile dock ---------- */
.dock { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 30px -10px rgba(28, 37, 65, .4); transform: translateY(0); transition: transform .35s var(--ease); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: var(--paper); text-decoration: none; font-size: .9rem; font-weight: 500; }
.dock a + a { border-left: 1px solid rgba(242, 239, 232, .14); }
.dock a:first-child { background: var(--thread); }
.dock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.dock a:focus-visible { outline: 2px solid var(--tape); outline-offset: -4px; }
.dock.is-hidden { transform: translateY(110%); }
@media (max-width: 759px) { :root { --dock-h: 58px; } }
@media (min-width: 760px) { .dock { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .m-pin__pulse { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legal pages ---------- */
.doc { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.doc__in { max-width: 760px; }
.doc__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--thread); text-decoration: none; font-weight: 500; border-bottom: 1.5px dashed currentColor; margin-bottom: 28px; }
.doc__badge { display: inline-block; font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--tape); padding: 4px 10px; margin-bottom: 18px; }
.doc h1 { font: 400 var(--t-2xl)/1.05 var(--f-display); letter-spacing: -.01em; margin-bottom: 18px; text-wrap: balance; }
.doc h2 { font: italic 400 var(--t-xl)/1.2 var(--f-display); margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-2); max-width: 66ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 12px 0 0; }
.doc li::marker { color: var(--thread); }
.doc__meta { font: 400 var(--t-sm) var(--f-mono); color: var(--chalk); }
.doc__note { margin-top: 40px; padding: 18px 20px; border: 1.5px dashed var(--line-2); font-size: var(--t-sm); color: var(--chalk); }
.doc + .foot { padding-bottom: 28px; }
.doc + .foot .foot__bottom::before { display: none; }
