:root {
  --blue: #0066d9;
  --deep: #061b38;
  --navy: #092b5c;
  --orange: #ff6a00;
  --line: rgba(9, 43, 92, .14);
  --text: #0b1830;
  --muted: #5f6f83;
  --white: #fff;
  --shadow: 0 24px 80px rgba(6, 27, 56, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 102, 217, .12), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #fff 34%, #f3f8ff 100%);
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 240px;
  height: 240px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 106, 0, .16), transparent 70%);
  filter: blur(8px);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  min-height: 76px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 14px 10px 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 28px;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 60px rgba(9, 43, 92, .12);
}
.site-header.scrolled { background: rgba(255, 255, 255, .92); }
.brand img {
  width: 300px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}
.nav { display: flex; gap: 20px; color: var(--navy); font-weight: 800; font-size: 14px; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 8px;
  background: var(--orange);
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn, .menu-btn, .floating-actions a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .18), 0 12px 30px rgba(6, 27, 56, .18);
  cursor: pointer;
}
.call-btn, .primary-btn, .secondary-btn, .social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}
.call-btn, .primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #ff7a00, #ff4f00);
  box-shadow: 0 16px 40px rgba(255, 106, 0, .32);
}
.secondary-btn {
  color: var(--navy);
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(9, 43, 92, .12);
}
.menu-btn { display: none; }

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 140px max(24px, calc((100vw - 1180px) / 2)) 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 77% 30%, rgba(0, 102, 217, .14), transparent 34%),
    radial-gradient(circle at 86% 66%, rgba(255, 106, 0, .10), transparent 26%),
    linear-gradient(120deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 56%, rgba(232,241,252,.92) 100%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.eyebrow.orange { color: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--deep);
  overflow-wrap: normal;
  hyphens: none;
}
.hero p { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.trust-row {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, auto 1fr);
  gap: 10px 12px;
  align-items: center;
  max-width: 610px;
  color: var(--muted);
}
.trust-row strong { color: var(--orange); font-size: 28px; font-weight: 900; }
.hero-slider {
  position: relative;
  min-height: clamp(520px, 58vh, 620px);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(6, 27, 56, .08), rgba(6, 27, 56, .82)), var(--slide-image) center / cover;
  transition: opacity .8s ease, transform 1.2s ease;
  transform: scale(1.04);
}
.slide.active { opacity: 1; transform: scale(1); }
.slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: clamp(20px, 2.4vw, 26px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 24px;
  background: rgba(6, 27, 56, .58);
  backdrop-filter: blur(14px);
}
.slide-content span { color: var(--orange); font-weight: 900; text-transform: uppercase; }
.slide-content h2 {
  margin: 10px 0;
  font-size: clamp(26px, 2.5vw, 32px);
  line-height: 1.12;
  text-transform: uppercase;
}
.slide.compact-title .slide-content h2 {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.18;
}
.slide-content p { color: rgba(255, 255, 255, .84); font-size: 16px; line-height: 1.6; }
.slider-dots {
  position: absolute;
  right: 28px;
  top: 28px;
  display: flex;
  gap: 8px;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
}
.slider-dots button.active { width: 34px; border-radius: 999px; background: var(--orange); }

.service-strip {
  z-index: 2;
  position: relative;
  width: min(1180px, calc(100% - 34px));
  margin: -42px auto 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.strip-card, .service-card, .why-panel, .contact-form, .contact-info, .about-inner {
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(9, 43, 92, .11);
}
.strip-card {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 22px;
  font-weight: 900;
  color: var(--deep);
}
.strip-card i { color: var(--orange); font-size: 30px; }

.section {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto clamp(74px, 8vw, 104px);
}
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head span, .contact-info span, .why-panel span {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}
.section-head h2, .promo-copy h2, .why-panel h2, .about h2, .contact h2 {
  color: var(--deep);
  font-size: clamp(30px, 3.7vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 10px 0 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border-radius: 28px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
.service-card h3 {
  overflow-wrap: normal;
  word-break: normal;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 106, 0, .20), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(235,246,255,.98));
  transition: opacity .28s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -85%;
  width: 64%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
  transition: left .55s ease;
}
.service-card:hover {
  transform: translateY(-12px) scale(1.015);
  border-color: rgba(0, 102, 217, .24);
  background: rgba(255,255,255,.9);
  box-shadow: 0 34px 90px rgba(0, 102, 217, .22), 0 14px 34px rgba(255, 106, 0, .10);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { left: 125%; }
.service-card:hover .icon-3d {
  transform: translateY(-4px) rotateX(8deg) rotateY(-10deg);
  background: linear-gradient(145deg, #ff7a00, #0059c7 72%, #061b38);
  box-shadow: inset -10px -14px 24px rgba(0, 0, 0, .20), 0 22px 38px rgba(255, 106, 0, .22);
}
.icon-3d {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, #0073f5, #061b38);
  box-shadow: inset -10px -14px 24px rgba(0, 0, 0, .22), 0 18px 30px rgba(0, 102, 217, .24);
  font-size: 30px;
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}
.service-card h3 { margin: 22px 0 10px; color: var(--deep); font-size: 23px; }
.service-card p, .why-panel p, .about p, .contact p { color: var(--muted); line-height: 1.7; }

.promo-band {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: .92fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 106, 0, .22), transparent 28%),
    linear-gradient(135deg, var(--deep), #073b78);
  color: #fff;
  overflow: hidden;
}
.promo-media {
  position: relative;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.promo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6,27,56,.22), rgba(255,106,0,.10));
}
.promo-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}
.promo-copy p { color: rgba(255, 255, 255, .78); font-size: 18px; line-height: 1.7; }
.promo-copy h2 { color: #fff; }

.split {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 28px;
  align-items: center;
}
.why-panel { padding: 34px; border-radius: 30px; }
.reason-list { display: grid; gap: 16px; margin-top: 28px; }
.reason-item { display: flex; gap: 16px; align-items: flex-start; }
.reason-item i {
  flex: 0 0 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--deep));
}
.reason-item strong { color: var(--deep); font-size: 18px; }
.reason-item p { margin: 4px 0 0; }
.image-stack { position: relative; }
.image-stack img { border-radius: 34px; box-shadow: var(--shadow); }
.floating-badge {
  position: absolute;
  left: -20px;
  bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 330px;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  background: rgba(6, 27, 56, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 54px rgba(6, 27, 56, .26);
  font-weight: 900;
}
.floating-badge i { color: var(--orange); font-size: 28px; }

.about {
  margin: 0 0 96px;
  padding: 80px 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 106, 0, .08), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f4f9ff 100%);
}
.about-inner { width: min(960px, 100%); margin: 0 auto; padding: 42px; border-radius: 34px; text-align: center; }
.about-inner img { width: min(520px, 100%); margin: 0 auto 26px; border-radius: 20px; }
.about-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.about-icons span {
  display: grid;
  gap: 10px;
  padding: 18px 10px;
  border-radius: 18px;
  background: #fff;
  color: var(--deep);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(9, 43, 92, .08);
}
.about-icons i { color: var(--orange); font-size: 28px; }

