/* =====================================================================
   Clipper · the style
   The corner barbershop: Alfa Slab One on enamel signs, Work Sans for
   reading and Space Mono for tickets and times, on cream with navy ink,
   one pole red and a brass trim.
   Signature pieces: the pole (.pole: a striped glass cylinder that turns),
   the chair board (.seats: each barber's chair as an enamel sign, free,
   busy with minutes left, or on break, with who's waiting), the ticket
   printer (.printer: joining the queue prints a paper ticket that tears
   off) and the price board (.price-board: dotted leaders and times).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red-soft); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 400; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.01em; }
.h2 { font-size: var(--fs-h2); line-height: 1.05; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
/* the lit phrase: pole red with a painted shadow, like sign-writing */
.h1 em, .h2 em { font-style: normal; color: var(--red); text-shadow: 0.04em 0.04em 0 color-mix(in srgb, var(--blue) 35%, transparent); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.tag { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 8px; height: 22px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--pole-a, var(--red)) 0 4px, var(--enamel) 4px 8px, var(--pole-b, var(--blue)) 8px 12px, var(--enamel) 12px 16px); box-shadow: 0 0 0 1px var(--line); }
.tag b { font-weight: 700; color: var(--red); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 600; }
.prose a:hover, .link:hover { color: var(--red-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-s); border: 2px solid transparent; font: 700 16px/1 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast), box-shadow var(--d-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(2px); }
.btn-red { background: var(--red); color: var(--on-red); box-shadow: 0 4px 0 var(--red-2); }
.btn-red:hover { background: var(--red-2); }
.btn-red:active { box-shadow: 0 2px 0 var(--red-2); }
.btn-line { border-color: var(--ink); background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-line:hover { background: var(--well); }
.btn-line:active { box-shadow: 0 2px 0 var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- the awning ---------- */
.awning { height: 14px; background: repeating-linear-gradient(90deg, var(--pole-a, var(--red)) 0 34px, var(--enamel) 34px 68px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08); }
.noteline { background: var(--ink); color: var(--paper); }
.noteline .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; padding-block: 8px; text-align: center; font: 500 14px/1.4 var(--body); }
.noteline b { font: 700 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
:root[data-theme="dark"] .noteline { background: #0a0d16; color: #f2eee6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .noteline { background: #0a0d16; color: #f2eee6; } }
@media (max-width: 560px) { .noteline b { display: none; } }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.nav-in { position: relative; display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* the mark: a little pole */
.brand-mark { position: relative; flex: none; width: 14px; height: 38px; border-radius: 7px; background: repeating-linear-gradient(135deg, var(--pole-a, var(--red)) 0 5px, var(--enamel) 5px 10px, var(--pole-b, var(--blue)) 10px 15px, var(--enamel) 15px 20px); box-shadow: 0 0 0 2px var(--brass), inset -3px 0 4px rgba(0, 0, 0, 0.2); }
.brand-word { font: 400 25px/1 var(--display); letter-spacing: 0.01em; }
.brand-sub { display: block; font: 700 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 13px; text-decoration: none; font: 600 15.5px/1 var(--body); color: var(--ink-2); border-radius: var(--r-s); transition: color var(--d-fast), background var(--d-fast); }
.nav-links a:hover { color: var(--ink); background: var(--well); }
.nav-links a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: var(--r-s); border: 2px solid var(--ink); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 14px var(--gutter) 24px; background: var(--card); border-bottom: 2px solid var(--ink); box-shadow: var(--shadow-lift); animation: cp-open var(--d) var(--ease) both; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px dashed var(--line); text-decoration: none; font: 400 30px/1.1 var(--display); color: var(--ink); }
.site-menu a::after { content: attr(data-no); font: 700 11px/1 var(--mono); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--red); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 0; font: 700 16px/1 var(--body); color: var(--on-red); }
.site-menu .btn::after { display: none; }
@keyframes cp-open { from { opacity: 0; transform: translateY(-8px); } }
html.calm .site-menu { animation: none; }
@media (max-width: 1040px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 560px) { .nav .nav-cta { display: none; } }
@media (min-width: 1041px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 116px); }
.section.alt { background: var(--well); }
.section-head { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-bottom: clamp(30px, 4.5vw, 56px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.grid-2.lean { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .grid-2.lean { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(34px, 5.5vw, 84px) clamp(60px, 8vw, 104px); overflow: clip; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: grid; gap: 6px; font: 700 13.5px/1.4 var(--mono); color: var(--ink-2); }
.hero-facts li { display: flex; gap: 10px; }
.hero-facts li::before { content: var(--fact-mark, "✂"); color: var(--red); }
.hero-side { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 30px); align-items: center; min-width: 0; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hero-side { grid-template-columns: 1fr; } .hero-side > .pole { display: none; } }

/* ---------- the pole ---------- */
.pole { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; width: 74px; height: clamp(260px, 32vw, 380px); }
.pole .cap { width: 74px; height: 30px; border-radius: 40px 40px 6px 6px; background: radial-gradient(circle at 35% 30%, #fff6, transparent 50%), linear-gradient(90deg, #8a6528, var(--brass) 40%, #f1d39a 55%, #8a6528); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.pole .cap.bottom { border-radius: 6px 6px 40px 40px; }
.pole .glass { position: relative; width: 56px; border-radius: 4px; overflow: hidden; background: repeating-linear-gradient(150deg, var(--pole-a, var(--red)) 0 20.785px, #fff 20.785px 41.569px, var(--pole-b, var(--blue)) 41.569px 62.354px, #fff 62.354px 83.138px); background-size: 100% 96px; box-shadow: inset -10px 0 14px rgba(0, 0, 0, 0.28), inset 8px 0 10px rgba(255, 255, 255, 0.5), 0 0 0 2px rgba(0, 0, 0, 0.08); }
.pole .glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, 0.55) 26%, transparent 38%); }
html:not(.calm) .pole .glass { animation: cp-spin 2.4s linear infinite; }
@keyframes cp-spin { to { background-position: 0 96px; } }

/* ---------- the chair board (signature) ---------- */
@property --done { syntax: "<number>"; inherits: false; initial-value: 0; }
.seats { display: grid; gap: 12px; min-width: 0; }
.seats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.seats-head b { font: 400 26px/1.1 var(--display); }
.seats-head span { font: 700 13px/1.2 var(--mono); color: var(--muted); }
.seats-head span strong { color: var(--ink); }
.seat { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-m); background: var(--enamel); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 5px var(--enamel), inset 0 0 0 6px var(--brass), var(--shadow-card); min-width: 0; }
.seat .ring { --done: 0; position: relative; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--state-c, var(--free)) calc(var(--done) * 1turn), color-mix(in srgb, var(--ink) 10%, transparent) 0); display: grid; place-items: center; transition: --done 600ms var(--ease); }
.seat .ring::after { content: attr(data-initial); position: absolute; inset: 5px; display: grid; place-items: center; border-radius: 50%; background: var(--enamel); font: 400 22px/1 var(--display); color: var(--ink); }
.seat b { display: block; font: 400 21px/1.1 var(--display); }
.seat small { display: block; font: 500 13.5px/1.3 var(--body); color: var(--muted); }
.seat .status { display: grid; justify-items: end; gap: 3px; text-align: right; font: 700 13.5px/1.2 var(--mono); }
.seat .status .light { display: inline-flex; align-items: center; gap: 7px; }
.seat .status .light::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--state-c, var(--free)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--state-c, var(--free)) 25%, transparent); }
.seat .status em { font-style: normal; font-weight: 400; color: var(--muted); }
.seat[data-state="free"] { --state-c: var(--free); }
.seat[data-state="busy"] { --state-c: var(--busy, var(--pole-a, var(--red))); }
.seat[data-state="break"] { --state-c: var(--brass); }
.seat[data-state="free"] .ring { --done: 1; }
html:not(.calm) .seat[data-state="free"] .status .light::before { animation: cp-blink 1.6s ease-in-out infinite; }
@keyframes cp-blink { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--state-c) 8%, transparent); } }
.seat.flip { animation: cp-flip 520ms var(--snap); }
@keyframes cp-flip { 40% { transform: rotateX(70deg); } }
html.calm .seat.flip { animation: none; }
@media (max-width: 480px) { .seat { grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; } .seat .ring { width: 46px; height: 46px; grid-row: span 2; } .seat .status { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: start; text-align: left; } }

