/* ==========================================================
   "Let's talk" contact drawer
   ========================================================== */
.talk-ov {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 10, 10, .42);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1), visibility .5s;
}
.talk-ov.is-open { opacity: 1; visibility: visible; }

.talk {
  --ink: #111;
  --muted: #8a8a8a;
  --line: #e4e4e4;
  --accent: #ff4a24;
  --ease: cubic-bezier(.22, 1, .36, 1);
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 121;
  width: min(620px, 100vw);
  background: #fff; color: var(--ink);
  font-family: "HelveticaNeueCyr", "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column;
  transform: translateX(104%);
  transition: transform .8s var(--ease);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .18);
}
.talk.is-open { transform: none; }

.talk__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  font-family: "HelveticaNeueCyr", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
}
.talk__head b { color: var(--ink); font-weight: 600; }
.talk__head i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #2fbf5b; vertical-align: 1px; }
.talk__close { transition: background-color .2s, transform .5s var(--ease); }
.talk__close:hover { transform: rotate(90deg); }

.talk__body { flex: 1; overflow-y: auto; padding: clamp(28px, 5vh, 48px) clamp(20px, 4vw, 44px) 32px; }
.talk__title {
  margin: 0 0 22px;
  font-family: "HelveticaNeueCyr", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 600;
  font-size: clamp(56px, 8.6vw, 96px); line-height: .95; letter-spacing: -.05em; text-transform: uppercase;
}
.talk__title span { color: var(--accent); }
.talk__lead { margin: 0 0 36px; font-size: 16px; line-height: 1.45; color: #555; max-width: 420px; }

/* fields */
.talk form { display: grid; gap: 26px; }
.talk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fld { position: relative; display: block; }
.fld input, .fld textarea {
  width: 100%; padding: 22px 0 10px;
  border: 0; border-bottom: 1px solid #cfcfcf; border-radius: 0;
  background: none; color: var(--ink);
  font: inherit; font-size: 17px; outline: none;
  transition: border-color .3s;
}
.fld textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.fld span {
  position: absolute; left: 0; top: 22px;
  font-size: 17px; color: var(--muted);
  pointer-events: none; transform-origin: left top;
  transition: transform .35s var(--ease), color .3s;
}
.fld input:focus, .fld textarea:focus { border-color: var(--ink); }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span,
.fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span {
  transform: translateY(-20px) scale(.72); color: var(--ink);
}
.fld.is-bad input, .fld.is-bad textarea { border-color: var(--accent); }
.fld.is-bad span { color: var(--accent); }

.talk__group legend, .talk__label {
  display: block; margin-bottom: 12px;
  font-family: "HelveticaNeueCyr", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.talk__group { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 16px;
  border: 1px solid #d9d9d9; border-radius: 999px;
  font-size: 14px; cursor: pointer; user-select: none;
  transition: background .3s, color .3s, border-color .3s;
}
.chips span:hover { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.talk__send { margin-top: 6px; }
.talk__send.is-busy .arr { animation: talkPulse 1s ease-in-out infinite; }
@keyframes talkPulse { 50% { opacity: .5; } }

.talk__note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.talk__note a { color: var(--ink); }
.talk__error { margin: 0; padding: 12px 14px; background: #fff1ee; color: #b3301a; font-size: 14px; line-height: 1.45; }
.talk__error a { color: inherit; font-weight: 600; }

/* success */
.talk__done { display: none; padding-top: 6vh; }
.talk.is-sent form, .talk.is-sent .talk__lead { display: none; }
.talk.is-sent .talk__done { display: block; animation: talkIn .8s var(--ease) both; }
@keyframes talkIn { from { opacity: 0; transform: translateY(24px); } }
.talk__check { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 28px; }
.talk__check svg { width: 34px; }
.talk__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: talkTick .7s .25s var(--ease) forwards; }
@keyframes talkTick { to { stroke-dashoffset: 0; } }
.talk__done h3 { margin: 0 0 10px; font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.talk__done p { margin: 0 0 28px; font-size: 16px; color: #555; line-height: 1.5; max-width: 400px; }

body.talk-lock { overflow: hidden; }

@media (max-width: 560px) {
  .talk__row { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .talk, .talk-ov { transition: none; }
}
