@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f3f4f1;
  --paper-2: #e8eae5;
  --ink: #152331;
  --slate: #5a6772;
  --rule: #cbd1cf;
  --signal: #f2b300;
  --wide: 118%;
  --gutter: 16px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-stretch: var(--wide); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.6vw, 4.25rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 38em; }
.muted { color: var(--slate); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 650; }
.table-scroll { overflow-x: auto; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; margin-right: auto; }
.brand b { font-stretch: 125%; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand span { font-size: 0.98rem; color: var(--slate); }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  font-weight: 650; text-decoration: none; white-space: nowrap;
  padding: 13px 20px; border-radius: 6px;
  transition: transform 140ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.head-call { display: none; }
.menu-btn { background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (min-width: 960px) {
  .nav { display: block; }
  .head-call { display: inline-flex; padding: 10px 16px; }
  .menu-btn { display: none; }
}
.mobile-nav { border-top: 1px solid var(--rule); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 18px; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 1.15rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }

/* Mobile call bar */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
.callbar .btn { flex: 1; justify-content: center; }
.callbar .wa { flex: none; align-self: center; font-weight: 600; padding: 8px 4px; }
body { padding-bottom: 76px; }
@media (min-width: 960px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 36px; }
.hero h1 { max-width: 12em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hero-actions .link { font-weight: 600; }
.hero-meta { margin-top: 28px; font-size: 0.95rem; color: var(--slate); }
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero .wrap { grid-template-columns: 5fr 6fr; align-items: center; gap: 56px; }
}

/* Installation plan (hero scene) */
.plan { margin: 0; }
.plan svg { width: 100%; }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: square; }
.plan .iwall { fill: none; stroke: var(--ink); stroke-width: 3.5; }
.plan .room { font: 500 13px "Archivo", sans-serif; fill: var(--slate); }
.plan .cable { fill: none; stroke: var(--slate); stroke-width: 1.4; stroke-dasharray: 5 4; }
.plan .fov { fill: var(--signal); fill-opacity: 0.3; stroke: var(--signal); stroke-width: 1.5; transform-box: view-box; }
.plan .dev { fill: var(--ink); }
.plan .dev-o { fill: var(--paper); stroke: var(--ink); stroke-width: 2.2; }
.plan .tag { font: 600 12px "Archivo", sans-serif; fill: var(--ink); }
.plan figcaption { margin-top: 14px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--slate); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .plan .wall, .plan .iwall, .plan .room { animation: fade 420ms var(--ease) both; }
  .plan .cable { animation: fade 400ms var(--ease) 260ms both; }
  .plan .d { animation: pop 320ms var(--ease) both; transform-box: fill-box; transform-origin: center; }
  .plan .fov { animation: open 520ms var(--ease) both; }
  .plan .s1 { animation-delay: 320ms; } .plan .s2 { animation-delay: 400ms; }
  .plan .s3 { animation-delay: 480ms; } .plan .s4 { animation-delay: 560ms; }
  .plan .s5 { animation-delay: 640ms; } .plan .s6 { animation-delay: 700ms; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes open { from { opacity: 0; transform: scale(0.15); } }

/* Sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 40em; margin-bottom: 32px; }
@media (min-width: 960px) { .section { padding: 96px 0; } }

/* Service index rows */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc-list li { border-bottom: 1px solid var(--rule); }
.svc {
  display: grid; gap: 6px; padding: 22px 0; text-decoration: none;
}
.svc h2, .svc h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0; }
.svc p { margin: 0; color: var(--slate); max-width: 42em; }
.svc .more { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }
@media (min-width: 760px) {
  .svc { grid-template-columns: 5fr 6fr auto; align-items: baseline; gap: 28px; padding: 28px 0; }
}
@media (hover: hover) {
  .svc h2, .svc h3 { transition: transform 160ms ease-out; }
  .svc:hover h2, .svc:hover h3 { transform: translateX(6px); }
}

/* Dark band */
.band { background: var(--ink); color: var(--paper); }
.band .muted { color: #b4bec6; }
.band a { color: var(--paper); }
.band .btn { background: var(--signal); color: var(--ink); }
.audience { display: grid; gap: 28px 48px; }
.audience h3 { font-size: 1.35rem; margin-bottom: 0.35em; }
.audience p { margin: 0; color: #c7d0d6; }
@media (min-width: 760px) { .audience { grid-template-columns: 1fr 1fr; } }

/* Steps: real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-stretch: 125%; font-weight: 800; font-size: 1.9rem; line-height: 1; margin-bottom: 12px; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--slate); font-size: 0.98rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; } }

/* Districts */
.districts { columns: 2; column-gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }
.districts li { padding: 7px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.districts .home { font-weight: 700; }
@media (min-width: 760px) { .districts { columns: 4; } }
.split { display: grid; gap: 32px; }
@media (min-width: 960px) { .split { grid-template-columns: 4fr 7fr; gap: 64px; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 650; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 160ms ease-out; }
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq .a { padding: 0 0 20px; max-width: 64ch; }
.faq .a p:last-child { margin: 0; }

/* Contact block */
.contact { display: grid; gap: 32px; }
.phone-big { display: inline-block; font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; text-decoration: none; margin: 8px 0 18px; }
.phone-big:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.contact dl { margin: 0; display: grid; gap: 16px; }
.contact dt { font-size: 0.9rem; color: #b4bec6; }
.contact dd { margin: 2px 0 0; font-size: 1.08rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 7fr 4fr; align-items: end; } }

/* Inner pages */
.crumbs { font-size: 0.92rem; color: var(--slate); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding: 28px 0 44px; border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 15em; font-size: clamp(2rem, 4.8vw, 3.6rem); }
.page-head .hero-actions { margin-top: 24px; }
.page-body { display: grid; gap: 48px; padding-block: 48px 72px; }
.prose > h2:first-child, .prose > .calc:first-child { margin-top: 0; }
.aside { align-self: start; }
.aside-box { border-top: 2px solid var(--ink); padding-top: 18px; }
.aside-box + .aside-box { margin-top: 36px; }
.aside h2 { font-size: 1.15rem; margin-bottom: 0.6em; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.aside li a:hover { text-decoration: underline; }
.aside li a[aria-current="page"] { font-weight: 700; }
.aside .btn { margin-top: 6px; }
@media (min-width: 960px) {
  .page-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; padding-block: 64px 96px; }
  .aside { position: sticky; top: 100px; }
}
.inline-cta { margin: 2.2em 0; padding: 22px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); display: grid; gap: 14px; }
.inline-cta p { margin: 0; font-weight: 600; font-size: 1.1rem; }
@media (min-width: 760px) { .inline-cta { grid-template-columns: 1fr auto; align-items: center; } }

/* Guide list */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.guide-list li { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.guide-list h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 8px; }
.guide-list h2 a { text-decoration: none; }
.guide-list h2 a:hover { text-decoration: underline; }
.guide-list p { margin: 0; color: var(--slate); max-width: 60ch; }

/* Disk calculator */
.calc { border: 2px solid var(--ink); border-radius: 8px; padding: 20px; margin: 1.4em 0 2em; background: #fff; }
.calc h2 { margin-top: 0 !important; }
.calc-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.97rem; }
.field input, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--slate); border-radius: 6px; padding: 10px 12px; }
.field .hint { font-size: 0.85rem; color: var(--slate); margin-top: 4px; }
.calc-out { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.calc-out .big { font-stretch: 125%; font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; display: block; }
.calc-out p { margin: 6px 0 0; color: var(--slate); }

/* Footer */
.site-foot { border-top: 1px solid #2c3d4d; background: var(--ink); color: #c7d0d6; padding: 56px 0 40px; font-size: 0.97rem; }
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; }
.foot-grid h2 { color: var(--paper); font-size: 1rem; margin-bottom: 0.8em; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-brand b { display: block; color: var(--paper); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c3d4d; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}
