/* AB Security: shared frame. Concept: a monitoring console, sections are camera channels. */
:root {
  --ink: #0d1014; --ink-2: #151a21; --ink-3: #1e252e;
  --paper: #f3f1ec; --paper-2: #e8e5dd; --white: #fff;
  --text: #14171c; --mut: #5b626c; --mut-d: #9aa3ae;
  --red: #ea1d24; --red-d: #c7141b; --ok: #3ddc84; --sky: #6fc3ff;
  --line: rgba(20, 23, 28, .14); --line-d: rgba(255, 255, 255, .14);
  --sans: "Noto Sans Georgian", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px; --pad: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--text); background: var(--paper); }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

/* status marks */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2.4s infinite; }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; animation: blink 1.4s steps(2, start) infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes blink { 50% { opacity: .25; } }

/* viewfinder frame */
.frame { position: relative; }
.cn { position: absolute; width: 18px; height: 18px; border: 2px solid var(--red); pointer-events: none; }
.cn--1 { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cn--2 { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.cn--3 { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.cn--4 { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 2px; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(13, 16, 20, .35); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.dark .btn--line:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: default; }

/* header */
.hd { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; border-bottom: 1px solid var(--line-d); }
.hd__in { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); max-width: 1480px; margin: 0 auto; padding: 0 var(--pad); min-height: 64px; }
.hd__logo img { width: auto; height: 38px; }
.hd__nav { display: flex; gap: clamp(12px, 1.8vw, 26px); margin-right: auto; }
.hd__nav a { padding: 8px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: #d9dde2; border-bottom: 2px solid transparent; white-space: nowrap; }
.hd__nav a:hover, .hd__nav a[aria-current] { color: #fff; border-color: var(--red); }
.hd__status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mut-d); white-space: nowrap; }
.hd__status time { color: #fff; }
.hd__tel { font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hd__lang { display: flex; gap: 2px; font-size: 12px; }
.hd__lang a { padding: 6px 7px; text-decoration: none; color: var(--mut-d); }
.hd__lang a[aria-current] { color: #fff; background: var(--ink-3); }
.hd__cart { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-d); text-decoration: none; font-size: 14px; white-space: nowrap; }
.hd__cart b { min-width: 22px; padding: 1px 6px; background: var(--red); text-align: center; font-size: 12px; font-weight: 500; }
.hd__cart b[data-empty] { background: var(--ink-3); color: var(--mut-d); }
.hd__nav-tel { display: none; }
.hd__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 1px solid var(--line-d); }
.hd__burger i { height: 2px; background: #fff; }
@media (max-width: 1180px) { .hd__status span { display: none; } }
@media (max-width: 980px) {
  .hd__burger { display: flex; }
  .hd__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--pad) 16px; background: var(--ink); border-bottom: 1px solid var(--line-d); }
  .hd.is-open .hd__nav { display: flex; }
  .hd__nav .hd__nav-tel { display: block; color: #fff; border-bottom: 0; }
  .hd__nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-d); }
  .hd__status { margin-right: auto; }
}
@media (max-width: 640px) {
  .hd__tel, .hd__status time { display: none; }
  .hd__status { margin-right: auto; }
  .hd__cart span { display: none; }
  .hd__logo img { height: 32px; }
}

/* section heads */
.sec-h { max-width: 780px; margin-bottom: clamp(24px, 4vw, 44px); }
.eyebrow { display: flex; align-items: center; font-size: 12px; letter-spacing: .08em; color: var(--mut); margin-bottom: 14px; }
.dark .eyebrow { color: var(--mut-d); }
.sec-h h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.sec-h p { margin-top: 14px; font-size: clamp(16px, 1.4vw, 18px); color: var(--mut); }
.dark { background: var(--ink); color: #fff; }
.dark .sec-h p { color: #c3c9d1; }

/* forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font-size: 16px; color: var(--text); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form label.flt__chk { display: flex; font-size: 14px; color: var(--text); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__msg { font-size: 15px; }
.form__msg.is-ok { padding: 12px 14px; background: #e3f6ea; border-left: 3px solid #1f9d55; color: #14532d; }
.form__msg.is-err { padding: 12px 14px; background: #fde8e8; border-left: 3px solid var(--red); color: #7f1d1d; }
.form__note { font-size: 13px; color: var(--mut); }

/* footer */
.ft { background: var(--ink); color: #c3c9d1; font-size: 14px; }
.ft__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 56px var(--pad) 40px; }
.ft__brand img { width: auto; height: 48px; margin-bottom: 14px; }
.ft__col { display: grid; gap: 8px; align-content: start; }
.ft__col h3 { font: 500 12px var(--mono); letter-spacing: .08em; color: #fff; margin-bottom: 6px; }
.ft__col a { text-decoration: none; }
.ft__col a:hover { color: #fff; text-decoration: underline; }
.ft__soc { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: var(--wrap); margin: 0 auto; padding: 16px var(--pad) 24px; border-top: 1px solid var(--line-d); font-size: 12px; color: var(--mut-d); }
.ft__stage { color: var(--red); }
@media (max-width: 860px) { .ft__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ft__in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
