/* =========================================================
   Conferma Ufficiale del Pagamento — Avant Group
   Дизайн-система avant3: Golos Text, синий #2f4bf0,
   «бумажный» фон, белые карточки, мягкие тени.
   ========================================================= */

@font-face {
  font-family: "Golos Text";
  src: url("../assets/golos-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../assets/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --blue: #2f4bf0;
  --blue-600: #243bd0;
  --blue-700: #1c2fae;
  --blue-050: #eef1ff;
  --blue-100: #dfe4ff;
  --ink: #0d1b34;
  --ink-2: #1b2a44;
  --muted: #5c667a;
  --muted-2: #7c8596;
  --line: #e2e5ec;
  --line-strong: #cfd5e2;
  --paper: #f5f4ef;
  --paper-2: #faf9f5;
  --white: #fff;
  --green: #00a878;
  --green-050: #e6f7f1;
  --gold: #f4b740;
  --navy: #0a1730;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 6px rgba(13, 27, 52, .04);
  --shadow-md: 0 18px 45px rgba(13, 27, 52, .09);
  --shadow-lg: 0 38px 80px rgba(13, 27, 52, .16);
}

*,
*::before,
*::after { box-sizing: border-box; max-width: 100%; }

html {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(90rem 50rem at 85% -10%, rgba(47, 75, 240, .07), transparent 60%),
    radial-gradient(70rem 40rem at -10% 30%, rgba(47, 75, 240, .05), transparent 55%),
    var(--paper);
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  padding: 24px 0 48px;
}

img, svg { display: block; }
img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--white); }

/* ---------- container ---------- */
.container {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(13, 27, 52, .06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-700) 0%, var(--blue) 45%, var(--blue-100) 100%);
  z-index: 1;
}

/* ---------- header ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px 22px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  flex: none;
}
.brand-tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-050);
}

/* ---------- main ---------- */
.main-content { padding: 30px 30px 26px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-dash {
  width: 26px;
  height: 2px;
  background: var(--blue);
  flex: none;
}
.main-title {
  margin: 0;
  font-size: clamp(26px, 5.4vw, 38px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.service-description {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.service-description strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- bank details card ---------- */
.transfer-content { margin-top: 24px; }
.bank-details {
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--blue-050), var(--white) 85%);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
}
.bank-details__caption {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.bank-data { display: flex; flex-direction: column; }
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.detail-row:last-of-type { border-bottom: 0; }
.detail-row .label {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.value-with-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-align: right;
}
.value.iban-value { letter-spacing: .02em; }

/* copy button */
.copy-icon-btn {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--muted);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease;
}
.copy-icon-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-050);
}
.copy-icon-btn:active { transform: scale(.94); }
.copy-icon-btn.copied {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

/* inline instruction button */
.instruction-btn-inline {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px dashed var(--gold);
  border-radius: 10px;
  background: #fff6e3;
  color: #7a5406;
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.instruction-btn-inline:hover {
  border-style: solid;
  background: #fff0cd;
  transform: translateY(-1px);
}

/* ---------- manager section ---------- */
.manager-section {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.manager-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.manager-subtitle {
  font-size: 13.5px;
  color: var(--muted);
}
.manager-btn-link {
  margin-top: 8px;
  text-decoration: none;
  display: flex;
  justify-content: center;
}
.copy-btn.send-btn.manager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(47, 75, 240, .2);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.copy-btn.send-btn.manager-btn:hover {
  border-color: var(--blue-600);
  background: var(--blue-600);
  box-shadow: 0 12px 26px rgba(47, 75, 240, .28);
  transform: translateY(-1px);
}
.copy-btn.send-btn.manager-btn:disabled {
  cursor: default;
  transform: none;
}

/* ---------- bottom: seal + supervisory ---------- */
.bottom-section { margin-top: 26px; }
.security-and-seal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.official-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--blue-100);
  border-radius: 12px;
  background: var(--blue-050);
}
.seal-badge__mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.seal-badge__text { display: flex; flex-direction: column; line-height: 1.35; }
.seal-badge__text b {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--blue-700);
}
.seal-badge__text em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.seal-badge__text i {
  font-style: normal;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: var(--muted-2);
}
.official-seal { flex: none; }
.official-seal .bank-stamp { height: 52px; width: auto; }

