.heroImage {
  position: relative;
  height: 680px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.heroImage img {
  display: block;
  width: 400px;
  height: 400px;
  max-width: 76%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: scaleX(-1);
}

.down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 17px 24px;
  border: 2px solid var(--i);
  background: var(--i);
  color: var(--y);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(29, 29, 27, 0.28);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.down:hover,
.down:focus-visible {
  background: #fff;
  color: var(--i);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(29, 29, 27, 0.35);
}

.down:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

footer {
  background: var(--p);
}

body {
  font-size: 17px;
  line-height: 1.55;
}

header {
  height: 88px;
  padding-top: 10px;
  padding-bottom: 10px;
}

header img {
  width: 205px;
  height: 62px;
}

.hero {
  height: 680px;
  min-height: 0;
}

.hero > div:last-child {
  padding: 56px 5vw 60px 3.5vw;
}

h1 {
  max-width: 720px;
  margin: 24px 0 26px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(52px, 5.4vw, 80px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h2 {
  margin: 22px 0 28px;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 630px;
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.55;
}

.copy {
  font-size: 18px;
  line-height: 1.6;
}

.copy aside a {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.copy aside a:hover,
.copy aside a:focus-visible {
  text-decoration: none;
}

.tag {
  margin-bottom: 18px;
}

.intro,
.steps,
.formSection {
  padding-top: 96px;
  padding-bottom: 96px;
}

.intro {
  gap: 72px;
}

.cards {
  margin-top: 52px;
}

.copy p,
.cards p,
.formIntro > p:last-child {
  margin-top: 0;
  margin-bottom: 20px;
}

.cards h3 {
  margin-top: 64px;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.1;
}

.cards p {
  font-size: 16px;
  line-height: 1.55;
}

label,
.label {
  font-size: 15px;
  line-height: 1.4;
}

small {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

legend {
  line-height: 1.15;
}

.formGrid {
  gap: 72px;
}

fieldset {
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.formContact {
  display: grid;
  gap: 5px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #b9b5ac;
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.formContact strong {
  margin-bottom: 3px;
  font-size: 16px;
}

.formContact a {
  width: fit-content;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.formContact a:hover,
.formContact a:focus-visible {
  text-decoration: none;
}

.mailStatus {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 2px solid var(--i);
  background: var(--y);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

footer {
  min-height: 190px;
  padding-top: 36px;
  padding-bottom: 36px;
}

@media (max-width: 850px) {
  .hero > div:last-child {
    order: 1;
  }

  .heroImage {
    order: 2;
    height: 340px;
    min-height: 0;
  }

  .heroImage img {
    width: 280px;
    height: 280px;
    max-width: calc(100% - 44px);
    max-height: none;
  }

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

  .hero > div:last-child {
    padding: 52px 6vw 48px;
  }

  .intro,
  .formGrid {
    gap: 44px;
  }
}

@media (max-width: 600px) {
  header {
    height: 76px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  header img {
    width: 162px;
    height: 52px;
  }

  .heroImage {
    height: 286px;
    min-height: 0;
  }

  .heroImage img {
    width: 244px;
    height: 244px;
    max-width: calc(100% - 44px);
    max-height: none;
  }

  .down {
    width: 100%;
    min-height: 62px;
    padding: 19px 18px;
    font-size: 15px;
  }

  h1 {
    margin: 20px 0 22px;
    font-size: 44px;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  h2 {
    margin-bottom: 24px;
    font-size: 38px;
    line-height: 1.02;
  }

  .lead {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.5;
  }

  .hero > div:last-child {
    padding: 40px 22px 44px;
  }

  .intro,
  .steps,
  .formSection {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .cards {
    margin-top: 38px;
  }

  .cards h3 {
    margin-top: 38px;
  }

  .formGrid {
    gap: 36px;
  }
}
