/* =========================================================
   Aresnet — landing page (návrh) · "sieťová schéma"

   Koncept: celá stránka je technický výkres siete. Jedna myšlienka:
   kábel (trasa) vedie od hlavičky cez všetky sekcie a každá sekcia
   je jeho uzol. Najodvážnejšie miesto je úvodná topológia, ktorá sa
   raz nakreslí; zvyšok je tichý.

   Tokeny
     --bg       #0a1424  podklad výkresu (tmavá námornícka)
     --surface  #0f1e36  panely, karty, formulár
     --line     #22395a  mriežka, deliace čiary, trasy
     --text     #e4ecf8  hlavný text
     --dim      #93a6c2  vedľajší text
     --cobalt   #6f9bff  čiary schémy, odkazy, akcent
     --signal   #3ddc84  LED "živé / online / dostupné": nič iné

   Písma
     Archivo (osová šírka 112, váha 600–700) — nadpisy, značka
     Instrument Sans — text, formulár, ovládacie prvky
     IBM Plex Mono — iba skutočné dáta: názvy modelov, údaje z registra
   ========================================================= */

:root {
  --bg: #0a1424;
  --surface: #0f1e36;
  --surface-2: #14294a;
  --line: #22395a;
  --line-hi: #4a6a95;
  --text: #e4ecf8;
  --dim: #93a6c2;
  --cobalt: #6f9bff;
  --cobalt-btn: #2f64f0;
  --cobalt-btn-h: #4373ff;
  --signal: #3ddc84;
  --err: #ff8a8a;
  --todo: #fff1a8;
  --todo-ink: #0a1424;
  --term-bg: #060b14; /* chat: plochá tmavá výplň (bez žiary) */

  --f-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* typografická škála (1.25) */
  --t-s: 13px;
  --t-b: 16px;
  --t-l: 18px;
  --t-h3: 21px;
  --t-h2: clamp(30px, 3.4vw, 44px);
  --t-h1: clamp(40px, 5.2vw, 70px);

  --radius: 2px;
  --gutter: 32px;
  --max: 1200px;
  --header-h: 72px;
  --grid: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-b);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* podklad výkresu: jemná mriežka, hlavná čiara každých 5 polí */
  background-image:
    linear-gradient(rgba(111,155,255,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,155,255,.075) 1px, transparent 1px),
    linear-gradient(rgba(111,155,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,155,255,.03) 1px, transparent 1px);
  background-size: calc(var(--grid) * 5) calc(var(--grid) * 5), calc(var(--grid) * 5) calc(var(--grid) * 5), var(--grid) var(--grid), var(--grid) var(--grid);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 650; font-stretch: 112%; letter-spacing: -0.015em; margin: 0; color: inherit; }
