/* =====================================================================
   Polish · the style
   Bright and tidy, like a good nail bar: Syne headlines with a cherry
   lit phrase, DM Sans for everything else, on fresh mint with inky plum.
   Signature pieces: the rack (.rack: polish bottles; tap one and five
   nails paint themselves), the builder (.builder: a service plus add-ons,
   with time and price adding up on a segmented bar), the walk-in queue
   (.queue: who's ahead, the wait, join the queue) and vouchers with a
   tear-off (.voucher).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */
:root { --mono: var(--body); }

/* ---------- 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: 8px; }
::selection { background: var(--cherry-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: 700; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
/* the lit phrase: cherry, with a lacquer shine */
.h1 em, .h2 em { font-style: normal; color: var(--cherry); position: relative; }
.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(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 12px; height: 18px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--ink) 0 35%, var(--cherry) 35%); }
.tag b { font-weight: 700; color: var(--cherry); }
.num { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--cherry); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 500; }
.prose a:hover, .link:hover { color: var(--cherry-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 2px solid transparent; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--pop), background var(--d-fast), border-color var(--d-fast), color var(--d-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-cherry { background: var(--cherry); color: var(--on-cherry); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), 0 8px 16px -10px var(--cherry); }
.btn-cherry:hover { background: var(--cherry-2); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- the top strip ---------- */
.strip { background: var(--cherry); color: var(--on-cherry); }
.strip .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-block: 8px; text-align: center; font: 500 14px/1.4 var(--body); }
.strip b { font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.2); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.strip :focus-visible { outline-color: currentColor; }
@media (max-width: 560px) { .strip b { display: none; } }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.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 polish bottle */
.brand-mark { position: relative; flex: none; width: 24px; height: 34px; }
.brand-mark::before { content: ""; position: absolute; left: 6px; top: 0; width: 12px; height: 13px; border-radius: 3px 3px 1px 1px; background: var(--ink); }
.brand-mark::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 22px; border-radius: 6px; background: linear-gradient(120deg, var(--gloss) 0 12%, transparent 22%), var(--cherry); }
.brand-word { font: 800 25px/1 var(--display); letter-spacing: -0.035em; }
.brand-sub { display: block; font: 600 11px/1.2 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 10px 14px; text-decoration: none; font: 600 15.5px/1 var(--body); color: var(--ink-2); border-radius: var(--r-pill); 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(--on-cherry); background: var(--cherry); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; 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); border-radius: 1px; }
.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: 1px solid var(--line); box-shadow: var(--shadow-lift); animation: po-open var(--d) var(--pop) both; transform-origin: 50% 0; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 800 28px/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.site-menu a::after { content: attr(data-no); font: 700 11px/1 var(--body); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--cherry); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 0; font: 700 16px/1 var(--body); color: var(--on-cherry); }
.site-menu .btn::after { display: none; }
@keyframes po-open { from { opacity: 0; transform: scaleY(0.92); } }
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, 118px); }
.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; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { 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, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { padding: 7px 13px; border-radius: var(--r-pill); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 600 14px/1.2 var(--body); color: var(--ink-2); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- the rack and the nails (signature) ---------- */
.rack { display: grid; gap: 22px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); min-width: 0; }
.nails { --paint: var(--bottle-1); position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 1.6vw, 16px); padding: 26px 22px 0; border-radius: 22px; background: linear-gradient(180deg, var(--well), color-mix(in srgb, var(--skin) 40%, var(--well))); overflow: hidden; }
.nails i { position: relative; display: block; height: calc(var(--h, 120px) * var(--s, 1)); border-radius: 40% 40% 12px 12px / 28% 28% 12px 12px; background: var(--skin); box-shadow: inset 0 -12px 18px rgba(0, 0, 0, 0.08); }
.nails i:nth-child(1) { --h: 96px; } .nails i:nth-child(2) { --h: 128px; } .nails i:nth-child(3) { --h: 138px; } .nails i:nth-child(4) { --h: 124px; } .nails i:nth-child(5) { --h: 92px; }
/* the lacquer: painted from the cuticle up with a brush sweep */
.nails i::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: calc(var(--h) * var(--s, 1) * 0.62); border-radius: 46% 46% 30% 30% / 34% 34% 22% 22%; background: linear-gradient(105deg, transparent 18%, var(--gloss) 26%, transparent 34%), var(--paint); clip-path: inset(0 0 0 0); }
.nails.painting i::before { animation: po-paint 520ms var(--ease) both; animation-delay: calc(var(--k, 0) * 90ms); }
@keyframes po-paint { from { clip-path: inset(100% 0 0 0); } }
.nails.matte i::before { background: var(--paint); }
.nails.shimmer i::before { background: radial-gradient(circle at 20% 30%, var(--gloss) 0 1px, transparent 1.6px) 0 0 / 9px 9px, radial-gradient(circle at 60% 70%, var(--gloss) 0 1px, transparent 1.6px) 4px 3px / 11px 11px, linear-gradient(105deg, transparent 18%, var(--gloss) 26%, transparent 34%), var(--paint); }
html.calm .nails.painting i::before { animation: none; }
.bottles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; }
.bottle { --c: var(--bottle-1); position: relative; width: 46px; height: 76px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform var(--d) var(--pop); }
.bottle::before { content: ""; position: absolute; left: 50%; top: 0; width: 18px; height: 28px; margin-left: -9px; border-radius: 5px 5px 2px 2px; background: linear-gradient(90deg, #000, #3b3540 40%, #000); }
.bottle::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 50px; border-radius: 12px 12px 14px 14px; background: linear-gradient(115deg, var(--gloss) 0 10%, transparent 24%), linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 40%), var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 6px 10px -6px rgba(0, 0, 0, 0.5); }
.bottle:hover, .bottle:focus-visible { transform: translateY(-5px) rotate(-3deg); }
.bottle[aria-pressed="true"] { transform: translateY(-9px); }
.bottle[aria-pressed="true"]::after { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 0 0 3px var(--card), 0 0 0 5px var(--cherry); }
.rack-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.rack-caption b { font: 800 26px/1.1 var(--display); letter-spacing: -0.03em; }
.rack-caption small { font: 600 13px/1.3 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 520px) { .nails { --s: 0.72; padding: 20px 14px 0; }  .bottle { width: 40px; height: 68px; } .bottle::after { width: 40px; height: 44px; } }

