/* Форма «Назначить встречу» (form.js): голос, подписи полей, формат встречи, крупная кнопка */
.pf-form form { gap: 40px !important; }
.pf-voice { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; width: 100%; padding: 28px; background: #fff; border: 1px solid #e3ddd1; border-radius: 20px; box-shadow: 0 24px 50px -36px rgba(34, 33, 36, .35); }
.pf-voice-mic { position: relative; width: 76px; height: 76px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #f8f7f4; background: #222124; transition: background-color .3s, transform .2s; }
.pf-voice-mic:hover { background: #7d6a50; }
.pf-voice-mic:active { transform: scale(.96); }
.pf-voice-mic:focus-visible { outline: 2px solid #9a8466; outline-offset: 4px; }
.pf-voice-mic i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #9a8466; opacity: 0; pointer-events: none; }
.pf-voice-mic.is-on { background: #b0413e; }
.pf-voice-mic.is-on i { animation: pf-ring 1.6s ease-out infinite; }
.pf-voice-mic.is-on i + i { animation-delay: .8s; }
@keyframes pf-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.pf-voice[data-state="think"] .pf-voice-mic { background: #9a8466; animation: pf-think 1.2s ease-in-out infinite; }
@keyframes pf-think { 50% { transform: scale(.94); } }
.pf-voice-text { display: grid; gap: 8px; min-width: 0; }
.pf-voice-text > span { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1.4 Geist, sans-serif; letter-spacing: 2.5px; text-transform: uppercase; color: #7d6a50; }
.pf-voice-text h3 { margin: 0; font: 400 clamp(24px, 2.4vw, 32px)/1.15 var(--bh-font-display, "IvyMode", serif); color: #222124; }
.pf-voice-text p { margin: 0; font: 300 15px/1.6 Geist, sans-serif; color: #4b4a4e; }
.pf-voice-say { font-style: italic; color: #8b8586 !important; font-size: 14px !important; }
.pf-voice-status:empty { display: none; }
.pf-voice-status { font-weight: 500 !important; color: #222124 !important; }
.pf-voice[data-state="done"] .pf-voice-status { color: #2f6b45 !important; }
.pf-voice[data-state="error"] .pf-voice-status { color: #a1372f !important; }
.pf-voice[data-state="done"] .pf-voice-say, .pf-voice[data-state="listen"] .pf-voice-say { display: none; }
.pf-voice-typebtn { justify-self: start; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 400 13px/1.4 Geist, sans-serif; color: #7d6a50; text-decoration: underline; text-underline-offset: 3px; }
.pf-voice-type { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.pf-voice-type[hidden] { display: none; }
.pf-voice-type textarea { width: 100%; min-height: 56px; padding: 12px 14px; border: 1px solid #d9d2c4; border-radius: 12px; background: #fbfaf7; resize: vertical; font: 400 15px/1.5 Geist, sans-serif; color: #222124; }
.pf-voice-type textarea:focus { outline: none; border-color: #9a8466; box-shadow: 0 0 0 3px rgba(154, 132, 102, .18); }
.pf-voice-type button { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #222124; color: #f8f7f4; cursor: pointer; font: 500 12px/1 Geist, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
@media (max-width: 639px) { .pf-voice { grid-template-columns: 1fr; padding: 22px; } .pf-voice-mic { width: 64px; height: 64px; } }

/* поля: видимая подпись над полем, поле — светлая плашка, ввод без заглавных */
.pf-form .form-field { display: grid; gap: 8px; }
.pf-label { font: 500 11px/1.4 Geist, sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: #6f6a6b; }
.pf-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select) { text-transform: none !important; letter-spacing: 0 !important; font-size: 16px !important; line-height: 1.4 !important; }
.pf-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea) { padding: 14px 16px !important; border: 1px solid #ddd6c9 !important; border-radius: 12px; background: #fff !important; transition: border-color .2s, box-shadow .2s, background-color .6s; }
.pf-form select { padding: 14px 12px !important; border: 1px solid #ddd6c9 !important; border-radius: 12px; background-color: #fff !important; }
.pf-form :is(input, textarea, select):focus { border-color: #9a8466 !important; box-shadow: 0 0 0 3px rgba(154, 132, 102, .18); outline: none; }
.pf-form :is(input, textarea)::placeholder { color: #a8a2a3 !important; text-transform: none; }
.pf-form #date-range { padding-right: 44px !important; cursor: pointer; }
.pf-form #date-range + input + input + span { right: 14px !important; }
.pf-form .pf-filled :is(input, textarea, select) { animation: pf-filled 1.8s ease-out; }
@keyframes pf-filled { 0% { background: #efe6d3; border-color: #9a8466; } 100% { background: #fff; } }

/* формат встречи */
.pf-fmt { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; width: 100%; }
.pf-fmt legend { padding: 0; margin-bottom: 10px; font: 500 11px/1.4 Geist, sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: #6f6a6b; }
.pf-fmt > div { display: grid; gap: 10px; }
@media (min-width: 768px) { .pf-fmt > div { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-fmt label { position: relative; cursor: pointer; }
.pf-fmt input { position: absolute; opacity: 0; pointer-events: none; }
.pf-fmt span { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid #ddd6c9; border-radius: 14px; background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pf-fmt b { font: 500 15px/1.3 Geist, sans-serif; color: #222124; }
.pf-fmt small { font: 300 13px/1.45 Geist, sans-serif; color: #6f6a6b; }
.pf-fmt label:hover span { border-color: #b9ad97; }
.pf-fmt input:checked + span { border-color: #222124; box-shadow: inset 0 0 0 1px #222124; background: #fbfaf7; }
.pf-fmt input:focus-visible + span { outline: 2px solid #9a8466; outline-offset: 2px; }

/* отправка */
.pf-send-row { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between !important; gap: 16px 24px; }
.pf-send-note { margin: 0; font: 300 14px/1.5 Geist, sans-serif; color: #6f6a6b; }
.pf-form button.pf-send { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 32px !important; border-radius: 999px !important; background: #222124 !important; color: #f8f7f4 !important; font: 500 13px/1 Geist, sans-serif !important; letter-spacing: 1.6px !important; transition: background-color .3s !important; }
.pf-form button.pf-send:hover { background: #7d6a50 !important; }
.pf-form button.pf-send i { font-style: normal; transition: transform .3s; }
.pf-form button.pf-send:hover i { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .pf-voice-mic i, .pf-voice[data-state="think"] .pf-voice-mic, .pf-form .pf-filled :is(input, textarea, select) { animation: none !important; } }

/* Крестик «Очистить дату» у дня встречи (23.11.2026, п. 6): поле календаря не стирается с клавиатуры */
/* стоит в их обёртке поля (div.relative), слева от значка календаря (у поля справа отступ 32px под значок) */
.pf-date-clear { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #6f6a6b; font: 400 22px/1 Geist, sans-serif; cursor: pointer; }
.pf-date-clear:hover, .pf-date-clear:focus-visible { background: #efe6d3; color: #222124; }
.pf-date-clear[hidden] { display: none; }

/* «Где вам удобнее общаться?» (contact-via.js, 23.11.2026): кнопки мессенджеров по стране телефона — во всех формах
   заявки, в том числе в окне «Сделайте ещё один шаг» (там нет .pf-form, поэтому стили самостоятельные) */
.pf-via { margin: 0; padding: 0; border: 0; display: grid; gap: 12px; width: 100%; min-width: 0; }
.pf-via legend { padding: 0; margin-bottom: 12px; font: 500 11px/1.4 Geist, sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: #6f6a6b; }
.pf-via-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-via-opt { position: relative; cursor: pointer; }
.pf-via-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pf-via-opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px; border: 1px solid #ddd6c9; border-radius: 999px; background: #fff; color: #4b4a4e; transition: border-color .2s, background-color .2s, color .2s; }
.pf-via-opt b { font: 500 14px/1 Geist, sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.pf-via-opt svg { flex: none; color: #8f7a5a; }
.pf-via-opt:hover span { border-color: #b9ad97; }
.pf-via-opt input:checked + span { border-color: #222124; background: #222124; color: #f8f7f4; }
.pf-via-opt input:checked + span svg { color: #e6d8b8; }
.pf-via-opt input:focus-visible + span { outline: 2px solid #9a8466; outline-offset: 2px; }
.pf-via-vk input { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid #ddd6c9; border-radius: 12px; background: #fff; font: 400 16px/1.4 Geist, sans-serif; color: #222124; }
.pf-via-vk input:focus { outline: none; border-color: #9a8466; box-shadow: 0 0 0 3px rgba(154, 132, 102, .18); }
.pf-via-vk[hidden] { display: none; }
.pf-via-err { margin: 0; font: 400 13px/1.4 Geist, sans-serif; color: #b0413e; }
.pf-via-err:empty { display: none; }
.pf-via.is-error .pf-via-vk input { border-color: #b0413e; }
@media (max-width: 479px) { .pf-via-opt span { padding: 0 13px 0 11px; } .pf-via-opt b { font-size: 13px; } }

/* Блок с формой в конце главной (src/forms.ts): слева заголовок, справа их форма в карточке */
.pf-home-form { background: #f4f1ea; color: #222124; padding: 88px 20px; }
.pf-hf-in { max-width: 1280px; margin: 0 auto; display: grid; gap: 40px; }
.pf-hf-eye { display: block; margin-bottom: 20px; font: 400 11px/1.4 Geist, sans-serif; letter-spacing: 4px; text-transform: uppercase; color: #8f7a5a; }
.pf-hf-text h2 { margin: 0 0 20px; font: 400 clamp(34px, 4.2vw, 56px)/1.1 var(--bh-font-display, "IvyMode", serif); color: #222124; }
.pf-hf-text p { margin: 0; max-width: 460px; font: 300 17px/1.65 Geist, sans-serif; color: #4b4a4e; }
.pf-hf-card { background: #fff; border-radius: 24px; padding: 28px 20px; box-shadow: 0 30px 80px -40px rgba(34, 33, 36, .35); min-width: 0; }
.pf-hf-card form { display: flex; flex-direction: column; gap: 32px; }
.pf-hf-card form[hidden] { display: none; }
.pf-hf-card .pf-voice { background: #faf8f4; box-shadow: none; }
.pf-hf-card .pf-send-note { display: none; }
.pf-hf-card [class^="pf-hf-err-"], .pf-hf-card [class*=" pf-hf-err-"] { font: 400 12px/1.4 Geist, sans-serif; color: #b0413e; }
.pf-hf-card .form-field.error :is(input, select, textarea) { border-color: #b0413e !important; }
.pf-hf-card form.is-sending { opacity: .6; pointer-events: none; }
.pf-hf-done { display: grid; justify-items: center; gap: 16px; padding: 48px 12px; text-align: center; }
.pf-hf-done i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #222124; color: #e6d8b8; }
.pf-hf-done p { margin: 0; max-width: 420px; font: 400 18px/1.55 Geist, sans-serif; color: #222124; }
.pf-hf-fail { margin: 16px 0 0; font: 400 14px/1.5 Geist, sans-serif; color: #b0413e; }
/* телефон: у формы своя рамка (оформление форм на узком экране) — карточка вокруг лишняя */
@media (max-width: 767px) { .pf-hf-card { background: transparent; box-shadow: none; padding: 0; border-radius: 0; } }
@media (min-width: 960px) {
  .pf-home-form { padding: 140px 40px; }
  .pf-hf-in { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .pf-hf-text { position: sticky; top: 120px; }
  .pf-hf-card { padding: 48px; }
}

/* ══ Окно «Сделайте ещё один шаг» (#letscallyou-form, 23.11.2026) ══
   Узкая колонка (до 520px): раньше поля стояли парами и не помещались — «PHONE NUMBER» и название проекта обрезались,
   подписи жили в placeholder. Теперь: одна колонка, подпись над каждым полем, голосовое заполнение строкой сверху,
   способы связи — ровной сеткой, кнопка на всю ширину. Вид один на всех экранах (телефонные правила f.css перекрыты). */
.pf-drawer > div { padding: 72px 40px 88px !important; gap: 28px !important; }
.pf-drawer > div > div:first-child { gap: 12px !important; }
.pf-drawer h2 { padding-right: 44px; font-size: 28px !important; line-height: 1.2 !important; }
.pf-drawer h2 + div { font-size: 15px !important; line-height: 1.6 !important; }
.pf-drawer h2 + div strong { font-weight: 300; }
.pf-drawer.pf-form form { gap: 22px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.pf-drawer form .flex.flex-col { gap: 16px !important; }
.pf-drawer form .flex[class*="md:flex-row"] { flex-direction: column !important; gap: 16px !important; }
.pf-drawer form .form-field { min-width: 0; }
.pf-drawer.pf-form form .pf-label { font-size: 11px; letter-spacing: 1.6px; color: #6f6a6b; }
.pf-drawer.pf-form form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { width: 100%; min-height: 50px; padding: 13px 14px !important; border: 1px solid #ddd6c9 !important; border-radius: 12px !important; background-color: #fff !important; box-sizing: border-box; }
.pf-drawer.pf-form form :is(input, select, textarea):focus { border-color: #9a8466 !important; box-shadow: 0 0 0 3px rgba(154, 132, 102, .18) !important; }
.pf-drawer.pf-form form textarea { min-height: 96px; background: #fff !important; }
.pf-drawer form .form-field.error :is(input, select, textarea) { border-color: #b0413e !important; }
.pf-drawer form .error-message { display: block; margin-top: 4px; font: 400 12px/1.4 Geist, sans-serif; }
.pf-drawer form .error-message:empty { display: none; }
/* телефон: код страны и номер — два поля в одну строку, одной высоты */
.pf-drawer form .form-field > .flex.items-center { gap: 8px !important; align-items: stretch; }
.pf-drawer form .bh-ph-btn { min-height: 50px; padding: 0 12px; border: 1px solid #ddd6c9; border-radius: 12px; background: #fff; font: 400 16px/1 Geist, sans-serif; color: #222124; }
.pf-drawer form .bh-ph-btn:focus-visible { outline: none; border-color: #9a8466; box-shadow: 0 0 0 3px rgba(154, 132, 102, .18); }
.pf-drawer form .bh-ph-btn b { font-weight: 400; }
/* способы связи — две ровные колонки */
.pf-drawer .pf-via-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-drawer .pf-via-opt span { display: flex; min-height: 46px; }
/* голос — компактной строкой */
.pf-drawer .pf-voice { grid-template-columns: auto 1fr !important; gap: 14px; align-items: center; padding: 14px 16px !important; border: 0 !important; border-radius: 16px !important; background: #f6f2ea !important; box-shadow: none !important; }
.pf-drawer .pf-voice .pf-voice-mic, .pf-drawer .pf-voice .pf-voice-mic i { width: 52px !important; height: 52px !important; }
.pf-drawer .pf-voice .pf-voice-mic i { inset: 0; }
.pf-drawer .pf-voice-text { gap: 4px; }
.pf-drawer .pf-voice-text > span, .pf-drawer .pf-voice-say { display: none !important; }
.pf-drawer .pf-voice .pf-voice-text h3 { font: 500 16px/1.3 Geist, sans-serif !important; }
.pf-drawer .pf-voice-text p { font-size: 13px; line-height: 1.5; }
.pf-drawer .pf-voice-type { grid-template-columns: 1fr; margin-top: 6px; }
.pf-drawer .pf-voice-type textarea { min-height: 72px !important; }
/* согласия и отправка */
.pf-drawer form .custom-checkbox + div { font-size: 13px !important; line-height: 1.5 !important; }
.pf-drawer form div:has(> .custom-checkbox) { gap: 12px !important; }
.pf-drawer form div:has(> div > .custom-checkbox) { display: grid; gap: 12px; }
.pf-drawer form .pf-send-row { flex-direction: column-reverse; align-items: stretch !important; gap: 12px; }
.pf-drawer form button.pf-send { width: 100%; justify-content: center; min-height: 54px; }
.pf-drawer form .pf-send-note { text-align: center; font-size: 13px; }
.pf-drawer .pf-hf-done { padding: 32px 0; }
@media (max-width: 767px) {
  .pf-drawer > div { padding: 64px 20px 88px !important; gap: 22px !important; }
  .pf-drawer h2 { font-size: 24px !important; }
}
/* выбор проекта: своя стрелка и место под неё — длинное название не наезжает на стрелку, а обрезается многоточием */
.pf-form .pf-select select { -webkit-appearance: none; appearance: none; width: 100%; padding-right: 40px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f6a6b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 16px !important; }
.pf-drawer form[hidden] { display: none !important; }
.pf-drawer form .pf-send-note { order: 0 !important; }
.pf-drawer form .form-field.error .error-message { margin-bottom: 2px; }
/* код страны — такое же поле в рамке, как номер рядом (на компьютере; на телефоне поля — линии, f.css) */
@media (min-width: 960px) {
  .pf-form form .bh-ph-btn { min-height: 50px; padding: 0 12px; border: 1px solid #ddd6c9; border-radius: 12px; background: #fff; }
  .pf-form form .bh-ph-btn:focus-visible { outline: none; border-color: #9a8466; box-shadow: 0 0 0 3px rgba(154, 132, 102, .18); }
}
[dir="rtl"] .pf-form .pf-select select { padding-right: 14px !important; padding-left: 40px !important; background-position: left 14px center !important; }
[dir="rtl"] .pf-drawer h2 { padding-right: 0; padding-left: 44px; }

/* Квадратики согласия во всех формах (правка владельца 26.11.2026). Галочка в разметке есть, но не показывалась:
   правило «показать, когда отмечено» (peer-checked) стоит на самой галочке, а она лежит внутри квадратика, а не рядом
   с флажком, — так и на сайте клиента. При отметке квадратик лишь чуть темнел. Теперь — тёмная галочка и рамка. */
.peer:checked + .checkbox-box { background: #fff !important; border-color: #222124 !important; }
.peer:checked + .checkbox-box svg { display: block !important; }
.peer:checked + .checkbox-box svg path { stroke: #222124; stroke-width: 2; }
.peer:focus-visible + .checkbox-box { outline: 2px solid #aea089; outline-offset: 2px; }
