/* ===== Zabezpiecz Budowę — styles ===== */

:root {
  --navy-950: #0b1622;
  --navy-900: #0f2233;
  --navy-800: #16324a;
  --navy-700: #1e4560;
  --ink: #10202e;
  --ink-soft: #4a5f6f;
  --paper: #ffffff;
  --paper-alt: #f4f7f9;
  --line: #e2e8ec;
  --accent: #ff6a1a;
  --accent-dark: #e4570c;
  --accent-soft: #fff1e8;
  --ok: #1f9d55;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px -14px rgba(15, 34, 51, 0.25);
  --shadow-sm: 0 4px 12px -6px rgba(15, 34, 51, 0.2);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy-800); background: var(--paper-alt); }

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
}
.btn-ghost:hover { color: var(--accent-dark); }

.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; margin-top: 8px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--navy-900); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--navy-900);
  border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #fff;
  padding: 76px 0 88px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-points li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding-left: 26px;
  position: relative;
}
.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(6px);
}
.hero-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.dot-live { box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.25); }

.hero-card-cams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.cam-tile {
  position: relative;
  /* matches the source camera photos' own aspect ratio (~1.85:1) so nothing gets cropped */
  aspect-ratio: 37 / 20;
  border-radius: 8px;
  overflow: hidden;
  background: #16232b;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cam-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cam-tile::after {
  /* subtle vignette to blend the photo edges into the dark card */
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 14px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

/* ---- Sections ---- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); }

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--navy-900);
}
.section-title.center { text-align: center; }

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0 0 48px;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

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

/* ---- Feature cards ---- */
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; text-align: center; }
.feature-card h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--navy-900); }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  position: relative;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.step h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--navy-900); }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.step-note {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 8px 10px;
  border-radius: 8px;
}

/* ---- Packages ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.always-included {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 0 0 20px;
}
.always-included-title {
  font-weight: 800;
  color: var(--navy-900);
  font-size: 0.92rem;
  white-space: nowrap;
}
.always-included ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}
.always-included li {
  font-size: 0.9rem;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  white-space: nowrap;
}
.always-included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 800;
}

/* ---- Package cards (3 + 3 grid) ---- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.package-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.package-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.package-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.package-head {
  margin-bottom: 16px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}
.package-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy-900);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.package-price-bottom {
  justify-content: center;
  margin-bottom: 4px;
}
.price-amount {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.price-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.package-specs {
  display: flex;
  gap: 10px;
  margin: 18px 0 6px;
}
.spec-item {
  flex: 1;
  text-align: center;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
}
.spec-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.spec-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.package-section-label {
  margin: 18px 0 4px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex-grow: 1;
}
.package-features li {
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink);
  position: relative;
}
.package-features li:first-child { border-top: none; }
.package-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 800;
}

.package-addons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.addon-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.addon-option:has(.addon-checkbox:checked) {
  border-color: var(--accent);
  background: var(--paper);
}
.addon-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.addon-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.addon-name {
  text-align: center;
}
.addon-note {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: -2px;
}
.addon-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-900);
  width: 100%;
  text-align: center;
}
.addon-option:has(.addon-checkbox:checked) .addon-price {
  color: var(--accent-dark);
}

.packages-footnote {
  margin: 32px auto 0;
  max-width: 70ch;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.cloud-grid .package-card { align-items: center; text-align: center; }
.cloud-grid .package-head { margin-bottom: 0; background: none; border: none; padding: 0; }
.cloud-grid .package-price { justify-content: center; }

/* ---- FAQ ---- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  color: var(--navy-900);
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---- Obszar działania ---- */
.section-dark {
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: rgba(255, 255, 255, 0.8); margin-bottom: 36px; }

.area-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
}
.area-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.area-pin { font-size: 1rem; }

.area-note {
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}
.area-note a { color: var(--accent); font-weight: 700; text-decoration: none; }
.area-note a:hover { text-decoration: underline; }

/* ---- Kontakt ---- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.kontakt-details {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kontakt-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.kontakt-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.kontakt-details strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.kontakt-details a, .kontakt-details span {
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
}
.kontakt-details a:hover { color: var(--accent-dark); }

.kontakt-form {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.form-title {
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.kontakt-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  margin: 12px 0 6px;
}
.kontakt-form label:first-of-type { margin-top: 0; }
.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--navy-800);
}
.form-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-logo {
  color: #fff;
  font-weight: 800;
}
.footer-copy, .footer-contact {
  margin: 0;
  font-size: 0.85rem;
}
.footer-contact a {
  color: inherit;
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 20px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .always-included { justify-content: flex-start; text-align: left; }
}

@media (max-width: 720px) {
  .grid-4, .grid-3, .steps, .packages-grid, .cloud-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 60px 0; }
}