/* ---------- the ticket printer ---------- */
.printer { position: relative; display: grid; gap: 0; justify-items: center; }
.printer-body { position: relative; z-index: 2; display: grid; gap: 12px; width: 100%; padding: 18px 18px 22px; border-radius: var(--r-l) var(--r-l) 10px 10px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: #f2eee6; box-shadow: var(--shadow-lift); }
:root[data-theme="dark"] .printer-body { background: linear-gradient(180deg, #2a3248, #0a0d16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .printer-body { background: linear-gradient(180deg, #2a3248, #0a0d16); } }
.printer-body .field > span { color: #f2eee6; }
.printer-body .field small { color: #c7c3ba; }
.printer-body .field select { --ink: #131a2a; background-color: #fffcf5; color: #131a2a; border-color: transparent; }
.printer-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.printer-row .field { flex: 1 1 160px; }
.printer-slot { height: 10px; width: calc(100% - 40px); margin: -4px auto 0; border-radius: 0 0 6px 6px; background: #05070c; position: relative; z-index: 3; }
.printer-slot::after { content: ""; position: absolute; left: 50%; top: 6px; width: min(300px, calc(100% - 64px)); height: 10px; transform: translateX(-50%); background: var(--receipt); border-radius: 0 0 3px 3px; }
.printer.printed .printer-slot::after { display: none; }
.printer-body .btn-red { box-shadow: 0 4px 0 #5e0f17; }
.receipt { position: relative; z-index: 1; width: min(300px, calc(100% - 64px)); margin-top: -4px; padding: 20px 20px 26px; background: var(--receipt); color: #131a2a; font: 400 13.5px/1.55 var(--mono); box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.5); -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 12px 8px repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 12px 8px repeat-x; transform-origin: 50% 0; }
.receipt .rc-shop { text-align: center; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.receipt .rc-no { margin: 10px 0; text-align: center; font: 400 64px/1 var(--display); }
.receipt hr { border: 0; border-top: 1.5px dashed #131a2a; margin: 10px 0; opacity: 0.5; }
.receipt dl { display: grid; gap: 2px; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 10px; }
.receipt dt { opacity: 0.75; }
.receipt dd { margin: 0; font-weight: 700; text-align: right; }
.receipt .rc-foot { margin-top: 8px; text-align: center; font-size: 12px; opacity: 0.75; }
.receipt.printing { animation: cp-print 1400ms steps(14, end) both; }
@keyframes cp-print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
html.calm .receipt.printing { animation: none; }

/* ---------- the price board ---------- */
.price-board { display: grid; gap: 4px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--enamel); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 7px var(--enamel), inset 0 0 0 8px var(--brass), var(--shadow-card); }
.price-board h3 { margin: 4px 0 8px; font: 400 26px/1.1 var(--display); color: var(--red); }
.price-board h3:not(:first-child) { margin-top: 20px; }
.pb-row { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto; align-items: baseline; gap: 10px; padding: 6px 0; }
.pb-row span:first-child { font: 600 17px/1.3 var(--body); }
.pb-row span:first-child small { display: block; font: 400 13.5px/1.3 var(--body); color: var(--muted); }
.pb-row i { height: 0; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-5px); }
.pb-row b { font: 700 17px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-row b small { display: block; font: 400 12px/1.4 var(--mono); color: var(--muted); text-align: right; }

.pb-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.pb-cols > div { min-width: 0; }
.pb-cols.one { grid-template-columns: 1fr; }
@media (max-width: 760px) { .pb-cols { grid-template-columns: 1fr; } }
.pb-foot { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--ink); font: 400 13.5px/1.5 var(--mono); color: var(--muted); }

/* ---------- barbers, cards, facts, notices ---------- */
.barber { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-card); min-width: 0; }
.barber .face { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--enamel); box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 3px var(--brass); font: 400 30px/1 var(--display); }
.barber h3 { font: 400 26px/1.1 var(--display); }
.barber .role { font: 700 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.barber p { font-size: 15.5px; color: var(--ink-2); }
.card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-card); min-width: 0; }
.card .k { font: 700 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.card h3 { font: 400 23px/1.15 var(--display); }
.card p { color: var(--ink-2); font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; border-block: 2px solid var(--ink); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px 18px 20px 0; min-width: 0; }
.facts > div + div { padding-left: 18px; border-left: 1px dashed var(--line); }
.facts .k { font: 700 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.facts b { font: 400 22px/1.15 var(--display); }
.facts p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px dashed var(--line); } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 20px; border-radius: var(--r-m); background: var(--red-soft); font-size: 16px; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--red); margin-top: 3px; }
.notice b { color: var(--ink); }

/* ---------- closing ---------- */
.close { padding-block: clamp(56px, 8vw, 100px); }
.close-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 30px; align-items: end; padding: clamp(30px, 5vw, 64px); border-radius: var(--r-l); background: #131a2a; color: #f2eee6; overflow: hidden; isolation: isolate; }
.close-card::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--pole-a, var(--red)) 0 34px, #fbf7ee 34px 68px); }
.close-card .h2 { color: #fff; }
.close-card .h2 em { color: var(--close-em, #ff8a8a); text-shadow: none; }
.close-card p { color: #ccc8bf; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #a3a6b2; }
.close-card .tag b { color: var(--close-em, #ff8a8a); }
.close-card .btn-red { background: #fffcf5; color: #131a2a; box-shadow: 0 4px 0 #b98a3e; }
.close-card :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .close-card { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 700 18px/1.35 var(--body); border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--red), var(--red)) center / 10px 1.6px no-repeat, linear-gradient(var(--red), var(--red)) center / 1.6px 10px no-repeat; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 1px solid var(--line); background: var(--well); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--red); }
.licence { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 12px/1.7 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--red); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); overflow: clip; }

.page-head .wrap { position: relative; }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > span, .field-set > legend { font: 600 15.5px/1.25 var(--body); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.35 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-s); border: 2px solid var(--ink); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast), border-color var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-card); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--red-soft); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--red); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 15px 17px; border-radius: var(--r-s); border: 2px solid var(--ink); background: var(--card); box-shadow: 0 3px 0 var(--ink); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 700 17px/1.2 var(--body); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { background: var(--well); }
.choice input:checked + span { border-color: var(--red); box-shadow: 0 3px 0 var(--red); background: var(--red-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 15px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { background: var(--well); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--red); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--red); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table tbody th { font: 700 16.5px/1.35 var(--body); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.field input.range { min-height: 0; height: 6px; padding: 0; border: 0; margin: 14px 0 8px; box-shadow: none; background: linear-gradient(90deg, var(--red) 0 var(--p), var(--line) var(--p) 100%); }


/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .pole { display: none !important; } body { background: #fff; } }