/* ---------- footer ---------- */
.foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.foot p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
  text-align: center;
}
.foot b { color: var(--muted); font-weight: 700; }

/* ---------- instruction modal ---------- */
.zmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.zmodal.active { opacity: 1; pointer-events: auto; }
.zmodal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 23, 48, .55);
  backdrop-filter: blur(4px);
}
.zmodal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(88vh, 840px);
  display: flex;
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
}
.zmodal.active .zmodal-dialog { transform: none; }
.zmodal.closing { opacity: 0; pointer-events: none; }
.zmodal.closing .zmodal-dialog { transform: translateY(16px) scale(.98); }
.zmodal-card {
  width: 100%;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px 24px;
}

.zmodal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.zmodal-header-content { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.zmodal-titles { display: flex; flex-direction: column; min-width: 0; }
.zmodal-badge {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff6e3;
  color: #b3770a;
}
.zmodal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.zmodal-header p {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.zmodal-close {
  width: 38px;
  height: 38px;
  flex: none;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color .15s ease;
}
.zmodal-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transition: background-color .15s ease;
}
.zmodal-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.zmodal-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.zmodal-close:hover { border-color: var(--blue); }
.zmodal-close:hover span { background: var(--blue); }

.zmodal-body { margin-top: 20px; }
.zmodal-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid #f3ddab;
  border-radius: 12px;
  background: #fff6e3;
}
.zmodal-alert-icon { color: #b3770a; flex: none; margin-top: 1px; }
.zmodal-alert-text {
  font-size: 13px;
  line-height: 1.55;
  color: #7a5406;
}
.zmodal-alert-text strong { font-weight: 800; }

.zmodal-steps {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.zmodal-step { display: flex; gap: 14px; }
.zmodal-step-badge {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 800;
}
.zmodal-step-text { min-width: 0; }
.zmodal-step-text h4 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.zmodal-step-text p {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.zmodal-banks { color: var(--muted) !important; }
.zmodal-highlight {
  color: var(--blue-700) !important;
  font-weight: 600;
}
.zmodal-code-block {
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.zmodal-code-label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.zmodal-code {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 14px;
  border: 1.5px dashed var(--blue);
  border-radius: 10px;
  background: var(--blue-050);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--blue-700);
}
.zmodal-code-warn {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.zmodal-bottom { margin-top: 20px; }
.zmodal-info-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.zmodal-info-icon { font-size: 18px; flex: none; line-height: 1.3; }
.zmodal-info-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.zmodal-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.zmodal-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(47, 75, 240, .2);
  transition: background-color .16s ease, transform .16s ease;
}
.zmodal-btn:hover { background: var(--blue-600); transform: translateY(-1px); }
.zmodal-btn span { display: inline-block; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { padding: 12px 0 32px; }
  .container { width: calc(100% - 20px); }
  .header { padding: 20px 18px 16px; }
  .main-content { padding: 22px 18px 20px; }
  .brand-logo { height: 24px; }
  .brand-tag { padding: 6px 10px; font-size: 9.5px; }
  .main-title { font-size: 26px; }
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .value-with-copy { width: 100%; justify-content: space-between; }
  .value { text-align: left; }
  .security-and-seal-row {
    flex-direction: column;
    text-align: center;
  }
  .official-seal-badge { flex-direction: column; text-align: center; }
  .seal-badge__text { align-items: center; }
  .manager-btn { width: 100%; }
  .zmodal-card { padding: 22px 18px 20px; }
}
@media (max-width: 380px) {
  .brand-tag { display: none; }
  .main-title { font-size: 23px; }
}
