/* «Оплати» 0.3 - «Гра форм»: два кольори, великі поля з нахилом, важкий дружній заголовок */

/* Шрифти лежать поруч, зовнішніх запитів немає. Знак ₴ живе в cyrillic-ext, тому для нього окрема грань */
@font-face { font-family: Rubik; src: url(/fonts/rubik-cyrillic-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Rubik; src: url(/fonts/rubik-cyrillic-ext-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+20B4; }
@font-face { font-family: Rubik; src: url(/fonts/rubik-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Onest; src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url(/fonts/onest-cyrillic-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+20B4; }
@font-face { font-family: Onest; src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Outfit; src: url(/fonts/outfit-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --v: #5a3df0;        /* фіалковий: поле, на якому живуть гроші */
  --v-deep: #4429c9;
  --l: #d4ff3a;        /* лайм: дія */
  --ink: #150f33;
  --paper: #f4f1e8;
  --white: #fff;
  --muted: #6b6685;
  --late: #f0492e;     /* лише для «прострочено» */
  --ok: #4f7a00;
  --head: Rubik, 'Arial Black', system-ui, sans-serif;
  --text: Onest, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: 24px;
  --r: 88px;           /* радіус великого кута поля */
  --tilt: -3deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, dt, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.nb { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-v :focus-visible, .on-ink :focus-visible { outline-color: var(--l); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Поля з нахилом ----------
   Саме поле - прямокутник кольору (фон секції), а його край - окрема повернута «п'ята» з одним великим кутом.
   Дані про гроші всередині стоять рівно: нахилений лише край. */
.field { position: relative; isolation: isolate; --c: var(--v);
  background: linear-gradient(var(--c), var(--c)) no-repeat 0 var(--top, 0) / 100% calc(100% - var(--top, 0px) - var(--bot, 0px)); }
.field.f-foot { --bot: calc(var(--r) + 12px); }
.field.f-head { --top: calc(var(--r) + 12px); }
.field.f-foot::after, .field.f-head::before { content: ""; position: absolute; z-index: -1; height: calc(var(--r) + 48px + 8vw); background: var(--c); pointer-events: none; }
.field.f-foot::after { left: -30%; right: 0; bottom: 0; border-radius: 0 0 var(--r) 0; transform-origin: 100% 0; transform: rotate(var(--tilt)); }
.field.f-head::before { left: 0; right: -30%; top: 0; border-radius: var(--r) 0 0 0; transform-origin: 0 100%; transform: rotate(var(--tilt)); }
.on-v { --c: var(--v); color: var(--white); }
.on-l { --c: var(--l); color: var(--ink); }
.on-ink { --c: var(--ink); color: var(--white); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 12px 28px; border: 0; border-radius: 999px;
  font: 700 19px/1.1 var(--head); letter-spacing: -.005em; text-decoration: none; text-align: center; white-space: nowrap;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-l { background: var(--l); color: var(--ink); }
.btn-v { background: var(--v); color: var(--white); }
.btn-v:hover { background: var(--v-deep); }
.btn-soft { background: #e4defa; color: var(--v-deep); }
.btn-block { display: flex; width: 100%; }
.btn-s { min-height: 50px; font-size: 17px; padding-inline: 22px; }

.tlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tlink:hover { text-decoration-color: var(--l); }

/* ---------- Знак і лого ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 24px/1 var(--head); letter-spacing: -.02em; text-decoration: none; color: inherit; }
.logo svg { display: block; height: 30px; width: auto; flex: none; }

.gm-watermark { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; line-height: 1; color: inherit; opacity: .9; white-space: nowrap; text-decoration: none; min-height: 24px; }
.gm-watermark-label { font-weight: 400; opacity: .7; font-size: 12px; }
.gm-watermark-name { font: 800 15px/1 Outfit, var(--text); letter-spacing: -.01em; }
.gm-watermark:hover .gm-watermark-name { text-decoration: underline; text-underline-offset: 3px; }
.gm-dot { color: #E91E96; }

/* ============================================================ ГОЛОВНА */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.top-nav { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
.top-nav a { text-decoration: none; padding: 10px 0; }
.top-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--l); }

.hero { padding-bottom: calc(var(--r) - 24px); }
.hero-in { display: grid; gap: 28px; padding-top: 12px; }
.hero h1 { font: 800 41px/1.02 var(--head); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--l); }
.hero .lead { margin-top: 16px; font-size: 19px; font-weight: 500; line-height: 1.42; max-width: 30em; }

.make { position: relative; display: grid; gap: 12px; }
.make-row { display: flex; align-items: flex-end; gap: 12px; padding-right: 90px; min-height: 50px; }
.make label { font: 700 18px/1.25 var(--head); letter-spacing: -.005em; }
.make-link { position: absolute; top: -18px; right: -4px; width: 86px; height: 86px; transform: rotate(10deg); }
.make textarea { display: block; width: 100%; min-height: 186px; resize: none; padding: 18px 20px; border: 0; border-radius: 28px; background: var(--white); color: var(--ink);
  font: 500 16px/1.55 var(--text); caret-color: var(--v); }
.make textarea::placeholder { color: #8f8aa6; opacity: 1; }
.make textarea:focus { outline: 4px solid var(--l); outline-offset: 0; }
/* порожнє поле кличе до себе: лаймова рамка, блимає курсор, кілька разів розходиться хвиля; стали в поле або заповнили - затихає */
.make-field { position: relative; border-radius: 28px; }
.make:not(.filled) textarea:not(:focus) { box-shadow: 0 0 0 3px var(--l); }
.make-field::before { content: ""; position: absolute; z-index: 1; left: 15px; top: 20px; width: 3px; height: 22px; border-radius: 2px; background: var(--v); pointer-events: none; animation: caret 1.1s steps(1) infinite; }
.make-field::after, .ring::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid var(--l); pointer-events: none; opacity: 0; }
.make-field:focus-within::before, .make.filled .make-field::before, .make-field:focus-within::after, .make.filled .make-field::after { display: none; }
.make-field.nudge { animation: shake .42s cubic-bezier(.3, .6, .4, 1); }
/* приклади реквізитів, що по черзі «вставляються» в порожнє поле (вмикає скрипт класом typing) */
.make-ghost { display: none; position: absolute; inset: 0; padding: 18px 20px; border-radius: 28px; overflow: hidden; pointer-events: none;
  font: 500 16px/1.55 var(--text); color: #8f8aa6; white-space: pre-wrap; overflow-wrap: anywhere; transition: opacity .3s; }
.make-ghost.out { opacity: 0; }
.make-ghost .caret { display: inline-block; width: 3px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; border-radius: 2px; background: var(--v); animation: caret 1.1s steps(1) infinite; }
.make.typing .make-ghost { display: block; }
.make.typing textarea::placeholder { color: transparent; }
.make.typing .make-field::before, .make-field:focus-within .make-ghost, .make.filled .make-ghost { display: none; }
@keyframes caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes ring { 0% { transform: none; opacity: .85; } 70%, 100% { transform: scale(1.05, 1.13); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-9px); } 45% { transform: translateX(8px); } 70% { transform: translateX(-5px); } 88% { transform: translateX(3px); } }
/* кнопка: стрілка весь час показує напрям; з реквізитами кнопка підстрибує й тричі пускає хвилю */
.ring { position: relative; }
.make-go { gap: 12px; }
.make-go svg { flex: none; }
.make.filled .make-go svg { animation: go 1.5s ease-in-out infinite; }
.make.filled .make-go { animation: wake .5s cubic-bezier(.3, 1.6, .5, 1); }
.make.filled .make-go::after { animation: ring 1.7s ease-out .35s 3; }
/* linkin лишається в списку, щоб після стирання реквізитів ланка не падала вдруге */
.make.filled .make-link { animation: linkin .8s cubic-bezier(.3, 1.5, .5, 1) .45s both, snap .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes wake { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes go { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
@keyframes snap { 0%, 100% { transform: rotate(10deg); } 35% { transform: rotate(-14deg) scale(1.12); } 70% { transform: rotate(16deg); } }
/* кроки форми: paste (вставити) → check (перевірити) → done (посилання готове); без скрипта видно лише перший */
.make-check, .make-done, .make-errs:empty { display: none; }
.make[data-step="check"] .make-check, .make[data-step="done"] .make-done { display: grid; gap: 12px; }
.make[data-step="check"] .make-row, .make[data-step="check"] .make-field, .make[data-step="check"] #t-manual, .make[data-step="check"] .make-link,
.make[data-step="done"] > :not(.make-done) { display: none; }
.make-h { font: 700 20px/1.2 var(--head); letter-spacing: -.005em; }
.make-check label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
/* IBAN - поле на кілька рядків: на вузькому телефоні номер переноситься, а не ховається за край */
.make-check textarea { display: block; resize: none; overflow: hidden; letter-spacing: -.01em; }
.make-check input, .make-check textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 18px; background: var(--white); color: var(--ink); font: 500 16px/1.3 var(--text); caret-color: var(--v); }
.make-check input::placeholder, .make-check textarea::placeholder { color: #8f8aa6; opacity: 1; }
.make-check input:focus, .make-check textarea:focus { outline: 4px solid var(--l); outline-offset: 0; }
.make-check input.need, .make-check textarea.need { box-shadow: 0 0 0 3px var(--l); }
.make-check.nudge { animation: shake .42s cubic-bezier(.3, .6, .4, 1); }
.make[data-step="check"] .make-check { animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.make-errs { display: grid; gap: 4px; padding: 12px 16px; border-radius: 18px; background: var(--ink); color: var(--white); font-size: 14.5px; line-height: 1.4; }
.make[data-step="done"] .make-done { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.make-sum { font-size: 16px; line-height: 1.4; }
.make-url { display: block; padding: 14px 16px; border-radius: 18px; background: var(--white); color: var(--v); font: 600 15px/1.35 var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-line { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, .7); }
.btn.ok { animation: bump .35s; }
.make-ex { justify-self: start; background: none; border: 0; padding: 6px 0; font-size: 15px; color: inherit; }
/* під кнопкою один дрібний рядок: до заповнення заспокоює, після - каже, де житиме посилання */
.make .note { font-size: 14px; line-height: 1.45; opacity: .82; }
.make .note-filled, .make.filled .note-empty { display: none; }
.make.filled .note-filled { display: block; }
.make .note a { font-weight: 600; text-underline-offset: 3px; }

/* --- Переписка --- */
.chat { padding-top: 64px; }
.chat h2, .safe h2 { font: 800 34px/1.05 var(--head); letter-spacing: -.02em; text-wrap: balance; }
.chat-cols { display: grid; margin-top: 26px; }
.chat-was { padding-bottom: 44px; }
.chat-side h3 { font: 800 24px/1 var(--head); letter-spacing: -.01em; margin-bottom: 16px; }
.chat-now { margin-inline: calc(var(--pad) * -1); padding: calc(var(--r) * .3 + 30px) var(--pad) 150px; --tilt: 3deg; }
.chat-now.field.f-head::before { left: -30%; right: 0; border-radius: 0 var(--r) 0 0; transform-origin: 100% 100%; }
.thread { display: grid; gap: 8px; justify-items: start; }
.b { max-width: 86%; padding: 11px 16px; border-radius: 22px 22px 22px 7px; background: var(--white); color: var(--ink); font-size: 15.5px; line-height: 1.42; white-space: pre-line; overflow-wrap: anywhere; }
.b.me { justify-self: end; border-radius: 22px 22px 7px 22px; background: var(--ink); color: var(--white); }
.b.long { font-size: 14.5px; }
.b.card { padding: 12px 16px 14px 14px; display: grid; grid-template-columns: 4px 1fr; column-gap: 12px; white-space: normal; text-decoration: none; }
.b.card::before { content: ""; grid-row: 1 / span 3; border-radius: 4px; background: var(--v); }
.b.card .u { color: var(--v); font-weight: 600; font-size: 14px; }
.b.card b { font: 700 18px/1.2 var(--head); margin-top: 3px; }
.b.card span { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* --- Безпека + підвал: одне темне поле до кінця сторінки --- */
.safe { margin-top: -96px; padding-top: calc(var(--r) + 34px); padding-bottom: 28px; --tilt: -3deg; }
.safe-in { display: grid; gap: 30px; }
.safe p { margin-top: 16px; max-width: 34em; color: #d9d6e8; }
.safe .tlink { display: inline-block; margin-top: 18px; color: var(--white); }
.route { width: 100%; max-width: 460px; height: auto; display: block; overflow: visible; }
.route .lbl { font: 600 15px var(--text); fill: #d9d6e8; }
.route .coin { animation: ride 3.6s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes ride {
  0% { transform: translate(-62px, 0) rotate(-360deg); opacity: 0; }
  8%, 14% { transform: translate(-62px, 0) rotate(-360deg); opacity: 1; }
  52% { transform: translate(-8px, -9px) rotate(0deg); opacity: 1; }
  86%, 92% { transform: translate(34px, 0) rotate(360deg); opacity: 1; }
  100% { transform: translate(34px, 0) rotate(360deg); opacity: 0; }
}
.foot { margin-top: 56px; padding-top: 24px; border-top: 2px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 600; }
.foot-links a { text-decoration: none; padding: 8px 0; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .gm-watermark { flex-basis: 100%; }

@media (min-width: 900px) {
  :root { --pad: 40px; --r: 140px; --tilt: -2deg; }
  .top { padding-block: 26px; }
  .hero { padding-bottom: calc(var(--r) - 50px); }
  .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; padding-top: 44px; }
  .hero h1 { font-size: clamp(56px, 5.4vw, 80px); line-height: 1; }
  .hero .lead { font-size: 22px; margin-top: 26px; }
  .make-link { width: 104px; height: 104px; top: -34px; right: -18px; }
  .make label { font-size: 20px; }
  .make textarea { min-height: 190px; font-size: 17px; }
  .make-ghost { font-size: 17px; }
  .chat { padding-top: 110px; }
  .chat h2, .safe h2 { font-size: 52px; }
  .chat-cols { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; align-items: stretch; }
  .chat-side h3 { font-size: 30px; margin-bottom: 22px; }
  .chat-was { padding: 72px 64px 250px 0; }
  /* на широкому екрані «Тепер» - лаймове поле, що виходить за правий край */
  .chat-now { --r: 110px; margin-inline: 0 calc((100vw - min(100vw, 1160px)) / -2 - var(--pad)); padding: 104px calc((100vw - min(100vw, 1160px)) / 2 + var(--pad)) 230px 64px; }
  .chat-now.field.f-head::before { left: 0; right: -30%; border-radius: var(--r) 0 0 0; transform-origin: 0 100%; transform: rotate(-2deg); }
  .b { font-size: 16.5px; max-width: 80%; }
  .safe { margin-top: -150px; padding-top: calc(var(--r) + 20px); }
  .safe-in { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .safe p { font-size: 19px; }
  .route { max-width: 540px; justify-self: end; }
  .foot { margin-top: 90px; }
  .foot .gm-watermark { flex-basis: auto; }
}

/* ============================================================ ОПЛАТА */
.pay { --r: 76px; }
.pay-col { width: 100%; max-width: 472px; margin-inline: auto; padding-inline: var(--pad); }
.pay-top { padding: 30px 0 36px; }
.pay-top .pay-col { position: relative; }
.pay-coin { position: absolute; top: -6px; right: 18px; width: 84px; height: 84px; transform: rotate(12deg); animation: land .9s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes land { from { transform: translateY(-26px) rotate(-70deg); } to { transform: rotate(12deg); } }
.pay-coin g { transform-box: fill-box; transform-origin: center; }
.pay-top:has(.btn:hover) .pay-coin g { animation: hop .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes hop { 0%, 100% { transform: none; } 45% { transform: translateY(-9px) rotate(-18deg); } }
.pay-who { padding-right: 104px; font-size: 16px; line-height: 1.3; min-height: 66px; display: flex; flex-direction: column; justify-content: center; }
.pay-who b { display: block; font: 700 22px/1.15 var(--head); letter-spacing: -.01em; }
.pay-sum { margin-top: 14px; font: 800 clamp(64px, 21.5vw, 92px)/.95 var(--head); letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-sum i { font-style: normal; font-weight: 600; font-size: .62em; letter-spacing: 0; margin-left: .06em; color: var(--l); }
.pay-what { margin-top: 12px; font-size: 18px; font-weight: 500; line-height: 1.35; }
.pay-payee { margin-top: 18px; font-size: 15px; line-height: 1.4; }
.pay-payee b { font-weight: 700; }
.pay-top .btn { margin-top: 22px; min-height: 66px; font-size: 22px; }

.pay-rest { padding-top: 46px; padding-bottom: 28px; }
.pay-or { font-size: 15px; color: var(--muted); font-weight: 500; }
.banks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.bank { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 12px; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); text-decoration: none;
  font: 600 16.5px/1.15 var(--head); text-align: left; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.bank:hover { transform: translateY(-2px); }
.bank:hover .tile { transform: rotate(-9deg) scale(1.06); }
.bank:active { transform: scale(.97); }
.tile { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--tc, var(--ink)); color: var(--tf, #fff); font: 800 21px/1 var(--head);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }

/* справжня сторінка: решта банків під кнопкою «Інші банки», сума без значення - поле для платника */
.banks .more { display: none; }
.banks.all .more { display: flex; }
.bank-more { cursor: pointer; }
.banks[aria-disabled="true"] .bank, .btn[aria-disabled="true"] { opacity: .55; }
.pay-sum-in { width: 4.2ch; min-width: 0; max-width: 62%; padding: 0; border: 0; border-bottom: 4px solid var(--l); border-radius: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; caret-color: var(--l); }
.pay-sum-in:focus { outline: 0; }
.pay-sum-in::placeholder { color: rgba(255, 255, 255, .45); }
.pay-err { margin-top: 8px; font-size: 14.5px; min-height: 1.4em; }
.pay-demo { font-weight: 600; color: var(--ink); }
.req { margin-top: 22px; }
.req summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 600; font-size: 16px; }
.req summary::-webkit-details-marker { display: none; }
.req summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 6px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.req[open] summary::after { transform: translateY(3px) rotate(225deg); }
.req-list { display: grid; gap: 4px; padding: 6px 0 4px; }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 0; }
.req-row dt { font-size: 13px; color: var(--muted); }
.req-row dd { font-weight: 600; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.copy { grid-row: 1 / span 2; grid-column: 2; border: 0; background: none; padding: 10px 0 10px 10px; color: var(--v); font-weight: 600; font-size: 14px; }
.copy:hover { text-decoration: underline; text-underline-offset: 3px; }
.req .btn { margin-top: 10px; }

.pay-end { margin-top: 26px; display: grid; gap: 16px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pay-sign { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: center; }
.pay-sign a { padding: 8px 0; text-underline-offset: 3px; }
.pay-sign .made { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.pay-sign .made svg { width: 22px; height: 22px; flex: none; color: var(--v); }
.pay-end .gm-watermark { color: var(--ink); justify-self: start; }

@media (max-width: 374px) {
  .bank { gap: 9px; padding: 10px; font-size: 15px; }
  .tile { width: 36px; height: 36px; border-radius: 12px; font-size: 19px; }
}
@media (min-width: 900px) {
  .pay { --r: 120px; --tilt: -1.4deg; }
  .pay-top { padding: 64px 0 70px; }
  .pay-sum { font-size: 104px; }
  .pay-rest { padding-top: 70px; }
}

/* ============================================================ РОБОЧА ВЕРСІЯ: те, чого не було в макеті */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.offscreen { position: fixed; left: -9999px; opacity: 0; }
.logo img { display: block; height: 30px; width: auto; }
.route .coin { transform-box: fill-box; transform-origin: center; }
.b.card b .nb { color: inherit; font-size: inherit; margin: 0; }
select { font: inherit; color: inherit; }

/* підказки під кнопкою потрібні лише на першому кроці */
.make[data-step="check"] .note, .make[data-step="done"] .note { display: none; }
/* довга сума: менший кегль, щоб число не ховалось за край */
.pay-sum.long { font-size: clamp(44px, 14.5vw, 66px); }
.pay-sum.xlong { font-size: clamp(34px, 10.5vw, 50px); }
.pay-sum-in { max-width: 82%; }
/* головна: прапорець імені, посилання для змін */
.make-check .make-tick { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.35; padding: 6px 0; cursor: pointer; }
.make-check .make-tick input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; border-radius: 6px; accent-color: var(--l); }
.make-go[disabled] { opacity: .6; }
.make-acts { display: flex; flex-wrap: wrap; gap: 2px 24px; font-size: 15.5px; }
.make-acts .tlink { background: none; border: 0; padding: 10px 0; color: inherit; }
.make-keep { display: grid; gap: 4px; margin-top: 4px; padding: 16px; border-radius: 22px; background: var(--ink); font-size: 14.5px; line-height: 1.45; }
.make-keep b { display: block; font: 700 17px/1.25 var(--head); margin-bottom: 4px; }
.copy.done, .btn.done, .tlink.done { animation: bump .35s; }

.mine-sec { padding-top: 48px; }
.mine-sec h2 { font: 800 24px/1.1 var(--head); letter-spacing: -.01em; }
.mine { margin-top: 8px; }
.mine li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; }
.mine li + li { border-top: 2px solid rgba(21, 15, 51, .08); }
.mine p { display: grid; gap: 2px; min-width: 0; }
.mine b { font-weight: 600; font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.mine p span { color: var(--muted); font-size: 14.5px; }
.mine-act { display: flex; gap: 18px; }
.mine .copy { grid-row: auto; grid-column: auto; padding: 10px 0; text-decoration: none; }

/* питання й заявка магазину живуть на тому самому темному полі, що й безпека */
.faq, .shops { margin-top: 72px; }
.faq h2, .shops h2 { font: 800 34px/1.05 var(--head); letter-spacing: -.02em; margin-bottom: 14px; }
.faq details { border-bottom: 2px solid rgba(255, 255, 255, .14); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 10px 0; cursor: pointer; font: 600 18px/1.3 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 6px; border-right: 2.5px solid var(--l); border-bottom: 2.5px solid var(--l); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding: 0 0 18px; margin: 0; max-width: 40em; color: #d9d6e8; }
.faq details[open] p { animation: rise .32s cubic-bezier(.2, .8, .2, 1) both; }
.shops { display: grid; gap: 26px; }
.shops p { margin-top: 14px; max-width: 34em; color: #d9d6e8; }
.ask { display: grid; gap: 12px; align-content: start; }
.ask label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.ask input { width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 18px; background: var(--white); color: var(--ink); font: 500 16px/1.3 var(--text); caret-color: var(--v); }
.ask input:focus { outline: 4px solid var(--l); outline-offset: 0; }
.ask input::placeholder { color: #8f8aa6; opacity: 1; }
.ask-err:empty, .ask-ok:empty { display: none; }
.ask-err, .ask-ok { margin: 0; font-size: 15px; font-weight: 600; }
.ask-ok { color: var(--l); }
.foot-note { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.45; color: #b9b5cf; max-width: 44em; }

/* оплата: попередження, ім'я платника, QR, скарга */
.pay-top { min-height: 300px; }
.pay-alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 18px; background: var(--ink); font-size: 15px; line-height: 1.4; }
.pay-alert b { color: var(--l); }
.pay-fail { padding-right: 0; min-height: 0; gap: 8px; }
.pay-field { display: grid; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pay-field input { width: 100%; min-height: 54px; padding: 12px 16px; border: 0; border-radius: 18px; background: var(--white); color: var(--ink); font: 500 17px/1.3 var(--text); caret-color: var(--v); }
.pay-field input:focus { outline: 4px solid var(--l); outline-offset: 0; }
.pay-field input::placeholder { color: #8f8aa6; opacity: 1; }
.pay-err:empty { min-height: 0; margin: 0; }
.pay-hint { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.qr { max-width: 280px; margin: 6px auto 0; }
.qr svg { display: block; width: 100%; height: auto; border-radius: 18px; }
.qr p, .qr-note { font-size: 14.5px; color: var(--muted); text-align: center; }
.qr-note { margin: 10px 0 6px; }
.report summary { list-style: none; display: inline-block; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.report summary::-webkit-details-marker { display: none; }
.report form { display: grid; gap: 10px; margin-top: 8px; padding: 16px; border-radius: 22px; background: var(--white); color: var(--ink); }
.report select, .report textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #e4defa; border-radius: 14px; background: var(--white); font: 500 16px/1.4 var(--text); }
.report textarea { resize: vertical; }
.report-msg:empty { display: none; }
.report-msg { font-weight: 600; color: var(--ink); }

/* прості сторінки: керування посиланням, документи, 404 */
.plain { --r: 44px; --tilt: -2deg; }
.col { width: 100%; max-width: 640px; margin-inline: auto; padding-inline: var(--pad); }
.bar { padding: 16px 0 34px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 12px; }
.card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 20px; border-radius: 28px; background: var(--white); }
.card h1 { font: 800 28px/1.1 var(--head); letter-spacing: -.02em; }
.card h2 { font: 800 21px/1.15 var(--head); letter-spacing: -.01em; }
.card.center { text-align: center; justify-items: center; padding-block: 36px; }
.muted { color: var(--muted); }
.card .btn { width: 100%; white-space: normal; }
.btn-main { background: var(--v); color: var(--white); }
.btn-main:hover { background: var(--v-deep); }
.btn-ghost { background: #e4defa; color: var(--v-deep); }
.btn-danger { background: var(--late); color: var(--white); }
.btn[disabled] { opacity: .6; }
.share { padding: 14px 16px; border-radius: 18px; background: var(--paper); font: 600 15px/1.4 var(--text); color: var(--v-deep); overflow-wrap: anywhere; }
.form label { font-size: 14px; font-weight: 600; margin-top: 4px; }
.form label.strong { font: 700 18px/1.25 var(--head); }
.form input:not([type=checkbox]), .form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid #e4defa; border-radius: 18px; background: var(--white); font: 500 16px/1.4 var(--text); caret-color: var(--v); }
.form textarea { resize: vertical; min-height: 84px; }
.form textarea[name=iban] { min-height: 0; resize: none; letter-spacing: -.01em; }
.form textarea.paste { min-height: 120px; background: var(--paper); border-style: dashed; border-color: #b9aef5; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--v); }
.form .filled { border-color: var(--ok); }
.form .or { font-size: 14px; color: var(--muted); text-align: center; }
.form .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 15px; line-height: 1.35; cursor: pointer; }
.form .check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--v); }
.parsed:empty, .err:empty, .card .ok:empty { display: none; }
.parsed p { font-size: 14.5px; line-height: 1.4; }
.err, .parsed .warn { color: #b3261e; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.ok { color: var(--ok); font-weight: 600; font-size: 15px; }
.doc { padding-top: 28px; padding-bottom: 12px; }
.doc h1 { font: 800 34px/1.05 var(--head); letter-spacing: -.02em; margin-bottom: 10px; }
.doc h2 { font: 800 21px/1.2 var(--head); letter-spacing: -.01em; margin: 30px 0 8px; }
.doc p { margin: 0 0 12px; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 12px; }
.doc a { color: var(--v-deep); font-weight: 600; text-underline-offset: 3px; }
.end { display: grid; gap: 12px; padding-top: 28px; padding-bottom: 32px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.end nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 600; }
.end nav a { padding: 8px 0; color: var(--ink); text-underline-offset: 3px; }
.end .gm-watermark { color: var(--ink); justify-self: start; }

@media (min-width: 900px) {
  .faq, .shops { margin-top: 110px; }
  .faq h2, .shops h2 { font-size: 52px; margin-bottom: 22px; }
  .faq { max-width: 1160px; }
  .faq summary { font-size: 21px; min-height: 68px; }
  .faq details p, .shops p { font-size: 19px; }
  .shops { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .mine-sec { padding-top: 80px; }
  .mine-sec h2 { font-size: 30px; }
  .plain { --r: 60px; --tilt: -1.2deg; }
  .stack, .doc { padding-top: 44px; }
}

/* ============================================================ РУХ
   Усе тут - одноразова поява або відгук на дію. Прихований стан є лише всередині @keyframes,
   тож без анімацій (вимкнений рух, старий браузер) вміст стоїть на місці й повністю видимий. */
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: translateY(10px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes linkin { from { transform: translateY(-34px) rotate(-70deg); opacity: 0; } to { transform: rotate(10deg); opacity: 1; } }
@keyframes bump { 0%, 100% { transform: none; } 40% { transform: scale(1.09); } }

/* головна: перший екран збирається знизу вгору, ланка падає на своє місце */
.hero h1 { animation: rise .65s cubic-bezier(.2, .8, .2, 1) both; }
.hero .lead { animation: rise .65s cubic-bezier(.2, .8, .2, 1) .08s both; }
.make { animation: rise .65s cubic-bezier(.2, .8, .2, 1) .2s both; }
.make-link { animation: linkin .8s cubic-bezier(.3, 1.5, .5, 1) .45s both; }
/* переписка: репліки з'являються по черзі, як у справжньому чаті */
.thread .b { transform-origin: 0 100%; }
.thread .b.me { transform-origin: 100% 100%; }
.thread.in .b { animation: pop .42s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i, 0) * .3s + .1s); }
[data-in].in { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }

/* оплата: сума, отримувач і кнопка стоять одразу; хвиля двічі показує головну дію, банки з'являються по черзі */
.pay-top .btn::after { animation: ring 1.8s ease-out 1.1s 2; }
.bank { animation: rise .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.bank:nth-child(1) { animation-delay: .12s; } .bank:nth-child(2) { animation-delay: .18s; }
.bank:nth-child(3) { animation-delay: .24s; } .bank:nth-child(4) { animation-delay: .3s; }
.pay-rest:target .tile { animation: bump .5s cubic-bezier(.3, 1.5, .5, 1) .25s; }
.req[open] .req-list, .req[open] > .btn { animation: rise .32s cubic-bezier(.2, .8, .2, 1) both; }
.copy.ok { animation: bump .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .make-field::before { display: none; }
}
