:root {
  --red: #f21912;
  --red-dark: #c90f09;
  --black: #101010;
  --ink: #242424;
  --muted: #666;
  --line: #eeeeee;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    #fff;
  background-size: 56px 56px;
}

img {
  display: block;
  width: 100%;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(var(--max), calc(100% - 42px));
  height: 92px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo {
  display: grid;
  grid-template-columns: 48px auto;
  grid-template-rows: 26px 18px;
  align-items: center;
  column-gap: 8px;
  min-width: 178px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
}

.logo-mark {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 4px solid var(--red);
  color: var(--red);
  background: #fff;
  font-size: 31px;
}

.logo-type {
  color: #111;
  font-size: 24px;
  letter-spacing: 8px;
}

.logo-sub {
  color: #111;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.main-nav a,
.header-phone {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.header-phone {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: var(--red-dark);
}

.button-small {
  min-height: 36px;
  padding-inline: 22px;
}

.button-dark {
  min-height: 42px;
  background: #050505;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(290px, 470px) minmax(340px, 710px) minmax(24px, 1fr);
  align-items: stretch;
  background: #fff;
}

.hero-copy {
  z-index: 2;
  grid-column: 2;
  padding-top: 170px;
  padding-right: 36px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 {
  max-width: 430px;
  font-size: clamp(42px, 5vw, 66px);
}

h2 {
  font-size: clamp(30px, 3vw, 44px);
}

h3 {
  font-size: 20px;
}

p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}

.hero-copy p:not(.eyebrow) {
  max-width: 440px;
  margin: 28px 0 34px;
}

.hero-image {
  position: relative;
  grid-column: 3 / 5;
  min-height: 620px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.04));
}

.hero-image img {
  height: 100%;
  object-fit: cover;
}

.quick-links {
  position: relative;
  z-index: 3;
  width: min(1010px, calc(100% - 42px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  height: 280px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  background: #111;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.feature-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card span {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 26px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card b {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--red);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.stats {
  width: min(930px, calc(100% - 42px));
  margin: 88px auto 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--red);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 18px 0 16px rgba(242, 25, 18, 0.16);
}

.stats span {
  display: block;
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.split-section {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto 122px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  background: var(--paper);
}

.split-image {
  margin-left: calc((100vw - min(var(--max), calc(100vw - 42px))) / -2);
}

.split-image img {
  height: 360px;
  object-fit: cover;
}

.split-copy {
  padding: 78px 86px;
}

.split-copy p:not(.eyebrow),
.work-copy p,
.service-grid p {
  max-width: 620px;
}

.services {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto 120px;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 42px;
}

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

.service-grid article {
  min-height: 270px;
  padding: 34px;
  background: #fff;
  border-top: 6px solid var(--red);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.service-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
}

.work-section {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 72px;
}

.accent-photo {
  position: relative;
  padding: 34px 0 0 34px;
}

.accent-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 230px;
  height: 180px;
  background: var(--red);
}

.accent-photo img {
  height: 380px;
  object-fit: cover;
}

.gallery-strip {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto -48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
  z-index: 3;
}

.gallery-strip img {
  height: 150px;
  object-fit: cover;
}

.contact-band {
  position: relative;
  overflow: hidden;
  padding: 130px 21px 104px;
  background: var(--red);
  clip-path: polygon(0 5%, 92% 0, 100% 100%, 0 100%);
}

.contact-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact-band h2,
.contact-band p {
  color: #fff;
}

.contact-band p {
  margin: 12px 0 46px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 17px 18px;
  color: #222;
  font: 900 12px Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

textarea {
  min-height: 146px;
  resize: vertical;
}

.message-field {
  grid-row: span 3;
}

form .button {
  justify-self: end;
  grid-column: 2;
}

.site-footer {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 42px;
  padding: 42px max(21px, calc((100vw - var(--max)) / 2)) 44px;
  background: var(--red);
  color: #fff;
}

.footer-logo .logo-mark,
.footer-logo .logo-type,
.footer-logo .logo-sub {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.site-footer p {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.site-footer nav {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    left: auto;
    width: auto;
    height: auto;
    transform: none;
    padding: 22px;
    background: #fff;
    flex-wrap: wrap;
  }

  .main-nav,
  .header-phone {
    color: var(--black);
    text-shadow: none;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-column: 1;
    padding: 58px 22px 46px;
  }

  .hero-image {
    grid-column: 1;
    min-height: 360px;
    clip-path: none;
  }

  .quick-links,
  .service-grid,
  .work-section,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quick-links {
    margin-top: 24px;
  }

  .stats {
    gap: 34px;
    grid-template-columns: 1fr;
    margin: 72px auto 90px;
  }

  .split-image {
    margin-left: 0;
  }

  .split-copy {
    padding: 42px 28px;
  }

  .work-section {
    gap: 38px;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .contact-band {
    clip-path: polygon(0 2%, 100% 0, 100% 100%, 0 100%);
  }

  .site-footer {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 18px;
  }

  .header-phone {
    display: none;
  }

  .button-small {
    margin-left: auto;
  }

  .main-nav {
    font-size: 11px;
  }

  .feature-card {
    height: 230px;
  }

  .split-image img,
  .accent-photo img {
    height: 270px;
  }

  .service-grid article {
    min-height: auto;
  }

  form {
    grid-template-columns: 1fr;
  }

  .message-field,
  form .button {
    grid-column: 1;
  }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-strip img {
    height: 120px;
  }
}
