/* Magnify Security — CCTV site (v3, picture-first)
   Palette from the logo: brand yellow, padlock blue, black. */
:root {
  --yellow: #FFE500;
  --yellow-soft: #FFF6B3;
  --blue: #2B46D1;
  --blue-soft: #E7EBFB;
  --ink: #0F1115;
  --ink-2: #4A4F5A;
  --ink-3: #7A808C;
  --paper: #FFFFFF;
  --paper-2: #F6F7F9;
  --line: #E6E8EC;
  --wa: #25D366;
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(15,17,21,.04), 0 12px 32px -12px rgba(15,17,21,.14);
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 56ch;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec i { animation: none !important; }
}

body {
  margin: 0;
  font: 400 17px/1.6 Rubik, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.2vw, 66px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--yellow); color: var(--ink); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand svg { background: var(--yellow); border-radius: 9px; padding: 4px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top > .btn { margin-left: auto; }
.top nav + .btn { margin-left: 0; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--paper-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #F5DC00; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-big { padding: 16px 26px; font-size: 17px; }

/* ---------- hero: photo ---------- */
.hero {
  position: relative; color: #fff; background: var(--ink) center/cover no-repeat;
  min-height: min(82vh, 720px);
  display: flex; align-items: center;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,18,.88) 0%, rgba(10,12,18,.72) 40%, rgba(10,12,18,.25) 75%, rgba(10,12,18,.15) 100%);
}
.hero:not(.hero-photo)::before {
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(255,229,0,.18), transparent 60%),
    radial-gradient(500px 500px at 10% 100%, rgba(43,70,209,.35), transparent 60%);
}
.hero-copy { position: relative; max-width: 620px; }
.rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: rgba(255,255,255,.8); margin-bottom: 20px; font-size: 15px; }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 4px rgba(255,59,48,.2); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero .lede { font-size: clamp(17px, 1.5vw, 21px); color: rgba(255,255,255,.82); max-width: 44ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255,255,255,.85); font-size: 15px; }
.hero-proof li { display: flex; align-items: center; gap: 7px; }
.hero-proof .ico { color: var(--yellow); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) var(--gutter); }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2 { color: #fff; }
.intro { max-width: var(--measure); color: var(--ink-2); font-size: 18px; margin-bottom: 32px; margin-left: 0; }
.section-dark .intro { color: rgba(255,255,255,.7); }
.section h2 { margin-left: 0; }

/* collapsible extras */
.more { max-width: var(--wrap); margin: 22px auto 0; }
.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue); padding: 6px 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; font-size: 18px; }
.more[open] summary::before { content: "–"; }
.more[open] summary { margin-bottom: 14px; }

/* ---------- pick: IP vs analog ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.type { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.type-ip { border-top: 6px solid var(--blue); }
.type-analog { border-top: 6px solid var(--yellow); }
.type-ip .tag { background: var(--blue-soft); color: var(--blue); }
.type-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; background: var(--paper-2); }
.type-ico .ico { width: 34px; height: 34px; }
.type-ip .type-ico { background: var(--blue-soft); color: var(--blue); }
.type-analog .type-ico { background: var(--yellow-soft); color: var(--ink); }
.type h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 12px 0 4px; }
.type > p { color: var(--ink-2); margin: 0 0 14px; }
.type dl { margin: 0; }
.type dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.type dt { font-weight: 500; color: var(--ink-3); font-size: 15px; }
.type dd { margin: 0; }
.hero-note { max-width: var(--wrap); margin: 22px auto 0; font-weight: 500; color: var(--ink-2); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.compare { border-collapse: collapse; width: 100%; min-width: 720px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare thead th { background: var(--paper-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.compare thead th:nth-child(2) { color: var(--blue); }
.compare tbody th { font-weight: 500; color: var(--ink-3); width: 20%; }
.compare tbody td { width: 40%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- booking (dark) ---------- */
.book-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); }
.perks .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,229,0,.15); color: var(--yellow); }
.book {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px;
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.book label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.book input, .book select, .book textarea { font: inherit; color: var(--ink); background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 11px 13px; width: 100%; }
.book input:focus, .book select:focus, .book textarea:focus { outline: none; border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 3px var(--blue-soft); }
.book textarea { resize: vertical; }
.book-wide { grid-column: 1 / -1; }
.book-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.book-actions .btn { border: 0; cursor: pointer; }
.book-actions p { margin: 0; font-size: 13px; color: var(--ink-3); max-width: 36ch; }

/* ---------- live view strip ---------- */
.live { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--paper-2); }
.live-copy .intro { margin-bottom: 0; }
.monitor {
  width: 100%; max-width: 620px; justify-self: end;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 6px; border-radius: var(--radius);
  background: #1C1F26; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.feed {
  aspect-ratio: 4 / 3; border-radius: 10px; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #5b6373, #2e333d);
}
.feed-dark { background:
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.5)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #3a4150, #1b1e26); }
.feed-img { background-size: cover; background-position: center; }
.feed-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 35%, transparent 65%, rgba(0,0,0,.45)); }
.feed .ch, .feed .ts { position: absolute; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.85); }
.feed .ch { top: 8px; left: 10px; }
.feed .ts { bottom: 8px; right: 10px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.6); }
.monitor-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px 6px; font-size: 12px; color: rgba(255,255,255,.6); }
.monitor-bar b { color: var(--yellow); font-weight: 600; }

