:root {
  color-scheme: light;
  --ink: #111418;
  --ink-2: #22272d;
  --paper: #f5f5f1;
  --paper-2: #e7e8e3;
  --line: #c8cbc7;
  --red: #d93628;
  --red-dark: #9e241c;
  --blue: #123d5c;
  --steel: #58636d;
  --yellow: #e3bd3c;
  --white: #ffffff;
  --max: 1180px;
  --shadow: 0 22px 60px rgba(14, 16, 19, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Arial,
    "Helvetica Neue",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(245, 245, 241, 0.93);
  border-bottom: 1px solid rgba(17, 20, 24, 0.14);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 14px;
  color: var(--ink-2);
  font-weight: 700;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 104px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.88), rgba(17, 20, 24, 0.24) 44%, rgba(17, 20, 24, 0.9)),
    linear-gradient(180deg, rgba(17, 20, 24, 0.62), rgba(17, 20, 24, 0.08) 52%, rgba(17, 20, 24, 0.72)),
    url("assets/hero-construction.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 72px),
    linear-gradient(115deg, transparent 0 59%, rgba(217, 54, 40, 0.88) 59% 62%, transparent 62%),
    linear-gradient(153deg, transparent 0 75%, rgba(227, 189, 60, 0.76) 75% 76%, transparent 76%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: var(--red);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.72fr);
  grid-template-rows: 1fr auto;
  gap: 42px;
  width: min(var(--max), calc(100% - 64px));
  min-height: calc(100svh - 104px);
  margin: 0 auto;
  padding: 56px 0 58px;
}

.hero-title {
  align-self: start;
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-family:
    Impact,
    "Arial Black",
    Arial,
    sans-serif;
  font-size: 4.2rem;
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.hero-title-left {
  padding-top: 6px;
}

.hero-title-right {
  justify-self: end;
  align-items: flex-end;
  color: var(--paper);
}

.hero-title-right span:first-child {
  color: var(--red);
}

.hero-copy {
  grid-column: 1 / span 2;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(280px, 560px) auto;
  align-items: end;
  gap: 28px;
  color: var(--white);
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
}

.signal-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 64px));
  margin: -38px auto 0;
  box-shadow: var(--shadow);
}

.signal-strip div {
  min-height: 108px;
  padding: 22px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  display: block;
  font-family:
    Impact,
    "Arial Black",
    Arial,
    sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.signal-strip span {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.section {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 34px;
  height: 8px;
  background: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-family:
    Impact,
    "Arial Black",
    Arial,
    sans-serif;
  font-size: 3.1rem;
  line-height: 1;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.16;
  text-transform: uppercase;
}

.intro-layout,
.section-head,
.safety-layout,
.brief-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
  gap: 46px;
  align-items: start;
}

.hero-grid > *,
.hero-copy > *,
.intro-layout > *,
.section-head > *,
.safety-layout > *,
.brief-panel > *,
.terms-layout > *,
.calc-board > * {
  min-width: 0;
}

.intro p,
.section-head p,
.safety p,
.brief-panel p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.08rem;
  font-weight: 700;
}

.services {
  width: 100%;
  max-width: none;
  padding: 92px max(32px, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(90deg, var(--ink) 0 18px, transparent 18px),
    var(--paper-2);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.service-card {
  min-height: 238px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 8px solid var(--blue);
}

.service-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-bottom: 22px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.service-card p {
  margin-bottom: 0;
  color: var(--steel);
  font-weight: 700;
}

.service-card-accent {
  background: var(--ink);
  border-color: var(--ink);
  border-top-color: var(--red);
  color: var(--white);
}

.service-card-accent span {
  background: var(--red);
}

.service-card-accent p {
  color: var(--paper-2);
}

.safety {
  width: 100%;
  max-width: none;
  padding: 92px max(32px, calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
}

.safety p {
  color: var(--paper-2);
}

.checks {
  display: grid;
  gap: 12px;
}

.checks div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--yellow);
  font-weight: 800;
}

.checks span {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--red);
  transform: rotate(45deg);
}

