/* Панель оформления «Плана до собеседований» (18.09.2026) — assets/js/plan-order.js.
   Самодостаточные стили: панель открывается на тарифах, на лендинге плана и поверх кабинета на
   главной, поэтому цвета и шрифты заданы явно, а не через переменные конкретной страницы. */
.po-lock { overflow: hidden; }
.po-overlay {
  position: fixed; inset: 0; z-index: 200000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15,26,18,.5); backdrop-filter: blur(3px);
  font-family: 'Geist', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14.5px; line-height: 1.45; color: #0F1A12;
}
.po-overlay.on { display: flex; }
.po-overlay *, .po-overlay *::before, .po-overlay *::after { box-sizing: border-box; }
.po-box {
  width: 100%; max-width: 660px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #F4F6EE; border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(15,26,18,.6);
}
.po-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 20px; background: #1A3D2A; color: #fff; }
.po-kick { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #B7CDB9; }
.po-title { margin: 6px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.po-sub { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.78); max-width: 46ch; }
.po-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.po-price { order: 2; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.po-x { order: 1; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.po-x:hover { background: rgba(255,255,255,.22); }

.po-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 18px 6px; }
.po-loading { padding: 40px 10px; text-align: center; color: #5E6E63; }
.po-sec { background: #fff; border: 1px solid rgba(26,61,42,.12); border-radius: 16px; padding: 16px 18px 18px; margin-bottom: 12px; }
.po-sec-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }
.po-n { flex: none; width: 24px; height: 24px; border-radius: 999px; background: #E3F0E8; color: #1A3D2A; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.po-sec-note { font-size: 12.5px; font-weight: 400; color: #5E6E63; }
.po-seg { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: #E9F0E6; }
.po-seg-b { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: #3E4A44; cursor: pointer; }
.po-seg-b.on { background: #fff; color: #0F1A12; box-shadow: 0 1px 3px rgba(15,26,18,.15); }

.po-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.po-grid--more { margin-top: 12px; }
.po-field { min-width: 0; }
.po-field--wide { grid-column: 1 / -1; }
.po-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #2C3A30; }
.po-input {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(26,61,42,.22);
  background: #fff; color: #0F1A12; font: inherit; font-size: 16px; /* 16px — iOS не зумит поле */
}
.po-input:focus { outline: 2px solid #2D5F3F; outline-offset: 1px; border-color: #2D5F3F; }
.po-textarea { resize: vertical; min-height: 64px; }
.po-hint { margin-top: 6px; font-size: 12px; color: #5E6E63; line-height: 1.45; }
.po-hint a, .po-check a, .po-fine a { color: #2D5F3F; }
.po-muted { color: #5E6E63; font-weight: 400; }
.po-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.po-opt { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(26,61,42,.22); background: #fff; color: #2C3A30; font: inherit; font-size: 13.5px; cursor: pointer; }
.po-opt:hover { border-color: #2D5F3F; }
.po-opt.on { background: #1A3D2A; border-color: #1A3D2A; color: #fff; font-weight: 600; }
.po-more { margin-top: 12px; padding: 0; border: 0; background: none; color: #2D5F3F; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(45,95,63,.35); text-underline-offset: 3px; cursor: pointer; }
.po-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 12.5px; color: #2C3A30; cursor: pointer; }
.po-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: #2D5F3F; }

.po-resume { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: #E9F0E6; font-size: 13.5px; margin-bottom: 10px; }
.po-file { display: block; padding: 14px 16px; border-radius: 12px; border: 1.5px dashed rgba(26,61,42,.3); background: #fff; color: #1A3D2A; font-size: 13.5px; font-weight: 600; text-align: center; cursor: pointer; }
.po-file:hover, .po-file.on { border-color: #2D5F3F; background: #F3F7F1; }

.po-foot { flex: none; padding: 14px 18px 16px; border-top: 1px solid rgba(26,61,42,.12); background: #F4F6EE; }
.po-err { margin-bottom: 10px; padding: 10px 13px; border-radius: 12px; background: #FBE9E7; color: #8A1F19; font-size: 13.5px; font-weight: 500; }
.po-err--ok { background: #E3F0E8; color: #1A3D2A; }
.po-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px; border: 1px solid #1A3D2A; background: #1A3D2A; color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.po-btn:hover { background: #2D5F3F; border-color: #2D5F3F; }
.po-btn[disabled] { opacity: .7; cursor: progress; }
.po-btn--pay { width: 100%; padding: 15px 24px; font-size: 16.5px; }
.po-fine { margin-top: 9px; font-size: 11.5px; color: #5E6E63; text-align: center; line-height: 1.5; }
.po-paid { background: #fff; border: 1px solid rgba(26,61,42,.12); border-radius: 16px; padding: 22px; margin-bottom: 14px; font-size: 15px; line-height: 1.55; }

@media (max-width: 640px) {
  .po-overlay { padding: 0; align-items: stretch; }
  .po-box { max-width: none; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; }
  .po-head { padding: calc(16px + env(safe-area-inset-top)) 16px 16px; }
  .po-title { font-size: 21px; }
  .po-sub { display: none; } /* на телефоне место нужнее форме, смысл понятен из заголовка и кнопки */
  .po-head-r { flex-direction: row-reverse; align-items: center; }
  .po-body { padding: 12px 12px 4px; }
  .po-sec { padding: 14px 14px 16px; border-radius: 14px; }
  .po-grid { grid-template-columns: 1fr; }
  .po-seg { margin-left: 0; width: 100%; }
  .po-seg-b { flex: 1; }
  .po-foot { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .po-opt { padding: 10px 14px; }
}
