/* Новый первый экран главной. Брейкпоинт 1440 (базовый). */

.test_hero {
  position: relative;
  height: 924px;
  background-color: #000;
  margin-bottom: 9.15rem;
  overflow: hidden;
}

.test_hero_media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 80.4%;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}

.test_hero_veil {
  position: absolute;
  inset: 0 auto 0 0;
  width: 85.6%;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(2, 2, 2, 0.86) 71.635%);
}

.test_hero_inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 121px 46px 0;
}

.test_hero_title {
  margin: 0;
  font-family: "Oswald", "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 60px;
  text-transform: uppercase;
  color: #fff;
}

.test_hero_title span {
  color: #ffd214;
}

.test_hero_subtitle {
  margin: 39px 0 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 60px;
  color: #fff;
}

.test_hero_row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}

.test_hero_row_dark {
  margin-top: 4px;
}

.test_hero_row_light {
  margin-top: 29px;
}

.test_hero_card_dark {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 208px;
  height: 72px;
  padding: 0 12px 0 14px;
  border: 1px solid #525252;
  border-radius: 10px;
  background: rgba(27, 27, 27, 0.94);
}

.test_hero_card_dark_wide {
  width: 302px;
}

.test_hero_card_dark p {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 25px;
  color: #fff;
}

.test_hero_card_light {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 85px;
  padding: 0 18px 0 20px;
  border: 1px solid #fc0;
  border-radius: 10px;
  background: #fff;
}

.test_hero_card_light:nth-child(1) { width: 208px; }
.test_hero_card_light:nth-child(2) { width: 267px; }
.test_hero_card_light:nth-child(3) { width: 295px; }
.test_hero_card_light:nth-child(4) { width: 275px; }

.test_hero_card_light p {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 18px;
  color: #000;
}

.test_hero_card_light p span {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  color: #fc0;
}

.test_hero_card_dark img,
.test_hero_card_light img,
.test_hero_trust_item img,
.test_hero_strip_item img {
  flex-shrink: 0;
  object-fit: contain;
}

.test_hero_trust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1127px;
  margin: 39px 0 0;
  padding-left: 11px;
}

.test_hero_trust_item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test_hero_trust_item p {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 25px;
  color: #fff;
}

.test_hero_actions {
  display: flex;
  gap: 62px;
  margin-top: 68px;
}

.test_hero_btn {
  width: 368px;
  height: 72px;
  border-radius: 10px;
  font-family: "Oswald", "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.test_hero_btn_primary {
  border: 1px solid #fc0;
  background: #fc0;
  color: #000;
}

.test_hero_btn_primary:hover {
  background: #ffd94d;
  border-color: #ffd94d;
}

.test_hero_btn_secondary {
  border: 3px solid #fff;
  background: transparent;
  color: #fff;
}

.test_hero_btn_secondary:hover {
  background: #fff;
  color: #000;
}

.test_hero_strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 83px;
  padding: 0 87px 0 54px;
  background: #292929;
}

.test_hero_strip_item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.test_hero_strip_item p {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 23px;
  color: #fff;
}

.test_hero_strip_item p span {
  font-weight: 300;
}

/* Шапка добавляет себе снизу 3.04rem, сверху у неё только padding навбара.
   На этой странице выравниваем: до первого экрана столько же, сколько над шапкой. */
@media (min-width: 1025px) {
  .test_hero {
    margin-top: -3.04rem;
  }
}

