@import url('/assets/fonts/fonts.css');

:root {
  --bg: #0B0D11;
  --surface: #12151C;
  --surface-2: #181C25;
  --ink: #EDEFF2;
  --ink-2: #9AA3B2;
  --ink-3: #6C7687;
  --line: #212633;
  --line-2: #313849;
  --dark: #07080B;
  --accent: #DC2626;
  --accent-hover: #B91C1C;
  --accent-ink: #F87171;
  --accent-soft: rgba(220, 38, 38, .12);
  --accent-line: rgba(220, 38, 38, .35);
  --ok: #16A34A;
  --ok-soft: rgba(22, 163, 74, .14);
  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1240px;
  --pad: clamp(18px, 4vw, 44px);
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { left: 12px; top: 12px; z-index: 200; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #0B0D11;
  border-bottom: 1px solid var(--line);
}
.header-main {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
  flex: none;
  color: var(--ink);
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font: 700 11px var(--mono);
  letter-spacing: .04em;
}
.logo small {
  display: block;
  font: 400 11px var(--font);
  color: var(--ink-3);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 18px; margin-left: 16px; }
.nav > a, .nav summary {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 12px 2px;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .12s ease;
}
.nav > a:hover, .nav summary:hover, .nav > a[aria-current="page"] { color: var(--ink); }
.nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav details { position: relative; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary svg { width: 14px; height: 14px; transition: transform .15s ease; }
.nav details[open] summary svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  width: min(740px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .65);
}
.dropdown-group h4 {
  font: 600 11px var(--mono);
  text-transform: uppercase;
  color: var(--accent-ink);
  letter-spacing: .06em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.dropdown-group a {
  display: block;
  padding: 6px 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: background-color .12s ease, color .12s ease;
}
.dropdown-group a:hover { background: var(--surface-2); color: var(--ink); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: none;
}
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.header-phone b { font: 600 13.5px var(--mono); color: var(--ink); white-space: nowrap; }
.header-phone span { font-size: 11px; color: var(--ink-3); }
.header-phone:hover b { color: var(--accent-ink); }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: transparent;
  transition: border-color .12s ease, color .12s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--ink); }
.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface-2); color: #fff; }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--bg); }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-block: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.breadcrumbs li + li:before { content: '/'; margin-right: 8px; color: var(--line-2); }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 68px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11.5px var(--mono);
  color: var(--accent-ink);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 14px 0 18px;
  text-wrap: balance;
  color: var(--ink);
}
.hero-service h1 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.lead { font-size: clamp(1rem, 1.25vw, 1.1rem); color: var(--ink-2); max-width: 56ch; }

.spec-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font: 500 13px var(--mono);
  color: var(--ink-2);
}
.spec-line span { display: inline-flex; align-items: center; gap: 6px; }
.spec-line b { color: var(--ink); font-weight: 600; }

