/* =====================================================================
   06 · КОНТАКТЫ — заголовок с маркером, печатающийся запрос, магнитная кнопка
   ===================================================================== */
.contact { text-align: center; overflow: hidden; }
.contact__title {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 8.6vw, 150px);
  line-height: .95; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance;
}
.contact__hl { position: relative; display: inline-block; color: var(--lime); }
.contact__hl svg { position: absolute; left: -4%; bottom: -.18em; width: 108%; height: .34em; overflow: visible; }
.contact__hl path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s .5s var(--ease-out); }
.contact__title.is-in .contact__hl path,
.no-js .contact__hl path { stroke-dashoffset: 0; }
.js .contact__hl { opacity: 0; transform: translateY(30%) rotate(-3deg); transition: opacity .8s .35s, transform 1s .35s var(--ease-out); }
.js .contact__title.is-in .contact__hl { opacity: 1; transform: none; }

.ask {
  display: flex; align-items: center; gap: 10px; width: min(760px, 100%);
  margin: clamp(40px, 6vw, 72px) auto 0; padding: 8px 8px 8px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-align: left;
}
.ask__text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(15px, 1.4vw, 19px); color: #d9d5e2; }
.ask__text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--lime); animation: contact-caret 1s steps(1) infinite; }

.magnet {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px;
  background: var(--lime); color: var(--on-accent); font-size: 15px; font-weight: 800; white-space: nowrap;
  transition: transform .4s var(--ease-out), box-shadow .3s;
}
.magnet:hover { box-shadow: 0 0 40px -6px color-mix(in srgb, var(--lime) 70%, transparent); }

.contact__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 48px; font-size: 15px; }
.contact__row > div { display: flex; align-items: center; gap: 10px; }
.contact__key { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.js .contact__row { transition-delay: .15s; }

.copy { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); transition: color .2s, border-color .2s; }
.copy:hover { color: var(--ink); border-color: var(--ink); }

@keyframes contact-caret { 50% { opacity: 0; } }

@media (width <= 699px) {
  .ask { flex-direction: column; align-items: stretch; padding: 18px; border-radius: 24px; }
  .ask__text { min-height: 3.2em; white-space: normal; }
  .magnet { justify-content: center; }
}