.team-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border-top: 6px solid var(--ink);
  border-bottom: 6px solid var(--ink);
}

.team-line div {
  min-height: 150px;
  padding: 22px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.team-line div:last-child {
  border-right: 0;
}

.team-line strong {
  display: block;
  color: var(--red);
  font-family:
    Impact,
    "Arial Black",
    Arial,
    sans-serif;
  font-size: 2.3rem;
  line-height: 1;
}

.team-line span {
  display: block;
  margin-top: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.terms {
  width: 100%;
  max-width: none;
  padding: 92px max(32px, calc((100% - var(--max)) / 2));
  background: var(--paper-2);
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(320px, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.price-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
  padding: 28px;
  background: var(--red);
  color: var(--white);
}

.price-label {
  font-weight: 900;
  text-transform: uppercase;
}

.price-panel strong {
  display: block;
  font-family:
    Impact,
    "Arial Black",
    Arial,
    sans-serif;
  font-size: 5rem;
  line-height: 0.92;
}

.price-panel p {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 900;
}

.terms-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.terms-list div {
  min-height: 188px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

.terms-list strong,
.terms-list span {
  display: block;
}

.terms-list strong {
  margin-bottom: 12px;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.terms-list span {
  color: var(--steel);
  font-weight: 700;
}

.calculator {
  padding-bottom: 0;
}

.calc-board {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr) minmax(240px, 0.7fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
  background: var(--white);
  border: 2px solid var(--ink);
}

.range-field {
  display: grid;
  gap: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.range-field input {
  accent-color: var(--red);
  width: 100%;
}

.calc-result {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--ink);
  color: var(--white);
}

.calc-result span {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.calc-result strong {
  font-family:
    Impact,
    "Arial Black",
    Arial,
    sans-serif;
  font-size: 2.4rem;
  line-height: 1;
}

.brief {
  width: 100%;
  max-width: none;
  padding: 92px max(32px, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 18px), var(--red) calc(100% - 18px)),
    var(--paper);
}

.brief-panel {
  padding: 34px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.brief-form {
  display: grid;
  gap: 14px;
}

.brief-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-form input,
.brief-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}

.brief-form input:focus,
.brief-form textarea:focus {
  border-color: var(--red);
  outline: none;
}

.brief-output {
  display: none;
  padding: 14px 16px;
  background: var(--paper-2);
  border-left: 5px solid var(--red);
  color: var(--ink-2);
  font-weight: 800;
  white-space: pre-wrap;
}

.brief-output.is-visible {
  display: block;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 32px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .hero-title {
    font-size: 3.45rem;
  }

  .hero-copy,
  .intro-layout,
  .section-head,
  .safety-layout,
  .brief-panel,
  .terms-layout,
  .calc-board {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .service-grid,
  .team-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-line div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    min-height: 62px;
    padding: 0 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    padding: 9px 7px;
    font-size: 0.82rem;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    width: min(100% - 32px, var(--max));
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 0 46px;
  }

  .hero-title {
    font-size: 2.55rem;
  }

  .hero-title-right {
    justify-self: start;
    align-items: flex-start;
  }

  .hero-copy {
    grid-column: auto;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    width: min(100% - 32px, var(--max));
    margin-top: 0;
  }

  .signal-strip div {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .services,
  .safety,
  .terms,
  .brief {
    width: 100%;
    padding: 64px 16px;
  }

  h2 {
    font-size: 2.25rem;
  }

  .service-grid,
  .team-line,
  .terms-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .team-line div,
  .team-line div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .price-panel {
    min-height: 300px;
  }

  .price-panel strong {
    font-size: 4rem;
  }

  .calc-result strong {
    font-size: 2rem;
  }

  .brief-panel {
    padding: 22px;
  }

  .footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (max-width: 430px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

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