.ads_hero .ads_hero_title {
  margin-bottom: 16px;
}

.ads_hero .ads_hero_subtitle {
  margin-bottom: 20px;
  max-width: 560px;
}

.ads_hero_cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
}

.ads_hero .ads_btn_secondary {
  background: transparent !important;
  color: #e6eef9 !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: none !important;
}

.ads_hero .ads_btn_secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25) !important;
}

.ads_hero .ads_trustline {
  margin: 0;
  font-size: 13px;
  color: rgba(203, 211, 226, 0.85);
}

.ads_modal_subtitle {
  margin: 6px 0 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #b8c3d8;
}

.ads_modal_hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #a9b5cc;
}

.ads_modal_microcopy {
  margin: 10px 0 0;
  font-size: 12px;
  color: #a9b5cc;
}

.ads_l_work_link {
  align-self: center;
  font-size: 13px;
  color: #9fc9ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(159, 201, 255, 0.6);
}

.ads_l_work_link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 640px) {
  .ads_hero_cta {
    flex-direction: column;
    align-items: stretch;
  }

  .ads_btn_primary,
  .ads_btn_secondary {
    width: 100%;
    text-align: center;
  }

  .ads_hero .ads_trustline {
    font-size: 12px;
  }
}

/* iOS: каретка должна находиться в поле, а не в смещённом transform-контейнере */
#contact-modal[aria-hidden="false"] ~ .whatsapp-button {
  display: none !important;
}

@media (max-width: 640px) {
  .modal[aria-hidden="false"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .modal__dialog {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: min(350px, calc(100vw - 40px)) !important;
    max-width: min(350px, calc(100vw - 40px)) !important;
    margin: auto !important;
  }

  .modal__form {
    max-height: none !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto;
  }

  .modal__input,
  .modal__textarea {
    transform: none !important;
    will-change: auto !important;
  }
}

@media (max-width: 360px) {
  .modal__dialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }
}

@media (max-width: 640px) and (max-height: 640px) {
  .modal[aria-hidden="false"] {
    align-items: flex-start !important;
  }

  .modal__dialog {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
}