/* Брейкпоинт 1280 */
@media (max-width: 1280px) {
  .test_hero {
    height: 826px;
  }

  .test_hero_inner {
    padding: 121px 41px 0;
  }

  .test_hero_title {
    font-size: 50px;
    line-height: 60px;
  }

  .test_hero_subtitle {
    margin-top: 38px;
    font-size: 20px;
    line-height: 23px;
  }

  .test_hero_row {
    gap: 13px;
  }

  .test_hero_row_dark {
    margin-top: 17px;
  }

  .test_hero_row_light {
    margin-top: 26px;
  }

  .test_hero_card_dark {
    width: 183px;
    height: 63px;
    padding: 0 8px 0 12px;
    gap: 12px;
  }

  .test_hero_card_dark_wide {
    width: 266px;
  }

  .test_hero_card_dark p {
    font-size: 16px;
    line-height: 20px;
  }

  .test_hero_card_light {
    height: 76px;
    padding: 0 14px 0 17px;
    gap: 12px;
  }

  .test_hero_card_light:nth-child(1) { width: 183px; }
  .test_hero_card_light:nth-child(2) { width: 236px; }
  .test_hero_card_light:nth-child(3) { width: 261px; }
  .test_hero_card_light:nth-child(4) { width: 243px; }

  .test_hero_card_light p {
    font-size: 16px;
    line-height: 18px;
  }

  .test_hero_card_dark img,
  .test_hero_card_light img {
    width: 37px;
    height: 37px;
  }

  .test_hero_trust {
    max-width: 986px;
    margin-top: 34px;
    padding-left: 10px;
    gap: 30px;
  }

  .test_hero_trust_item img {
    width: 45px;
    height: 45px;
  }

  .test_hero_trust_item p {
    font-size: 20px;
    line-height: 25px;
  }

  .test_hero_actions {
    margin-top: 61px;
    gap: 54px;
  }

  .test_hero_btn {
    width: 325px;
    height: 64px;
    font-size: 23px;
  }

  .test_hero_btn_secondary {
    border-width: 2px;
  }

  .test_hero_strip {
    height: 80px;
    padding: 0 54px 0 48px;
    gap: 20px;
  }

  .test_hero_strip_item p {
    font-size: 16px;
    line-height: 18px;
  }

  .test_hero_strip_item:nth-child(1) img { width: 59px; height: 59px; }
  .test_hero_strip_item:nth-child(2) img { width: 48px; height: 48px; }
  .test_hero_strip_item:nth-child(3) img { width: 41px; height: 41px; }
  .test_hero_strip_item:nth-child(4) img { width: 45px; height: 45px; }
}

/* Брейкпоинт 768: фото уходит наверх, карточки становятся вертикальными,
   нижней полосы в макете нет. */
@media (max-width: 1024px) {
  .test_hero {
    height: auto;
    min-height: 826px;
    padding-bottom: 36px;
    /* компенсируем padding, который тема вешает на body ниже 1024 */
    margin-left: -2rem;
    margin-right: -2rem;
    /* шапка держит снизу 5rem — снимаем, чтобы отступ под ней был как над ней */
    margin-top: -5rem;
  }

  .page-template-test-hero .header_nav_menu_mobile .navbar-brand > img {
    width: 6rem;
  }

  .test_hero_media {
    inset: 0 0 auto 0;
    width: 100%;
    height: 595px;
    background-position: center top;
  }

  .test_hero_veil {
    width: 85%;
    height: 824px;
  }

  .test_hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 460px;
    height: 205px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 53.365%);
  }

  .test_hero_inner {
    padding: 121px 25px 0;
  }

  .test_hero_title {
    font-size: 38px;
    line-height: 40px;
  }

  .test_hero_subtitle {
    margin-top: 39px;
    font-size: 18px;
    line-height: 20px;
  }

  .test_hero_row {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .test_hero_row_dark {
    margin-top: 29px;
  }

  .test_hero_row_light {
    margin-top: 20px;
  }

  .test_hero_card_dark {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    min-height: 94px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    padding: 11px 10px 12px;
    text-align: center;
  }

  .test_hero_card_dark_wide {
    flex-grow: 1.45;
    width: auto;
  }

  .test_hero_card_dark p {
    font-size: 12px;
    line-height: 14px;
  }

  .test_hero_card_dark img {
    width: 38px;
    height: 38px;
  }

  .test_hero_card_dark_wide img {
    width: 38px;
    height: 38px;
  }

  .test_hero_card_light {
    align-items: center;
    height: auto;
    min-height: 78px;
    gap: 5px;
    padding: 12px 7px;
    min-width: 0;
  }

  .test_hero_card_light:nth-child(1) { flex: 1 1 0; width: auto; }
  .test_hero_card_light:nth-child(2) { flex: 1.3 1 0; width: auto; }
  .test_hero_card_light:nth-child(3) { flex: 1.44 1 0; width: auto; }
  .test_hero_card_light:nth-child(4) { flex: 1.33 1 0; width: auto; }

  .test_hero_card_light p {
    font-size: 14px;
    line-height: 14px;
  }

  .test_hero_card_light img {
    width: 29px;
    height: 29px;
  }

  .test_hero_trust {
    max-width: none;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 20px;
    padding-left: 0;
    gap: 20px;
  }

  .test_hero_trust_item {
    flex-direction: column;
    gap: 8px;
    max-width: 160px;
    text-align: center;
  }

  .test_hero_trust_item img {
    width: 58px;
    height: 58px;
  }

  .test_hero_trust_item p {
    font-size: 16px;
    line-height: 18px;
  }

  .test_hero_actions {
    margin-top: 41px;
    gap: 33px;
  }

  .test_hero_btn {
    flex: 1 1 0;
    width: auto;
    max-width: 347px;
    height: 58px;
    font-size: 23px;
  }

  .test_hero_btn_secondary {
    border-width: 1px;
  }

  .test_hero_strip {
    display: none;
  }
}

