/* Homepage accessibility. Brand orange #EA5212 with white text is 3.68:1.
   These controls need 4.5:1. The rest of the palette stays. */

.skip-link.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  background-color: #fffdfb;
  border-radius: 12px;
  clip: auto !important;
  clip-path: none;
  color: #3b2925;
  display: block;
  font-size: 16px;
  font-weight: 600;
  height: auto;
  left: 12px;
  line-height: normal;
  padding: 12px 16px;
  text-decoration: none;
  top: 12px;
  width: auto;
  z-index: 100000;
}

#primary[tabindex="-1"]:focus {
  outline: 0;
}

body.home .btn,
body.home .tests__link,
body.home .variant__link,
body.home .form-main__btn {
  background-color: #c2410c;
  color: #fff;
}

body.home .btn:hover,
body.home .tests__link:hover,
body.home .variant__link:hover,
body.home .form-main__btn:hover {
  background-color: #9a3412;
  color: #fff;
}

body a.sign_footer.btn {
  background-color: #fffdfb;
  color: #9a3412;
}

body a.sign_footer.btn:hover {
  background-color: #fae3b1;
  color: #9a3412;
}

body.home .comment__author {
  background-color: #c2410c;
  color: #fff;
}

body.home .track > .comment:nth-child(2n) > .comment__author {
  background-color: #1a5c60;
  color: #fff;
}

body.home .price__wrapper {
  background-color: #c2410c;
}

body.home .comment__name {
  color: #9a3412;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.home .about-us__card_main {
  background-image: url("assets/img/about.webp");
}

.footer .footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 6px 0;
  line-height: 1.2;
  color: #fff;
}

.footer__label {
  color: #fffdfb;
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer__legal {
  color: #fffdfb;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  margin-top: 16px;
  max-width: 280px;
}

body.home .test__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  align-items: center;
  gap: 28px 40px;
  padding: 36px 36px 36px 48px;
}

body.home .test__text {
  max-width: none;
}

body.home .test .tests__paragraph {
  margin-top: 16px;
}

body.home .test .tests__link {
  width: fit-content;
  margin-top: 24px;
}

body.home .test__img > img {
  display: block;
  width: 100%;
  max-width: 640px;
  max-height: none;
  height: auto;
  margin-left: auto;
}

@media (max-width: 900px) {
  body.home .test__wrapper {
    grid-template-columns: 1fr;
    padding: 28px 22px 32px;
    gap: 8px;
  }

  body.home .test__img > img {
    max-width: 520px;
    margin: 0 auto;
  }
}