p { margin: 0; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 2px; }
:focus-visible { outline: 2px solid #a9c3ff; outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--dim); }
.small { font-size: var(--t-s); line-height: 1.5; }
.tiny { font-size: 12px; }
.right { text-align: right; }

mark.todo { background: var(--todo); color: var(--todo-ink); padding: 0 3px; border-radius: 2px; }
.todo-link { background: var(--todo); color: var(--todo-ink) !important; padding: 0 3px; border-radius: 2px; }

/* ---------- draft bar ---------- */
.draft-bar {
  background: var(--todo);
  color: var(--todo-ink);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 6px 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 46px; padding: 0 22px;
  font: 600 14px/1 var(--f-body);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cobalt-btn); color: #fff; }
.btn-primary:hover { background: var(--cobalt-btn-h); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-hi); }
.btn-ghost:hover { border-color: var(--cobalt); color: #fff; }

/* ---------- text helpers ---------- */
.kicker { font-size: var(--t-s); font-weight: 500; color: var(--dim); margin-bottom: 20px; }
.head-note { font-size: 14px; color: var(--dim); max-width: 34ch; }
.aside-label { font-size: var(--t-s); font-weight: 600; color: var(--dim); margin: 28px 0 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,20,36,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.brand-mark i { display: block; width: 6px; background: var(--cobalt); }
.brand-mark i:nth-child(1) { height: 12px; }
.brand-mark i:nth-child(2) { height: 26px; }
.brand-mark i:nth-child(3) { height: 18px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-text b { font: 700 20px/1 var(--f-head); font-stretch: 118%; letter-spacing: .02em; }
.brand-text small { font-size: 12px; line-height: 1; color: var(--dim); }

.main-nav { display: flex; gap: 28px; margin: 0 auto; }
.main-nav a { color: var(--text); font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--cobalt); text-decoration: none; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: var(--t-h1); line-height: 1.02; font-weight: 700; margin-bottom: 26px; letter-spacing: -0.025em; }
.lead { font-size: var(--t-l); color: var(--dim); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 30px; }

/* topológia na pozadí: kreslí sa raz pri načítaní */
.topo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--line-hi); opacity: .75; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}
.topo-cables path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 2.2s cubic-bezier(.5,0,.2,1) var(--d, 0s) backwards; }
.topo-nodes rect { animation: appear .4s ease-out 1.6s backwards; }
.topo-led { fill: var(--signal); animation: appear .4s ease-out 2.2s backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

.partner-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line-hi); background: rgba(15,30,54,.7);
  border-radius: var(--radius);
}
.partner-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1.5px solid var(--cobalt); color: var(--cobalt); font-weight: 600;
}
.partner-badge b { display: block; font-size: 14px; }
.partner-badge small { display: block; font-size: 12.5px; color: var(--dim); }

/* ---------- Aresa chat (ukážka) — karta v palete výkresu ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.chat {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--term-bg);
  color: var(--text);
  border: 1px solid var(--line-hi); border-radius: var(--radius);
  overflow: hidden; min-width: 0;
}
.chat-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.chat-avatar {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-hi); background: var(--bg);
}
.chat-avatar svg { display: block; width: 26px; height: 26px; }
.chat-who { min-width: 0; }
.chat-who h2 { font-size: 18px; line-height: 1.2; color: var(--text); }
.chat-who p { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(61,220,132,.2), 0 0 8px var(--signal); flex: none; }
.chat-demo {
  margin-left: auto; padding: 3px 9px;
  font: 600 12px/1.4 var(--f-body);
  color: var(--todo-ink); background: var(--todo); border-radius: 2px;
}

.chat-log {
  display: flex; flex-direction: column; gap: 12px;
  height: 300px; overflow-y: auto; padding: 20px;
  background: var(--term-bg);
  scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent;
}
.msg { max-width: 86%; padding: 10px 14px; font-family: var(--f-mono); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
.msg-bot { align-self: flex-start; background: var(--surface); }
.msg-user { align-self: flex-end; text-align: left; background: var(--surface-2); border-color: var(--line-hi); }
.msg p + p { margin-top: 8px; }
.msg-typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); animation: chat-blink 1s infinite ease-in-out; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.msg .card-label { font-size: var(--t-s); font-weight: 600; color: var(--dim); margin-bottom: 8px; }
.msg dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); background: var(--bg); font-size: 13.5px; text-align: left; }
.msg dt { color: var(--dim); }
.msg dd { margin: 0; color: var(--text); overflow-wrap: anywhere; font-family: var(--f-mono); font-size: 13px; }
.msg-action {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; height: 38px; padding: 0 14px;
  font: 600 13px/1 var(--f-mono); color: #fff; background: var(--cobalt-btn);
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background .15s;
}
.msg-action:hover { background: var(--cobalt-btn-h); }
.msg-action:disabled { background: transparent; border-color: var(--line); color: var(--dim); opacity: .7; cursor: default; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; background: var(--term-bg); }
.chat-chips:empty { display: none; }
.chat-chip {
  padding: 8px 12px; font: 500 12.5px/1.2 var(--f-mono); color: var(--text);
  background: transparent; border: 1px solid var(--line-hi); border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.chat-chip:hover { border-color: var(--cobalt); color: #fff; }

.chat-form { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--term-bg); }
.chat-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  font: 400 14px/1 var(--f-mono); color: #fff;
  background: var(--surface); border: 1px solid var(--line-hi); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.chat-form input::placeholder { color: #7f94b3; }
.chat-form input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(111,155,255,.28); }
.chat-form .btn { padding: 0 16px; font-family: var(--f-mono); }
.chat-note { padding: 10px 20px 14px; font-size: 12px; line-height: 1.5; color: var(--dim); background: var(--term-bg); }
@media (prefers-reduced-motion: reduce) {
  .msg-typing i { animation: none; opacity: .8; }
}

/* zvýraznenie polí formulára po predvyplnení z chatu */
.field .is-prefilled { border-color: var(--signal); background: rgba(61,220,132,.08); box-shadow: 0 0 0 3px rgba(61,220,132,.22); transition: box-shadow .4s, background .4s; }

