/* ============================================================
   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.92rem;
  width: 8.82rem;
  height: .472rem;
  background: var(--white);
  border-radius: .236rem;
  display: flex;
  align-items: center;
}

.contact-input {
  flex: 1;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding-left: .234rem;
  padding-right: 1.4rem;
  font-size: .18rem;
  color: var(--navy);
}
.contact-input::placeholder { color: var(--line); }

.contact-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.291rem;
  height: .474rem;
  border-radius: .237rem;
  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;
}
.contact-submit:hover {
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 .06rem .16rem rgba(17, 36, 56, .28);
}

/* ================= МОБИЛЬНАЯ ВЕРСИЯ ================= */
@media (max-width: 899px) {
  .contact-hero { min-height: 0; }
  .contact-hero-inner { min-height: 0; padding: 56px 24px 64px; }

  .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: 32px; }
  .contact-email { margin-top: 12px; }

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