/* Inner pages: services, products, estimator, about, contact, privacy, demo, shared-map gate, errors and the review index. */

.page-hero .h1 { max-width: 15ch; }
.page-hero .lead { max-width: 660px; }
.proto-note { margin-top: 18px; display: inline-block; padding: 8px 12px; border-radius: 6px; font: 12.5px/1.5 var(--mono); color: var(--muted); border: 1px dashed var(--line-2); }

/* ---------- services index: search ---------- */
.search { position: relative; max-width: 640px; margin-top: 32px; }
.search > .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 58px; padding: 0 52px; font: 400 17px/1 var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 999px; box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--laterite) 20%, transparent), var(--shadow); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card-2); cursor: pointer; display: grid; place-items: center; }
.search-clear .i { width: 16px; height: 16px; }
.search-hints { margin-top: 14px; }
.search-hints .chip { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.results-wrap { padding-top: 0; }
.results-count { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.results { list-style: none; display: grid; gap: 8px; }
.results li[hidden] { display: none; }
.results a, .fp-like { display: grid; grid-template-columns: 70px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.results a:hover { border-color: var(--laterite); transform: translateX(4px); }
.r-code { font-size: 12px; color: var(--accent); }
.r-text b { display: block; font-weight: 600; }
.r-text small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.r-text em { display: block; font: normal 12px/1.4 var(--mono); color: var(--muted); margin-top: 6px; }
.results mark { background: color-mix(in srgb, var(--laterite) 25%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.results-empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; gap: 16px; justify-items: start; }
.svc-list { padding-top: clamp(24px, 4vw, 48px); }
.svc-row { display: grid; grid-template-columns: 48px 56px minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 36px); align-items: start;
  padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line); text-decoration: none; transition: background .25s; }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row:hover .sr-title { color: var(--accent); }
.svc-row:hover .link .i { transform: translateX(4px); }
.sr-num { font-size: 13px; color: var(--muted); padding-top: 8px; }
.sr-mark { width: 48px; height: 48px; }
.sr-title { display: block; font: 800 clamp(26px, 2.8vw, 40px)/1.05 var(--head); letter-spacing: -.02em; transition: color .2s; }
.sr-sum { display: block; color: var(--muted); margin-top: 12px; font-size: 16.5px; max-width: 560px; }
.sr-q { display: block; font: 13px/1.5 var(--mono); color: var(--accent); margin-top: 14px; }
.sr-side { display: grid; gap: 18px; padding-top: 6px; }
.sr-side .ticks li { font-size: 14.5px; color: var(--muted); }

/* ---------- service and product detail ---------- */
.svc-h1 { max-width: 18ch; }
.short-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.short-intro p { font-size: 17.5px; }
.short-intro p.first { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; color: var(--fg); }
.facts { position: sticky; top: calc(var(--top-h) + 24px); display: grid; gap: 22px; padding: 26px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.facts .label { display: block; margin-bottom: 8px; }
.facts p { font-size: 15.5px; }
.facts-q { font: 500 17px/1.45 var(--body); color: var(--accent); }
.in-short { padding-top: 0; }
.filter { margin-bottom: 22px; }
.offers { display: grid; gap: 10px; }
.offer { border-radius: 10px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; scroll-margin-top: calc(var(--top-h) + 20px); }
.offer[hidden] { display: none; }
.offer[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.offer:target { border-color: var(--laterite); box-shadow: 0 0 0 3px color-mix(in srgb, var(--laterite) 20%, transparent); }
.offer summary { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 30px; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; list-style: none; }
.offer summary::-webkit-details-marker { display: none; }
.o-code { font-size: 12px; color: var(--accent); }
.o-head b { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.o-head small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.o-tag { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--card-2); white-space: nowrap; }
.o-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  transition: transform .35s var(--ease); }
.offer[open] .o-toggle { transform: rotate(135deg); }
.offer::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.offer[open]::details-content { block-size: auto; }
.o-body { padding: 0 20px 22px 108px; display: grid; gap: 18px; }
.o-body > p { color: var(--muted); max-width: 760px; }
.o-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.o-meta .label { display: block; margin-bottom: 6px; }
.o-meta p, .o-meta li { font-size: 15px; }
.others .eyebrow { margin-bottom: 22px; }
.prod-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.price-card { position: relative; padding: 28px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.price-mark { width: 44px; height: 44px; margin-bottom: 20px; }
.price-value { font: 800 clamp(30px, 3vw, 40px)/1.05 var(--head); letter-spacing: -.02em; margin: 8px 0 10px; }
.price-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.price-facts dd { margin: 4px 0 0; font-weight: 500; }
.parts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.part { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.part-n { font-size: 13px; color: var(--accent); }
.part-main b { display: block; font-weight: 600; }
.part-main small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 3px; max-width: 680px; }
.part-unit { font-size: 13px; color: var(--muted); white-space: nowrap; }
.extras-h { margin: 40px 0 12px; }
.table-note { margin-top: 18px; max-width: 760px; }
.start-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); counter-reset: s; }
.start-steps li { padding: 26px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.start-steps .mono { color: var(--accent); font-size: 13px; }
.start-steps p { color: var(--muted); }
.prod-grid .prod-card { min-height: 100%; }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-for .label { display: block; margin-bottom: 4px; }
.pc-for p { font-size: 14.5px; }
.pc-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.compare-table th[scope="row"] a { display: flex; gap: 12px; align-items: center; text-decoration: none; font: 600 15.5px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--fg); }
.compare-table th[scope="row"] .tile-mark { width: 26px; height: 26px; }
.compare-table td { color: var(--muted); }
.compare-table .ticks li { font-size: 14px; }
.nowrap { white-space: nowrap; }

/* ---------- estimator ---------- */
.est-main { padding-top: clamp(24px, 4vw, 48px); }
.est-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.est-form { display: grid; gap: 18px; }
.est-step { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; gap: 14px; min-width: 0; }
.est-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 4px; font: 700 20px/1.2 var(--head); }
.est-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fg); color: var(--bg); font: 500 12px/1 var(--mono); }
.est-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice.is-off { opacity: .55; cursor: default; }
.choice.is-off:hover { border-color: var(--line-2); }
.choice.is-off a { color: var(--accent); }
.est-area { display: flex; gap: 10px; }
.est-area .input { flex: 1; min-width: 0; font: 600 22px/1 var(--mono); min-height: 56px; }
.seg { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--card-2); flex: none; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 48px; padding: 0 16px; border-radius: 6px; cursor: pointer; font-size: 15px; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--bg); box-shadow: var(--shadow); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--laterite); }
.est-quick .chip { min-height: 34px; font-family: var(--mono); font-size: 13px; }
.est-err { color: var(--alert); font-size: 14px; }
.est-extras { display: grid; gap: 8px; }
.est-result { position: sticky; top: calc(var(--top-h) + 20px); }
.est-card { padding: 28px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.est-card.is-ready { border-color: var(--accent); }
.est-card.pop { animation: pop .45s var(--ease); }
@keyframes pop { 30% { transform: scale(1.012); } }
.est-wait { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 20px 0; }
.est-motif { width: 64px; height: 64px; color: var(--line-2); }
.est-wait-h { font: 700 20px/1.2 var(--head); }
.est-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 10px 0 8px; font: 800 clamp(28px, 2.6vw, 38px)/1.05 var(--head); letter-spacing: -.02em; font-feature-settings: "tnum"; }
.est-to { font: 400 15px/1 var(--body); color: var(--muted); }
.est-for { color: var(--muted); font-size: 15px; }
.est-for b { color: var(--fg); }
.est-sums { display: grid; gap: 8px; margin: 20px 0 6px; padding: 16px 0; border-block: 1px solid var(--line); }
.est-sums div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.est-sums dt { color: var(--muted); }
.est-sums dd { margin: 0; text-align: right; }
.est-total { font-weight: 600; }
.est-total dt { color: var(--fg) !important; }
.est-break summary { font-size: 15px; padding: 14px 0; }
.est-break .table { font-size: 14px; }
.est-disclaimer { font-size: 13.5px; color: var(--muted); margin: 16px 0; }
.est-bar { display: none; }
.est-empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 24px; max-width: 640px; margin: 0 auto; }
.est-empty .ctas { justify-content: center; margin-top: 8px; }
.est-main > .wrap > .flash { margin-bottom: 18px; }
.est-prop-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.est-sends { margin-top: 20px; }
.sent { display: grid; gap: 12px; justify-items: start; }
.sent > .i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }

/* ---------- about ---------- */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-h1 { max-width: 16ch; font-size: clamp(38px, 5vw, 72px); }
.tilefield { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; aspect-ratio: 8 / 6; }
.tilefield i { border-radius: 3px; background: var(--card-2); animation: tf 6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 1s); }
.tilefield i:nth-child(3n) { background: color-mix(in srgb, var(--fg) 14%, transparent); }
.tilefield i:nth-child(7n) { background: color-mix(in srgb, var(--fg) 26%, transparent); }
.tilefield i.slot { background: transparent; outline: 1.5px dashed var(--line-2); outline-offset: -2px; }
.tilefield b { position: absolute; width: calc((100% - 35px) / 8); aspect-ratio: 1; left: calc((100% + 5px) / 8 * 5); top: calc((100% + 5px) / 6 * 3);
  background: var(--laterite); border-radius: 4px; box-shadow: 0 14px 24px rgba(0,0,0,.25); transform: translate(18%, 30%) rotate(20deg); }
.js .tilefield b { transform: none; transition: transform 1s var(--ease) .5s; }
.js .tilefield.in b { transform: translate(18%, 30%) rotate(20deg); }
.tf-note { position: absolute; left: 0; bottom: -30px; font-size: 12px; color: var(--muted); }
.principle { gap: 14px; }
.pr-tile { width: 22px; height: 22px; border-radius: 3px; background: var(--laterite); transform: rotate(20deg); }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); position: relative; padding-top: 34px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.timeline li { position: relative; display: grid; gap: 8px; align-content: start; }
.tl-dot { position: absolute; top: -34px; left: 0; width: 18px; height: 18px; background: var(--bg); border: 2px solid var(--fg); transform: rotate(45deg); }
.timeline li:last-child .tl-dot { background: var(--laterite); border-color: var(--laterite); }
.timeline .mono { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.timeline p { color: var(--muted); font-size: 15.5px; }
.models-h { margin: clamp(48px, 6vw, 72px) 0 18px; }
.models b { font-size: 17px; }
.record .stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--inv-line); }
.record .stat { padding: 28px 24px 8px 0; border-right: 1px solid var(--inv-line); margin-right: 24px; }
.record .stat:last-child { border-right: 0; }
.record .stat b { display: block; font: 800 clamp(44px, 5vw, 84px)/1 var(--head); letter-spacing: -.03em; }
.record .stat p { margin-top: 14px; color: var(--inv-muted); font-size: 15px; }
.sector-q { font: 500 16px/1.45 var(--body); color: var(--accent) !important; }
.family-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.family-diagram { display: grid; gap: 0; justify-items: center; }
.fd-box { width: 100%; padding: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); display: grid; gap: 4px; }
.fd-box b { font: 700 20px/1.2 var(--head); }
.fd-k { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.fd-k .mono { color: var(--laterite); }
.fd-join { height: 44px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 5px, transparent 5px 10px); position: relative; }
.fd-join span { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; background: var(--laterite); transform: translate(-50%, -50%) rotate(20deg); border-radius: 2px; }
.fd-out { margin-top: 14px; color: var(--muted); }
.facts-grid, .faq-two { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.kv > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.kv dd { margin: 6px 0 0; font-size: 16px; }
.kv a { text-decoration: none; color: var(--accent); }
.faq-two .h2 { font-size: clamp(30px, 3.4vw, 48px); position: sticky; top: calc(var(--top-h) + 24px); }

/* ---------- contact ---------- */
.contact-main { padding-top: clamp(16px, 3vw, 40px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.stepper { padding: clamp(22px, 3vw, 36px); gap: 22px; border-radius: 16px; background: var(--bg); border-color: var(--line-2); box-shadow: var(--shadow); }
.st-progress { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-progress li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 3px solid var(--line); transition: border-color .4s, color .4s; }
.st-progress li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 11px/1 var(--mono); flex: none; transition: background .3s, color .3s; }
.st-progress li.on { color: var(--fg); border-color: var(--laterite); }
.st-progress li.on span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.st-progress li.done span { background: var(--laterite); border-color: var(--laterite); color: #fff; }
.st-step { margin: 0; padding: 0; border: 0; display: grid; gap: 18px; min-width: 0; }
.st-step.enter { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.st-h { font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--head); letter-spacing: -.015em; padding: 0; margin-bottom: 4px; }
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.needs .choice small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.prompts .chip { min-height: 34px; font-size: 13px; padding: 0 12px; }
.st-review { padding: 16px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; }
.st-review p { font-size: 15px; }
.st-review:empty { display: none; }
.st-nav { display: flex; gap: 10px; justify-content: space-between; }
.st-nav [data-next], .st-nav [data-send] { margin-left: auto; min-width: 150px; }
.st-foot { margin-top: -8px; }
.sent-mark .tile-mark { width: 56px; height: 56px; color: var(--fg); animation: sentIn .8s var(--ease); }
@keyframes sentIn { from { transform: scale(.6) rotate(-20deg); opacity: 0; } }
.contact-side { display: grid; gap: 16px; position: sticky; top: calc(var(--top-h) + 20px); }
.ways-list { display: grid; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.way-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 16px 18px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .2s; }
.way-row:last-child { border-bottom: 0; }
a.way-row:hover { background: var(--bg); }
a.way-row:active { background: var(--card-2); }
.way-row > .i:first-child { color: var(--accent); width: 22px; height: 22px; }
.way-row > .i:last-child { width: 16px; height: 16px; color: var(--muted); }
.way-row b { display: block; font-weight: 600; font-size: 15.5px; }
.way-row small { display: block; color: var(--muted); font-size: 13.5px; }
.way-wa { background: var(--btn-accent); color: var(--on-accent); }
.way-wa small, .way-wa > .i { color: inherit !important; opacity: .9; }
a.way-wa:hover { background: var(--btn-accent); filter: brightness(1.08); }
.next ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.next b { color: var(--fg); }

/* ---------- privacy ---------- */
.privacy { padding-top: 0; }
.privacy-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--top-h) + 24px); display: grid; gap: 4px; }
.toc .label { margin-bottom: 8px; }
.toc a { padding: 6px 0 6px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); font-size: 15px; }
.toc a:hover { color: var(--fg); border-color: var(--laterite); }
.summary { gap: 12px; margin-bottom: 8px; }
.summary .ticks li { font-size: 15.5px; color: var(--fg); }