.hero-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 64px; padding-top: 0; padding-bottom: 0;
  font-size: 14px; font-weight: 500;
}
.hero-strip span { display: flex; align-items: center; gap: 12px; padding: 18px 20px 18px 0; border-top: 1px solid var(--line-hi); }
.hero-strip span + span { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-strip i { flex: none; width: 8px; height: 8px; border: 1.5px solid var(--cobalt); }

/* ---------- sections + trasa (kábel) ---------- */
.section { position: relative; padding: 120px 0; }
.section h2 { font-size: var(--t-h2); line-height: 1.08; }
.section-head { margin-bottom: 48px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head.split > p { text-align: right; flex: none; }

/* hlavná trasa: zvislá linka pozdĺž ľavého okraja, každá sekcia je uzol */
.section::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: max(8px, calc((100% - var(--max)) / 2 + 6px));
  width: 1px; background: var(--line-hi);
}
.section::after {
  content: ""; position: absolute; top: 126px;
  left: max(3px, calc((100% - var(--max)) / 2 + 1px));
  width: 11px; height: 11px;
  background: var(--bg); border: 1.5px solid var(--cobalt);
}
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: #060d19; border-bottom: 1px solid var(--line); }
.section-dark::after { background: var(--cobalt); }

/* ---------- products ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--line-hi); }
.tabs button {
  height: 44px; padding: 0 20px; margin-bottom: -1px;
  font: 500 14px/1 var(--f-body);
  color: var(--dim); background: transparent;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--cobalt); }

.product-grid {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  padding-bottom: 14px; margin-top: 4px;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent;
}
.product { flex: 0 0 280px; width: 280px; scroll-snap-align: start; }
/* fade na pravom okraji — náznak, že sa dá scrollovať */
.product-scroll { position: relative; }
.product-scroll::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 14px; width: 56px;
  background: linear-gradient(to right, rgba(10,20,36,0), var(--bg));
  pointer-events: none; z-index: 1; opacity: 1; transition: opacity .25s ease;
}
.product-scroll.is-end::after { opacity: 0; }

.product {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: 0;
}
.product[hidden] { display: none; }
/* jednotné dosky v riadku — rovnaká šírka aj vzhľad */
.product:nth-child(n) { border-color: var(--line-hi); background: var(--surface); }

.product.is-included { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }

.product-media {
  position: relative;
  height: 150px;
  color: var(--cobalt);
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(111,155,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,155,255,.1) 1px, transparent 1px);
  background-size: 16px 16px;
  display: grid; place-items: center;
}
.product-media svg { width: 100%; height: 100%; }
.product-media .axis { stroke: currentColor; stroke-width: .8; stroke-dasharray: 10 3 2 3; opacity: .55; fill: none; }
.product-media .dim path { stroke: currentColor; stroke-width: 1; opacity: .7; fill: none; }
.product-media .led { fill: var(--signal); }
.product-media .led.warn { fill: #f2b84b; }
.product-media .led.led-blue { fill: var(--cobalt); }
.media-label { position: absolute; top: 12px; left: 16px; font-size: 12.5px; font-weight: 500; color: var(--dim); }

.product-body { padding: 16px 18px 12px; flex: 1; }
.product-body h3 { font: 500 16px/1.2 var(--f-mono); letter-spacing: -.01em; margin-bottom: 10px; }
.product-body > p { font-size: 13.5px; color: var(--dim); margin-bottom: 14px; }
.meta { list-style: none; padding: 0; margin: 0; font-size: 13.5px; color: var(--text); }
.meta li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.meta .ic { color: var(--cobalt); width: 14px; text-align: center; }

.product-foot { margin: 0 18px; padding: 12px 0 16px; border-top: 1px dashed var(--line-hi); }
.product-foot > span { display: block; margin-bottom: 6px; }
.include {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 0;
  font: 600 14px/1 var(--f-body); color: var(--cobalt);
  background: none; border: 0; cursor: pointer;
}
.include-icon { font-size: 22px; font-weight: 400; transition: transform .2s; }
.include:hover .include-label { text-decoration: underline; text-underline-offset: 3px; }
.include[aria-pressed="true"] { color: #fff; }
.include[aria-pressed="true"] .include-icon { transform: rotate(45deg); }

.note { display: flex; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--dim); max-width: 80ch; }

/* ---------- steps: skutočná postupnosť, preto čísla ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.steps li { position: relative; padding-top: 40px; }
.steps li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px;
  background: var(--bg); border: 1.5px solid var(--cobalt);
}
.steps li::after {
  content: ""; position: absolute; top: 5px; left: 11px; right: -28px; height: 1px; background: var(--line-hi);
}
.steps li:last-child::after { display: none; }
.step-no { display: block; font: 500 34px/1 var(--f-mono); color: var(--cobalt); margin-bottom: 20px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { font-size: 15px; color: var(--dim); max-width: 32ch; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line-hi); }
.service { display: flex; gap: 16px; padding: 28px 28px 0 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--cobalt); border: 1px solid var(--line-hi); }
.service-ic svg { width: 22px; height: 22px; }
.service h3 { font-size: 18px; margin-bottom: 6px; }
.service p { font-size: 15px; color: var(--dim); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.lead-dark { color: #c4d1e6; max-width: none; font-size: 19px; }
.lead-dark b { color: #fff; font-weight: 600; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.about-cols > div { padding-top: 18px; border-top: 1px solid var(--line-hi); }
.about-cols h3 { font-size: 18px; margin-bottom: 8px; }
.about-cols p { font-size: 15px; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.faq-grid h2 { margin-bottom: 20px; }
.faq-grid .muted { font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line-hi); }
.faq summary {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0;
  font-weight: 500; font-size: 16px;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--dim); }
.faq details[open] summary { color: var(--cobalt); }
.faq details[open] summary::after { content: "−"; color: var(--cobalt); }
.faq details p { padding: 0 40px 22px 0; font-size: 15px; color: var(--dim); max-width: 62ch; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }

.form-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--cobalt);
}
.aside-ic { display: block; width: 32px; height: 32px; color: var(--cobalt); margin-bottom: 24px; }
.form-aside h3 { font-size: 26px; line-height: 1.15; margin-bottom: 16px; }
.form-aside > p { font-size: 15px; color: var(--dim); }
.checks { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.checks li { display: flex; gap: 10px; padding: 4px 0; }
.checks li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border: 1.5px solid var(--cobalt); }
.aside-contact { display: block; color: #fff; font: 600 17px/1.6 var(--f-head); }
.aside-hours { font-size: 14px; color: var(--dim); margin-top: 6px; }

.rfq, .rfq-done {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px;
  background: var(--surface); padding: 36px; border: 1px solid var(--line-hi); border-radius: 0;
}
.rfq[hidden], .rfq-done[hidden] { display: none; }
.full { grid-column: 1 / -1; }

.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--cobalt); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 15px/1.4 var(--f-body); color: #fff;
  background: var(--bg);
  border: 1px solid var(--line-hi); border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #7f94b3; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(111,155,255,.28);
}
.field [aria-invalid="true"] { border-color: var(--err); }
.select { position: relative; }
.select select { appearance: none; padding-right: 36px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim);
  transform: rotate(45deg); pointer-events: none;
}
.err { min-height: 0; font-size: 13px; color: var(--err); margin-top: 6px; }
.err:empty { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 400 !important; color: var(--dim); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--cobalt-btn); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; }

.selected {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line-hi); border-radius: var(--radius);
}
.selected[hidden] { display: none; }
.selected-title { font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 6px 0 12px;
  font: 500 13px/1 var(--f-mono); color: #fff;
  background: var(--bg); border: 1px solid var(--cobalt); border-radius: var(--radius);
}
.chip button {
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 0; border-radius: 0; background: var(--surface-2); color: var(--text);
  cursor: pointer; font-size: 15px; line-height: 1;
}
.chip button:hover { background: var(--line-hi); }

/* done */
.rfq-done { grid-template-columns: 1fr; justify-items: start; gap: 16px; padding: 48px 40px; }
.rfq-done:focus { outline: none; }
.done-ic { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--signal); color: var(--signal); font-size: 22px; font-weight: 600; }
.rfq-done h3 { font-size: 28px; }
.rfq-done > p { color: var(--dim); max-width: 520px; }
.done-summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 8px 0 16px; padding: 20px; width: 100%; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.done-summary dt { color: var(--dim); }
.done-summary dd { margin: 0; white-space: pre-line; }

