:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.972 0.006 270);
  --surface-strong: oklch(0.932 0.018 255);
  --ink: oklch(0.19 0.025 260);
  --muted: oklch(0.43 0.028 260);
  --primary: oklch(0.43 0.18 268);
  --primary-dark: oklch(0.25 0.12 268);
  --accent: oklch(0.62 0.15 178);
  --accent-soft: oklch(0.92 0.075 178);
  --danger: oklch(0.58 0.22 25);
  --line: oklch(0.88 0.012 260);
  --radius: 12px;
  --shadow: 0 8px 24px oklch(0.2 0.03 260 / 0.10);
  --container: 1280px;
  --container-pad: max(18px, calc((100vw - var(--container)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.55;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.section,
.request,
#top {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--container-pad);
  background: oklch(1 0 0 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.hero-actions,
.hero-points,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 13px;
}

.main-nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.main-nav a[aria-current] {
  color: var(--primary);
  font-weight: 800;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--primary);
}

.main-nav a {
  transition: color 180ms ease;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  min-height: clamp(560px, calc(100vh - 78px), 760px);
  padding: clamp(34px, 5vw, 70px) var(--container-pad) 30px;
  background:
    radial-gradient(circle at 14% 22%, oklch(0.93 0.09 178 / 0.55), transparent 28%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg) 48%, oklch(0.95 0.025 268) 100%);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: normal;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.hero-text,
.section-head p,
.request p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.hero-points {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: oklch(0.25 0.055 178);
  font-size: 14px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 40vw, 520px);
  min-height: 0;
  border-radius: 18px;
  background: var(--primary-dark);
  box-shadow: var(--shadow);
}

.hero-visual img,
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.visual-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 180px;
  padding: 18px;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.visual-panel span,
.visual-panel small {
  display: block;
  color: var(--muted);
}

.visual-panel strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-inline: var(--container-pad);
  border-block: 1px solid var(--line);
  background: var(--primary-dark);
  color: white;
}

.trust-strip div {
  padding: 24px clamp(18px, 4vw, 44px);
  border-right: 1px solid oklch(1 0 0 / 0.16);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.trust-strip span {
  color: oklch(0.86 0.025 268);
}

.section {
  padding: clamp(64px, 8vw, 118px) var(--container-pad);
}

.section-head {
  max-width: 850px;
  margin-bottom: 34px;
}

.package-grid,
.proof-grid,
.logo-grid,
.review-grid,
.steps,
.contacts {
  display: grid;
  gap: 16px;
}

.proof {
  background: white;
}

.proof-grid {
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid article {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 10px;
  font-size: 21px;
}

.proof-grid span {
  color: var(--muted);
}

.package-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  align-items: stretch;
}

.package-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.package-card {
  position: relative;
  display: flex;
  min-height: 590px;
  flex-direction: column;
  padding: 24px;
}

.package-card.featured {
  background: var(--primary-dark);
  color: white;
}

.package-card.featured .price,
.package-card.featured li {
  color: oklch(0.9 0.025 268);
}

.package-media {
  display: grid;
  height: 190px;
  margin: 12px 0 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: white;
  border: 1px solid oklch(0.92 0.008 260);
}

.package-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.package-card.featured .package-media {
  background: white;
  border-color: transparent;
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.price {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
}

.package-fit {
  min-height: 54px;
  margin-bottom: 18px;
  color: var(--muted);
}

.package-card ul {
  display: grid;
  gap: 10px;
  padding: 0 0 0 18px;
  margin: 0 0 28px;
  color: var(--muted);
}

.package-card a {
  margin-top: auto;
  color: var(--primary);
  font-weight: 800;
}

.package-card.featured a {
  color: var(--accent);
}

.package-note {
  max-width: 82ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.brands {
  background: var(--surface);
}

.logo-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.logo-card {
  display: grid;
  min-height: 118px;
  gap: 12px;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.logo-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 16px oklch(0.2 0.03 260 / 0.08);
}

.logo-card img {
  max-width: 170px;
  max-height: 58px;
  object-fit: contain;
}

.logo-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: start;
  background: var(--primary);
  color: white;
}

.feature-band .section-kicker {
  color: var(--accent-soft);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.22);
}

.feature-list span {
  color: oklch(0.9 0.025 270);
}

.steps {
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  padding: 24px;
  border-top: 2px solid var(--primary);
  background: var(--surface);
}

.steps span {
  display: block;
  margin-bottom: 36px;
  color: var(--primary);
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.steps p {
  color: var(--muted);
}

.reviews {
  background: var(--surface);
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: white;
}

.review-rating {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.review-card p {
  color: var(--ink);
  font-size: 17px;
}

.review-card strong {
  margin-top: auto;
  color: var(--primary);
}

.request {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) var(--container-pad);
  background:
    linear-gradient(90deg, oklch(0.2 0.08 255 / 0.88), oklch(0.42 0.08 190 / 0.62)),
    url("assets/hero-surveillance-installation.png") center / cover;
  color: white;
}

.request::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, oklch(0.13 0.045 260 / 0.28));
  pointer-events: none;
}

