/* =========================================================
   Первый экран «Космическое свидание» (по макету Figma)
   ПК: от 1025px, планшет: 577-1024px, телефон: до 576px
   ========================================================= */

.hero-date {
  --h: clamp(680px, 43.49vw, 835px);
  position: relative;
  z-index: 1;
  min-height: var(--h);
  padding-top: calc(var(--h) * .26);
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #16151b;
  color: #fff;
}

.hero-date__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  display: block;
}

.hero-date__bg img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 40% 50%;
  object-position: 40% 50%;
}

.hero-date__content {
  max-width: 390px;
}

.hero-date__title {
  margin: 0 0 12px;
  font-family: "Gilroy", sans-serif;
  font-weight: 900;
  font-size: 25px;
  line-height: 1.36;
  text-transform: uppercase;
  color: #fff;
}

.hero-date__title span {
  display: block;
  color: #f20090;
}

/* плашка «Вам у нас понравится» */
.hero-date__badge {
  position: relative;
  isolation: isolate;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 350px;
  max-width: 100%;
  height: 38px;
  margin: 0 0 31px;
  padding: 0 10px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: #333;
}

.hero-date__badge::before {
  content: "";
  position: absolute;
  left: -32px;
  top: -32px;
  z-index: -1;
  width: 413.6px;
  height: 101.6px;
  background: url("../images/first-screen/badge-pc.webp") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

/* три пункта с иконками */
.hero-date__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 0 29px;
  padding: 0;
  list-style: none;
}

.hero-date__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.hero-date__item--proposal {
  width: 107px;
}

.hero-date__item--champagne {
  width: 76px;
  margin-left: 40px;
}

.hero-date__item--gift {
  width: 108px;
  margin-left: 44px;
}

.hero-date__icon {
  position: relative;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.hero-date__icon::before {
  content: "";
  position: absolute;
  left: -47.76%;
  top: -48%;
  width: 196%;
  height: 196%;
  background: 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.hero-date__item--proposal .hero-date__icon::before {
  background-image: url("../images/first-screen/icon-proposal.webp");
}

.hero-date__item--champagne .hero-date__icon::before {
  background-image: url("../images/first-screen/icon-champagne.webp");
}

.hero-date__item--gift .hero-date__icon::before {
  left: -49.43%;
  background-image: url("../images/first-screen/icon-gift.webp");
}

.hero-date__text {
  position: relative;
  margin: 10px 0 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}

/* кнопка */
.hero-date__btn {
  position: relative;
  isolation: isolate;
  display: block;
  width: 390px;
  max-width: 100%;
  height: 51px;
  padding: 0 15px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  font-family: "Gilroy", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  -webkit-transition: -webkit-transform .3s ease, -webkit-filter .3s ease;
  transition: transform .3s ease, filter .3s ease;
}

.hero-date__btn::before {
  content: "";
  position: absolute;
  left: -28px;
  top: -44px;
  z-index: -1;
  width: 447.2px;
  height: 138px;
  background: url("../images/first-screen/btn-pc.webp") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.hero-date__btn:hover {
  -webkit-filter: brightness(1.12);
  filter: brightness(1.12);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

.hero-date__btn:active {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

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

.header__descr {
  font-weight: 400;
}

/* бургер как в макете: 30x20, полоски 2.4px */
.burger-btn {
  height: 20px;
}

.burger-btn::before,
.burger-btn::after,
.burger-btn__line {
  height: 2.4px;
}

/* ---------- планшет ---------- */
@media (max-width: 1024px) {
  .hero-date {
    --h: clamp(570px, 74.22vw, 680px);
    padding-top: calc(var(--h) * .2018);
  }

  .hero-date__bg img {
    -o-object-position: 20% 50%;
    object-position: 20% 50%;
  }

  .hero-date__badge {
    margin-bottom: 34px;
  }

  .hero-date__list {
    margin-bottom: 27px;
  }

  .hero-date__btn::before {
    left: -16px;
    top: -37px;
    width: 437.2px;
    height: 124px;
    background-image: url("../images/first-screen/btn-tablet.webp");
  }
}

/* ---------- телефон ---------- */
@media (max-width: 576px) {
  .hero-date {
    min-height: 182.5vw;
    padding-top: 103px;
    padding-bottom: 10.6vw;
  }

  .hero-date__bg {
    bottom: auto;
  }

  .hero-date__bg img {
    height: auto;
  }

  .hero-date__content {
    max-width: none;
    text-align: center;
  }

  .hero-date__title {
    margin-bottom: 11px;
    font-size: 22px;
  }

  .hero-date__title span {
    color: #f731a2;
  }

  .hero-date__badge {
    width: 290px;
    margin: 0 auto 24px;
    padding: 0 5px;
    font-size: 12px;
  }

  .hero-date__badge::before {
    left: -15px;
    top: -25px;
    width: 320px;
    height: 94px;
    background-image: url("../images/first-screen/badge-phone.webp");
  }

  .hero-date__list {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 0;
  }

  .hero-date__item--proposal {
    width: 87px;
  }

  .hero-date__item--champagne {
    width: 64px;
    margin-left: 25px;
  }

  .hero-date__item--gift {
    width: 88px;
    margin-left: 25px;
  }

  .hero-date__icon {
    width: 60px;
    height: 60px;
  }

  .hero-date__text {
    font-size: 12px;
  }

  .hero-date__btn {
    width: 290px;
    height: 45px;
    margin: max(24px, calc(157.8vw - 348px)) auto 0;
    font-size: 14px;
  }

  .hero-date__btn::before {
    left: -15px;
    top: -25px;
    width: 320px;
    height: 99px;
    background-image: url("../images/first-screen/btn-phone.webp");
  }

  .header__address {
    font-size: 11px;
  }

  .header__address::before {
    width: 13px;
    height: 13px;
  }

  .burger-btn {
    -ms-flex-item-align: start;
    align-self: flex-start;
    margin-top: 6px;
  }
}

/* =========================================================
   Карта в блоке контактов (ПК и планшет):
   белая карточка переносится влево, чтобы не закрывать
   метку планетария на карте
   ========================================================= */
@media (min-width: 577px) {
  .contacts__box {
    margin-left: 0;
    margin-right: auto;
  }

  .contacts__map img {
    -o-object-position: 50% 30%;
    object-position: 50% 30%;
  }
}
