:root {
  --ink: #17202a;
  --muted: #5b6776;
  --line: #dbe3ea;
  --panel: #ffffff;
  --soft: #f4f7f9;
  --brand: #d22f27;
  --brand-dark: #9f211d;
  --teal: #087f8c;
  --gold: #d69b21;
  --navy: #12324a;
  --shadow: 0 18px 45px rgba(18, 50, 74, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--navy);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background:
    linear-gradient(135deg, var(--navy) 0 48%, var(--brand) 49% 100%);
}

.logo-mark::before,
.logo-mark::after {
  position: absolute;
  content: "";
  background: #fff;
}

.logo-mark::before {
  width: 28px;
  height: 3px;
  right: -7px;
  top: 10px;
  transform: rotate(38deg);
}

.logo-mark::after {
  width: 3px;
  height: 28px;
  left: 9px;
  bottom: -6px;
  transform: rotate(38deg);
}

.logo-word {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-word strong {
  color: var(--brand);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(210, 47, 39, 0.22);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 76px));
  overflow: hidden;
  background: var(--navy);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 32, 42, 0.9) 0%, rgba(18, 32, 42, 0.76) 42%, rgba(18, 32, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 32, 42, 0.46), rgba(18, 32, 42, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 64px 0 92px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 850;
}

.primary-action {
  color: #fff;
  background: var(--brand);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -48px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.contact-strip div {
  min-height: 112px;
  padding: 24px;
  background: #fff;
}

.contact-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-strip a,
.contact-strip strong {
  color: var(--navy);
  font-size: clamp(18px, 2.5vw, 25px);
  font-weight: 850;
}

.section,
.solutions,
.cta {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 96px 0 72px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.solutions h2,
.cta h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:last-child,
.solutions-copy p:last-child,
.cta p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 312px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(18, 50, 74, 0.07);
}

.service-icon {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 8px;
  background: #eaf1f4;
}

.service-icon::before,
.service-icon::after {
  position: absolute;
  content: "";
}

.camera-icon::before {
  width: 26px;
  height: 16px;
  left: 10px;
  top: 14px;
  border-radius: 4px;
  background: var(--navy);
}

.camera-icon::after {
  width: 12px;
  height: 12px;
  right: 6px;
  top: 16px;
  border-radius: 50%;
  border: 3px solid var(--teal);
}

.alarm-icon::before {
  width: 26px;
  height: 30px;
  left: 11px;
  top: 9px;
  border-radius: 5px;
  background: var(--brand);
}

.alarm-icon::after {
  width: 18px;
  height: 3px;
  left: 15px;
  top: 19px;
  box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
  background: #fff;
}

.detect-icon::before {
  width: 28px;
  height: 28px;
  left: 10px;
  top: 10px;
  border: 5px solid var(--gold);
  border-radius: 50%;
}

.detect-icon::after {
  width: 8px;
  height: 8px;
  left: 20px;
  top: 20px;
  border-radius: 50%;
  background: var(--brand);
}

.cable-icon::before {
  width: 31px;
  height: 20px;
  left: 8px;
  top: 14px;
  border: 4px solid var(--teal);
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.cable-icon::after {
  width: 20px;
  height: 4px;
  left: 7px;
  top: 22px;
  background: var(--navy);
  box-shadow: 15px -8px 0 var(--navy), 15px 8px 0 var(--navy);
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.solutions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
  padding: 54px;
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.process-list span {
  grid-row: span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 850;
  background: var(--navy);
}

.process-list strong {
  color: var(--navy);
  font-size: 18px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  margin-top: 72px;
  margin-bottom: 72px;
  padding: 44px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 50, 74, 0.98), rgba(8, 127, 140, 0.92)),
    var(--navy);
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 690px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  display: grid;
  gap: 10px;
  min-width: min(330px, 100%);
}

.contact-phone,
.contact-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 850;
  text-align: center;
}

.contact-phone {
  color: #fff;
  background: var(--brand);
}

.contact-mail {
  color: var(--navy);
  background: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer span:first-child {
  color: var(--navy);
  font-weight: 850;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .contact-strip,
  .section-heading,
  .solutions,
  .cta {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions,
  .cta {
    padding: 34px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
    padding: 12px 18px;
  }

  .logo-word {
    font-size: 20px;
  }

  .header-phone {
    width: 100%;
  }

  .main-nav {
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(18, 32, 42, 0.92), rgba(18, 32, 42, 0.66));
  }

  .hero-content {
    align-self: end;
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-bottom: 104px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .contact-strip {
    margin-top: -70px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 72px;
  }

  .service-card {
    min-height: 0;
  }

  .process-list div {
    grid-template-columns: 42px 1fr;
    padding: 16px;
  }

  .process-list span {
    width: 42px;
    height: 42px;
  }

  .site-footer {
    display: grid;
  }
}