.request > * {
  position: relative;
  z-index: 1;
}

.request .section-kicker,
.request p {
  color: oklch(0.92 0.035 215);
}

.request-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.9);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.selected-package {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: oklch(0.25 0.055 178);
  font-weight: 800;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  background: white;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 14px) 22px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}

input::placeholder {
  color: oklch(0.48 0.025 260);
}

.form-note,
.form-status,
.field-error {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.is-success {
  background: var(--accent-soft);
  color: oklch(0.22 0.07 178);
}

.form-status.is-error {
  background: oklch(0.96 0.045 25);
  color: var(--danger);
}

.field-error {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  background: oklch(0.96 0.045 25);
  color: var(--danger);
  font-weight: 800;
  line-height: 1.45;
}

.field-error:not(:empty) {
  display: block;
}

.form-note a {
  color: var(--primary);
  font-weight: 800;
}

.contacts {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: white;
}

.contact-card {
  padding: 24px;
  color: var(--ink);
  transition: border-color 180ms ease, transform 180ms ease;
}

a.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.contact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.contact-card strong {
  font-size: 20px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--container-pad);
  background: var(--primary-dark);
  color: white;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

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

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

  .hero,
  .feature-band,
  .request {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual,
  .hero-visual img,
  .hero-video {
    min-height: 420px;
  }

  .trust-strip,
  .proof-grid,
  .review-grid,
  .steps,
  .contacts {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 18px;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--ink);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle span + span {
    margin-top: 0;
  }

  .site-header.is-menu-open .menu-toggle span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .main-nav {
    display: none;
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    padding: 8px 0 2px;
    gap: 8px;
  }

  .site-header.is-menu-open .main-nav {
    display: grid;
  }

  .main-nav a {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface);
    font-weight: 800;
    font-size: 14px;
  }

  h1 {
    font-size: clamp(32px, 9vw, 40px);
    overflow-wrap: break-word;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-text,
  .section-head p,
  .request p {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points li {
    max-width: 100%;
  }

  .hero-visual,
  .hero-visual img,
  .hero-video {
    min-height: 340px;
  }

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

  .package-media {
    height: auto;
    aspect-ratio: 5 / 4;
    margin: 12px 0 24px;
  }

  .package-media img {
    object-position: center;
    padding: 10px;
  }

  .trust-strip,
  .proof-grid,
  .review-grid,
  .steps,
  .contacts,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .feature-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: oklch(0.2 0.025 260 / 0.6);
  color: var(--ink);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-inner {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.modal-close-btn {
  align-self: flex-start;
  margin-top: 16px;
}

.cookie-banner {
  position: fixed;
  right: clamp(16px, 4vw, 48px);
  bottom: 18px;
  z-index: 30;
  display: flex;
  width: min(560px, calc(100vw - 32px));
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
}

.cookie-actions a {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1;
  }
}
