/* «Перфолист і ізометрія» — концепт metalgen для Літпол-Україна.
   Цвета: только factory.json → theme (#325caa и др. подставляет build.mjs) и производные оттенки стали.
   Раскладки: телефон (.P) и ПК/планшет (.D) — разная разметка; запросы те же, что в layout.js. */
:root {
  --a: #325caa; --ad: #26467f; --as: #eaeff8; --ai: #ffffff;
  --ink: #121a2a; --ink2: #46526b; --ink3: #5b6680;
  --bg: #f4f6fa; --card: #fff; --line: #cfd8e8; --perf: #bfcade; --steel: #9aa6bd; --steel2: #7d8aa3;
  --f: "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Roboto Mono", monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--f); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); }
a { color: var(--ad); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.root { padding: 40px 16px; font-size: 18px; }

/* срезанный угол-фаска и отогнутый «лист» */
.cut { --c: 22px; position: relative; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.cut::after { content: ""; position: absolute; top: 0; right: 0; width: var(--c); height: var(--c); pointer-events: none;
  background: linear-gradient(225deg, transparent 50%, var(--fold, var(--line)) 50%); }
.mk { display: inline-block; width: 8px; height: 8px; background: var(--a); transform: rotate(45deg); margin-right: .65em; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 12px 22px;
  background: var(--a); color: var(--ai); font: 650 16px/1.2 var(--f); text-decoration: none; letter-spacing: .005em;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); transition: background .2s, transform .2s; }
.btn.ghost { background: transparent; color: var(--ad); box-shadow: inset 0 0 0 1.5px var(--ad); clip-path: none; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
@media (hover: hover) {
  .btn:hover { background: var(--ad); transform: translateY(-1px); }
  .btn.ghost:hover { background: var(--as); }
}

.rule { font: 600 12px/1.3 var(--mono); color: var(--ad); background: var(--as); padding: 2px 6px; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .rule:hover { text-decoration: underline; } }
.note { font-size: 13px; color: var(--ink2); margin-top: 10px; }
.syn { font: 12px/1.4 var(--mono); color: var(--ink3); margin-top: 10px; }

/* ── чертежи ── */
svg.iso, svg.plan { display: block; width: 100%; height: auto; overflow: visible; }
.i-wall { fill: var(--as); fill-opacity: .6; stroke: var(--a); stroke-width: .6; stroke-linejoin: round; }
.i-floor { fill: #fff; }
.i-grid { fill: none; stroke: var(--line); stroke-width: .5; }
.i-aisle { fill: var(--as); stroke: var(--a); stroke-width: .5; stroke-dasharray: 3 2; }
.i-door { fill: var(--ad); }
.i-doorline { fill: none; stroke: var(--ad); stroke-width: 3.5; stroke-linecap: round; }
.i-win { fill: #fff; stroke: var(--a); stroke-width: .8; }
.i-winline { fill: none; stroke: var(--a); stroke-width: 2.5; stroke-dasharray: 4 2; }
.i-lk polygon, .i-bn polygon { stroke: rgba(255, 255, 255, .55); stroke-width: .35; stroke-linejoin: round; }
.i-lk .f-t { fill: #dbe3f2; } .i-lk .f-x { fill: var(--a); } .i-lk .f-y { fill: var(--ad); }
.i-bn .f-t { fill: #cdd5e3; } .i-bn .f-x { fill: var(--steel); } .i-bn .f-y { fill: var(--steel2); }
.i-edge { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.i-lbl, .p-lbl { fill: var(--ad); font-family: var(--mono); font-weight: 700; text-anchor: middle; dominant-baseline: middle;
  paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.p-floor { fill: #fff; }
.p-grid { stroke: var(--line); stroke-width: .5; }
.p-aisle { fill: var(--as); }
.p-lk { fill: var(--a); stroke: #fff; stroke-width: .6; }
.p-bn { fill: var(--steel); stroke: #fff; stroke-width: .4; }
.p-wall { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.p-door { stroke: #fff; stroke-width: 4; }
.p-win { stroke: var(--a); stroke-width: 4; }
.p-dim { stroke: var(--ad); stroke-width: .8; stroke-dasharray: 2 1.5; }

@media (prefers-reduced-motion: no-preference) {
  svg.on .i-edge, svg.on .i-wall { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s cubic-bezier(.6, 0, .2, 1) forwards; }
  svg.on .i-lk, svg.on .i-bn, svg.on .p-lk, svg.on .p-bn { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
  svg.on .i-lbl, svg.on .p-lbl { animation: fade .5s .9s both; }
  svg.on [data-i="0"] { animation-delay: 0.250s; }
  svg.on [data-i="1"] { animation-delay: 0.285s; }
  svg.on [data-i="2"] { animation-delay: 0.320s; }
  svg.on [data-i="3"] { animation-delay: 0.355s; }
  svg.on [data-i="4"] { animation-delay: 0.390s; }
  svg.on [data-i="5"] { animation-delay: 0.425s; }
  svg.on [data-i="6"] { animation-delay: 0.460s; }
  svg.on [data-i="7"] { animation-delay: 0.495s; }
  svg.on [data-i="8"] { animation-delay: 0.530s; }
  svg.on [data-i="9"] { animation-delay: 0.565s; }
  svg.on [data-i="10"] { animation-delay: 0.600s; }
  svg.on [data-i="11"] { animation-delay: 0.635s; }
  svg.on [data-i="12"] { animation-delay: 0.670s; }
  svg.on [data-i="13"] { animation-delay: 0.705s; }
  svg.on [data-i="14"] { animation-delay: 0.740s; }
  svg.on [data-i="15"] { animation-delay: 0.775s; }
  svg.on [data-i="16"] { animation-delay: 0.810s; }
  svg.on [data-i="17"] { animation-delay: 0.845s; }
  svg.on [data-i="18"] { animation-delay: 0.880s; }
  svg.on [data-i="19"] { animation-delay: 0.915s; }
  svg.on [data-i="20"] { animation-delay: 0.950s; }
  svg.on [data-i="21"] { animation-delay: 0.985s; }
  svg.on [data-i="22"] { animation-delay: 1.020s; }
  svg.on [data-i="23"] { animation-delay: 1.055s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes perf { to { background-position: 12px 12px; } }

/* помещение и вид — без JS-стилей, по атрибутам <html> */
html[data-sc="0"] [data-sc]:not([data-sc="0"]), html[data-sc="1"] [data-sc]:not([data-sc="1"]), html[data-sc="2"] [data-sc]:not([data-sc="2"]) { display: none; }
html[data-view="iso"] .v-plan, html[data-view="plan"] .v-iso { display: none; }

/* ── какая разметка видна ── */
.P { display: none; }
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
  .P { display: block; }
  .D { display: none; }
}

/* ══ ПК и планшет ══ */
@media (min-width: 761px) and (min-height: 501px), (min-width: 761px) and (pointer: fine) {
  .d-top { position: fixed; inset: 0 0 auto; z-index: 10; height: 64px; display: flex; align-items: center; gap: 18px;
    padding: 0 clamp(20px, 3vw, 44px); background: rgba(244, 246, 250, .86);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .wm { font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 18px; white-space: nowrap; }
  .wm .x { color: var(--a); margin: 0 .4em; font-weight: 400; }
  .wm .fn { font-weight: 500; }
  .tag { font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); border: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
  .d-nav { margin-left: auto; display: flex; gap: 20px; }
  .d-nav a { color: var(--ink2); text-decoration: none; font-size: 14px; }
  .lang { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; font: 600 13px var(--mono); color: var(--ad);
    border: 1px solid var(--line); text-decoration: none; background: #fff; }
  @media (hover: hover) { .d-nav a:hover, .lang:hover { color: var(--a); } }
  .D main { padding-top: 64px; }

  .hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.5vw, 64px);
    align-items: center; padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px); min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); isolation: isolate; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(circle, var(--perf) 1.25px, transparent 1.75px); background-size: 12px 12px;
    -webkit-mask-image: radial-gradient(ellipse 55% 75% at 72% 52%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 75% at 72% 52%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 75%); }
  .kick { display: flex; align-items: center; gap: 12px; font: 600 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ad); }
  .kick::before { content: ""; width: 32px; height: 2px; background: var(--a); }
  .hero h1 { font-size: clamp(40px, 4.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 780; margin: 22px 0 22px; text-wrap: balance; }
  .hero h1 .l2 { display: block; color: var(--a); }
  .lead { font-size: clamp(17px, 1.25vw, 20px); color: var(--ink2); max-width: 36em; }
  .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
  .concept { display: flex; align-items: center; font-size: 14px; color: var(--ink); font-weight: 600; }
  .hero .note { color: var(--ink3); max-width: 34em; }

  .stage { --c: 34px; background: #fff; padding: 18px 20px 20px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px;
    box-shadow: 0 40px 70px -50px rgba(38, 70, 127, .55); min-width: 0; }
  .st-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-right: 24px; }
  .seg { display: flex; gap: 4px; padding: 4px; background: var(--as); }
  .seg button { display: grid; gap: 1px; text-align: left; min-height: 44px; padding: 7px 14px; border: 0; background: transparent; color: var(--ink2);
    font: inherit; cursor: pointer; transition: background .2s, box-shadow .2s; }
  .seg button b { font-size: 15px; color: var(--ink); }
  .seg button span { font: 12px/1.3 var(--mono); }
  .seg.vw button { display: inline-grid; place-items: center; font-size: 14px; font-weight: 600; }
  .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 8px 16px -10px rgba(38, 70, 127, .6); }
  @media (hover: hover) { .seg button:hover { color: var(--ink); } }
  .st-draw { display: grid; place-items: center; min-height: 0; }
  .draw { width: 100%; }
  .draw svg { max-height: min(54vh, 560px); }
  .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .kpis > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 0 14px; border-left: 1px solid var(--line); min-width: 0; }
  .kpis > div:first-child { border-left: 0; padding-left: 0; }
  .kpis dd { margin: 0; font-size: clamp(24px, 2.3vw, 40px); line-height: 1.05; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .kpis dd i { font-style: normal; color: var(--a); margin: 0 .06em; }
  .kpis .tot dd { color: var(--a); }
  .kpis dt { font-size: 12px; color: var(--ink2); }

  section.calc, .d-status, .d-path, .d-gain { padding: clamp(48px, 6vw, 88px) clamp(20px, 3vw, 44px) 0; }
  .D h2 { font-size: clamp(28px, 2.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 760; max-width: 22em; }
  .D h2 small { display: block; margin-top: 10px; font: 500 15px/1.4 var(--mono); color: var(--ink2); letter-spacing: 0; }
  .D .sub { margin-top: 12px; color: var(--ink2); font-size: 17px; max-width: 44em; }
  .bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
  .bento > article { background: #fff; padding: 24px; min-width: 0; }
  .bento h3 { font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ad); margin-bottom: 14px; }
  .b-count { grid-column: span 1; }
  .b-aisles { grid-column: span 3; }
  .b-spec { grid-column: span 4; }
  .cnt .big { display: block; font-size: clamp(52px, 4.6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
  .cnt .big i { font-style: normal; color: var(--a); }
  .cnt span { font-size: 14px; color: var(--ink2); }
  .why { list-style: none; padding: 0; margin: 16px 0 0; }
  .why li { font-size: 14px; color: var(--ink2); padding: 9px 0; border-top: 1px dashed var(--line); }
  .aisles { list-style: none; padding: 0; margin: 0; }
  .aisles li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "id v ok" "id r r" "id c c"; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
  .a-id { grid-area: id; font: 700 22px/1.2 var(--mono); color: var(--a); }
  .a-v { grid-area: v; color: var(--ink2); }
  .a-v b { font-size: 30px; font-weight: 780; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
  .a-v em { font-style: normal; margin-left: .4em; font-family: var(--mono); font-size: 15px; }
  .a-r { grid-area: r; }
  .a-c { grid-area: c; font-size: 13px; color: var(--ink2); }
  .a-ok { grid-area: ok; align-self: start; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--a); color: var(--ai); padding: 5px 9px; }
  .spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .spec th { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); text-align: left; padding: 8px; border-bottom: 1.5px solid var(--ink); }
  .spec td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .spec .r { text-align: right; white-space: nowrap; }
  .spec tfoot td { border-bottom: 0; padding-top: 16px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
  .spec tfoot .r { color: var(--a); }

  .board { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .st { padding: 26px; min-height: 280px; background: #fff; min-width: 0; }
  .st h3 { font-size: clamp(26px, 2.2vw, 36px); font-weight: 780; letter-spacing: -.03em; margin: 22px 0 10px; }
  .st p { font-size: 15px; }
  .st .need { margin-top: 14px; padding-top: 12px; border-top: 1px dashed currentColor; font: 13px/1.45 var(--mono); }
  .st.yes { background: var(--a); color: var(--ai); --fold: var(--ad); }
  .st.wait { background: repeating-linear-gradient(-45deg, #fff 0 9px, var(--as) 9px 18px); color: var(--ink); }
  .pill { display: inline-block; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 7px 10px; }
  .yes .pill { background: #fff; color: var(--ad); }
  .wait .pill { background: var(--ad); color: #fff; }
  .other { margin-top: 18px; color: var(--ink2); font-size: 15px; }

  .steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps li { position: relative; padding: 24px 22px 0 0; border-top: 2px solid var(--a); min-width: 0; }
  .steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--a); transform: rotate(45deg); }
  .steps .no { font: 600 13px var(--mono); color: var(--a); }
  .steps h3 { font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin: 8px 0 6px; }
  .steps p { font-size: 14px; color: var(--ink2); }

  .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; margin-top: 28px; }
  .now, .new { padding: 26px; }
  .now { background: #fff; }
  .new { background: var(--ad); color: #fff; --fold: var(--a); }
  .cols h3 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 10px; }
  .cols ul { margin: 0; padding-left: 1.1em; }
  .cols li { margin: 8px 0; }
  .new li::marker { color: #b9c9ea; }
  .dealer { margin-top: 22px; max-width: 52em; padding-left: 16px; border-left: 3px solid var(--a); font-size: 16px; }

  .d-contact { margin-top: clamp(56px, 7vw, 104px); background: var(--ad); color: #fff; padding: clamp(48px, 6vw, 88px) clamp(20px, 3vw, 44px);
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 48px; align-items: start; }
  .d-contact h2 { grid-column: 1; }
  .d-contact .sub { grid-column: 1; color: #d6e0f3; }
  .d-contact .ctas { grid-column: 1; }
  .d-contact .btn { background: #fff; color: var(--ad); }
  .who { grid-column: 2; grid-row: 1 / span 3; margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; align-items: baseline;
    padding: 24px; border: 1px solid rgba(255, 255, 255, .28); }
  .who .nm { grid-column: 1 / -1; font-size: 24px; font-weight: 750; }
  .who .rl { grid-column: 1 / -1; margin: 0 0 8px; font: 13px var(--mono); color: #c9d5ee; }
  .who dt:not(.nm) { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #c9d5ee; }
  .who dd { margin: 0; }
  .who a { color: #fff; }
  .d-foot { background: var(--ink); color: #b9c4da; padding: 24px clamp(20px, 3vw, 44px) 32px; font-size: 13px; }
  .d-foot p + p { margin-top: 6px; }
  .d-foot p:first-child { display: flex; align-items: center; color: #e2e8f4; }
  @media (prefers-reduced-motion: no-preference) { .hero::before { animation: perf 9s linear infinite; } }
}

/* ══ планшет: своя сетка (761–1100) ══ */
@media (min-width: 761px) and (max-width: 1100px) and (min-height: 501px), (min-width: 761px) and (max-width: 1100px) and (pointer: fine) {
  .d-nav { display: none; }
  .lang { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 80% 45% at 50% 70%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 45% at 50% 70%, #000 0%, transparent 75%); }
  .hero h1 { font-size: clamp(40px, 6vw, 60px); }
  .draw svg { max-height: 46vh; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-count, .b-aisles { grid-column: span 1; }
  .b-spec { grid-column: span 2; }
  .aisles li { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .st { min-height: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 20px; align-items: start; }
  .st .pill { grid-column: 1; justify-self: start; }
  .st h3 { grid-column: 1; grid-row: 2; margin: 10px 0 0; }
  .st p { grid-column: 2; grid-row: 1 / span 2; }
  .st .need { grid-column: 2; grid-row: 3; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .d-contact { grid-template-columns: minmax(0, 1fr); }
  .who { grid-column: 1; grid-row: auto; }
}

/* ══ телефон: отдельная разметка ══ */
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .p-top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 6px 16px; padding-top: calc(6px + env(safe-area-inset-top)); background: rgba(244, 246, 250, .9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .p-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .p-tag { font: 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); overflow-wrap: anywhere; }
  .P .wm { font-weight: 800; font-size: 15px; letter-spacing: -.02em; min-width: 0; }
  .P .wm .x { color: var(--a); margin: 0 .35em; font-weight: 400; }
  .P .wm .fn { font-weight: 500; }
  .P .lang { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; font: 600 13px var(--mono); color: var(--ad); border: 1px solid var(--line); background: #fff; text-decoration: none; }
  .p-hero { position: relative; padding: 18px 16px 10px; isolation: isolate; }
  .p-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle, var(--perf) 1.1px, transparent 1.6px); background-size: 10px 10px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
  .P .concept { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 8px 10px; }
  .P .kick { margin-top: 18px; font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ad); }
  .P .h1 { margin: 10px 0 12px; font-size: clamp(30px, 9vw, 42px); line-height: 1.04; letter-spacing: -.035em; font-weight: 780; }
  .P .h1 .l2 { display: block; color: var(--a); }
  .P .lead { font-size: 16px; color: var(--ink2); }
  .P h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.025em; font-weight: 760; }
  .P .sub { margin-top: 8px; color: var(--ink2); font-size: 15px; }
  .p-sc { padding: 22px 0 8px; }
  .p-sc h2, .p-sc .hint { padding: 0 16px; }
  .hint { margin-top: 4px; font: 12px var(--mono); color: var(--ink3); }
  .rail { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 16px; scroll-padding: 0 16px;
    touch-action: pan-x pan-y; overscroll-behavior-x: contain; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .card { --c: 18px; flex: 0 0 88%; min-width: 0; scroll-snap-align: center; background: #fff; padding: 16px; box-shadow: 0 20px 40px -32px rgba(38, 70, 127, .6); }
  .card .ct b { display: block; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--a); }
  .card .ct span { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
  .card .p-plan { margin: 12px 0 14px; }
  .card h3 { margin: 18px 0 6px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ad); }
  .P .cnt .big { display: block; font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
  .P .cnt .big i { font-style: normal; color: var(--a); }
  .P .cnt span { font-size: 13px; color: var(--ink2); }
  .P .why { list-style: none; padding: 0; margin: 10px 0 0; }
  .P .why li { font-size: 13px; color: var(--ink2); padding: 7px 0; border-top: 1px dashed var(--line); }
  .P .aisles { list-style: none; padding: 0; margin: 0; }
  .P .aisles li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "id v ok" "id r r" "id c c"; gap: 3px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
  .P .a-id { grid-area: id; font: 700 16px var(--mono); color: var(--a); }
  .P .a-v { grid-area: v; color: var(--ink2); font-size: 14px; }
  .P .a-v b { font-size: 22px; font-weight: 780; color: var(--ink); font-variant-numeric: tabular-nums; }
  .P .a-v em { font-style: normal; font-family: var(--mono); font-size: 13px; margin-left: .3em; }
  .P .a-r { grid-area: r; }
  .P .a-c { grid-area: c; font-size: 12px; color: var(--ink2); }
  .P .a-ok { grid-area: ok; align-self: start; font: 600 11px var(--mono); text-transform: uppercase; background: var(--a); color: var(--ai); padding: 4px 7px; }
  .specc { list-style: none; padding: 0; margin: 0; }
  .specc li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
  .specc .nm { font: inherit; color: var(--ink); }
  .specc span { font: 13px var(--mono); color: var(--ink2); font-variant-numeric: tabular-nums; }
  .totc { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1.5px solid var(--ink); }
  .totc b { font-size: 24px; font-weight: 800; color: var(--a); letter-spacing: -.02em; white-space: nowrap; }
  .dots { display: flex; justify-content: center; gap: 6px; padding: 0 16px; }
  .dot { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 600 13px var(--mono); color: var(--ink2); text-decoration: none; border: 1px solid var(--line); background: #fff; }
  .dot[aria-current="true"] { background: var(--a); color: var(--ai); border-color: var(--a); }

  .p-status, .p-path, .p-gain { padding: 30px 16px 0; }
  .P .board { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
  .P .st { padding: 18px; background: #fff; }
  .P .st h3 { font-size: 24px; font-weight: 780; letter-spacing: -.03em; margin: 12px 0 6px; }
  .P .st p { font-size: 14px; }
  .P .st .need { margin-top: 10px; padding-top: 10px; border-top: 1px dashed currentColor; font: 12px/1.45 var(--mono); }
  .P .st.yes { background: var(--a); color: var(--ai); --fold: var(--ad); }
  .P .st.wait { background: repeating-linear-gradient(-45deg, #fff 0 8px, var(--as) 8px 16px); }
  .P .pill { display: inline-block; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; }
  .P .yes .pill { background: #fff; color: var(--ad); }
  .P .wait .pill { background: var(--ad); color: #fff; }
  .P .other { margin-top: 12px; color: var(--ink2); font-size: 14px; }
  .P .steps { list-style: none; padding: 0; margin: 18px 0 0; }
  .P .steps li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--a); }
  .P .steps li:last-child { border-left-color: transparent; }
  .P .steps li::before { content: ""; position: absolute; top: 4px; left: -6px; width: 10px; height: 10px; background: var(--a); transform: rotate(45deg); }
  .P .steps .no { font: 600 12px var(--mono); color: var(--a); }
  .P .steps h3 { font-size: 18px; font-weight: 750; margin: 2px 0 2px; }
  .P .steps p { font-size: 14px; color: var(--ink2); }
  .P .cols { display: grid; gap: 10px; margin-top: 16px; }
  .P .now, .P .new { padding: 18px; }
  .P .now { background: #fff; }
  .P .new { background: var(--ad); color: #fff; --fold: var(--a); }
  .P .cols h3 { font-size: 18px; font-weight: 750; margin-bottom: 6px; }
  .P .cols ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
  .P .cols li { margin: 6px 0; }
  .P .dealer { margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--a); font-size: 15px; }
  .p-contact { margin-top: 34px; background: var(--ad); color: #fff; padding: 30px 16px; }
  .p-contact .sub { color: #d6e0f3; }
  .p-contact .ctas { margin: 18px 0; }
  .p-contact .btn { background: #fff; color: var(--ad); width: 100%; }
  .P .who { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: baseline; padding: 16px; border: 1px solid rgba(255, 255, 255, .28); }
  .P .who .nm { grid-column: 1 / -1; font-size: 20px; font-weight: 750; }
  .P .who .rl { grid-column: 1 / -1; margin: 0 0 6px; font: 12px var(--mono); color: #c9d5ee; }
  .P .who dt:not(.nm) { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #c9d5ee; }
  .P .who dd { margin: 0; overflow-wrap: anywhere; }
  .P .who a { color: #fff; display: inline-block; padding: 6px 0; }
  .p-foot { background: var(--ink); color: #b9c4da; padding: 18px 16px 22px; font-size: 12px; }
  .p-foot p + p { margin-top: 6px; }
  .p-foot p:first-child { display: flex; align-items: flex-start; color: #e2e8f4; }
  .p-foot .mk { margin-top: .4em; }
  .p-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; gap: 8px; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .p-bar .btn { flex: 1; min-width: 0; }
  .p-bar .mail { display: grid; place-items: center; width: 52px; min-height: 48px; background: var(--as); color: var(--ad); flex: none; }
}
@media (max-width: 359px) {
  .P .wm .fn { display: none; }
  .P .aisles li { grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "id v" "id ok" "id r" "id c"; }
  .P .a-ok { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
