.home_hero,
.home_hero_strip {
  --hero-inset: clamp(24px, 3.2vw, 46px);
}

.home_hero {
  --hero-size-increase: clamp(
    0px,
    min(calc((100vw - 768px) / 130), calc((100svh - 680px) / 25)),
    6px
  );
  --hero-button-width: calc(272px + var(--hero-size-increase) * 5);

  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #000;
  overflow: hidden;
}

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

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

.home_hero_inner,
.home_hero_intro {
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap);
}

.home_hero_inner {
  --hero-gap: clamp(12px, 4.2svh, 42px);

  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: auto;
  padding: clamp(24px, 4.5vh, 54px) var(--hero-inset);
  font-family: "Roboto", sans-serif;
  color: #fff;
}

.home_hero_title {
  margin: 0;
  font-family: "Oswald", "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: calc(clamp(36px, 3.25vw, 46px) + var(--hero-size-increase) * 1.6);
  line-height: 1.08;
  text-transform: uppercase;
}

.home_hero_title span {
  color: #ffd214;
}

.home_hero_subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.32;
}

.home_hero_cards {
  display: grid;
  grid-auto-rows: 1fr;
  row-gap: calc(var(--hero-gap) * 0.8);
  max-width: 840px;
  font-size: 15px;
}

.home_hero_row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}

.home_hero_card_dark,
.home_hero_card_light {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.home_hero_card_dark {
  background: rgba(27, 27, 27, 0.94);
}

.home_hero_card_light {
  background: #fff;
  color: #000;
}

.home_hero_card_dark p,
.home_hero_card_light p {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
  transform: translateY(-0.5px);
}

.home_hero_card_dark .home_hero_card_text_lower {
  transform: translateY(0.06em);
}

.home_hero_card_light p span {
  font-weight: 600;
  color: #765600;
}

.home_hero_card_dark img,
.home_hero_card_light img,
.home_hero_trust_item img,
.home_hero_strip_item img {
  flex-shrink: 0;
  object-fit: contain;
}

.home_hero_card_dark img,
.home_hero_card_light img {
  width: 30px;
  height: 30px;
}

.home_hero_trust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 880px;
  padding-left: 3px;
}

.home_hero_trust_item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home_hero_trust_item img {
  width: 40px;
  height: 40px;
}

.home_hero_trust_item p {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
}

.home_hero_actions {
  display: flex;
  gap: 16px;
}

.home_hero_btn {
  width: var(--hero-button-width);
  min-height: calc(48px + var(--hero-size-increase) * 1.2);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Oswald", "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: calc(19px + var(--hero-size-increase) / 3);
  line-height: 1.15;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home_hero_btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

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

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

.home_hero_btn_secondary {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}

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

.home_hero_strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  margin-bottom: 9.15rem;
  padding: 8px var(--hero-inset);
  background: #292929;
  color: #fff;
}

.home_hero_strip_item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home_hero_strip_item img {
  width: 36px;
  height: 36px;
}

.home_hero_strip_item p {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
}

.home_hero_strip_item p span {
  font-weight: 400;
}

/* Пододвигаем первый экран к шапке. */
@media (min-width: 1025px) {
  .home_hero {
    margin-top: -3.04rem;
  }
}

@media (max-width: 1024px) {
  .home_hero,
  .home_hero_strip {
    --hero-inset: 25px;

    /* Компенсируем боковые отступы страницы. */
    margin-inline: -2rem;
  }

  .home_hero {
    margin-top: -5rem;
  }

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

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

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

  .home_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%);
  }

  .home_hero_inner {
    --hero-gap: clamp(12px, 3svh, 30px);
  }

  .home_hero_title {
    font-size: calc(clamp(28px, 3.8vw, 36px) + var(--hero-size-increase));
  }

  .home_hero_subtitle {
    font-size: 16px;
  }

  .home_hero_row {
    column-gap: 8px;
  }

  .home_hero_cards {
    font-size: 13px;
  }

  .home_hero_card_dark,
  .home_hero_card_light {
    gap: 6px;
    padding: 7px;
  }

  .home_hero_card_dark img,
  .home_hero_card_light img {
    width: 24px;
    height: 24px;
  }

  .home_hero_trust {
    justify-content: space-around;
    align-items: flex-start;
    gap: 16px;
    padding-left: 0;
  }

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

  .home_hero_trust_item p {
    font-size: 14px;
  }

  .home_hero_btn {
    flex: 1 1 0;
    width: auto;
    max-width: var(--hero-button-width);
  }
}

@media (max-width: 767px) {
  .home_hero,
  .home_hero_strip {
    --hero-inset: clamp(14px, 4.6vw, 20px);
  }

  .home_hero {
    --hero-size-increase: clamp(
      0px,
      min(calc((100vw - 350px) / 20), calc((100svh - 680px) / 80)),
      2px
    );
  }

  .home_hero_strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-block: 12px;
  }

  .home_hero_strip_item img {
    width: 26px;
    height: 26px;
  }

  .home_hero_strip_item p {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

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

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

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

  .home_hero_inner {
    --hero-gap: clamp(8px, 1.9svh, 18px);

    padding-block: clamp(18px, 3.2vh, 34px) 20px;
  }

  .home_hero_title {
    max-width: 11.5em;
    font-size: calc(20px + var(--hero-size-increase));
  }

  .home_hero_subtitle {
    font-size: 13px;
  }

  .home_hero_row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hero-gap) 6px;
  }

  .home_hero_card_dark,
  .home_hero_card_light {
    min-height: 44px;
    padding: 5px 7px;
    border-radius: 6px;
  }

  .home_hero_cards,
  .home_hero_trust_item p {
    font-size: 12px;
  }

  .home_hero_card_dark img,
  .home_hero_card_light img {
    width: 22px;
    height: 22px;
  }

  .home_hero_trust {
    gap: 8px;
  }

  .home_hero_trust_item {
    flex: 1 1 0;
    gap: 4px;
    max-width: none;
  }

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

  .home_hero_trust_extra {
    display: none;
  }

  .home_hero_actions {
    flex-direction: column;
    gap: var(--hero-gap) 6px;
  }

  .home_hero_btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: calc(44px + var(--hero-size-increase) * 2);
    max-width: none;
    border-radius: 6px;
    font-size: calc(16px + var(--hero-size-increase));
  }

  .home_hero_btn_secondary {
    border-width: 1px;
  }
}

@media (min-width: 768px) and (max-height: 680px) {
  .home_hero_inner {
    --hero-gap: clamp(10px, 2.7svh, 19px);

    padding-block: clamp(12px, 3vh, 24px);
  }
}

@media (max-width: 767px) and (max-height: 680px) {
  .home_hero_inner {
    --hero-gap: clamp(7px, 1.6svh, 11px);

    padding-block: 12px 10px;
  }

  .home_hero_title {
    max-width: none;
  }

  .home_hero_trust_item img {
    width: 26px;
    height: 26px;
  }

  .home_hero_actions {
    flex-direction: row;
  }

  .home_hero_btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 4px 6px;
    font-size: 14px;
  }
}
