/* ============================================================
   Syntra Media — contacts.css
   Координаты из _spec/layout.json page10 (1rem = 100px @1559).
   ============================================================ */

.contact-hero {
  position: relative;
  background: var(--blue);
  min-height: 7.296rem;
  color: var(--white);
  overflow: hidden;
}

.contact-hero-inner {
  position: relative;
  height: 100%;
  min-height: 7.296rem;
}

.contact-hero h1 {
  position: absolute;
  left: 2.525rem;
  top: .958rem;
  font-size: .693rem;
  font-weight: 400;
  line-height: .774rem;
  white-space: nowrap;
}

.contact-phone,
.contact-email {
  position: absolute;
  top: 3.793rem;
  font-size: .379rem;
  color: var(--white);
  white-space: nowrap;
}
.contact-phone { left: 2.485rem; transform-origin: left center; animation: phonePulse 3s ease-in-out infinite; }
.contact-email { left: 6.946rem; }

@keyframes phonePulse {
  0%, 100% { transform: scale(1); opacity: .92; }
  50%      { transform: scale(1.02); opacity: 1; }
}

.contact-form {
  position: absolute;
  left: 2.529rem;
  top: 4.72rem;
  width: 9.7rem;
  display: flex;
  flex-direction: column;
  gap: .16rem;
}
.cf-row { display: flex; gap: .16rem; }
.cf-row-3 .contact-input { flex: 1; }
.cf-row-msg .contact-input { flex: 1; }

.contact-input {
  height: .56rem;
  min-width: 0;
  border: 0;
  outline: 0;
  background: var(--white);
  border-radius: .28rem;
  padding: 0 .28rem;
  font-size: .18rem;
  color: var(--navy);
}
.contact-input::placeholder { color: var(--line); }
.contact-input:focus { box-shadow: 0 0 0 2px rgba(17,36,56,.28); }

.contact-submit {
  flex: none;
  width: 1.5rem;
  height: .56rem;
  border-radius: .28rem;
  background: var(--navy);
  color: var(--white);
  font-size: .18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 .06rem .16rem rgba(17, 36, 56, .28);
}
.contact-submit[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

/* honeypot — вне экрана, ловит ботов */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.cf-status { margin: .04rem 0 0; font-size: .17rem; color: var(--white); }
.cf-status.is-error { color: #FFDCD3; }

/* ================= МОБИЛЬНАЯ ВЕРСИЯ ================= */
@media (max-width: 899px) {
  /* синяя секция — на весь экран телефона (подвал не виден до прокрутки) */
  .contact-hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
  }
  .contact-hero-inner {
    min-height: 0;
    width: 100%;
    padding: 64px 24px 56px;
    display: flex;
    flex-direction: column;
  }

  .contact-hero h1 {
    position: static;
    font-size: 40px;
    line-height: 1.18;
    white-space: normal;
  }

  .contact-phone,
  .contact-email {
    position: static;
    display: block;
    font-size: 22px;
    white-space: normal;
  }
  /* больше воздуха между «...ваш проект.» и телефоном */
  .contact-phone { margin-top: 64px; }
  .contact-email { margin-top: 14px; }

  .contact-form {
    position: static;
    margin-top: 32px;
    width: 100%;
    height: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cf-row { flex-direction: column; gap: 12px; }
  .contact-input {
    flex: none;
    width: 100%;
    height: 54px;
    background: var(--white);
    border-radius: 27px;
    padding: 0 22px;
    font-size: 16px;
  }
  .cf-status { font-size: 15px; margin-top: 4px; }
  .contact-submit {
    position: static;
    transform: none;
    width: 100%;
    height: 56px;
    border-radius: 28px;
    font-size: 16px;
  }
  .contact-submit:hover { transform: translateY(-2px); }
}
