:root {
  --green: #2c8a2e; --green-dark: #176b2d; --green-soft: #eef8ea;
  --navy: #0b2239; --text: #183047; --muted: #66788a; --line: #dfe8df;
  --white: #fff; --danger: #a73f3f;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 15px/1.6 Manrope, Arial, sans-serif; color: var(--text); background: #f7f9f7; }
a { color: var(--green-dark); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.container { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 98px; }
.brand { display: flex; gap: 13px; align-items: center; text-decoration: none; color: var(--navy); }
.brand img { width: 58px; height: 58px; border-radius: 50%; }
.brand > span { font-size: 10px; letter-spacing: .1em; line-height: 1.8; }
.brand strong { display: block; font-size: 23px; letter-spacing: -.035em; line-height: 1.1; }
.back-link { font-weight: 700; text-decoration: none; font-size: 14px; }
.back-link span { margin-left: 8px; }
.heading { margin: 48px 0 28px; }
h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: -.035em; color: var(--navy); }
.heading p { color: var(--muted); margin: 0; font-size: 16px; }
.payment-layout { display: grid; grid-template-columns: minmax(0, 690px) minmax(0, 1fr); gap: 42px; align-items: start; }
.payment-panel { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 36px rgba(24,48,71,.035); }
.required-hint { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.required-hint span, label > span[aria-hidden] { color: var(--danger); }
.field { margin-bottom: 20px; min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.field input, .field textarea { display: block; width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--white); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.amount-control { position: relative; max-width: 320px; }
.amount-control input { font-size: 30px; font-weight: 600; height: 68px; padding-right: 48px; }
.amount-control > span { position: absolute; right: 18px; top: 11px; color: var(--muted); font-size: 28px; }
.field-help { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: 12px; margin: 3px 0 23px; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.pay-button { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; min-height: 54px; width: 100%; border: 0; border-radius: 12px; color: var(--white); background: var(--green); font-weight: 700; cursor: pointer; }
.pay-button:hover { background: var(--green-dark); }
.pay-button:disabled { opacity: .6; cursor: wait; }
.form-message { margin-bottom: 0; font-size: 14px; }
.payment-aside { padding-top: 6px; }
.payment-aside h2 { font-size: 19px; line-height: 1.3; color: var(--navy); margin: 0 0 12px; letter-spacing: -.02em; }
.payment-aside p { font-size: 14px; color: var(--muted); margin: 0 0 13px; }
.bank-symbol { display: grid; place-items: center; width: 44px; height: 44px; background: var(--green-soft); color: var(--green-dark); border-radius: 14px; font-size: 27px; margin-bottom: 17px; }
.help-info { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 28px; }
.help-info a { display: block; font-size: 14px; text-decoration: none; }
.help-info .phone-link { font-size: 17px; font-weight: 700; margin: 17px 0 4px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 26px 0 30px; margin-top: 44px; font-size: 12px; color: var(--muted); }
.site-footer strong { color: var(--text); font-weight: 600; }
.site-footer p { margin: 3px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 22px; }
@media (max-width: 850px) {
  .payment-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
  .payment-panel { padding: 24px; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-footer { flex-direction: column; gap: 12px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .header-row { min-height: 80px; gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 19px; }
  .brand > span { font-size: 8px; }
  .back-link { font-size: 12px; }
  .back-link span { display: none; }
  .heading { margin: 30px 0 22px; }
  .heading p { font-size: 14px; }
  .payment-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .payment-panel { padding: 22px 18px; border-radius: 20px; }
  .amount-control { max-width: none; }
  .payment-aside { padding: 0 6px; }
  .site-footer { margin-top: 30px; }
}
[hidden] { display: none !important; }
.local-notice { padding: 12px; background: var(--green-soft); border-radius: 10px; font-size: 12px; margin: 0 0 20px; }
#payment-result h2 { font-size: 26px; line-height: 1.3; margin: 0 0 16px; }
.result-total { font-size: 30px; font-weight: 700; }
#payment-result .pay-button { text-decoration: none; margin: 20px 0 12px; }
.check-button { border: 1px solid var(--line); color: var(--green-dark); background: var(--green-soft); border-radius: 12px; padding: 12px 18px; cursor: pointer; font-weight: 700; }
.check-button:disabled { opacity: .6; cursor: wait; }
.paid-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.field textarea { resize: vertical; line-height: 1.6; }
#result-recipient, #result-service { overflow-wrap: anywhere; }