/* ---------- the builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 0; border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); overflow: hidden; }
.build-in { display: grid; gap: 20px; align-content: start; padding: clamp(20px, 3vw, 32px); }
.build-in h3 { font: 700 14px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.addon { position: relative; display: block; cursor: pointer; }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon > span { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast); }
.addon > span::before { content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); background: var(--card); transition: background var(--d-fast), border-color var(--d-fast); }
.addon b { font-weight: 600; font-size: 15.5px; }
.addon small { font: 600 13px/1.2 var(--body); color: var(--muted); white-space: nowrap; }
.addon input:checked + span { border-color: var(--cherry); background: color-mix(in srgb, var(--cherry-soft) 40%, var(--card)); }
.addon input:checked + span::before { background: var(--cherry) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--cherry); }
.addon input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.build-out { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 3vw, 32px); background: var(--ink); color: var(--paper); }
.build-out .k { font: 700 12px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.build-total { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.build-total b { font: 800 clamp(40px, 5vw, 58px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.build-total span { font: 600 18px/1.2 var(--body); }
.build-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--paper) 14%, transparent); }
.build-bar i { display: block; height: 100%; flex: var(--m) 0 0; background: var(--c, var(--cherry)); border-right: 2px solid var(--ink); transition: flex var(--d) var(--ease); }
.build-bar i.in { animation: po-grow 380ms var(--pop); }
@keyframes po-grow { from { flex-basis: 0; } }
html.calm .build-bar i, html.calm .build-bar i.in { transition: none; animation: none; }
.build-list { display: grid; gap: 6px; font-size: 15px; }
.build-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.build-list li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--cherry)); }
.build-list small { color: color-mix(in srgb, var(--paper) 70%, transparent); font-variant-numeric: tabular-nums; }
.build-out .btn-cherry { justify-self: start; }
:root[data-theme="dark"] .build-out { background: #0e0c11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .build-out { background: #0e0c11; } }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }

/* ---------- the walk-in queue ---------- */
.queue { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.queue-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.queue-head b { font: 800 30px/1.1 var(--display); letter-spacing: -0.03em; }
.queue-head .live { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.queue-head .live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2fae6a; box-shadow: 0 0 0 4px color-mix(in srgb, #2fae6a 25%, transparent); }
html:not(.calm) .queue-head .live::before { animation: po-live 1.6s ease-in-out infinite; }
@keyframes po-live { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #2fae6a 5%, transparent); } }
.tickets { display: grid; gap: 8px; }
.ticket { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--well); transition: transform var(--d) var(--ease), opacity var(--d); }
.ticket .no { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--card); font: 800 20px/1 var(--display); letter-spacing: -0.03em; box-shadow: 0 0 0 1px var(--line); }
.ticket .what { font-weight: 600; }
.ticket .what small { display: block; font-weight: 500; font-size: 13.5px; color: var(--muted); }
.ticket .eta { font: 700 14px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ticket.you { background: var(--cherry-soft); box-shadow: 0 0 0 2px var(--cherry); }
.ticket.you .no { background: var(--cherry); color: var(--on-cherry); box-shadow: none; }
.ticket.now { background: color-mix(in srgb, #2fae6a 16%, var(--card)); }
.ticket.leaving { opacity: 0; transform: translateY(-14px); }
.ticket.arrive { animation: po-arrive 420ms var(--pop); }
@keyframes po-arrive { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
html.calm .ticket { transition: none; animation: none !important; }
.queue-join { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1px dashed var(--line); }
.queue-join p { font-size: 14.5px; color: var(--muted); }

/* ---------- vouchers and packages ---------- */
.voucher { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; min-height: 180px; border-radius: 22px; background: var(--cherry); color: var(--on-cherry); overflow: hidden; box-shadow: var(--shadow-lift); --notch: var(--paper); }
.voucher-main { display: grid; align-content: space-between; gap: 12px; padding: 24px 26px; }
.voucher-main small { font: 700 12px/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.voucher-main b { font: 800 clamp(44px, 6vw, 64px)/1 var(--display); letter-spacing: -0.04em; }
.voucher-main b.bump { animation: po-bump 360ms var(--pop); }
@keyframes po-bump { 40% { transform: scale(1.08); } }
.voucher-main span { font: 600 13.5px/1.3 var(--body); opacity: 0.9; }
.voucher-stub { display: grid; place-items: center; border-left: 2px dashed rgba(255, 255, 255, 0.5); font: 800 14px/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.voucher::before, .voucher::after { content: ""; position: absolute; right: 86px; width: 20px; height: 20px; border-radius: 50%; background: var(--notch); }
.voucher::before { top: -10px; } .voucher::after { bottom: -10px; }
.section.alt .voucher { --notch: var(--well); }
.pack { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.pack .k { font: 700 12px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cherry); }
.pack h3 { font: 800 26px/1.1 var(--display); letter-spacing: -0.03em; }
.pack .amt { font: 800 36px/1 var(--display); letter-spacing: -0.03em; }
.pack .amt small { font: 600 13px/1 var(--body); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.pack ul { display: grid; gap: 7px; font-size: 15px; color: var(--ink-2); }
.pack ul li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.pack ul li::before { content: ""; width: 8px; height: 12px; margin-top: 6px; border-radius: 4px 4px 2px 2px; background: var(--cherry); }

/* ---------- cards, facts, notices ---------- */
.card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.card .k { font: 700 12px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cherry); }
.card h3 { font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.card p { color: var(--ink-2); font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.facts .k { font: 700 12px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cherry); }
.facts b { font: 800 21px/1.15 var(--display); letter-spacing: -0.03em; }
.facts p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 20px; border-radius: var(--r-m); background: var(--cherry-soft); font-size: 16px; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--cherry); 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: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate; }
.close-card::before { content: ""; position: absolute; z-index: -1; right: 40px; top: -40px; width: 120px; height: 200px; border-radius: 30px 30px 40px 40px; background: linear-gradient(115deg, rgba(255, 255, 255, 0.25) 0 10%, transparent 24%), var(--cherry); opacity: 0.9; transform: rotate(14deg); }
.close-card .h2 { color: var(--paper); }
.close-card .h2 em { color: var(--close-em, #ff9db5); }
.close-card p { color: color-mix(in srgb, var(--paper) 80%, transparent); max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.close-card .tag b { color: var(--close-em, #ff9db5); }
.close-card .btn-cherry { background: var(--paper); color: var(--ink); box-shadow: none; }
.close-card :focus-visible { outline-color: var(--paper); }
:root[data-theme="dark"] .close-card { background: #0e0c11; color: #f5f1f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .close-card { background: #0e0c11; color: #f5f1f8; } }
@media (max-width: 860px) { .close-card { grid-template-columns: 1fr; } .close-card::before { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; 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(--cherry), var(--cherry)) center / 10px 1.6px no-repeat, linear-gradient(var(--cherry), var(--cherry)) 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(--cherry); }
.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(--cherry); 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(--cherry); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; 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: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line)); 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(--cherry); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cherry) 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: var(--shadow-card), 0 0 0 1px var(--line); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--cherry-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(--cherry); }

.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-m); border: 1px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 600 17px/1.2 var(--display); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.choice input:checked + span { border-color: var(--cherry); box-shadow: 0 0 0 1px var(--cherry); background: color-mix(in srgb, var(--cherry-soft) 45%, var(--card)); }
.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(--cherry) 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(--cherry); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--cherry); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.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: 600 16.5px/1.35 var(--display); }
.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(--cherry) 0 var(--p), var(--line) var(--p) 100%); }

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

/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(18px) scale(0.99); transition: opacity 600ms var(--ease), transform 600ms var(--pop); }
.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 { display: none !important; } body { background: #fff; } }
