:root {
  --blue: #001d60;
  --yellow: #f4a900;
  --text: #050505;
  --page: #f7f7f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page);
}

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

.index-page {
  display: flex;
  flex-direction: column;
}

.index-page main {
  flex: 0 0 auto;
}

.index-page .brand-header {
  flex: 1 1 0;
}

.brand-header {
  display: grid;
  min-height: 290px;
  place-items: center;
  background: var(--blue);
}

.brand {
  display: block;
}

.brand-logo {
  display: block;
  width: min(560px, calc(100vw - 48px));
  height: auto;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.section-rule {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 96px;
}

.section-rule::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  content: "";
  transform: translateY(-50%);
  background: var(--blue);
}

.section-rule h1,
.section-rule h2,
.contact-pill {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 7px 32px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(26px, 2.1vw, 31px);
  font-weight: 800;
  line-height: 1.1;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 28px;
  align-items: end;
  width: min(1260px, calc(100% - 96px));
  min-height: 240px;
  margin: 34px auto 28px;
}

.vehicle-button {
  appearance: none;
  display: grid;
  gap: 16px;
  align-items: end;
  justify-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
}

.vehicle-button img {
  width: 100%;
  max-width: 170px;
  height: 128px;
  object-fit: contain;
  transition: transform 160ms ease;
}

.vehicle-button:hover img,
.vehicle-button:focus-visible img {
  transform: translateY(-5px);
}

.vehicle-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 8px;
  border-radius: 8px;
}

.vehicle-name {
  display: block;
  min-height: 34px;
  font-size: 14px;
  font-weight: 800;
  line-height: 0.98;
}

.contact-rule {
  min-height: 105px;
}

.contact-pill {
  padding: 7px 32px 8px;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1;
}

.catalog-view .section-rule h1 {
  font-size: clamp(22px, 1.8vw, 28px);
}

.index-bottom-banner {
  margin-top: 0;
}

.detail-view {
  position: relative;
  padding-bottom: 0;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0 max(24px, calc((100% - 1180px) / 2));
  padding: 8px 16px;
  border: 2px solid rgba(0, 29, 96, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.home-link::before {
  content: "<";
  color: var(--yellow);
  font-size: 16px;
  line-height: 1;
}

.home-link:hover,
.home-link:focus-visible {
  border-color: var(--blue);
  background: #fff;
  transform: translateX(-2px);
}

.home-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.back-button {
  position: absolute;
  z-index: 3;
  left: 34px;
  top: 29px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font-size: 46px;
  line-height: 1;
}

.back-button span {
  transform: translateY(-3px);
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 96px));
  margin: 52px auto 28px;
}

.detail-media {
  margin: 0;
}

.detail-media img {
  display: block;
  width: 100%;
  height: 345px;
  object-fit: contain;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-transform: uppercase;
}

.detail-copy h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 900;
  line-height: 0.88;
}

.detail-eyebrow,
.detail-year {
  margin: 0;
  color: var(--blue);
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 900;
  line-height: 1;
}

.detail-copy dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.detail-copy dt {
  color: var(--blue);
}

.detail-copy dd {
  margin: 0;
}

.quote-button,
.download-button {
  align-self: flex-start;
  padding: 12px 28px 13px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.download-button {
  margin-top: 12px;
  text-transform: uppercase;
}

.detail-description {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto 28px;
  color: #202020;
  font-size: 19px;
  line-height: 1.15;
}

.detail-description p {
  margin: 0;
}

.detail-description strong {
  text-transform: uppercase;
}

.related-rule {
  min-height: 66px;
}

.related-rule h2 {
  font-size: clamp(22px, 1.8vw, 28px);
}

.related-grid {
  min-height: 178px;
  margin-top: 18px;
  margin-bottom: 12px;
}

.related-grid .vehicle-button {
  gap: 10px;
}

.related-grid .vehicle-button img {
  height: 102px;
}

.related-grid .vehicle-name {
  font-size: 11px;
}

.contact-view {
  padding-bottom: 58px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 520px);
  gap: 38px;
  align-items: stretch;
  justify-content: center;
  width: min(1100px, calc(100% - 96px));
  margin: 38px auto 0;
}

.contact-list {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.contact-action {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 112px;
  padding: 22px 26px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-transform: uppercase;
  min-width: 0;
}

.contact-action span {
  color: var(--yellow);
  font-size: 17px;
  font-weight: 900;
}

.contact-action strong {
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.contact-address {
  cursor: default;
}

.map-box {
  overflow: hidden;
  min-height: 372px;
  border: 4px solid var(--blue);
  border-radius: 8px;
  min-width: 0;
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 372px;
  border: 0;
}

@media (max-width: 980px) {
  .brand-header {
    min-height: 252px;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 30px 24px;
    width: min(540px, calc(100% - 44px));
    margin-top: 26px;
  }

  .vehicle-button img {
    height: 124px;
  }

  .detail-card {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(560px, calc(100% - 44px));
    margin-top: 34px;
  }

  .detail-media img {
    height: 275px;
  }

  .detail-copy {
    align-items: center;
    text-align: center;
  }

  .detail-copy dl {
    grid-template-columns: auto auto;
    justify-content: center;
  }

  .download-button {
    align-self: center;
  }

  .detail-description {
    width: min(560px, calc(100% - 44px));
    text-align: center;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .contact-panel {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 44px));
  }

  .contact-list {
    text-align: center;
  }

  .contact-action {
    justify-items: center;
  }

  .quote-button {
    align-self: center;
  }

  .home-link {
    margin-left: 22px;
  }
}

@media (max-width: 560px) {
  .brand-header {
    min-height: 205px;
  }

  .brand-logo {
    width: min(330px, calc(100vw - 40px));
  }

  .section-rule {
    min-height: 78px;
  }

  .section-rule h1,
  .section-rule h2,
  .contact-pill {
    max-width: calc(100% - 58px);
    padding: 8px 22px;
    text-align: center;
    font-size: 22px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
    width: min(300px, calc(100% - 48px));
    margin-top: 18px;
  }

  .vehicle-button img {
    max-width: 220px;
    height: 135px;
  }

  .vehicle-name {
    font-size: 13px;
  }

  .home-link {
    margin-top: 16px;
    padding: 7px 13px;
    font-size: 12px;
  }

  .back-button {
    left: 18px;
    top: 18px;
    width: 40px;
    height: 40px;
    font-size: 40px;
  }

  .detail-rule h1 {
    max-width: calc(100% - 114px);
    font-size: 18px;
  }

  .detail-media img {
    height: 225px;
  }

  .detail-copy h1 {
    font-size: 38px;
  }

  .detail-eyebrow,
  .detail-year {
    font-size: 20px;
  }

  .detail-copy dl {
    grid-template-columns: 1fr;
    gap: 3px;
    font-size: 15px;
  }

  .detail-copy dd {
    margin-bottom: 8px;
  }

  .download-button {
    font-size: 20px;
  }

  .detail-description {
    font-size: 16px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    width: min(300px, calc(100% - 48px));
  }

  .contact-panel {
    width: min(330px, calc(100% - 40px));
    margin-top: 24px;
  }

  .contact-action {
    min-height: 96px;
    padding: 18px 20px;
  }

  .contact-action strong {
    font-size: 19px;
  }

  .map-box,
  .map-box iframe {
    min-height: 280px;
  }
}
