.payment-main {
  min-height: calc(100vh - 80px);
  padding: 108px 20px 72px;
  background: #f5f8fc;
}

.payment-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d9e4f2;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(10, 31, 68, 0.08);
  overflow: hidden;
}

.payment-head {
  padding: 34px 34px 24px;
  border-bottom: 1px solid #e4edf7;
}

.payment-head p {
  margin: 0 0 8px;
  color: #4b6b97;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-head h1 {
  margin: 0;
  color: #001f55;
  font-size: 30px;
  line-height: 1.25;
}

.payment-body {
  padding: 30px 34px 34px;
}

.payment-summary {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eef3fa;
  color: #4c6385;
}

.payment-row strong {
  color: #001f55;
  text-align: right;
}

.payment-amount {
  margin: 22px 0 28px;
  padding: 22px;
  border-radius: 12px;
  background: #edf6ff;
  color: #001f55;
}

.payment-amount span {
  display: block;
  margin-bottom: 6px;
  color: #41638e;
  font-size: 14px;
  font-weight: 700;
}

.payment-amount strong {
  font-size: 32px;
  line-height: 1;
}

.payment-message {
  margin: 0 0 18px;
  color: #4c6385;
  line-height: 1.65;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-button,
.payment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid #001f55;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.payment-button {
  background: #001f55;
  color: #fff;
}

.payment-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.payment-link {
  background: #fff;
  color: #001f55;
}

.payment-state {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff6e6;
  color: #7a4a00;
  line-height: 1.55;
}

.payment-state[data-type="success"] {
  background: #eaf8f0;
  color: #0c6b3d;
}

.payment-state[data-type="error"] {
  background: #fff0f0;
  color: #a02020;
}

@media (max-width: 640px) {
  .payment-main {
    padding: 84px 14px 48px;
  }

  .payment-head,
  .payment-body {
    padding-left: 22px;
    padding-right: 22px;
  }

  .payment-head h1 {
    font-size: 24px;
  }

  .payment-row {
    display: block;
  }

  .payment-row strong {
    display: block;
    margin-top: 5px;
    text-align: left;
  }

  .payment-actions {
    display: grid;
  }
}