.price-tag-inline {
  display: inline-block;
  margin-top: 14px;
  font: 600 14px var(--mono);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-media-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--dark);
  color: var(--ink-2);
  font: 500 12px var(--mono);
  border-top: 1px solid var(--line);
}
.hero-media-bar b { color: var(--ink); white-space: nowrap; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-top: 40px;
}
.kpi-card {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.kpi-card:last-child { border-right: 0; }
.kpi-card b {
  display: block;
  font: 700 clamp(1.2rem, 1.8vw, 1.55rem) var(--mono);
  color: var(--ink);
  letter-spacing: -.02em;
}
.kpi-card span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 6.5vw, 88px) 0; border-bottom: 1px solid var(--line); }
.section-compact { padding: 36px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: #0E1117; }
.section-dark { background: var(--dark); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 800;
  margin-top: 10px;
  text-wrap: balance;
}
.section-head p { max-width: 54ch; color: var(--ink-2); font-size: 15px; }

/* ---------- Tabs (sharp 6px, not pill soup) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.tab-btn {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color .12s ease, color .12s ease, background-color .12s ease;
}
.tab-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ---------- Segment Showcase ---------- */
.segment-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
}
.segment-panel[hidden] { display: none; }
.segment-panel h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; margin-bottom: 10px; }
.segment-list { list-style: none; display: grid; gap: 9px; margin: 16px 0 20px; }
.segment-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.segment-list svg { width: 16px; height: 16px; color: var(--accent-ink); flex: none; margin-top: 3px; }
.segment-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}
.segment-metrics div span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; font-family: var(--mono); }
.segment-metrics div b { font-size: 14.5px; color: var(--ink); }
.segment-links { display: flex; flex-wrap: wrap; gap: 8px; }
.segment-links a {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .12s ease, color .12s ease;
}
.segment-links a:hover { border-color: var(--accent); color: var(--accent-ink); }
.segment-photo { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.segment-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Services Grid (Clean photos, zero floating pill stamps) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .12s ease;
}
.service-card:hover { border-color: var(--accent); }
.service-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--dark); border-bottom: 1px solid var(--line); }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.service-card:hover .service-thumb img { transform: scale(1.03); }
.service-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.service-cat { font: 600 11px var(--mono); color: var(--accent-ink); text-transform: uppercase; margin-bottom: 6px; }
.service-body h3 { font-size: 17.5px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.service-body p { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.price-tag { font: 600 13.5px var(--mono); color: var(--ink); }
.card-link { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.services-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Interactive Architecture Diagram ---------- */
.arch-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}
.arch-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.arch-node {
  text-align: left;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color .12s ease, background-color .12s ease;
}
.arch-node:hover, .arch-node.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.arch-step { font: 600 11px var(--mono); color: var(--accent-ink); display: block; margin-bottom: 6px; }
.arch-node b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.arch-node span { font-size: 12.5px; color: var(--ink-2); }
.arch-detail {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--dark);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.arch-detail p { color: var(--ink-2); font-size: 14px; max-width: 68ch; margin-top: 4px; }

/* ---------- Turnkey Packages ---------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.packages-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-grid > *, .segment-panel > *, .estimator-box > *, .split > *, .footer-grid > * { min-width: 0; }
.pkg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.pkg-tag { font: 600 11px var(--mono); color: var(--accent-ink); text-transform: uppercase; }
.pkg-card h3 { font-size: 17.5px; font-weight: 700; margin: 8px 0 6px; line-height: 1.25; }
.pkg-sub { font-size: 13px; color: var(--ink-2); }
.pkg-price { margin: 16px 0 2px; font: 700 24px var(--mono); color: var(--ink); letter-spacing: -.02em; }
.pkg-note { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.pkg-list { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; flex: 1; }
.pkg-list li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
}
.pkg-list li::before { content: '—'; position: absolute; left: 0; top: 0; color: var(--accent-ink); }
.pkg-actions { display: grid; gap: 8px; }

/* ---------- Inline Quick Estimator ---------- */
.estimator-box {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  gap: 28px;
  align-items: center;
}
.estimator-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.est-field { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.est-field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.est-field select, .est-field input {
  width: 100%; min-height: 38px; padding: 6px 10px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 14px;
}
.est-summary {
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
}
.est-total { font: 700 clamp(1.85rem, 3vw, 2.5rem) var(--mono); color: var(--ink); margin: 6px 0 10px; }

/* ---------- Asymmetric Cases / Objects ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.case-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--dark); }
.case-card.featured .case-photo { height: 100%; aspect-ratio: auto; min-height: 260px; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.case-meta { font: 600 11px var(--mono); color: var(--accent-ink); text-transform: uppercase; }
.case-body h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.case-body p { font-size: 14px; color: var(--ink-2); }
.case-result {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
}

/* ---------- Brands & Certs ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.brand-card {
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px;
}
.brand-card b { display: block; font: 700 15px var(--mono); color: var(--ink); margin-bottom: 4px; }
.brand-card span { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; display: block; }

.certs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cert {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .12s ease;
}
.cert:hover { border-color: var(--accent); }
.cert img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: var(--r-sm); }
.cert span { display: block; color: var(--ink-2); font-size: 12px; margin-top: 8px; line-height: 1.35; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px;
}
.step-num { font: 700 12px var(--mono); color: var(--accent-ink); }
.step h3 { font-size: 15.5px; font-weight: 700; margin: 10px 0 6px; }
.step p { font-size: 13px; color: var(--ink-2); }

/* ---------- City Coverage ---------- */
.city-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}
.city-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.city-input {
  width: min(380px, 100%);
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
}
.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}
.city-chip {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.city-chip.priority { border-color: var(--accent-line); color: var(--ink); font-weight: 600; }

/* ---------- Service Page Details ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.split-even { grid-template-columns: 1fr 1fr; }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
}
.checklist svg { width: 16px; height: 16px; color: var(--accent-ink); flex: none; margin-top: 3px; }

/* ---------- Tables & Content ---------- */
.content { max-width: 920px; }
.content > * + * { margin-top: 16px; }
.content h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); margin-top: 28px; line-height: 1.25; }
.content h3 { font-size: 18px; margin-top: 22px; line-height: 1.35; }
.content p, .content li { max-width: 74ch; color: var(--ink-2); }
.content ul, .content ol { padding-left: 20px; }
.content li + li { margin-top: 7px; }
.content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
}
.table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}
.table-search {
  width: min(480px, 100%);
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
}
.tab-cnt {
  font-family: var(--mono);
  font-size: 11px;
  opacity: .72;
  margin-left: 4px;
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
  table-layout: fixed;
}
.table-wrap col.col-w-name { width: auto; }
.table-wrap col.col-w-unit { width: 72px; }
.table-wrap col.col-w-price { width: 120px; }
.table-wrap col.col-w-act { width: 144px; }
.table-wrap th, .table-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.table-wrap thead th {
  background: var(--dark);
  color: var(--ink);
  font: 600 11.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.table-wrap th.col-price, .table-wrap td.col-price {
  text-align: right;
  font-family: var(--mono);
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.table-wrap th.col-unit, .table-wrap td.col-unit {
  text-align: center;
  white-space: nowrap;
  color: var(--ink-3);
  font-size: 13px;
}
.table-wrap th.col-act, .table-wrap td.col-act {
  text-align: right;
  white-space: nowrap;
}
.table-wrap td.col-name {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  color: var(--ink);
}
.table-wrap tbody tr.price-item-row:hover td { background: rgba(255, 255, 255, .025); }
.table-wrap tr.price-sec-row th {
  background: var(--surface-2);
  color: var(--accent-ink);
  font: 700 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 14px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.table-wrap tbody tr.price-sec-row:first-child th { border-top: 0; }
.price-date { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.price-notes-card {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.price-notes-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.price-notes-card ul { list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.price-notes-card li { padding-left: 14px; position: relative; }
.price-notes-card li::before { content: '—'; position: absolute; left: 0; color: var(--accent-ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
  content: '+';
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 400 22px var(--mono); color: var(--accent-ink);
}
.faq details[open] summary:after { content: '−'; }
.faq details p { padding: 0 20px 18px 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Lead Form & Contacts ---------- */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.form-panel h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.form-grid { display: grid; gap: 14px; margin-top: 18px; }
.form-grid label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: block; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
}
.form-grid textarea { min-height: 80px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus { outline: 0; border-color: var(--accent); }
.consent { display: flex !important; align-items: flex-start; gap: 10px; font-size: 12.5px !important; font-weight: 400 !important; color: var(--ink-2) !important; }
.consent input { width: 17px; height: 17px; min-height: 17px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent a { color: var(--accent-ink); text-decoration: underline; }
.form-feedback {
  display: none;
  padding: 11px 13px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  background: var(--ok-soft);
  border: 1px solid rgba(22, 163, 74, .4);
  color: #86EFAC;
}
.form-feedback.is-error { background: var(--accent-soft); border-color: var(--accent-line); color: #FCA5A5; }
.form-feedback.show { display: block; }
.form-note { font-size: 12px; color: var(--ink-3); }

.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.contact-card svg { width: 22px; height: 22px; color: var(--accent-ink); margin-bottom: 10px; }
.contact-card b { display: block; font-size: 17px; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 14px; color: var(--ink-2); }
.contact-card a:hover { color: var(--ink); }
.big-phone {
  display: block; width: fit-content;
  font: 700 clamp(1.5rem, 2.8vw, 2.3rem) var(--mono);
  letter-spacing: -.02em;
  color: var(--ink); margin-top: 8px;
}
.big-phone:hover { color: var(--accent-ink); }

/* ---------- Estimate Builder in Tables ---------- */
.est-row-ctrl { display: inline-flex; justify-content: flex-end; align-items: center; }
.add-est-btn {
  padding: 6px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font: 600 12px var(--mono);
  white-space: nowrap;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.add-est-btn:hover { border-color: var(--accent); color: var(--accent-ink); }

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.qty-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 14px var(--mono);
  line-height: 1;
}
.qty-btn:hover { background: var(--accent); color: #fff; }
.qty-val {
  min-width: 28px;
  padding: 0 4px;
  text-align: center;
  font: 700 12.5px var(--mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.est-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 55;
  width: min(760px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.est-dock > * { pointer-events: auto; }
.est-drawer {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .78);
  overflow: hidden;
}
.est-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--dark);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.est-drawer-close {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  font-size: 16px; line-height: 1;
}
.est-drawer-list {
  max-height: 280px;
  overflow-y: auto;
  display: grid;
}
.est-drawer-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.est-drawer-item:last-child { border-bottom: 0; }
.est-drawer-name { min-width: 0; color: var(--ink); line-height: 1.35; }
.est-drawer-sub { display: block; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 2px; }
.est-drawer-sum { font: 700 13px var(--mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.est-drawer-rm {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: transparent; color: var(--ink-3);
  font-size: 15px; line-height: 1;
}
.est-drawer-rm:hover { border-color: var(--accent); color: var(--accent-ink); }

.est-bar {
  background: var(--dark); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 12px 18px; display: none; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .7);
}
.est-bar.open { display: flex; }
.est-bar-info b { display: block; font: 700 16px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.est-bar-info span { font-size: 12.5px; color: var(--ink-2); }
.est-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Lightbox, Copy, Modal & Toast ---------- */
.cert[data-lightbox-src], .case-photo[data-lightbox-src], .gallery-card[data-lightbox-src] { cursor: zoom-in; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .14s ease;
}
.gallery-card:hover { border-color: var(--accent); }
.gallery-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--dark); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card figcaption { padding: 11px 13px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4, 5, 8, .92);
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(900px, 100%); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--r-md); }
.lightbox figcaption { color: var(--ink); font-size: 14px; text-align: center; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink-2); font-size: 12px; font-weight: 500;
  margin-top: 8px;
}
.copy-btn:hover { border-color: var(--accent); color: var(--ink); }

.toast {
  position: fixed; right: 20px; top: 82px; z-index: 130;
  background: var(--accent); color: #fff; padding: 9px 15px;
  border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 5, 8, .85);
}
.modal.open { display: flex; }
.modal-box {
  width: min(480px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 26px; position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink); font-size: 19px; line-height: 1;
}

/* ---------- Footer & Mobile bar ---------- */
.footer { background: var(--dark); color: var(--ink-2); padding: 48px 0 88px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer .logo { color: var(--ink); }
.footer h3 { font: 600 11.5px var(--mono); text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer a:hover { color: var(--ink); }
.footer-links { list-style: none; display: grid; gap: 7px; font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3);
}
.mobile-bar { display: none; }

@media (max-width: 1080px) {
  .nav { gap: 14px; }
  .header-phone span { display: none; }
  .services-grid, .packages-grid, .packages-grid-3, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brands-grid, .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .segment-panel, .split, .estimator-box, .case-card.featured { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .header-main { min-height: 60px; gap: 10px; }
  .logo small { display: none; }
  .header-phone, .header-contact .btn, .header-contact .icon-btn:not(.burger) { display: none; }
  .burger { display: grid; }
  .nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    margin-left: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav summary { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .dropdown { position: static; width: 100%; box-shadow: none; border: 0; padding: 8px 0; grid-template-columns: 1fr; }
  .kpi-strip, .services-grid, .packages-grid, .packages-grid-3, .cases-grid, .gallery-grid, .steps, .contact-cards, .estimator-controls, .split-even, .arch-nodes { grid-template-columns: 1fr; }
  .kpi-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi-card:last-child { border-bottom: 0; }
  .btn { white-space: normal; text-align: center; }
  .brands-grid, .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 92px; }
  .est-dock { bottom: 64px; width: calc(100% - 14px); }
  .est-bar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .est-bar-info b { font-size: 14px; }
  .est-bar-info span { font-size: 11.5px; }
  .est-bar-actions .btn-small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
  .est-drawer-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .est-drawer-item .est-drawer-sum { justify-self: start; }
  .table-wrap { overflow-x: visible; border: 0; background: transparent; }
  .table-wrap table.price-table,
  .table-wrap table.price-table tbody { display: block; width: 100%; }
  .table-wrap table.price-table colgroup,
  .table-wrap table.price-table thead { display: none; }
  .table-wrap table.price-table tr.price-sec-row {
    display: block; width: 100%; margin-top: 14px;
  }
  .table-wrap table.price-table tr.price-sec-row:first-child { margin-top: 0; }
  .table-wrap table.price-table tr.price-sec-row th {
    display: block; width: 100%; border-radius: var(--r-md); border: 1px solid var(--line-2);
  }
  .table-wrap table.price-table tr.price-item-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "name name name" "unit price act";
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
  }
  .table-wrap table.price-table tr.price-item-row td {
    display: block; padding: 0; border: 0; text-align: left; white-space: normal;
  }
  .table-wrap table.price-table tr.price-item-row td.col-name {
    grid-area: name; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  }
  .table-wrap table.price-table tr.price-item-row td.col-unit {
    grid-area: unit; color: var(--ink-3); font-size: 12.5px; white-space: nowrap;
  }
  .table-wrap table.price-table tr.price-item-row td.col-price {
    grid-area: price; font-size: 14px; white-space: nowrap;
  }
  .table-wrap table.price-table tr.price-item-row td.col-act {
    grid-area: act; justify-self: end; white-space: nowrap;
  }
  .mobile-bar {
    position: fixed; display: grid; grid-template-columns: repeat(4, 1fr);
    left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--dark); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--ink); font: 600 10px var(--mono); text-transform: uppercase;
  }
  .mobile-bar a:last-child { background: var(--accent); color: #fff; }
  .mobile-bar svg { width: 18px; height: 18px; }
}

button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
