﻿:root {
  --surface: #ffffff;
  --line: #e4edf1;
  --ink: #1c2430;
  --muted: #5f6d78;
  --brand: #1cb0d3;
  --brand-dark: #1097b5;
  --ok: #2d8c52;
  --warn: #a06a13;
  --err: #b53f3f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(28,176,211,.10), rgba(28,176,211,0) 240px), #f7fbfd;
}

.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 18px 28px;
}

.hero {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid rgba(28,176,211,.14);
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
}

.hero--compact {
  margin-bottom: 10px;
}

.hero-logo {
  width: 88px;
  height: auto;
  display: block;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.hero-topline strong {
  font-size: 23px;
  line-height: 1;
}

.hero-topline span {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1;
  padding-left: 10px;
  border-left: 2px solid var(--brand);
  white-space: nowrap;
}

h1 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 700;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.34;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .05);
  padding: 18px;
}

.pay-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.pay-form label {
  display: grid;
  gap: 6px;
}

.pay-form span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.pay-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8e2e8;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}

.pay-form input:focus {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 4px rgba(28,176,211,.16);
}

.pay-form input.is-readonly {
  background: #f2f7fa;
  color: #4b5563;
}

.address-input::placeholder {
  font-size: 12px;
  color: #85939d;
}

button {
  appearance: none;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 16px;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}

button:hover { background: var(--brand-dark); }
button:disabled {
  opacity: .7;
  cursor: wait;
}

.form-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.form-actions button {
  width: 100%;
}

.btn-secondary {
  background: #eef5f8;
  color: #32505f;
  border: 1px solid #d6e5ec;
}

.btn-secondary:hover {
  background: #e6f0f4;
}

.notice {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.notice.ok { color: var(--ok); }
.notice.warn { color: var(--warn); }
.notice.err { color: var(--err); }

.meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.meta-item {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  position: relative;
  font-size: 13px;
  line-height: 1.34;
}

.meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.meta-item span {
  display: block;
}

.result-box {
  display: grid;
  gap: 8px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #ececec;
}

.result-row:first-child { padding-top: 0; }
.result-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.result-key { color: var(--muted); }
.result-value {
  text-align: right;
  font-weight: 700;
}

.result-actions {
  margin-top: 14px;
}

.back-link {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(16,151,181,.25);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 14px 18px;
  }

  .hero-logo {
    width: 96px;
  }

  .hero-copy {
    min-height: 96px;
  }

  .hero-topline strong {
    font-size: 24px;
  }

  .hero-topline span {
    font-size: 11px;
  }

  h1 {
    font-size: 24px;
  }

  .lead {
    font-size: 14px;
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 8px 10px 20px;
  }

  .hero {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .hero-logo {
    width: 72px;
  }

  .hero-copy {
    min-height: 72px;
  }

  .hero-topline {
    gap: 8px;
    margin-bottom: 3px;
  }

  .hero-topline strong {
    font-size: 20px;
  }

  .hero-topline span {
    font-size: 10px;
    padding-left: 8px;
  }

  h1 {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .lead {
    font-size: 12px;
    line-height: 1.3;
  }

  .card {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .pay-form {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .pay-form span {
    font-size: 14px;
  }

  .address-input::placeholder {
    font-size: 11px;
  }

  .result-row {
    display: grid;
    gap: 3px;
  }

  .result-value {
    text-align: left;
  }
}

.hero,
.card {
  position: relative;
  z-index: 1;
}




