/* ==========================================================================
   СтройМонтажСервис — "Security Ops HUD"
   Тёмная инженерная панель мониторинга: технические маркеры, скан-линии,
   рамки видоискателя камеры. B2B-доверие через технику, а не консьюмерский глянец.
   ========================================================================== */

:root {
  --bg: #0d1012;
  --bg-panel: #14181b;
  --bg-panel-2: #191e22;
  --line: #2a3136;
  --line-soft: #1e2427;
  --text: #e8ecec;
  --text-dim: #8b979a;
  --text-faint: #5a6568;

  --amber: #ffb020;
  --amber-dim: #8a5f16;
  --alarm: #ff4b3e;
  --ok: #33d17a;

  --font-display: "Unbounded", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "IBM Plex Sans", sans-serif;

  --radius: 2px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* фоновая текстура: тонкая инженерная сетка + виньетка */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  opacity: 0.5;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 3px
  );
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

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

.accent { color: var(--amber); }

.accent-underline {
  position: relative;
  white-space: nowrap;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 10px;
  background: linear-gradient(90deg, var(--amber), transparent 95%);
  opacity: 0.35;
  z-index: -1;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,16,18,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.logo-mark {
  color: var(--amber);
  font-size: 20px;
}

.main-nav {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.main-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(51,209,122,0.15);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: #17130a;
  font-weight: 600;
}
.btn-primary:hover {
  background: #ffc352;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
  padding: 9px 16px;
}
.btn-ghost:hover {
  border-color: var(--ok);
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 110px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.rec-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--alarm);
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--amber);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ---------- hero HUD panel ---------- */

.hero-panel {
  position: relative;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.corner-bracket {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--amber);
  opacity: 0.7;
}
.cb-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.cb-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.cb-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.cb-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.blink-tag { color: var(--alarm); animation: blink 1.4s infinite; }

.panel-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
}

.tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: flex-end;
}
.tag-ok { color: var(--ok); background: rgba(51,209,122,0.1); }
.tag-armed { color: var(--amber); background: rgba(255,176,32,0.12); }
.tag-time { color: var(--text-dim); background: rgba(255,255,255,0.05); }

.panel-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.6;
  animation: scan-move 3.2s linear infinite;
}
@keyframes scan-move {
  0% { top: 12%; }
  50% { top: 88%; }
  100% { top: 12%; }
}

/* ---------- generic sections ---------- */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 48px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  display: block;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg-panel);
  padding: 36px;
  position: relative;
  transition: background 0.25s ease;
}
.service-card:hover {
  background: var(--bg-panel-2);
}
.service-card:hover .service-icon {
  color: var(--amber);
  border-color: var(--amber-dim);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.service-icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  transition: all 0.25s ease;
}
.service-icon svg { width: 22px; height: 22px; }

.service-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 22px;
}

.service-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.service-tags li {
  padding-left: 16px;
  position: relative;
}
.service-tags li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* ---------- why / spec list ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.why-copy .section-head h2 {
  font-size: clamp(26px, 2.6vw, 34px);
}

.why-copy { position: sticky; top: 110px; align-self: start; }

.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: 1px solid var(--line); }

.spec-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  padding-top: 3px;
  flex-shrink: 0;
}

.spec-body h4 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.spec-body p {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 480px;
}

/* ---------- cases ---------- */

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

.case-card {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  transition: border-color 0.25s ease;
}
.case-card:hover { border-color: var(--amber-dim); }

.case-media {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255,176,32,0.05) 0 2px, transparent 2px 14px),
    var(--bg-panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}

.case-tag {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--amber);
}
.case-id {
  font-size: 11px;
  color: var(--text-faint);
  align-self: flex-end;
}

.case-body { padding: 22px; }

.case-body h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.case-body p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  display: block;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.case-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-lines {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 17px;
  transition: color 0.2s ease;
}
a.contact-line:hover .contact-value { color: var(--amber); }

.dispatch-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease;
  text-transform: none;
  letter-spacing: normal;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-copy { position: static; }
  .case-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
