/* Cekim Electronics – dark "circuit board" theme. Self-hosted fonts, no external requests. */
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/plexmono-500.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --bg: #04132b; --bg2: #061a38; --panel: #0a2347; --panel2: #0f2d58;
  --line: #15355f; --line2: #234a7c;
  --ink: #eaf4ff; --muted: #9db6d3; --dim: #6f8bad;
  --accent: #14c1f5; --accent-ink: #021626; --amber: #a7a9ac; --warn: #ffb454; --danger: #ff7b7b;
  --r: 14px; --r-sm: 9px;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .92em; background: #041126; border: 1px solid var(--line); border-radius: 6px; padding: .1em .45em; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.ic { width: 24px; height: 24px; flex: none; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 19, 43, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.1rem; margin-right: auto; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 .8rem var(--mono); padding: 8px 10px; cursor: pointer; letter-spacing: .04em; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lang button:not([aria-pressed="true"]):hover { color: var(--ink); background: var(--panel2); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 13px 22px; font: 600 1rem var(--f); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 15px; font-size: .9rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(20, 193, 245, .35); }
.btn-accent:hover { box-shadow: 0 6px 24px -6px rgba(20, 193, 245, .55); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(36px, 6vw, 72px); overflow: hidden;
  background: radial-gradient(900px 420px at 85% 10%, rgba(20, 193, 245, .09), transparent 60%), linear-gradient(var(--bg), var(--bg2)); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; opacity: .35; mask-image: radial-gradient(ellipse at 70% 40%, #000 0, transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { font: 500 .8rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; }
.lead { margin-top: 18px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.chips li { font: 500 .8rem var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; background: rgba(10, 35, 71, .6); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 34px; max-width: 62ch; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head .muted { margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .2s, transform .2s var(--ease); }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .ic { color: var(--accent); width: 30px; height: 30px; margin-bottom: 14px; }
.tile h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: .95rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 22px 20px 20px; border-left: 2px solid var(--line2); }
.steps .num { font: 500 .85rem var(--mono); color: var(--amber); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .96rem; }

/* ---------------------------------------------------------------- wizard */
.wizard { min-height: 320px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; }
.stepper li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 3px solid var(--line2); color: var(--dim); font-size: .85rem; font-weight: 500; transition: border-color .25s; }
.stepper li.done { border-color: var(--accent); color: var(--muted); }
.stepper li.active { border-color: var(--accent); color: var(--ink); }
.stepper .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font: 500 .8rem var(--mono); }
.stepper li.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper li.active .dot { border-color: var(--accent); color: var(--accent); }
.stepper .dot .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3.4vw, 32px); display: grid; gap: 22px; }
.step-title { font-size: 1.35rem; outline: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.field { display: grid; gap: 6px; }
.field.narrow-f { max-width: 280px; }
.field label, .label-row label { font-weight: 600; font-size: .95rem; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
input[type="text"], input:not([type]), input[type="tel"], input[type="email"], textarea {
  width: 100%; background: #051a37; color: var(--ink); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 12px 14px; font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, textarea:hover { border-color: #35639c; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 193, 245, .18); }
input:disabled { opacity: .5; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.hint { color: var(--muted); font-size: .88rem; }
.hint.warn { color: var(--warn); }
.err { color: var(--danger); font-size: .9rem; margin-top: 4px; }
.err.sum { font-weight: 600; }
.req { color: var(--warn); font-weight: 500; font-size: .85rem; margin-left: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; background: #051a37; color: var(--muted); border: 1px solid var(--line2); border-radius: var(--r); font: 600 .92rem var(--f); cursor: pointer; text-align: center; transition: all .18s var(--ease); }
.opt .ic { width: 30px; height: 30px; }
.opt:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.opt[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(20, 193, 245, .08); box-shadow: inset 0 0 0 1px var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { background: #051a37; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 15px; font: 500 .92rem var(--f); cursor: pointer; transition: all .15s; }
.chip-btn:hover { color: var(--ink); border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.check, .radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; color: var(--ink); }
.check input, .radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.radio-col { display: grid; gap: 10px; }
.consent { font-size: .9rem; color: var(--muted); }

/* repair category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cat { position: relative; display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 14px 14px 14px 14px; background: #051a37; color: var(--ink); border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; font: inherit; transition: all .18s var(--ease); }
.cat > .ic { color: var(--muted); margin-top: 2px; }
.cat-t { display: grid; gap: 3px; padding-right: 22px; }
.cat-t b { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.cat-t small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.cat:hover { border-color: var(--accent); }
.cat .tick { position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; color: transparent; transition: all .15s; }
.cat .tick .ic { width: 12px; height: 12px; stroke-width: 3; }
.cat[aria-pressed="true"] { border-color: var(--accent); background: rgba(20, 193, 245, .07); box-shadow: inset 0 0 0 1px var(--accent); }
.cat[aria-pressed="true"] .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat[aria-pressed="true"] > .ic { color: var(--accent); }

/* model-number guide */
.guide { background: #051a37; border: 1px dashed var(--line2); border-left: 3px solid var(--amber); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; animation: rise .25s var(--ease); }
.guide h3 { font-size: 1.02rem; }
.path { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; }
.path li:not(.sep) { font: 500 .8rem var(--mono); background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 9px; color: var(--ink); }
.path .sep { color: var(--amber); } .path .sep .ic { width: 16px; height: 16px; }
.guide-grid { display: grid; grid-template-columns: 1fr 190px; gap: 20px; align-items: start; }
.gsteps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink); font-size: .94rem; }
.gsteps li::marker { color: var(--amber); font-family: var(--mono); }
.mock { background: var(--bg); border: 1px solid var(--line2); border-radius: 18px; padding: 10px 10px 14px; display: grid; gap: 8px; font-size: .72rem; }
.mock-bar { font-weight: 600; color: var(--muted); padding: 4px 4px 6px; border-bottom: 1px solid var(--line); }
.sk { display: block; height: 9px; border-radius: 5px; background: var(--panel2); } .sk.s { width: 60%; }
.mock-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 8px; background: rgba(20, 193, 245, .1); outline: 1.5px solid var(--accent); animation: pulse 2.2s ease-in-out infinite; }
.mock-row span { color: var(--muted); } .mock-row b { font: 500 .72rem var(--mono); color: var(--accent); word-break: break-all; text-align: right; }
@keyframes pulse { 50% { outline-color: rgba(20, 193, 245, .35); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.review-h { font-size: 1.05rem; }
.review { display: grid; gap: 0; margin: 0; }
.review > div { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review dt { color: var(--muted); font-size: .88rem; } .review dd { margin: 0; overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; background: var(--panel); border: 1px solid var(--accent); border-radius: 18px; display: grid; justify-items: center; gap: 16px; outline: none; animation: rise .35s var(--ease); }
.ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; } .ok-ic .ic { width: 32px; height: 32px; stroke-width: 2.6; }
.success h3 { font-size: 1.6rem; } .success > p { color: var(--muted); max-width: 46ch; }
.ref { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 12px 16px; border: 1px dashed var(--line2); border-radius: 12px; }
.ref span { color: var(--muted); font-size: .9rem; } .ref code { font-size: 1.2rem; padding: .25em .6em; }

/* ---------------------------------------------------------------- contact / footer */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.contact-list .ic { color: var(--accent); margin-top: 2px; }
.contact-list .k { display: block; font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); } .contact-list .v { display: block; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .9rem; }
.foot { align-items: center; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line2); border-radius: 16px; padding: 26px; width: min(560px, 92vw); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
dialog form { display: grid; gap: 14px; justify-items: start; } dialog h2 { font-size: 1.3rem; } #privacyBody { color: var(--muted); font-size: .94rem; display: grid; gap: 10px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art .pcb { width: 340px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .bar { gap: 10px; min-height: 58px; } .brand span { font-size: 1rem; } .btn-sm { padding: 8px 11px; font-size: .82rem; }
  .two, .guide-grid { grid-template-columns: 1fr; } .mock { max-width: 220px; }
  .stepper .lbl { font-size: .72rem; } .cat-grid { grid-template-columns: 1fr; }
  .review > div { grid-template-columns: 1fr auto; } .review dt { grid-column: 1 / -1; }
  .nav-row .btn { padding: 12px 18px; }
}
@media (max-width: 400px) { .brand span { display: none; } }
/* Reduced motion: no transitions / entrance effects; the slow decorative circuit animation keeps running (it is the brand visual). */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } .pcb, .guide, .success { animation: none !important; } }

/* ---------------------------------------------------------------- brand image, hero photo, videos */
.brand img { width: auto; height: 46px; }
.foot-logo { height: 54px; width: auto; }
.hero-art { position: relative; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vid { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vid-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.vid-btn img, .vid iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.vid-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23021626' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 34px no-repeat; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); transition: transform .18s var(--ease); }
.vid-btn:hover::after { transform: scale(1.08); }
.vid figcaption { padding: 12px 14px 14px; font-size: .92rem; font-weight: 500; line-height: 1.35; }
.vid-more { margin-top: 22px; }
.logo-plate { display: inline-block; background: #fff; border-radius: 14px; padding: 14px 20px; }
.logo-plate img { height: 54px; width: auto; }
.about { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- animated circuit board: QFN-48 chip carrying the round logo */
.hero-art { display: grid; place-items: center; }
.pcb { width: min(100%, 560px); height: auto; overflow: visible; animation: rise .9s var(--ease) both; }
.pcb .traces path, .pcb .signal path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pcb .traces path { stroke: #1d4a80; }
.pcb .traces .w1 { stroke-width: 1.3; } .pcb .traces .w2 { stroke-width: 2.4; } .pcb .traces .w3 { stroke-width: 4; }
.pcb .signal path { stroke: url(#sg); stroke-dasharray: 56 344; stroke-dashoffset: 56; animation: flow 4s linear infinite; }
.pcb .signal .w1 { stroke-width: 1.8; } .pcb .signal .w2 { stroke-width: 3; } .pcb .signal .w3 { stroke-width: 4.6; }
.pcb .vias circle { fill: var(--bg); stroke: var(--amber); stroke-width: 1.5; animation: viaflash 4s ease-in-out infinite; }
.pcb .vias .v3 { stroke-width: 2; }
.pcb .lead rect { fill: #8fb4d6; }
.pcb .body { fill: #06172e; stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 16px rgba(20, 193, 245, .3)); animation: chipglow 3.4s ease-in-out infinite; }
.pcb .die { fill: #0a2347; stroke: #1d4a80; stroke-width: 1.5; }
.pcb .pin1 { fill: var(--accent); animation: blink 2.4s ease-in-out infinite; }
.pcb .chip-logo { filter: drop-shadow(0 0 5px rgba(20, 193, 245, .35)); }
@keyframes flow { 0% { stroke-dashoffset: 56; } 100% { stroke-dashoffset: -400; } }
@keyframes viaflash { 0%, 80% { stroke: var(--amber); } 88% { stroke: #bff1ff; } 100% { stroke: var(--amber); } }
@keyframes chipglow { 50% { stroke: #7fe3ff; } }
@keyframes blink { 50% { opacity: .25; } }
/* every signal has its own speed and phase; its via flashes when the pulse arrives */
.pcb path.sp1, .pcb circle.sp1 { animation-duration: 2.3s; }
.pcb path.sp2, .pcb circle.sp2 { animation-duration: 3.0s; }
.pcb path.sp3, .pcb circle.sp3 { animation-duration: 3.8s; }
.pcb path.sp4, .pcb circle.sp4 { animation-duration: 4.7s; }
.pcb path.sp5, .pcb circle.sp5 { animation-duration: 5.9s; }
.pcb path.sp6, .pcb circle.sp6 { animation-duration: 7.4s; }
.pcb path.dl1, .pcb circle.dl1 { animation-delay: 0s; }
.pcb path.dl2, .pcb circle.dl2 { animation-delay: -0.9s; }
.pcb path.dl3, .pcb circle.dl3 { animation-delay: -1.8s; }
.pcb path.dl4, .pcb circle.dl4 { animation-delay: -2.7s; }
.pcb path.dl5, .pcb circle.dl5 { animation-delay: -3.6s; }
.hero::after { content: ""; position: absolute; inset: 0 0 0 38%; background: url("../assets/hero-board.jpg") right center / cover no-repeat; opacity: .12; mask-image: linear-gradient(90deg, transparent, #000 55%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); pointer-events: none; }
.hero-grid { z-index: 1; }
@media (max-width: 640px) { .brand img { height: 36px; } .hero::after { inset: 0; opacity: .08; mask-image: none; -webkit-mask-image: none; } .site-header .btn-sm { white-space: nowrap; } }
@media (max-width: 520px) { .site-header .btn-sm { display: none; } .lang { margin-left: auto; } }

/* ---------------------------------------------------------------- hero traces to the buttons (js/board.js: static SVG lanes + one canvas for the signals) */
.bd { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.bd path { fill: none; stroke: #1d4a80; stroke-linecap: round; stroke-linejoin: round; }   /* same colour and widths as the chip's own traces */
.bd-bot { opacity: .5; }                                   /* bottom layer: same colour, less visible */
.bd circle { fill: var(--bg); stroke: var(--amber); stroke-width: 1.2; }
.bdc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
/* once the canvas runs it draws every pulse, so the chip's own CSS animations are switched off (no SVG repaints) */
.hero.cv .pcb .signal { display: none; }
.hero.cv .pcb .signal path { animation: none; }
.hero.cv .pcb .vias circle, .hero.cv .pcb .body, .hero.cv .pcb .pin1 { animation: none; }
.pcb .body { filter: none; }
.pcb .chip-logo { filter: none; }
.pcb .glow { fill: none; stroke: var(--accent); stroke-width: 14; opacity: .09; }

/* ---------------------------------------------------------------- reviews */
.rating { margin-top: 14px; font-size: 1.05rem; }
.stars { color: #ffc107; letter-spacing: 2px; }
.revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rev { margin: 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; }
.rev blockquote { margin: 0; line-height: 1.55; flex: 1; }
.rev figcaption { font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.rev figcaption span { font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------------------------------------------------------------- V9.4: repair descriptions, quality, map, footer */
button.tile { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tile-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--accent); font-size: .88rem; font-weight: 600; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 40px; height: 40px; }
.tile .tile-more .ic { width: 16px; height: 16px; margin: 0; }

/* one repair: details with what we do / quality */
.ri { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg2); }
.ri + .ri { margin-top: 8px; }
.ri summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.ri summary::-webkit-details-marker { display: none; }
.ri summary::after { content: "+"; margin-left: auto; color: var(--accent); font: 600 1.1rem var(--mono); }
.ri[open] summary::after { content: "–"; }
.ri summary .ic { color: var(--accent); width: 20px; height: 20px; }
.ri-body { padding: 0 14px 14px; display: grid; gap: 10px; color: var(--muted); font-size: .94rem; }
.ri-body p { line-height: 1.55; }
.ri-k { display: block; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.ri-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.ri-list { margin-top: 16px; }
.ri-h { font: 500 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.ri-dialog { width: min(680px, 94vw); max-height: 88vh; }
.ri-dialog form { justify-items: stretch; }
.ri-dialog #riBody { max-height: 62vh; overflow: auto; }
.ri-foot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* quality of parts */
.q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.q-col h3 { font-size: 1.15rem; margin-bottom: 12px; }
.q-card { display: flex; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.q-card + .q-card { margin-top: 10px; }
.q-card h4 { margin: 0 0 4px; font-size: 1.02rem; }
.q-card p { font-size: .92rem; line-height: 1.5; } .q-card p + p { margin-top: 6px; color: var(--muted); }
.q-rank { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--mono); background: var(--accent); color: var(--accent-ink); }
.q-card:nth-child(3) .q-rank { background: var(--panel2); color: var(--accent); border: 1px solid var(--accent); }
.q-card:nth-child(4) .q-rank { background: transparent; color: var(--muted); border: 1px solid var(--line2); }

/* model number check */
.mcheck { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mcheck .ic { width: 18px; height: 18px; }
.mcheck.ok { color: #5be49b; } .mcheck.bad { color: var(--warn); } .mcheck.info { color: var(--muted); }

/* contact + map */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.contact-grid .contact-list { grid-template-columns: 1fr; align-content: start; }
.map { min-height: 340px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.15); }
.map-ph { height: 100%; min-height: 340px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--muted);
  background: radial-gradient(420px 220px at 50% 40%, rgba(20, 193, 245, .08), transparent 70%), repeating-linear-gradient(0deg, transparent 0 43px, var(--line) 43px 44px), repeating-linear-gradient(90deg, transparent 0 43px, var(--line) 43px 44px); }
.map-ph .ic { color: var(--accent); } .map-ph b { color: var(--ink); } .map-ph .hint { max-width: 34ch; font-size: .8rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .map, .map iframe, .map-ph { min-height: 280px; } }

/* footer */
.foot { align-items: flex-start; }
.foot-brand { display: grid; gap: 8px; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-contact li { display: flex; align-items: center; gap: 8px; }
.foot-contact .ic { color: var(--accent); }
.foot-contact a, .foot-links a { color: var(--muted); text-decoration: none; } .foot-contact a:hover, .foot-links a:hover { color: var(--ink); }
.foot-links { display: grid; gap: 6px; justify-items: start; }
.foot-links .link { color: var(--muted); text-decoration: none; font-size: .9rem; } .foot-links .link:hover { color: var(--ink); }

/* privacy notice: longer text, scrolls inside */
#privacy { width: min(760px, 94vw); max-height: 88vh; }
#privacy form { justify-items: stretch; }
#privacyBody { max-height: 66vh; overflow: auto; padding-right: 6px; }
#privacyBody h3 { font-size: 1rem; color: var(--ink); margin-top: 6px; }
#privacyBody ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
#privacyBody .pv-upd { font-size: .8rem; color: var(--dim); }

/* V9.4.1 – experience strip, water-damage fact */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trust { border-block: 1px solid var(--line); background: var(--bg2); padding: 26px 0; }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-grid li { display: flex; align-items: baseline; gap: 10px; }
.trust-num { font-size: 1.5rem; color: var(--accent); white-space: nowrap; }
.trust-grid span { color: var(--muted); font-size: .95rem; }
.trust-partners { margin-top: 14px; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; gap: 10px; } }
.ri-fact { border-left: 2px solid var(--accent); padding-left: 10px; }

/* V9.5 – recommendations, principles, terms */
.rec-badge { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(91, 228, 155, .14); border: 1px solid rgba(91, 228, 155, .45); color: #5be49b; font: 600 .72rem var(--f); font-style: normal; letter-spacing: .02em; }
.cat.rec { border-color: rgba(91, 228, 155, .45); }
.q-card .rec-badge { margin: 0 0 6px; }
.q-card.rec { border-color: rgba(91, 228, 155, .4); }
.pr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.pr-grid li { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); border-top: 2px solid var(--accent); }
.pr-grid h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pr-grid p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.doc-dialog { width: min(760px, 94vw); max-height: 88vh; }
.doc-dialog form { justify-items: stretch; }
.doc-body { max-height: 66vh; overflow: auto; padding-right: 6px; color: var(--muted); font-size: .94rem; display: grid; gap: 10px; }
.doc-body h3 { font-size: 1rem; color: var(--ink); margin-top: 6px; }
.doc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.doc-body .pv-upd { font-size: .8rem; color: var(--dim); }

/* V9.7 – status lookup, FAQ, chat button, gallery, prices */
.st-form { display: grid; gap: 14px; }
.st-now { font-size: 1.15rem; margin-top: 6px; } .st-now b { color: var(--accent); }
.st-line { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.st-line li { position: relative; padding: 6px 0 6px 28px; color: var(--dim); }
.st-line li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line2); background: var(--bg); }
.st-line li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; width: 2px; height: calc(100% - 14px); background: var(--line2); }
.st-line li.done { color: var(--muted); } .st-line li.done::before { background: var(--accent); border-color: var(--accent); }
.st-line li.now { color: var(--ink); font-weight: 600; } .st-line li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 193, 245, .2); }
.faq { display: grid; gap: 10px; }
.faq-i { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.faq-i summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; gap: 10px; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after { content: "+"; margin-left: auto; color: var(--accent); font: 600 1.1rem var(--mono); }
.faq-i[open] summary::after { content: "–"; }
.faq-i p { padding: 0 16px 16px; color: var(--muted); line-height: 1.6; }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; justify-items: end; gap: 10px; }
.chat-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px -8px rgba(20, 193, 245, .7); }
.chat-btn .ic { width: 26px; height: 26px; }
.chat-menu { display: grid; gap: 8px; }
.chat-i { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 8px 22px -10px rgba(0,0,0,.7); }
.chat-i:hover { border-color: var(--accent); }
.chat-wa .ic { color: #25d366; } .chat-vb .ic { color: #8f5db7; } .chat-tel .ic { color: var(--accent); }
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.ba { margin: 0; }
.ba-box { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--panel); --pos: 50%; }
.ba-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-box::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(20, 193, 245, .8); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-lbl { position: absolute; top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(4, 19, 43, .75); font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ba-lbl.l { left: 10px; } .ba-lbl.r { right: 10px; color: var(--accent); }
.ba figcaption { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.price-tag { display: inline-block; margin-top: 6px; margin-right: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink); font: 600 .74rem var(--f); }
@media (max-width: 1180px) { .nav a[href="#how"], .nav a[href="#reviews"] { display: none; } }
.chat[hidden], .chat-menu[hidden] { display: none; }
.price-tag.ask { color: var(--muted); border-style: dashed; font-weight: 500; }
.rev-cta { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.rev-qr { width: 96px; height: 96px; background: #fff; border-radius: 8px; padding: 4px; }
@media (max-width: 760px) { .rev-qr { display: none; } }

/* V9.8 – service pages */
.sp-hero { padding-top: clamp(28px, 5vw, 56px); }
.sp-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 10px 0 14px; }
.crumbs { font-size: .85rem; color: var(--dim); } .crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.sp-cards { display: grid; gap: 14px; }
.sp-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 8px; }
.sp-card.rec { border-color: rgba(91, 228, 155, .45); }
.sp-card h3 { font-size: 1.1rem; } .sp-card p { line-height: 1.55; color: var(--muted); } .sp-card .rec-badge { justify-self: start; margin: 0; }
.sp-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sp-table th, .sp-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.sp-table th { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); } .sp-table .r { text-align: right; }
.sp-cta { margin-top: 20px; }
.sp-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.sp-links a { display: block; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.sp-links a:hover { border-color: var(--accent); color: var(--accent); }
.svc-links { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-links a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.svc-links a:hover { color: var(--accent); border-color: var(--accent); }

/* V9.9 – separate pages */
.nav a[aria-current="page"] { color: var(--ink); background: var(--panel); box-shadow: inset 0 -2px 0 var(--accent); }
.section-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.section.page-top { padding-top: clamp(40px, 6vw, 72px); min-height: 52vh; }
.page-cta { text-align: center; border-top: 1px solid var(--line); }
.page-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.page-cta .muted { margin: 10px 0 22px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; place-items: center; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
@media (max-width: 860px) {
  .menu-btn { display: grid; order: 3; }
  .nav.open { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
  .nav.open a { display: block !important; padding: 12px 14px; font-size: 1.02rem; }
  .nav.open a[hidden] { display: none !important; }
}

/* V9.10 – search */
.search-btn { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.search-btn:hover { border-color: var(--accent); }
.search-btn svg, .sx-in svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sx { position: relative; width: 100%; }
.sx-in { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 6px 6px 6px 14px; color: var(--muted); }
.sx-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 193, 245, .18); }
.sx-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 500 1rem var(--f); padding: 8px 0; }
.sx-in input::-webkit-search-cancel-button { filter: invert(.7); }
.sx-in button { flex: none; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 700 .92rem var(--f); padding: 9px 16px; cursor: pointer; }
.sx-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); max-height: 60vh; overflow: auto; }
.sx-list[hidden] { display: none; }
.sx-list a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sx-list a:hover, .sx-list li[aria-selected="true"] a { background: var(--panel2); }
.sx-list small { color: var(--dim); font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sx-hint { margin: 8px 2px 0; color: var(--dim); font-size: .82rem; }
.hero-search { margin: 26px 0 6px; max-width: 560px; }
.hero-search .sx-hint { display: none; }
.sx-ov { position: fixed; inset: 0; z-index: 80; background: rgba(2, 10, 24, .72); backdrop-filter: blur(4px); padding-top: 10vh; }
.sx-ov[hidden] { display: none; }
.sx-panel { position: relative; max-width: 720px; }
.sx-x { position: absolute; right: 16px; top: -46px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); cursor: pointer; }
html.sx-open { overflow: hidden; }
.dev-search { max-width: 640px; margin: -10px 0 28px; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.dev-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.dev-card.rec { border-color: rgba(52, 211, 153, .45); }
.dev-card h3 { font-size: 1.04rem; } .dev-card .muted { font-size: .9rem; flex: 1; }
.dev-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.dev-price { color: var(--muted); font-size: .9rem; } .dev-price b { color: var(--ink); font-size: 1.15rem; } .dev-price.ask { font-style: italic; }
.dev-only { color: var(--muted); margin: 0 0 14px; } .dev-more, .dev-cta { margin-top: 20px; }
@media (max-width: 860px) { .search-btn { order: 2; } }
@media (max-width: 640px) { .sx-in button { padding: 9px 12px; } .sx-ov { padding-top: 70px; } .sx-x { top: -48px; } }
/* search fixes: the list may hang below the hero; no second frame around the field; header room for 🔍 */
.hero:has(.hero-search) { overflow: visible; z-index: 3; }
.hero:has(.hero-search) .hero-art { overflow: hidden; }
.sx-in input, .sx-in input:hover, .sx-in input:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 8px 0 !important; border-radius: 0 !important; }
.nav a { white-space: nowrap; }
.bar .btn-sm { white-space: nowrap; }
@media (max-width: 1080px) and (min-width: 861px) { .nav a { padding: 8px 8px; font-size: .9rem; } }
/* V9.11 – search above the buttons, smart-search label, popular chips */
.hero-search { margin: 26px 0 0; }
.hero-search + .hero-cta { margin-top: 18px; }
.sx-smart { display: block; margin: 0 0 7px 2px; font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sx-pop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.sx-pop span { color: var(--dim); font-size: .8rem; margin-right: 2px; }
.sx-chip { border: 1px solid var(--line2); background: rgba(10, 35, 71, .7); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: 500 .84rem var(--f); cursor: pointer; }
.sx-chip:hover, .sx-chip:focus-visible { border-color: var(--accent); color: var(--accent); }
.sx-ov .sx-pop span { color: var(--muted); }
@media (max-width: 640px) { .sx-chip { font-size: .8rem; padding: 5px 10px; } .hero-search { margin-top: 20px; } }
@media (max-width: 640px) { .sx-pop .sx-chip:nth-of-type(n+6) { display: none; } }
.hint.mn-why { margin: 2px 0 8px; color: var(--muted); }
.hint.mn-broken { font-size: .85rem; color: var(--dim); }
.hint.mcheck.ok { font-weight: 600; }
.mcheck { flex-wrap: nowrap; align-items: flex-start; } .mcheck .ic { flex: none; margin-top: 2px; } .mcheck span { flex: 1; }
/* V9.13 – the search is the main action; chips follow what is typed */
.hero-search .sx-in { padding: 8px 8px 8px 16px; border-width: 2px; border-color: rgba(20, 193, 245, .55); box-shadow: 0 0 0 6px rgba(20, 193, 245, .08), 0 18px 40px rgba(0, 0, 0, .35); }
.hero-search .sx-in input { font-size: 1.12rem; }
.hero-search .sx-in button { padding: 11px 20px; font-size: 1rem; }
.hero-search + .hero-cta .btn { padding: 10px 16px; font-size: .92rem; }
.sx-pop { min-height: 34px; }
a.sx-chip { text-decoration: none; display: inline-block; }
.sx-pop.typed .sx-chip.first { border-color: var(--accent); color: var(--accent); }
.sx-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sx-ov .sx-pop .sx-chip { background: var(--panel); }

/* V9.15 – grey hint in the search field: "iphone 14 pro max – zaslon / baterija …" (Tab, → or tap takes it) */
.sx-in { position: relative; }
.sx-ghost { position: absolute; pointer-events: none; white-space: pre; overflow: hidden; color: transparent; box-sizing: border-box; display: flex; align-items: center; }
.sx-ghost[hidden] { display: none; }
.sx-ghost .g-pre { color: transparent; }
.sx-ghost .g-suf { color: var(--muted); opacity: .75; pointer-events: auto; cursor: pointer; transition: opacity .2s ease; }
.sx-ghost .g-suf.out { opacity: 0; }

/* V9.16 – header: the logo never shrinks; when the links do not fit (narrow window, zoom, longer EN/DE words) they move into ☰ */
.brand, .brand img { flex: none; }
.nav { min-width: 0; }
.nav-compact .nav:not(.open) { display: none; }
.nav-compact .menu-btn { display: grid; order: 3; }
.nav-compact .nav.open { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
.nav-compact .nav.open a { display: block !important; padding: 12px 14px; font-size: 1.02rem; }
.nav-compact .nav.open a[hidden] { display: none !important; }
.nav a.nav-drop { display: none; }
.nav-compact .nav.open a.nav-drop { display: block !important; }
/* some links left the bar: ☰ appears too and holds the whole menu */
.nav-more .menu-btn { display: grid; order: 3; }
.nav-more .nav.open { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
.nav-more .nav.open a { display: block !important; padding: 12px 14px; font-size: 1.02rem; }
.nav-more .nav.open a[hidden] { display: none !important; }
.site-header .wrap.bar { width: min(1400px, 100% - 32px); }
.sx-ghost .g-suf.ph { pointer-events: none; cursor: text; opacity: .6; }

/* V9.17 – phones: smaller chip picture, so the search sits higher; one-line intro */
@media (max-width: 860px) {
  .hero-art .pcb { width: 150px; }
  .hero-art { margin-bottom: -6px; }
}
@media (max-width: 640px) {
  .hero-art .pcb { width: 118px; }
  .hero .lead { font-size: 1rem; }
}
/* repair info: no accent bar under the title when the window opens; a little air above the text */
.ri summary:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.ri-body { padding-top: 4px; }
/* chips under the search: off for now (the field itself completes the words) */
.sx-pop { display: none !important; }
@media (max-width: 640px) { .hero { padding-top: 14px; } .hero-grid { gap: 10px; } }

/* V9.19 – dropdown under the search (most common repairs first) + repair icons */
.sx-dd { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); max-height: min(60vh, 440px); overflow: auto; }
.sx-dd[hidden] { display: none; }
.sx-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.sx-opt:hover, .sx-opt.on { background: rgba(20, 193, 245, .12); color: var(--ink); }
.sx-opt.on { box-shadow: inset 3px 0 0 var(--accent); }
.sx-opt.none { color: var(--accent); }
.sx-ic { width: 22px; height: 22px; flex: none; color: var(--accent); }
.dev-card h3 { display: flex; align-items: center; gap: 10px; }
.dev-card h3 .sx-ic { width: 26px; height: 26px; }
.dev-card h3 .rec-badge { margin-left: 4px; }
@media (max-width: 640px) { .sx-opt { padding: 12px 10px; } }


/* V9.23 – form: the model name completes itself (grey), the model number box knows the usual numbers of that model */
.ig { position: relative; }
.ig-ghost { position: absolute; pointer-events: none; white-space: pre; overflow: hidden; color: transparent; box-sizing: border-box; display: flex; align-items: center; }
.ig-ghost[hidden] { display: none; }
.ig-ghost .g-pre { color: transparent; }
.ig-ghost .g-suf { color: var(--muted); opacity: .75; pointer-events: auto; cursor: pointer; }
.hint.mguess { color: var(--accent); }

/* V9.24 – a simpler home: shorter sections on phones */
.chips li { padding: 0; transition: border-color .18s; }
.chips li:hover, .chips li:focus-within { border-color: var(--accent); }
.chips a { display: block; padding: 6px 12px; color: inherit; text-decoration: none; border-radius: inherit; }
.chips a:hover, .chips a:focus-visible { color: var(--accent); }
@media (max-width: 760px) {
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 22px; }
  /* services: icon + name, two per row – a tap opens what we do and why */
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; text-align: left; }
  .tile .ic { width: 24px; height: 24px; margin-bottom: 8px; }
  .tile h3 { font-size: .98rem; margin: 0; }
  .tile p, .tile .tile-more { display: none; }
  /* how it works: four short steps, two per row */
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps li { padding: 10px 10px 10px 14px; }
  .steps .num { margin-bottom: 6px; }
  .steps h3 { font-size: 1rem; margin-bottom: 4px; }
  .steps p { font-size: .86rem; line-height: 1.45; }
  /* reviews: one row to swipe instead of a long column */
  .revs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .revs::-webkit-scrollbar { display: none; }
  .revs .rev { flex: 0 0 86%; scroll-snap-align: start; }
  .revs .rev blockquote { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
  .rev-cta { flex-wrap: wrap; }
  /* the 8 service pages: one row to swipe */
  .svc-links { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .svc-links::-webkit-scrollbar { display: none; }
  .svc-links a { white-space: nowrap; }
}
.hero-copy, .sx-in input { min-width: 0; }                       /* narrow phones (320 px): nothing pushes the search past the edge */

/* V9.25 – the hero is only the title and the smart search: the search is the way in */
.hero-search { margin-top: 30px; max-width: 620px; }
.hero-search .sx-smart { font-size: .8rem; margin-bottom: 9px; }
.hero-search .sx-in { padding: 10px 10px 10px 20px; border-color: rgba(20, 193, 245, .8); box-shadow: 0 0 0 7px rgba(20, 193, 245, .10), 0 0 36px rgba(20, 193, 245, .2), 0 18px 40px rgba(0, 0, 0, .35); }
.hero-search .sx-in input { font-size: 1.28rem; }
.hero-search .sx-in button { padding: 13px 26px; font-size: 1.08rem; }
@media (max-width: 640px) {
  .hero-search { margin-top: 22px; }
  .hero-search .sx-in { padding: 7px 7px 7px 14px; }
  .hero-search .sx-in input { font-size: 1.1rem; }
  .hero-search .sx-in button { padding: 12px 16px; }
}
.about-text p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin: 0 0 14px; max-width: 62ch; }
@media (max-width: 640px) { .hero { padding-bottom: 30px; } }    /* nothing under the search: no big empty band */

/* V9.25 – Gallery: the repair photos (a row to swipe on phones, a grid on computers; a tap enlarges) */
.gal.gal-ph { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ph { margin: 0; }
.ph-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #06172e; cursor: zoom-in; aspect-ratio: 4 / 3; }
.ph-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.ph-btn:hover img, .ph-btn:focus-visible img { transform: scale(1.04); }
.ph-btn:hover, .ph-btn:focus-visible { border-color: var(--accent); }
.ph figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.35; }
@media (max-width: 760px) {
  .gal.gal-ph { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .gal.gal-ph::-webkit-scrollbar { display: none; }
  .gal.gal-ph .ph { flex: 0 0 78%; scroll-snap-align: start; }
}
.ph-view { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(3, 12, 28, .94); color: #e8fbff; }
.ph-view::backdrop { background: rgba(3, 12, 28, .7); }
.ph-view[open] { display: grid; place-items: center; }
.ph-view figure { margin: 0; max-width: min(1100px, 94vw); text-align: center; }
.ph-view img { max-width: 100%; max-height: 80dvh; object-fit: contain; border-radius: 10px; display: block; margin: 0 auto; }
.ph-view figcaption { margin-top: 12px; color: #cfe7f5; font-size: .95rem; white-space: pre-wrap; }
.ph-x, .ph-nav { position: fixed; border: 1px solid var(--line2); background: rgba(10, 35, 71, .85); color: #e8fbff; border-radius: 999px; width: 46px; height: 46px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ph-x { top: 14px; right: 14px; font-size: 1.1rem; }
.ph-nav { top: 50%; transform: translateY(-50%); }
.ph-nav.prev { left: 12px; } .ph-nav.next { right: 12px; }
.ph-x:hover, .ph-nav:hover { border-color: var(--accent); color: var(--accent); }

/* V9.26 – hero as in V9.9: eyebrow, a calmer title, the search where the text and buttons were, four pills; traces to the search and the pills */
.hero h1 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); font-weight: 700; color: #d3e3f2; letter-spacing: -.01em; }
.hero-search + .chips { margin-top: 26px; }
@media (min-width: 1120px) { .hero-search + .chips { margin-top: 32px; } }   /* room for two lanes between the search box and the pills */
@media (max-width: 760px) { .hero .chips { display: none; } }   /* phone: no pills */
@media (min-width: 1120px) { .hero-search { max-width: 450px; } .hero .chips a { padding: 6px 18px; } }    /* about as wide as the buttons and pills were: the traces keep the sketch's shape */
@media (min-width: 1120px) { .hero-art { top: -144px; margin-bottom: -96px; } }   /* the chip sits where it was against the buttons in the sketch (V9.9); no empty band under the pills */
.hero-search .sx-smart { width: fit-content; }
@media (min-width: 1120px) {                                   /* desktop: the box is about as tall as the buttons were, so the lanes keep the sketch's spacing */
  .hero-search .sx-in { padding: 6px 6px 6px 18px; }
  .hero-search .sx-in input { font-size: 1.15rem; }
  .hero-search .sx-in button { padding: 10px 20px; font-size: 1rem; }
}
@media (min-width: 1120px) { .hero { padding-top: 132px; padding-bottom: 56px; } }   /* room above for the raised chip */

/* V9.27 – phones: "Servis elektronike" + title on the left, a big chip logo on the right, the search under both */
@media (max-width: 760px) {
  .hero { overflow-x: clip; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 42%; grid-template-areas: "eb art" "h1 art" "sx sx"; column-gap: 6px; row-gap: 0; align-items: center; }
  .hero-copy { display: contents; }
  .hero .eyebrow { grid-area: eb; align-self: end; margin: 0 0 8px; font-size: .7rem; letter-spacing: .14em; }
  .hero h1 { grid-area: h1; align-self: start; font-size: clamp(1.25rem, 5.6vw, 1.75rem); line-height: 1.15; }
  .hero-search { grid-area: sx; }
  .hero-art { grid-area: art; order: 0; margin: 0; justify-items: center; overflow: visible !important; }
  .hero-art .pcb { width: min(150%, 260px); max-width: none; margin: -20% 0; }   /* the picture has empty space above and below the chip */
}

/* V9.33 – bottom bar "Selected: N · Next", hint toast, floating buttons above the browser's bottom toolbar */
.chat { bottom: calc(18px + var(--vvb, 0px) + env(safe-area-inset-bottom, 0px)); transition: bottom .2s var(--ease); }
body.has-nextbar .chat { bottom: calc(92px + var(--vvb, 0px) + env(safe-area-inset-bottom, 0px)); }
body.kbd-open .chat, body.kbd-open .next-bar { display: none; }
body.has-nextbar { padding-bottom: 84px; }
/* the hero chip artwork stuck ~24 px out on the right on phones: the page became wider than the screen, so phones
   zoomed it out and fixed buttons (chat) ended up below the visible area. `.hero:has(.hero-search) { overflow: visible }`
   had overridden the phone rule `overflow-x: clip`. Clip only sideways – the search dropdown can still hang below. */
.hero, .hero:has(.hero-search) { overflow-x: clip; }   /* page end is never hidden behind the bar */
.next-bar { position: fixed; left: 50%; bottom: calc(12px + var(--vvb, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 59; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(8, 31, 62, .96); border: 1px solid var(--accent); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .75); backdrop-filter: blur(8px); white-space: nowrap; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.next-bar.show { opacity: 1; transform: translate(-50%, 0); }
.next-bar.show .nb-btn { pointer-events: auto; }   /* only the button takes taps – cards under the rest of the pill stay tappable */
.nb-count { font-weight: 600; color: var(--ink); }
.nb-btn { padding: 9px 16px; border-radius: 999px; pointer-events: none; }
.nb-btn .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.wiz-toast { position: fixed; left: 50%; z-index: 60; width: max-content; max-width: min(92vw, 520px); transform: translate(-50%, -8px); padding: 11px 16px; border-radius: 12px; background: #0b2a52; border: 1px solid var(--accent); color: var(--ink); font: 500 .95rem var(--f); line-height: 1.35; text-align: center; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .65); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wiz-toast.show { opacity: 1; transform: translate(-50%, 0); }   /* taps go through to the page */
.nav-row .btn.nudge { animation: nudge 1.1s ease-in-out 2; }
@keyframes nudge { 50% { box-shadow: 0 0 0 7px rgba(20, 193, 245, .35); } }
@media (prefers-reduced-motion: reduce) { .next-bar, .chat { transition: none; } .nav-row .btn.nudge { animation: none; } }

/* V9.34 – model number help button, "can't find it" at the end of the instructions, exact-variant check */
.btn-help { margin-top: 10px; padding: 9px 14px; font-size: .9rem; font-weight: 600; }
.btn-help .ic { width: 18px; height: 18px; }
.guide-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line2); display: grid; gap: 6px; }
.guide-foot .mn-broken { margin: 0; }
.variant { margin: 4px 0 14px; padding: 14px; border-radius: var(--r); border: 1px solid var(--warn); background: rgba(255, 180, 84, .07); display: grid; gap: 10px; }
.variant.ok { border-color: rgba(91, 228, 155, .55); background: rgba(91, 228, 155, .06); }
.variant.bad { box-shadow: inset 0 0 0 1px var(--danger); border-color: var(--danger); }
.variant[hidden] { display: none; }
.variant-h { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.variant.ok .variant-h { color: #5be49b; }
.variant-h .ic { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.variant .hint, .variant .err { margin: 0; }

/* V9.36 – "Kako delamo" has 5 cards: on wide screens the last row of 2 is centred instead of leaving a gap */
@media (min-width: 1000px) {
  .pr-grid { grid-template-columns: repeat(6, 1fr); }
  .pr-grid li { grid-column: span 2; }
  .pr-grid li:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }   /* first of a last row with 2 cards */
}