/* Мобильный макет */
@media (max-width: 767px) {
  .test_hero {
    min-height: 760px;
    padding-bottom: 28px;
  }

  .test_hero_media {
    inset: 0 0 auto auto;
    width: 70%;
    height: 496px;
    background-position: center;
  }

  .test_hero_veil {
    width: 58%;
    height: 496px;
    background: linear-gradient(to right, #000 48.558%, rgba(0, 0, 0, 0.62) 79.327%, rgba(102, 102, 102, 0) 100%);
  }

  .test_hero::after {
    top: 282px;
    height: 337px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 100%);
  }

  .test_hero_inner {
    padding: 101px 19px 0;
  }

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

  .test_hero_subtitle {
    margin-top: 33px;
    font-size: 12px;
    line-height: 14px;
  }

  .test_hero_row {
    flex-direction: column;
    gap: 5px;
  }

  .test_hero_row_dark {
    margin-top: 14px;
  }

  .test_hero_row_light {
    margin-top: 18px;
  }

  .test_hero_card_dark {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 46%;
    min-width: 172px;
    max-width: 260px;
    height: auto;
    min-height: 31px;
    gap: 9px;
    padding: 4px 6px;
    border-radius: 5px;
    text-align: left;
  }

  .test_hero_card_dark_wide {
    flex-grow: 0;
    width: 46%;
  }

  .test_hero_card_dark p {
    font-weight: 300;
    font-size: 9px;
    line-height: 10px;
  }

  .test_hero_card_dark img,
  .test_hero_card_dark_wide img {
    width: 26px;
    height: 26px;
  }

  .test_hero_card_light {
    align-items: center;
    height: auto;
    min-height: 38px;
    gap: 5px;
    padding: 5px 6px;
    border-radius: 5px;
  }

  .test_hero_card_light:nth-child(1),
  .test_hero_card_light:nth-child(2),
  .test_hero_card_light:nth-child(3),
  .test_hero_card_light:nth-child(4) {
    flex: 0 0 auto;
    width: 100%;
  }

  .test_hero_card_light p {
    font-size: 10px;
    line-height: 10px;
  }

  .test_hero_card_light p span {
    margin-top: 2px;
  }

  .test_hero_card_light img {
    width: 30px;
    height: 30px;
  }

  .test_hero_trust {
    justify-content: space-between;
    margin-top: 16px;
    gap: 10px;
  }

  .test_hero_trust_item {
    flex: 1 1 0;
    gap: 3px;
    max-width: none;
  }

  .test_hero_trust_item img {
    width: 37px;
    height: 37px;
  }

  .test_hero_trust_item p {
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
  }

  /* На мобильном в макете у этих подписей вторая строка снята. */
  .test_hero_trust_extra {
    display: none;
  }

  .test_hero_actions {
    flex-direction: column;
    margin-top: 36px;
    gap: 8px;
  }

  .test_hero_btn {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: 38px;
    border-radius: 5px;
    font-size: 16px;
  }
}
