:root {
  color-scheme: light;
  --navy: #06245a;
  --navy-2: #0a3678;
  --blue: #1167d8;
  --cyan: #11a5df;
  --ink: #10213f;
  --muted: #5a6880;
  --line: #d8e3f2;
  --soft: #f4f8fc;
  --white: #ffffff;
  --accent: #1167d8;
  --accent-soft: #e9f3ff;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--navy);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  color: var(--navy);
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
}
.brand span { font-size: 1.25rem; letter-spacing: 0; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--navy);
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}
.menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.menu a {
  padding: .65rem .8rem;
  border-radius: 8px;
  color: #263c61;
  font-weight: 650;
  font-size: .95rem;
}
.menu a:hover,
.menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.05rem;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}
.button.primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(17,103,216,.22);
}
.button.secondary {
  color: var(--navy);
  border-color: var(--line);
  background: white;
}

.hero {
  background:
    linear-gradient(135deg, rgba(6,36,90,.96), rgba(10,54,120,.92)),
    radial-gradient(circle at 85% 20%, rgba(17,165,223,.35), transparent 34%);
  color: white;
}
.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: 3rem;
  align-items: center;
  padding: 72px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #bfe8ff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
h1, h2, h3 {
  color: inherit;
  line-height: 1.12;
  letter-spacing: 0;
}
h1 {
  max-width: 790px;
  margin: 1rem 0 1rem;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
}
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}
h3 {
  margin: 0 0 .55rem;
  font-size: 1.18rem;
}
.lead {
  max-width: 700px;
  color: #dcecff;
  font-size: 1.16rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 1.25rem;
}
.hero-card .list li { color: #dcecff; }
.hero-logo {
  display: block;
  width: min(360px, 90%);
  margin: 0 auto 1.25rem;
  border-radius: 8px;
  background: white;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.stat {
  border-top: 3px solid var(--accent);
  padding-top: .75rem;
}
.stat strong {
  display: block;
  font-size: 1.55rem;
}
.stat span { color: #dcecff; font-size: .92rem; }

.section {
  padding: 72px 0;
}
.section.soft { background: var(--soft); }
.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}
.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: white;
}
.card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 900;
}
.card p, .list li, .faq p { color: var(--muted); }
.list {
  margin: 0;
  padding-left: 1.15rem;
}
.list li { margin: .35rem 0; }
.service-link {
  display: inline-flex;
  margin-top: .6rem;
  color: var(--accent);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}
.band {
  background: var(--navy);
  color: white;
  padding: 56px 0;
}
.band p { color: #dcecff; max-width: 720px; }
.band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}
.contact-box {
  display: grid;
  gap: .75rem;
}
.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .75rem;
}
.contact-item strong { color: var(--navy); }

.site-footer {
  padding: 42px 0;
  color: #cbd8eb;
  background: #041936;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
}
.footer-grid a { display: block; margin: .35rem 0; color: #e7f1ff; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: white;
  font-weight: 900;
}
.footer-logo img { width: 46px; height: 46px; border-radius: 8px; background: white; }
.footer-legal {
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  max-width: 760px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  line-height: 1.7;
  color: #93a6c4;
  text-align: center;
}
.footer-legal a { color: #cbd8eb; }
.footer-legal strong { color: #e7f1ff; }

body.alarmy { --accent: #f05a28; --accent-soft: #fff0e9; }
body.kamery { --accent: #099bd8; --accent-soft: #e8f8ff; }
body.dom { --accent: #0c9b83; --accent-soft: #e7f8f4; }
body.czujki { --accent: #e0a414; --accent-soft: #fff7db; }
body.kontakt { --accent: #244a86; --accent-soft: #edf3fb; }

@media (max-width: 880px) {
  .nav { min-height: 68px; }
  .nav-toggle { display: block; }
  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 16px 1rem;
    background: white;
    border-bottom: 1px solid var(--line);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: .85rem; }
  .hero-inner, .split, .grid, .grid.two, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    min-height: auto;
    padding: 48px 0;
  }
  .hero-card { order: -1; }
  .stat-grid { grid-template-columns: 1fr; }
  .band .wrap { align-items: flex-start; flex-direction: column; }
  .section { padding: 52px 0; }
}

@media (max-width: 520px) {
  .brand span { font-size: 1.05rem; }
  .brand img { width: 46px; height: 46px; }
  .hero-actions .button { width: 100%; }
  .contact-item { display: block; }
}