/* ---------- packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pkg { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.pkg-featured { border-color: var(--ink); box-shadow: 0 24px 48px -20px rgba(15,17,21,.3); }
.pkg .tag { position: absolute; top: 18px; right: 18px; }
.pkg-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--yellow-soft); display: grid; place-items: center; margin-bottom: 16px; }
.pkg-ico .ico { width: 34px; height: 34px; }
.pkg h3 { font-size: 26px; font-weight: 800; margin-bottom: 2px; }
.pkg-for { color: var(--ink-2); margin-bottom: 14px; }
.pkg ul { padding-left: 20px; margin: 0 0 22px; flex: 1; color: var(--ink-2); }
.pkg li { margin-bottom: 4px; }
.pkg li::marker { color: var(--blue); }
.btn-quote { margin-top: auto; border-color: var(--ink); }
.pkg-featured .btn-quote { background: var(--yellow); border-color: var(--yellow); }
.addons ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; color: var(--ink-2); }
.addons li { display: flex; gap: 10px; align-items: flex-start; }
.addons .ico { color: var(--blue); margin-top: 3px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { counter-increment: step; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; top: 14px; right: 16px; font-weight: 800; color: var(--ink-3); font-size: 14px; }
.step-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 16px; }
.step-ico .ico { width: 26px; height: 26px; }
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-s); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.trust > div { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: start; }
.trust .ico { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); grid-row: 1 / 3; }
.trust h3 { margin: 0; font-size: 17px; }
.trust p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-left: 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); margin-bottom: 10px; padding: 0 20px; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; padding: 15px 40px 15px 0; font-weight: 600; font-size: 16px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 20px; font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after { content: "–"; background: var(--yellow); color: var(--ink); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: var(--measure); }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact .intro { color: rgba(255,255,255,.7); }
.contact-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; margin-left: 0; }
.contact-grid .btn { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.contact-grid .btn:hover { background: rgba(255,255,255,.1); }
.contact-grid .btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.contact-grid .btn-primary:hover { background: #F5DC00; }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; margin-left: 0; max-width: 900px; }
.contact-info dt { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.contact-info dd { margin: 0; font-weight: 500; }
.contact-info a { color: var(--yellow); }

/* ---------- footer + float ---------- */
.foot { padding: 24px var(--gutter); background: var(--ink); color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--yellow); }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .top nav { display: none; }
  .top nav + .btn { margin-left: auto; }
  .hero { min-height: 0; text-align: center; justify-content: center; }
  .hero::before { background: linear-gradient(180deg, rgba(10,12,18,.55), rgba(10,12,18,.85)); }
  .hero h1, .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .book-wrap, .live { grid-template-columns: 1fr; }
  .monitor { width: 100%; max-width: 560px; margin: 0 auto; }
  .packages { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { padding: 10px var(--gutter); gap: 12px; }
  .brand { font-size: 16px; }
  .top .btn { margin-left: auto; padding: 8px 12px; font-size: 13px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .addons ul { grid-template-columns: 1fr; }
  .hero-cta .btn, .contact-grid .btn, .book-actions .btn { width: 100%; }
  .book { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .top .btn { display: none; }
}
