/* Форма оплаты сайта (как на /priem). Скопировано из styles.css, раздел «окно оплаты ЮKassa» и «наша форма оплаты». */
/* ====================================================================== окно оплаты ЮKassa */
.yk-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 15, 30, .55); display: grid; place-items: center; padding: 16px; }
.yk-card { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; color: #0e1628;
  border-radius: 22px; padding: 18px 18px 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.yk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.yk-head b { font-size: 18px; }
.yk-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f4fa; font-size: 22px; line-height: 1; cursor: pointer; }
.yk-form { min-height: 260px; }
.yk-wait { padding: 60px 10px; text-align: center; color: #5d6a82; }
.yk-note { margin: 10px 2px 0; font-size: 12.5px; color: #5d6a82; }
@media (max-width: 600px) { .yk-modal { padding: 0; place-items: end center; } .yk-card { border-radius: 22px 22px 0 0; max-height: 92dvh; } }

/* ====================================================================== наша форма оплаты */
.co-card { width: min(470px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; color: #0e1628; border-radius: 24px;
  padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.co-head b { display: block; font-size: 18px; }
.co-head span { display: inline-block; margin-top: 2px; font-size: 22px; font-weight: 800; color: #1d4ed8; }
.co-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f4fa; font-size: 22px; line-height: 1; cursor: pointer; color: #3b4760; }
.co-email { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid #e1e6ef;
  background: #f7f8fa; color: #0e1628; outline: none; }
.co-email:focus { border-color: #1d4ed8; background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
.co-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 2px 16px; font-size: 15px; color: #0e1628; cursor: pointer; border-radius: 10px; }
.co-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #1d4ed8; }
.co-check a { color: #0e1628; text-decoration: underline; }
.co-check.need { outline: 2px solid #ef4444; outline-offset: 4px; }
.co-email.need { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.co-m { position: relative; font: inherit; color: #0e1628; text-align: left; cursor: pointer; border: 1.5px solid #e4e8f0; border-radius: 20px;
  padding: 16px; transition: transform .15s, box-shadow .2s, border-color .2s; }
.co-m:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(14, 22, 40, .10); border-color: #c9d2e3; }
.co-m:disabled { cursor: wait; opacity: .6; }
.co-m.busy { opacity: 1; }
.co-m.busy::after { content: ""; position: absolute; right: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #1d4ed8;
  border-top-color: transparent; animation: coSpin .8s linear infinite; }
@keyframes coSpin { to { transform: rotate(360deg); } }
.co-sbp { width: 100%; display: grid; grid-template-columns: 56px 1fr 16px; gap: 14px; align-items: center;
  background: linear-gradient(120deg, #f3f0ff 0%, #eef6ff 55%, #eefbf4 100%); border-color: #dcd6f7; }
.co-sbp .co-t b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 17.5px; }
.co-sbp em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: #1e2a4a; padding: 3px 9px; border-radius: 999px; }
.co-sbp small { display: block; color: #5d6a82; font-size: 14px; margin-top: 4px; }
.co-go { font-size: 26px; color: #8a96ac; line-height: 1; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.co-row .co-m { display: grid; align-content: start; gap: 4px; min-height: 146px; }
.co-row .co-m b { font-size: 17px; margin-top: 10px; }
.co-row .co-m small { color: #5d6a82; font-size: 14px; }
.co-card-m { background: linear-gradient(160deg, #fff 55%, #eef3ff 100%); }
.co-sber { background: linear-gradient(160deg, #fff 55%, #ecfaf1 100%); }
.co-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.co-ic svg { width: 24px; height: 24px; }
.co-ic.sbp { width: 56px; height: 56px; background: #fff; box-shadow: 0 4px 14px rgba(91, 87, 162, .18); }
.co-ic.sbp svg { width: 30px; height: 30px; }
.co-ic.co-ic-card { background: #2563eb; padding: 0; }
.co-ic.sber { background: linear-gradient(135deg, #0bb34a, #1bd17d 55%, #43c4e0); }
.co-err { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fee2e2; color: #991b1b; font-size: 14.5px; font-weight: 600; }
.co-cancel { width: 100%; margin-top: 14px; font: inherit; font-size: 16px; color: #3b4760; background: #fff; border: 1.5px solid #e4e8f0; border-radius: 16px;
  padding: 13px; cursor: pointer; }
.co-cancel:hover { background: #f7f8fa; }
.co-note { margin: 14px 4px 6px; text-align: center; font-size: 13px; color: #5d6a82; }
.co-note b { color: #0e1628; }
.co-brand { text-align: center; font: 700 20px/1 system-ui, sans-serif; color: #0e1628; letter-spacing: -.02em; }
.co-brand span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 4px; border-radius: 50%; background: #1e2a4a; color: #fff;
  font-size: 13px; vertical-align: 2px; }
@media (max-width: 600px) {
  .co-card { border-radius: 24px 24px 0 0; max-height: 94dvh; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
  .co-row .co-m { min-height: 128px; padding: 14px; }
}
.co-ic svg { width: 24px !important; height: 24px !important; display: block; }
.co-ic.sbp svg { width: 32px !important; height: 32px !important; }

/* ====================================================================== логотипы в форме оплаты */
.co-ic.sber { background: #fff; box-shadow: 0 4px 14px rgba(33, 160, 56, .18); }
.co-ic.sber svg { width: 30px !important; height: 30px !important; }
.co-ic.sbp svg { width: 30px !important; height: 34px !important; }
.co-brand { margin-top: 2px; }
.co-brand .co-yk { width: 118px; height: auto; display: inline-block; }

/* ---------- из priem.css: подпись к почте, согласие, список преимуществ ---------- */
.co-accept { font-size: 13.5px; color: #5d6a82; margin: 2px 2px 12px; line-height: 1.45; }
.co-accept a { color: inherit; }
.co-perks { list-style: none; margin: -4px 0 14px; padding: 12px 14px; border-radius: 16px; background: #f3f7ff; display: grid; gap: 6px; font-size: 14.5px; }
.co-perks li { position: relative; padding-left: 24px; }
.co-perks li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: #16a34a; font-weight: 800; }
.co-label { display: block; font-size: 14px; font-weight: 700; color: #3b4760; margin: 0 2px 6px; }
.co-email { margin-top: 0; }
.co-accept { margin-top: 10px; }

/* ---------- адаптация по высоте экрана: форма всегда помещается целиком ---------- */
.co-card { overscroll-behavior: contain; }
@media (max-height: 820px) {
  .co-card { padding: 16px 16px 14px; }
  .co-head { margin-bottom: 10px; align-items: center; }
  .co-head span { font-size: 20px; margin-top: 0; }
  .co-email { padding: 12px 14px; border-radius: 14px; }
  .co-accept { font-size: 12.5px; margin: 8px 2px 10px; }
  .co-m { padding: 12px 14px; border-radius: 16px; }
  .co-sbp { grid-template-columns: 44px 1fr 14px; gap: 12px; }
  .co-ic.sbp { width: 44px; height: 44px; }
  .co-sbp .co-t b { font-size: 16px; }
  .co-sbp small { font-size: 13px; margin-top: 2px; }
  .co-row { margin-top: 8px; gap: 8px; }
  .co-row .co-m { min-height: 0; display: flex; align-items: center; gap: 10px; }
  .co-row .co-m b { margin: 0; font-size: 15px; }
  .co-row .co-m small { display: none; }
  .co-ic { width: 34px; height: 34px; }
  .co-ic svg { width: 20px !important; height: 20px !important; }
  .co-cancel { margin-top: 10px; padding: 10px; font-size: 15px; }
  .co-note { margin: 10px 4px 4px; font-size: 12px; }
  .co-brand .co-yk { width: 96px; }
}
@media (max-height: 640px) {
  .co-card { padding: 12px 14px 10px; }
  .co-head { margin-bottom: 6px; }
  .co-head b { font-size: 16px; }
  .co-label { font-size: 13px; margin-bottom: 4px; }
  .co-email { padding: 10px 12px; }
  .co-accept { font-size: 11.5px; margin: 6px 2px 8px; }
  .co-sbp small { display: none; }
  .co-m { padding: 10px 12px; }
  .co-cancel, .co-brand { display: none; }
  .co-note { margin: 8px 2px 0; font-size: 11.5px; }
}
@media (max-height: 640px) and (max-width: 600px) {
  .co-card { max-height: 100dvh; border-radius: 18px 18px 0 0; }
}

/* Быстрое окно «Оплатить по СБП»: compact + sbpFirst, как на /priem и /resume */
.co-compact { width: min(420px, 100%); padding: 16px 16px 14px; border-radius: 24px; }
.co-compact .co-head { margin-bottom: 10px; align-items: center; }
.co-compact .co-head b { font-size: 16px; }
.co-compact .co-head span { font-size: 20px; margin-top: 0; }
.co-compact .co-label { font-size: 13px; margin-bottom: 4px; }
.co-compact .co-email { padding: 12px 14px; border-radius: 14px; }
.co-compact .co-accept { font-size: 12px; margin: 8px 2px 10px; }
.co-compact .co-m { padding: 12px 14px; border-radius: 16px; }
.co-compact .co-sbp { grid-template-columns: 44px 1fr 14px; gap: 12px; }
.co-compact .co-ic.sbp { width: 44px; height: 44px; }
.co-compact .co-sbp .co-t b { font-size: 16px; }
.co-compact .co-sbp small { display: none; }
.co-compact .co-row { margin-top: 8px; gap: 8px; }
.co-compact .co-row .co-m { min-height: 0; display: flex; align-items: center; gap: 10px; }
.co-compact .co-row .co-m b { margin: 0; font-size: 15px; }
.co-compact .co-row .co-m small { display: none; }
.co-compact .co-ic { width: 34px; height: 34px; }
.co-compact .co-ic svg { width: 20px !important; height: 20px !important; }
.co-compact .co-cancel { display: none; }
.co-compact .co-note { margin: 10px 4px 2px; font-size: 12px; }
.co-compact .co-brand { display: block; margin-top: 8px; }
.co-compact .co-brand .co-yk { width: 96px; }
.co-compact.co-step1 .co-label, .co-compact.co-step1 .co-email { display: none; }
.co-compact.co-step2 .co-m, .co-compact.co-step2 .co-row { display: none; }
.co-next { width: 100%; margin-top: 10px; border: 0; border-radius: 16px; padding: 14px; font: inherit; font-weight: 800; font-size: 16.5px; color: #fff;
  background: linear-gradient(120deg, #2c6a4e 0%, #3b8a64 100%); cursor: pointer; }
.co-next:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 10px; }
.co-next:disabled { opacity: .7; cursor: wait; }
.co-next .co-ic.sbp { width: 30px; height: 30px; flex: none; background: #fff; box-shadow: none; }
.co-next .co-ic.sbp svg { width: 17px !important; height: 20px !important; }
.co-back { width: 100%; margin-top: 8px; border: 0; background: none; font: inherit; font-size: 14px; color: #5d6a82; cursor: pointer; padding: 6px; }
@media (max-width: 600px) {
  .co-compact { padding: 14px 14px calc(12px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
}
