:root {
  --ink: #18221d;
  --muted: #627168;
  --line: #dfe6df;
  --paper: #f7f8f3;
  --surface: #ffffff;
  --green: #1f6f43;
  --green-2: #145338;
  --red: #c84a3a;
  --steel: #56636a;
  --amber: #d8a23a;
  --shadow: 0 18px 50px rgba(24, 34, 29, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

body.nav-open {
  overflow: hidden;
}

.topbar {
  background: var(--green-2);
  color: #eef7ef;
  font-size: 14px;
}

.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--red));
  border-radius: 6px;
  font-weight: 900;
}

.brand__sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.nav a,
.dropbtn {
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  color: #25342d;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav a:hover,
.nav a[aria-current="page"],
.dropbtn:hover {
  color: var(--green-2);
  background: #edf4ee;
}

.dropdown {
  position: relative;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s ease;
}

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__menu a {
  width: 100%;
  display: block;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.hero {
  min-height: calc(100vh - 114px);
  display: grid;
  align-items: end;
  padding: 80px 0 56px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 27, 20, .86) 0%, rgba(12, 27, 20, .58) 44%, rgba(12, 27, 20, .16) 100%),
    url("assets/img/hero-parts.png") center / cover no-repeat;
}

.hero__content {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #cfe8d3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(38px, 6vw, 76px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.hero .lead {
  color: #edf7ef;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  color: #fff;
  background: var(--red);
}

.btn--primary:hover {
  background: #ad3e31;
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .64);
}

.btn--light {
  color: var(--green-2);
  background: #fff;
  border-color: var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -32px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  padding: 24px;
  background: #fff;
}

.stat strong {
  display: block;
  color: var(--green-2);
  font-size: 28px;
}

.section {
  padding: 78px 0;
}

.section--white {
  background: #fff;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section__head--spaced {
  margin-top: 44px;
}

.section__head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  min-height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: .18s ease;
}

.card:hover {
  border-color: #bdd1bf;
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(24, 34, 29, .09);
}

.card p {
  color: var(--muted);
}

.brand-tile {
  display: grid;
  gap: 14px;
}

.brand-logo {
  width: fit-content;
  padding: 8px 11px;
  color: #fff;
  background: var(--ink);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.brand-logo--green {
  background: var(--green);
}

.brand-logo--red {
  background: var(--red);
}

.brand-logo--steel {
  background: var(--steel);
}

.brand-logo--amber {
  color: #1d251f;
  background: var(--amber);
}

.catalog-list {
  display: grid;
  gap: 12px;
}

.catalog-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  padding: 6px 10px;
  color: #294236;
  background: #edf4ee;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.photo-panel {
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 111, 67, .9), rgba(200, 74, 58, .82)),
    url("assets/img/hero-parts.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.steps {
  counter-reset: item;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 34, 26, .86), rgba(18, 34, 26, .52)),
    url("assets/img/hero-parts.png") center / cover no-repeat;
}

.page-hero--brand {
  min-height: 360px;
  display: grid;
  align-items: end;
}

.crumbs {
  margin-bottom: 18px;
  color: #cfe8d3;
  font-size: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.filter.is-active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.contact-box {
  padding: 28px;
  background: var(--green-2);
  color: #fff;
  border-radius: var(--radius);
}

.contact-box a {
  text-decoration: underline;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

label {
  color: var(--ink);
  font-weight: 700;
}

.footer {
  padding: 42px 0;
  color: #e6efe8;
  background: #14221a;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
}

.footer a {
  display: block;
  margin: 7px 0;
  color: #d8e8dc;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 24px, 720px);
  }

  .topbar {
    font-size: 13px;
  }

  .topbar__inner {
    min-height: auto;
    padding: 8px 0;
  }

  .header__inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
    font-size: 15px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .dropbtn {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown__menu {
    position: static;
    width: 100%;
    display: grid;
    gap: 2px;
    margin-top: 4px;
    padding: 4px 0 0 10px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero {
    min-height: auto;
    padding: 132px 0 48px;
    background:
      linear-gradient(90deg, rgba(12, 27, 20, .9) 0%, rgba(12, 27, 20, .72) 62%, rgba(12, 27, 20, .36) 100%),
      url("assets/img/hero-parts.png") 58% center / cover no-repeat;
  }

  .stats,
  .grid--3,
  .grid--4,
  .split,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .catalog-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section__head {
    display: block;
  }

  .section__head p {
    margin-top: 12px;
  }

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

  .page-hero {
    padding: 56px 0;
    background:
      linear-gradient(90deg, rgba(18, 34, 26, .9), rgba(18, 34, 26, .66)),
      url("assets/img/hero-parts.png") 58% center / cover no-repeat;
  }

  .page-hero--brand {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 520px);
  }

  .topbar__inner {
    display: grid;
    gap: 3px;
    padding: 8px 0;
  }

  .brand__sub {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 17px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hero {
    padding: 96px 0 36px;
    background-position: 64% center;
  }

  .section {
    padding: 48px 0;
  }

  .section__head {
    margin-bottom: 24px;
  }

  .stats {
    margin-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .stat {
    padding: 18px;
  }

  .stat strong {
    font-size: 24px;
  }

  .card {
    padding: 18px;
  }

  .filters {
    flex-wrap: nowrap;
    margin-inline: -10px;
    padding: 0 10px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
  }

  .catalog-row {
    padding: 16px;
  }

  .catalog-row .btn,
  .actions .btn {
    width: 100%;
  }

  .photo-panel {
    min-height: 220px;
  }

  .step {
    padding: 16px 16px 16px 58px;
  }

  .step::before {
    left: 16px;
    top: 16px;
  }

  .page-hero {
    padding: 42px 0;
  }

  .page-hero--brand {
    min-height: 280px;
  }

  .contact-box {
    padding: 20px;
  }

  .footer {
    padding: 32px 0;
  }
}

@media (max-width: 380px) {
  .topbar {
    display: none;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 25px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 76px;
  }

  .btn {
    min-height: 46px;
    padding-inline: 12px;
  }

  .brand-logo {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (hover: none) {
  .card:hover {
    border-color: var(--line);
    transform: none;
    box-shadow: none;
  }

  .btn:hover {
    filter: none;
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 900px) {
    .nav {
      max-height: calc(100vh - 86px);
    }
  }
}
