:root {
  --red: #9e1a1a;
  --text: #222222;
  --text-muted: #5c5c5c;
  --bg: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: HelveticaNeue, Arial, "Open Sans", "PT Sans", "Helvetica Neue", Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.logo img { height: 42px; }
nav ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
}
nav a:hover, nav a.active { color: var(--red); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.header-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero {
  background: var(--red);
  color: #fff;
  padding: 90px 24px;
  text-align: left;
}
.hero.small { padding: 60px 24px; }
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 14px; max-width: 700px; }
.hero.small h1 { font-size: 2rem; margin-bottom: 0; }
.hero h2 { font-size: 1.2rem; font-weight: 400; opacity: 0.9; margin-bottom: 22px; }
.hero p { max-width: 620px; opacity: 0.9; margin-bottom: 30px; }
.btn {
  display: inline-block;
  background: #fff;
  color: var(--red);
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}
.btn.outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
section { padding: 70px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-inner.narrow { max-width: 820px; }
h2.section-title { font-size: 1.9rem; font-weight: 700; margin-bottom: 40px; }
h2.section-title span { color: var(--red); }
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 32px;
}
.service { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); text-decoration: none; color: inherit; display: block; transition: transform 0.15s; }
.service:hover { transform: translateY(-4px); }
.service img { height: 150px; width: 100%; object-fit: cover; }
.service .body { padding: 20px; }
.service h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.service p { color: var(--text-muted); font-size: 0.92rem; }
.service .more { color: var(--red); font-size: 0.85rem; font-weight: 700; margin-top: 10px; display: inline-block; }
.band {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/circuit-board.webp") center/cover no-repeat;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  opacity: 0.82;
}
.band .section-inner { position: relative; z-index: 1; }
.band h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; color: #fff; }
.band p { max-width: 620px; margin: 0 auto; opacity: 0.95; }
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.ref { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.ref img { height: 200px; width: 100%; object-fit: cover; }
.ref .body { padding: 18px 20px; }
.ref h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.ref p { color: var(--text-muted); font-size: 0.88rem; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.tab-btn {
  background: none;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tab-btn.active { background: var(--red); color: #fff; }
.ref-grid { display: none; }
.ref-grid.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.ref-grid .ref img { height: 160px; }
.ref-grid .ref .body { padding: 14px 16px; }
.ref-grid .ref h3 { font-size: 0.9rem; }
.ref-count { color: var(--text-muted); font-size: 0.85rem; margin: -24px 0 30px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.field { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 16px; font-family: inherit; font-size: 0.95rem; }
.send-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 15px 0;
  width: 100%;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 0.95rem;
}
.contact-info h3 { margin-bottom: 10px; }
.contact-info p { color: var(--text-muted); margin-bottom: 6px; }
.contact-info a { color: var(--red); text-decoration: none; font-weight: 600; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--red); text-decoration: none; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
footer {
  border-top: 1px solid #eee;
  padding: 40px 24px 20px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
}
.footer-logo img { height: 34px; margin-bottom: 12px; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 6px; }
.footer-col a:hover { color: var(--red); }
.copyright {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  margin: 0 -24px -20px;
}