/* ---------- bare pages: gate, errors, review ---------- */
.bare-top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bare-top .theme { margin-left: auto; }
.gate-body .bare-top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.gate-body .bare-top .logo { color: var(--inv-fg); }
.bare-tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.gate { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; min-height: 100svh; }
.gate-panel { position: relative; overflow: hidden; background: var(--inv-bg); color: var(--inv-fg); }
.gate-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-contours path { fill: none; stroke: var(--inv-fg); stroke-width: 1; opacity: .22; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.4s var(--ease) forwards; }
.g-contours path:nth-child(2n) { animation-delay: .25s; }
.g-contours path:nth-child(3n) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.g-plots rect { fill: none; stroke: var(--inv-fg); stroke-width: .02; opacity: 0; animation: plot .5s var(--ease) forwards; animation-delay: calc(.6s + var(--k, 0) * 60ms); }
.g-plots rect.slot { stroke-dasharray: .05 .04; }
.g-plots rect.lift { fill: var(--laterite); stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; animation: liftIn .8s var(--ease) 1.6s forwards; }
@keyframes plot { to { opacity: .55; } }
@keyframes liftIn { from { opacity: 0; transform: none; } to { opacity: 1; transform: rotate(20deg) translate(.08px, .1px); } }
.gate-panel-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vw, 64px); }
.gate-motto { font: 800 clamp(32px, 3.6vw, 52px)/1.02 var(--head); letter-spacing: -.02em; }
.gate-sub { margin-top: 10px; color: var(--inv-muted); }
.gate-src { margin-top: 18px; color: var(--inv-muted); }
.gate-card { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top-h) + 32px) clamp(20px, 6vw, 88px) 40px; max-width: 620px; }
.gate-title { font-size: clamp(30px, 3vw, 44px); margin-bottom: 14px; }
.gate-form { margin: 26px 0 18px; }
.gate-code { font: 600 26px/1 var(--mono) !important; letter-spacing: .18em; text-align: center; text-transform: uppercase; min-height: 64px !important; }
.gate-notes { list-style: none; display: grid; gap: 6px; }
.gate-back { margin-top: 28px; }
.gate-back a { color: var(--accent); }
.gate-card .flash { margin-top: 18px; }
.gate-loader { display: grid; grid-template-columns: repeat(3, 26px); gap: 4px; margin-top: 24px; position: relative; width: max-content; }
.gate-loader i { height: 26px; border-radius: 3px; background: var(--card-2); animation: blink 1.2s ease-in-out infinite; }
.gate-loader i:nth-child(2n) { animation-delay: .2s; } .gate-loader i:nth-child(3n) { animation-delay: .4s; }
.gate-loader b { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 3px; background: var(--laterite); animation: spinTile 1.6s var(--ease) infinite; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes spinTile { 50% { transform: rotate(20deg) translate(4px, 4px); } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.error-page { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center;
  padding: calc(var(--top-h) + 48px) var(--gutter) 64px; max-width: 1240px; margin: 0 auto; }
.err-art { position: relative; display: grid; grid-template-columns: repeat(3, clamp(44px, 6vw, 72px)); gap: 6px; }
.err-art i { aspect-ratio: 1; border-radius: 4px; background: var(--fg); }
.err-art i.gone { background: transparent; outline: 2px dashed var(--line-2); outline-offset: -3px; }
.err-art b { position: absolute; width: clamp(44px, 6vw, 72px); aspect-ratio: 1; border-radius: 4px; background: var(--laterite); right: -40%; bottom: -40%;
  transform: rotate(20deg); animation: drift 5s ease-in-out infinite; box-shadow: 0 18px 28px rgba(0,0,0,.2); }
@keyframes drift { 50% { transform: rotate(32deg) translate(10px, 8px); } }
.err-copy .h1 { font-size: clamp(36px, 5vw, 68px); max-width: 16ch; }
.err-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; max-width: 640px; }
.err-links .card { display: grid; grid-template-columns: 1fr 18px; gap: 2px 12px; padding: 18px 20px; }
.err-links .card .i { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 18px; height: 18px; color: var(--muted); }
.err-coord { margin-top: 32px; }

.review { max-width: 1100px; margin: 0 auto; padding: calc(var(--top-h) + 48px) var(--gutter) 96px; }
.rev-head .h1 { max-width: 16ch; }
.rev-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.rev-tips .card { padding: 18px; gap: 6px; }
.rev-tips p { font-size: 14.5px; }
.rev-group { margin-top: clamp(40px, 6vw, 64px); }
.rev-h { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--fg); }
.rev-list { list-style: none; }
.rev-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "t n" "u n"; gap: 4px 28px; padding: 16px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background .2s; }
.rev-list a:hover { background: var(--card); }
.rev-title { grid-area: t; font-weight: 600; font-size: 17px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rev-url { grid-area: u; font-size: 12.5px; color: var(--muted); }
.rev-note { grid-area: n; color: var(--muted); font-size: 15px; }
.rev-ticks li { font-size: 16px; color: var(--muted); }
.rev-ticks b { color: var(--fg); }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .page-hero .h1 { max-width: none; }
  .search { margin-top: 24px; }
  .search input { height: 54px; font-size: 16px; }
  .search-hints { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .search-hints::-webkit-scrollbar { display: none; }
  .results a { grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; padding: 14px; }
  .r-code { grid-column: 1 / -1; margin-bottom: -6px; }
  .svc-row { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 14px; padding: 26px 0; }
  .sr-num { display: none; }
  .sr-mark { width: 40px; height: 40px; }
  .sr-main { grid-column: 2; }
  .sr-side { grid-column: 2; }
  .sr-side .ticks { display: none; }
  .short-grid, .prod-hero, .est-grid, .est-prop-grid, .about-hero-grid, .family-grid, .facts-grid, .faq-two, .contact-grid, .privacy-grid { grid-template-columns: 1fr; }
  .facts, .est-result, .contact-side, .toc, .faq-two .h2 { position: static; }
  .toc { display: none; }
  .filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .offer summary { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 12px; padding: 16px; }
  .o-code { grid-column: 1; }
  .o-head { grid-column: 1; }
  .o-tag { display: none; }
  .o-toggle { grid-column: 2; grid-row: 1 / 3; }
  .o-body { padding: 0 16px 18px; }
  .price-card { padding: 22px; }
  .part { grid-template-columns: 34px minmax(0, 1fr); }
  .part-unit { grid-column: 2; }
  .start-steps { grid-template-columns: 1fr; }
  .compare-table { min-width: 680px; }
  .est-step { padding: 18px; }
  .est-products, .needs { grid-template-columns: 1fr; }
  .est-area { flex-direction: column; }
  .seg { width: 100%; }
  .seg label { flex: 1; }
  .est-card { padding: 22px; }
  .est-bar:not([hidden]) { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 41; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--inv-bg); color: var(--inv-fg); box-shadow: var(--shadow-lg);
    transition: transform .4s var(--ease), opacity .3s; }
  .est-bar .label { color: var(--inv-muted); display: block; font-size: 10px; }
  .est-bar b { font: 700 16px/1.2 var(--head); font-feature-settings: "tnum"; }
  .est-card-seen .est-bar { transform: translateY(140%); opacity: 0; }
  body:has(.est-bar:not([hidden])):not(.est-card-seen) .actionbar { transform: translateY(110%); }
  .tilefield { max-width: 360px; }
  .timeline { grid-template-columns: 1fr; padding: 0 0 0 36px; gap: 26px; }
  .timeline::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 1.5px; height: auto; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 12px); }
  .tl-dot { top: 2px; left: -36px; }
  .record .stats { grid-template-columns: 1fr 1fr; }
  .record .stat { padding: 22px 12px 18px 0; margin-right: 12px; }
  .record .stat:nth-child(2) { border-right: 0; }
  .kv { grid-template-columns: 1fr; }
  .stepper { padding: 20px 16px; margin-inline: calc(var(--gutter) * -1 + 6px); border-radius: 14px; }
  .st-progress li { font-size: 0; gap: 0; }
  .st-progress li span { font-size: 11px; }
  .st-nav { position: sticky; bottom: 0; z-index: 3; margin: 0 -16px -20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
  .st-nav .btn { flex: 1; }
  .st-nav [data-back] { flex: 0 0 auto; }
  .st-foot { order: 5; }
  .gate { grid-template-columns: 1fr; grid-template-rows: 36vh auto; }
  .gate-body .bare-top { position: absolute; color: var(--inv-fg); }
  .gate-body .bare-top .theme { border-color: var(--inv-line); }
  .gate-panel-text { bottom: 20px; }
  .gate-motto { font-size: 28px; }
  .gate-sub, .gate-src { display: none; }
  .gate-card { padding: 28px 20px 40px; max-width: none; justify-content: flex-start; }
  .error-page { grid-template-columns: 1fr; align-content: center; gap: 36px; overflow: hidden; }
  .err-art b { right: -24%; }
  .err-links { grid-template-columns: 1fr; }
  .rev-tips { grid-template-columns: 1fr; }
  .rev-list a { grid-template-columns: 1fr; grid-template-areas: "t" "u" "n"; }
}
