/* Универсальная страница оплаты — /pay/[productId]. */

body { background: var(--bg); }

.pay {
  min-height: 100vh;
  padding: 120px 0 80px;
}

.pay__container { max-width: 1100px; }

.pay__back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.pay__back:hover { color: var(--gold); }

.pay__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 880px) {
  .pay__grid { grid-template-columns: 1fr; gap: 32px; }
  .pay { padding: 100px 0 60px; }
}

/* ─── Левая колонка: описание заказа ─── */
.pay__summary {
  position: sticky;
  top: 100px;
  padding: 36px;
  background: var(--bg-2, rgba(255,255,255,0.02));
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 18px;
}

@media (max-width: 880px) {
  .pay__summary { position: static; padding: 28px 22px; }
}

.pay__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.pay__title {
  font-family: 'Forum', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.pay__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pay__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 24px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.08));
}

.pay__amount-value {
  font-family: 'Forum', Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--text);
  font-weight: 400;
}

.pay__amount-currency {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.pay__includes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pay__includes li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.pay__includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 600;
}

/* ─── Правая колонка: форма ─── */
.pay__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pay__field { display: block; }

.pay__field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pay__field-hint {
  color: var(--text-muted);
  opacity: 0.6;
  font-weight: 400;
}

.pay__field input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line, rgba(255,255,255,0.1));
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  border-color: #988b60;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pay__field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.05);
}

.pay__field input::placeholder { color: var(--text-muted); opacity: 0.5; }

.pay__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.pay__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.pay__check a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.pay__check a:hover { border-color: var(--gold); }

.pay__submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--gold, #d4af37) 0%, #b8941e 100%);
  color: #1a0808;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.pay__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.4);
}

.pay__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.pay__submit-amount {
  font-family: 'Forum', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.pay__error {
  padding: 14px 18px;
  background: rgba(196, 30, 46, 0.1);
  border: 1px solid rgba(196, 30, 46, 0.3);
  border-radius: 10px;
  color: #e63946;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pay__loading {
  padding: 14px 18px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  color: var(--gold);
  font-size: 0.9rem;
  text-align: center;
}

.pay__legal {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  opacity: 0.7;
}