/* floating RFQ indicator */
.rfq-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; gap: 18px; align-items: center;
  padding: 14px 18px;
  background: var(--cobalt-btn); color: #fff;
  font-size: 14px; font-weight: 500; border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.rfq-float:hover { text-decoration: none; background: var(--cobalt-btn-h); }
.rfq-float[hidden] { display: none; }
.rfq-float b { color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: #060d19; color: var(--dim); padding: 56px 0 28px; font-size: 14px; border-top: 1px solid var(--line-hi); }
.site-footer a { color: #fff; }
.brand-dark { color: #fff; }
.footer-top { display: flex; align-items: center; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-nav { display: flex; gap: 28px; margin: 0 auto; }
.footer-nav a { font-size: 14px; }
.to-top { font-size: 14px; color: var(--dim) !important; }
.footer-main { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; padding: 56px 0; }
.footer-claim { font: 700 clamp(34px, 4.2vw, 56px)/1.04 var(--f-head); font-stretch: 112%; letter-spacing: -0.02em; color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 14px; line-height: 1.7; }
.footer-cols .aside-label:first-child { margin-top: 0; }
.footer-cols b { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: #8296b5;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .about-cols { grid-template-columns: 1fr; gap: 20px; }
  .topo { opacity: .45; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .section { padding: 88px 0; }
  .section::after { top: 94px; }
  .hero-grid, .about-grid, .faq-grid, .form-grid, .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
  .services { grid-template-columns: 1fr; margin-top: 56px; border-top: 0; }
  .service, .service + .service { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line-hi); }
  .form-aside { position: static; }

  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-left: auto;
    background: none; border: 1px solid var(--line-hi); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line-hi);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; --header-h: 64px; }
  .hero { padding-top: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chat-log { height: 260px; padding: 16px; }
  .chat-head, .chat-form { padding-left: 16px; padding-right: 16px; }
  .chat-chips { padding: 0 16px 12px; }
  .msg { max-width: 92%; }
  .hero-strip { grid-template-columns: 1fr; margin-top: 40px; }
  .hero-strip span, .hero-strip span + span { padding: 14px 0; border-left: 0; }
  .section { padding: 72px 0; }
  .section::after { top: 80px; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .section-head.split > p { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .product { flex-basis: 82vw; width: auto; }
  .steps li::after { display: none; }
  .tabs button { padding: 0 14px; }
  .rfq { grid-template-columns: 1fr; padding: 24px 20px; }
  .rfq-done { padding: 32px 20px; }
  .form-aside { padding-left: 20px; }
  .form-foot .btn { width: 100%; }
  .right { text-align: left; }
  .footer-top { flex-wrap: wrap; }
  .footer-nav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; gap: 16px; }
  .footer-cols { grid-template-columns: 1fr; }
  .rfq-float { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
  .done-summary { grid-template-columns: 1fr; gap: 2px; }
  .done-summary dd { margin-bottom: 10px; }
}
