:root {
  --navy: #26248f;
  --navy-dark: #12114d;
  --blue: #1f6fe0;
  --sky: #5ab4ff;
  --ink: #1b1d2b;
  --muted: #5f6478;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 110, .08);
  --grad: linear-gradient(135deg, var(--sky), var(--blue));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p:last-child { color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--blue); margin-bottom: .6em;
}
.eyebrow.light { color: var(--sky); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; box-shadow: 0 6px 18px rgba(31, 111, 224, .3);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31, 111, 224, .38); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-wa { background: #25d366; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn-outline {
  background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue);
  padding: 9px 16px; font-size: .9rem;
}
.btn-outline:hover { background: var(--blue); color: #fff; box-shadow: none; }
.btn-outline.added { background: var(--navy); color: #fff; box-shadow: none; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { height: 40px; width: 160px; overflow: hidden; flex: none; }
.brand-mark img { width: 160px; max-width: none; height: auto; mix-blend-mode: multiply; margin-top: -2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.3rem; font-weight: 800; letter-spacing: .06em; color: #26248f; }
.brand-text span { font-size: .62rem; font-weight: 700; letter-spacing: .16em; color: #26248f; opacity: .85; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--blue); }
.quote-count {
  background: #fff; color: var(--blue); border-radius: 999px;
  font-size: .75rem; padding: 0 7px; font-weight: 700;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(90, 180, 255, .18), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(38, 36, 143, .08), transparent 60%);
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--navy); font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .9rem; }
.circuit { width: 100%; filter: drop-shadow(0 20px 40px rgba(31, 111, 224, .2)); }
.trace { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.4s ease forwards; }
.trace:nth-child(2) { animation-delay: .3s; }
.trace:nth-child(3) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Brands */
.brands { border-block: 1px solid var(--line); padding: 22px 0; }
.brands-row { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 6vw, 72px); flex-wrap: wrap; }
.brands-label { color: var(--muted); font-size: .9rem; }
.brand-word { font-size: 1.5rem; font-weight: 800; color: #9aa3b8; letter-spacing: .02em; }

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.two-col > div > p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.feature-list li {
  display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
.feature-list h3 { margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.ficon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center;
}
.ficon svg { width: 22px; height: 22px; fill: #fff; }

/* Filters */
.filters { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-right { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-right select, .filter-right input {
  font: inherit; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; min-width: 0;
}
.filter-right input { width: 260px; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media {
  height: 210px; display: grid; place-items: center; position: relative;
  background: #fff; border-bottom: 1px solid #eef1f7; overflow: hidden;
}
.product-media svg { width: 96px; height: 96px; }
.product-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 36px 18px 10px;
  transition: transform .3s ease;
}
.product:hover .product-media img { transform: scale(1.04); }
.badge { z-index: 1; }
.badge {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--navy);
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1rem; }
.specs { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { font-size: .78rem; background: var(--bg-alt); color: var(--muted); padding: 3px 9px; border-radius: 6px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; color: var(--navy); }
.price small { font-weight: 500; color: var(--muted); font-size: .75rem; display: block; }
.no-results { text-align: center; color: var(--muted); padding: 32px 0; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.card p { color: var(--muted); margin: 0; }

/* Contact */
.section-dark { background: linear-gradient(160deg, var(--navy-dark), var(--navy)); color: #dfe4ff; }
.section-dark h2 { color: #fff; }
.section-dark .two-col > div > p { color: #c3cbf2; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-list strong { color: #fff; }
.contact-list a { color: var(--sky); text-decoration: none; }
.contact-form {
  background: #fff; color: var(--ink); padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  display: grid; gap: 14px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-alt); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sky); border-color: transparent; background: #fff; }
.contact-form .invalid { border-color: #d93a3a; background: #fff5f5; }
.form-note { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-note.error { color: #c62828; }
.form-note.ok { color: #1b7f3b; }

/* Footer */
.site-footer { background: #0b0a33; color: #aab1d6; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.muted { opacity: .7; }

/* Quote drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 12, 40, .45); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; margin: 0; }
.icon-btn { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.q-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-item:last-child { border-bottom: 0; }
.q-name { flex: 1; font-size: .92rem; font-weight: 500; }
.q-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.q-qty button { background: none; border: 0; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.q-qty input { width: 44px; text-align: center; border: 0; font: inherit; -moz-appearance: textfield; }
.q-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.q-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.q-empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; order: -1; }
  .filter-right input { width: 100%; }
  .filter-right { width: 100%; }
  .filter-right input { flex: 1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .brand-mark { height: 30px; width: 120px; } .brand-mark img { width: 120px; }
  .brand-text strong { font-size: 1.05rem; } .brand-text span { font-size: .52rem; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .trace { stroke-dashoffset: 0; }
}
