.hero {
  position: relative;
  overflow: hidden;
  margin-inline: 15px;
  margin-top: 0px;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.buttons__detail--hero {
  transform: initial;
  left: 20px;
}
.buttons__detail--hero img {
  width: 44px;
}
.hero__background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  pointer-events: none;
}
.buttons__detail--hero .buttons__detail-text {
  font-family: var(--font2);
  font-size: 34px;
  line-height: 0.8;
  text-align: left;
  max-width: 215px;
  margin-left: 14px;
  margin-top: 12px;
}
.hero__container {
  position: relative;
  padding-top: clamp(1.5625rem, 0.7639rem + 2.5556vw, 3rem);
  overflow: hidden;
  padding-bottom: 124px;
  padding-left: clamp(1.1875rem, 0.4583rem + 2.3333vw, 2.5rem);
  border-radius: 10px;
}

.hero__container {
  max-width: 1160px;
}

.hero__content {
  color: var(--white);
  max-width: 630px;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(1.5rem, 0.8049rem + 2.9268vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: 700;
}

.hero__text {
  line-height: 1.3;
  margin-bottom: 40px;
  font-weight: 700;
}

.hero__text b {
  color: var(--whatsapp);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

/* Блок мессенджеров рядом с кнопкой */
.hero-messengers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  /* Цвет общий для label и стрелки (через currentColor). Переопределяется модификатором */
  color: var(--white);
}

.hero-messengers__icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-messengers__link {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.hero-messengers__link:hover {
  transform: translateY(-2px);
}

.hero-messengers__icon {
  width: 54px;
  height: 54px;
  display: block;
}

.hero-messengers__detail {
  bottom: -100%;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  position: absolute;
  right: -128px;
}
/* Стрелка нарисована через CSS-маску, чтобы её можно было перекрашивать через color */
.hero-messengers__arrow {
  width: 70px;
  height: 62px;
  flex-shrink: 0;
  position: absolute;
  right: 27%;
  bottom: 100%;
  display: block;
  background-color: currentColor;
  -webkit-mask: url('./../img/icons/arrow-question.svg') no-repeat center / contain;
  mask: url('./../img/icons/arrow-question.svg') no-repeat center / contain;
}

.hero-messengers__label {
  font-family: var(--font2);
  font-size: 34px;
  line-height: 0.85;
  color: inherit;
  max-width: 173px;
}

@media (max-width: 576px) {
  .hero {
    margin-inline: 0px;
  }

  .hero__container {
    padding-bottom: 20px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero__button {
    width: 100%;
    max-width: 300px;
  }

  .hero-messengers {
    flex-direction: row;
    gap: 10px;
  }

  .hero-messengers__detail {
    display: none;
  }

  .hero-messengers__arrow {
    width: 40px;
    height: 36px;
  }

  .hero-messengers__label {
    font-size: 22px;
  }

  .buttons__detail--hero {
    order: -1;
    position: static;
    flex-direction: column;
    transform: inherit;
    align-items: center;
    margin-left: auto;
    margin-bottom: 20px;
  }

  .buttons__detail--hero .buttons__arrow {
    transform: rotate(226deg);
    margin-top: 30px;
  }

  .buttons__detail--hero .buttons__detail-text {
    max-width: 222px;
  }
}
