/* INSTAL LVIV TOV — bold-industrial: concrete mass, sharp corners, volt accent. */

:root {
  --bg: #14181e;
  --bg-alt: #1c232b;
  --bg-deep: #0c1730;
  --ink: #e7eee4;
  --ink-soft: #a8b2aa;
  --ink-invert: #e7eee4;
  --accent: #c6f135;
  --accent-soft: #1a2610;
  --azure: #3dbeff;
  --on-accent: #12160c;
  --line: #313a34;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --tracking-display: 0.01em;
  --radius: 0;
  --radius-lg: 0;
  --shadow: none;
  --container: 1180px;
}

h1, h2, h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { line-height: 0.9; }
h2 { line-height: 0.95; }
h3 { font-size: var(--step-2); line-height: 1; }

.btn--primary { color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); }

.site-header {
  background: var(--bg);
  border-top: 4px solid var(--accent);
  border-bottom-color: var(--line);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-mark__ground { fill: var(--accent); }
.logo-mark__ink { fill: var(--on-accent); }

.logo-word small {
  display: block;
  font-size: 0.68em;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
}

.nav a {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.section-head { max-width: 40rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head .lede,
.section-head p:last-child { margin-top: 0.8rem; }

address { font-style: normal; }

/* --- HERO --- */
.hero__grid { display: grid; }
.hero__copy {
  padding: clamp(1.75rem, 4vw, 4rem) var(--gap) clamp(1.5rem, 3vw, 2.5rem);
  width: min(100%, var(--container));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.1rem;
}
.hero h1 { font-size: clamp(2.7rem, 1.2rem + 6.4vw, 5.6rem); max-width: 11ch; }
.hero .lede { max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.facts dd { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.15; text-transform: uppercase; }
.facts a { text-decoration: none; }

.hero__photo { margin: 0; position: relative; background: var(--bg-deep); }
.hero__photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-top: 8px solid var(--accent);
}
.hero__photo figcaption,
.shot figcaption,
.company__photo figcaption,
.stage__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.55rem 0.2rem 0;
}

/* --- INDEX --- */
.spec { list-style: none; padding: 0; }
.spec__row {
  display: grid;
  gap: 0.2rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.spec__row:last-child { border-bottom: 1px solid var(--line); }
.spec__code {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.spec__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  text-transform: uppercase;
  line-height: 1;
}
.spec__unit, .spec__where { color: var(--ink-soft); }

/* --- YARD --- */
.mosaic { display: grid; gap: 1.25rem; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 10; }
.shot--lead img { aspect-ratio: 16 / 11; border-left: 8px solid var(--accent); }

/* --- TRADES --- */
.trade {
  display: grid;
  gap: 0.4rem;
  padding: 1.35rem 0;
  border-top: 2px solid var(--ink);
}
.trade:last-child { border-bottom: 2px solid var(--ink); }
.trade__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 0.85;
  color: var(--accent);
}
.trade h3 { margin-bottom: 0.55rem; }
.trade p { max-width: 46rem; }

/* --- FIRM --- */
.company__photo { margin: 1.5rem 0 0; }
.company__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  border-bottom: 8px solid var(--accent);
}

/* --- METHOD --- */
.steps { list-style: none; padding: 0; display: grid; gap: 0; }
.steps li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { color: var(--accent); margin-bottom: 0.4rem; }

/* --- DISPATCH --- */
.routes__card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-deep);
  color: var(--ink-invert);
  display: grid;
  gap: 0.45rem;
  border-left: 8px solid var(--accent);
}
.routes__card strong {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
}
.routes__card a { color: var(--accent); }

/* --- COMMAND PANEL --- */
.panel__layout { display: grid; gap: var(--gap); align-items: start; }
.switch__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.9rem 0 0.4rem;
}
.panel__controls .switch__label:first-child { margin-top: 0; }
.switch { display: grid; border: 1px solid var(--line); }
.switch button {
  text-align: left;
  padding: 0.8rem 0.9rem;
  color: var(--ink-invert);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--step--1);
  line-height: 1.15;
}
.switch button:last-child { border-bottom: 0; }
.switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.switch--size { grid-template-columns: repeat(3, 1fr); }
.switch--size button {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  text-align: center;
}
.switch--size button:last-child { border-right: 0; }

.stage {
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 0.5rem 0.5rem 0.8rem;
  border: 1px solid var(--line);
}
.model { width: min(100%, 460px); height: auto; margin-inline: auto; }
.model .ground {
  fill: color-mix(in srgb, var(--line) 70%, transparent);
  stroke: var(--line);
}
.zone { --face: var(--bg-alt); }
.zone[data-zone="plumb"] { --face: var(--azure); }
.zone[data-zone="install"] { --face: var(--ink-soft); }
.zone.is-hot { --face: var(--accent); }
.model .face {
  stroke: var(--bg-deep);
  stroke-width: 1.2;
  transition: fill 0.35s var(--ease);
}
.model .face--top { fill: color-mix(in srgb, var(--face) 88%, var(--ink)); }
.model .face--left { fill: color-mix(in srgb, var(--face) 70%, var(--bg-deep)); }
.model .face--right { fill: color-mix(in srgb, var(--face) 50%, var(--bg-deep)); }
.stage__tag { padding-inline: 0.4rem; }

.readout {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 1rem;
}
.readout dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.readout dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  text-transform: uppercase;
}
.readout dd.terms {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.5;
  text-transform: none;
  color: var(--ink-invert);
}
.panel__note {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 46rem;
  font-size: var(--step--1);
}

/* --- CONTACT --- */
.form { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.field select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--ink);
}
.field input,
.field textarea { background: var(--bg-deep); }

/* --- FOOTER --- */
.footer__grid { display: grid; gap: 1.75rem; }
.footer__grid p { margin-top: 0.75rem; }
.footer-nav { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.footer-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer { background: var(--bg); }

@media (max-width: 1099px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: grid; }
  .mobile-nav[hidden] { display: none; }
}

@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .hero__photo img { height: 420px; }
  .spec__row {
    grid-template-columns: 5.5rem 1.4fr 0.8fr 1fr;
    align-items: baseline;
  }
  .mosaic { grid-template-columns: 1.35fr 1fr; }
  .shot--lead { grid-row: span 2; }
  .shot--lead img { height: 100%; min-height: 440px; aspect-ratio: auto; }
  .trade { grid-template-columns: 6.5rem 1fr; gap: 1.5rem; align-items: start; }
  .company__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
  }
  .company__photo { margin-top: 0; }
  .routes__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--gap);
    align-items: start;
  }
  .routes__card { margin-top: 0; }
  .contact__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
  }
  .form { margin-top: 0; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 0.8fr; }
}

@media (min-width: 1100px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - 76px);
    align-items: stretch;
  }
  .hero__copy { width: auto; margin: 0; padding: 3rem 3rem 2.5rem 4vw; }
  .hero__photo img {
    height: 100%;
    min-height: 640px;
    border-top: 0;
    border-left: 10px solid var(--accent);
  }
  .hero__photo figcaption {
    position: absolute;
    left: 1rem;
    bottom: 0.8rem;
    background: var(--bg);
    padding: 0.35rem 0.55rem;
    color: var(--ink);
  }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 0 1rem 0 0; border-top: 0; border-left: 2px solid var(--accent); padding-left: 0.8rem; }
  .steps li:last-child { border-bottom: 0; }
  .panel__layout { grid-template-columns: 250px minmax(0, 1fr) 280px; align-items: stretch; }
  .stage { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
}

@media (min-width: 1440px) {
  .hero__copy { padding-left: calc((100vw - var(--container)) / 2); }
}
