:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --blue: #1d5fd1;
  --blue-soft: #e8f0fd;
  --red: #d0142c;
  --red-dark: #a80f23;
  --ink: #16202e;
  --muted: #5a6677;
  --line: #dde3ec;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .08);
}

* { 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%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Barlow", sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: "Barlow", sans-serif;
  font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .6em;
}
.eyebrow.light { color: #ff6b7d; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: "Barlow", sans-serif; font-weight: 700; font-size: 1.02rem; letter-spacing: .02em;
  padding: .85em 1.6em; border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0 33%, #fff 33% 34%, var(--red) 34% 100%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--navy); text-decoration: none; font-family: "Barlow", sans-serif; font-weight: 600; font-size: 1.02rem; }
.nav a:not(.btn):hover { color: var(--red); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: .25s; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(29,95,209,.55), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(208,20,44,.35), transparent 40%),
    linear-gradient(135deg, #0b1f3a 0%, #12305a 60%, #0b1f3a 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner {
  position: relative; padding: 110px 20px 90px; max-width: 1180px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
}
.hero-stats { grid-column: 1 / -1; }
.hero-logo {
  background: #fff; border-radius: 16px; padding: 36px 30px;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  border-bottom: 6px solid var(--red);
  transform: rotate(-1.5deg);
}
.hero-logo img { width: 100%; height: auto; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: 1.15rem; max-width: 640px; color: #d6e0f0; }
.hero .eyebrow { color: #ff6b7d; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 50px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
.hero-stats strong { display: block; font-family: "Barlow", sans-serif; font-size: 1.8rem; font-weight: 800; }
.hero-stats span { color: #b9c7dd; font-size: .95rem; }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #d6e0f0; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Service cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-soft); margin-bottom: 18px;
}
.card:nth-child(even) .card-icon { background: #fde8eb; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(even) .card-icon svg { stroke: var(--red); }

/* Products */
.product { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-top { display: flex; align-items: center; gap: 14px; padding: 22px 26px; color: #fff; }
.product-top h3 { color: #fff; margin: 0; font-size: 1.45rem; }
.product-top svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-top.blue { background: var(--blue); }
.product-top.red { background: var(--red); }
.product-top.navy { background: var(--navy); }
.product ul { list-style: none; margin: 0; padding: 20px 26px 8px; flex: 1; }
.product li { padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); position: relative; }
.product li:last-child { border-bottom: 0; }
.product li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
.product .link { display: block; padding: 16px 26px 22px; font-weight: 600; text-decoration: none; }

/* Robots */
.robots { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #d6e0f0; }
.robots h2 { color: #fff; }
.robots-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.robot-series { display: grid; gap: 16px; }
.series { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid var(--red); border-radius: 8px; padding: 20px 22px; }
.series p { margin: 0; }
.series-tag { display: inline-block; font-family: "Barlow", sans-serif; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 4px; }

/* Brands */
.brands { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brands li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; min-height: 120px; padding: 16px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-family: "Barlow", sans-serif; font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.brands li img { max-width: 80%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.brands li.text-only { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.brands li:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.brands li.more { color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 22px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about p { color: var(--muted); font-size: 1.05rem; }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why li { background: #fff; border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--blue); box-shadow: var(--shadow); }
.why li:nth-child(2), .why li:nth-child(3) { border-top-color: var(--red); }
.why strong { display: block; font-family: "Barlow", sans-serif; font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.why span { color: var(--muted); font-size: .95rem; }

/* Forms */
.form-card { background: #fff; border-radius: 12px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); }
#quoteForm { max-width: 920px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
label.full { margin-top: 18px; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #c9d2de; border-radius: 6px; padding: 11px 12px; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,209,.18); }
input.invalid, textarea.invalid { border-color: var(--red); }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-sub { margin: 30px 0 12px; font-size: 1.15rem; }

.items { display: grid; gap: 10px; margin-bottom: 14px; }
.item-head, .item-row { display: grid; grid-template-columns: 1fr 2fr 90px 44px; gap: 10px; align-items: center; }
.item-head span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.item-row .remove {
  width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 6px;
  color: var(--muted); font-size: 1.3rem; cursor: pointer;
}
.item-row .remove:hover { color: var(--red); border-color: var(--red); }

.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: #0f8a43; }
.form-msg.err { color: var(--red); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #ff6b7d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.footer { background: #fff; border-top: 4px solid var(--red); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-logo { height: 44px; width: auto; }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-address { display: flex; align-items: flex-start; gap: 8px; font-style: normal; font-size: .92rem; line-height: 1.45; padding-left: 24px; border-left: 2px solid var(--line); }
.footer-address svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-address a { color: var(--navy); text-decoration: none; }
.footer-address a:hover { color: var(--red); }
.footer-lines, .phones { display: flex; flex-direction: column; gap: 2px; }
.footer-inner { align-items: flex-start; }
.footer-brand { align-items: flex-start; }
.footer-brand .footer-logo { margin-top: 4px; }
@media (max-width: 640px) { .footer-address { padding-left: 0; border-left: 0; } }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--red); }
.footer p { margin: 0; color: var(--muted); font-size: .9rem; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; }

/* Responsive */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .robots-inner, .about, .contact, .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { max-width: 420px; transform: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero-inner { padding: 70px 16px 60px; }
  .grid-3, .form-grid, .why { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .brand img { height: 42px; }
  .form-card { padding: 22px 18px; }
  .item-head { display: none; }
  .item-row { grid-template-columns: 1fr 70px 44px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
  .item-row .brand-in { grid-column: 1 / -1; }
  .hero-stats { gap: 24px; }
}