.contact {
  position: relative;
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 24px;
}
.contact::before {
  content: "";
  position: absolute;
  inset: -34px -24px;
  z-index: -1;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(237,246,255,.94)),
    url('../img/security-wall-cameras.jpg') center / cover;
  opacity: .78;
  filter: saturate(.9);
}
.contact-info, .contact-form { padding: 34px; border-radius: 30px; }
.contact-info p { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; }
.contact-info i { color: var(--orange); margin-top: 4px; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.social-row a { background: var(--deep); color: #fff; }
.contact-form label, .install-card label, .admin-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--deep);
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  background: rgba(255,255,255,.9);
}
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,102,217,.12); }
.notice { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; font-weight: 800; }
.notice.success { color: #0c6b37; background: #e7f8ee; }
.notice.error { color: #9d1d1d; background: #ffe9e9; }

.footer {
  padding: 58px max(24px, calc((100vw - 1180px) / 2)) 24px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 106, 0, .18), transparent 26%),
    linear-gradient(145deg, #061b38, #06152b 70%, #041122);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img {
  width: 260px;
  max-width: 100%;
  border-radius: 16px;
  margin-bottom: 18px;
}
.footer p, .footer span { color: rgba(255,255,255,.66); line-height: 1.7; }
.footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}
.footer a {
  display: block;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  margin-bottom: 11px;
}
.footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
}
.footer-cta {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}
.footer-cta .primary-btn {
  display: inline-flex;
  margin-top: 4px;
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
}
.footer-bottom a {
  color: #fff;
  margin: 0;
}
.floating-actions {
  position: fixed;
  z-index: 25;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
}
.floating-actions a:first-child { background: #15bd59; }
.floating-actions a:nth-child(2) { background: linear-gradient(135deg, #7b2ff7, #ff4f00); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #061b38, #0066d9);
}
.install-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.install-card img {
  width: 360px;
  max-width: 100%;
  margin-bottom: 22px;
  border-radius: 16px;
}
.secondary-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 900; }

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: #f3f7fc;
}
.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: var(--deep);
  color: #fff;
}
.admin-side img {
  width: 230px;
  margin-bottom: 26px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
}
.admin-side a {
  display: block;
  padding: 13px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  color: rgba(255,255,255,.86);
  font-weight: 800;
}
.admin-side a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 30px; }
.admin-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.admin-top h1 { margin: 4px 0 0; color: var(--deep); }
.admin-top span { color: var(--muted); font-weight: 800; }
.admin-panel {
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(9,43,92,.08);
}
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.edit-card {
  display: grid;
  grid-template-columns: 90px minmax(160px, .45fr) 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}
.message-list { display: grid; gap: 12px; }
.message-list article { padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.message-list span { display: block; color: var(--muted); font-size: 13px; margin: 4px 0 8px; }

@media (max-width: 980px) {
  .site-header { border-radius: 22px; }
  .brand img { width: 188px; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
  .call-btn span { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 124px; }
  .hero-slider { min-height: 520px; }
  .service-strip, .services-grid, .split, .promo-band, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-icons { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; }
  .admin-grid, .edit-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { top: 10px; width: calc(100% - 18px); padding: 10px; }
  .brand img { width: 152px; height: 42px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 42px; }
  .hero-slider { min-height: 430px; border-radius: 24px; }
  .slide-content { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
  .slide-content h2 { font-size: 22px; line-height: 1.12; }
  .slide.compact-title .slide-content h2 { font-size: 18px; line-height: 1.18; }
  .slide-content p { font-size: 14px; line-height: 1.55; }
  .promo-media {
    min-height: 0;
    aspect-ratio: 1.72 / 1;
    border-radius: 18px;
  }
  .promo-media img {
    min-height: 0;
    object-fit: contain;
    background: #fff;
  }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .service-strip, .section, .promo-band, .contact { width: calc(100% - 24px); }
  .promo-band, .contact-info, .contact-form, .about-inner { padding: 22px; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; text-align: center; justify-content: center; }
  .footer-social { justify-content: center; }
}
