/* Страница оплаты — калькулятор стола */

.page-hero {
  padding: 88px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201, 164, 92, .08), transparent 55%),
    var(--bg-2);
}
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 620px; }

/* --- Калькулятор --- */

.calc {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--card);
  border: 1px solid var(--gold-dim);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fire), var(--gold), var(--neon));
  opacity: .8;
}

.calc__label {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 8px;
}
.stepper__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  font-size: 26px;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1;
}
.stepper__btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(201, 164, 92, .08);
  transform: scale(1.06);
}
.stepper__btn:disabled { opacity: .3; cursor: default; }

.stepper__value {
  text-align: center;
  min-width: 180px;
}
.stepper__num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--text);
}
.stepper__word { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Сумма */
.calc__total {
  text-align: center;
  margin: 26px 0 6px;
}
.calc__amount {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 72px);
  color: var(--gold);
  line-height: 1;
  transition: text-shadow .3s ease;
}
.calc__amount.flash { animation: amountFlash .5s ease; }
@keyframes amountFlash {
  0% { text-shadow: 0 0 0 rgba(201,164,92,0); }
  40% { text-shadow: 0 0 34px rgba(201,164,92,.85); }
  100% { text-shadow: 0 0 0 rgba(201,164,92,0); }
}
.calc__perhead { color: var(--muted); font-size: 15px; }
.calc__perhead b { color: var(--text); font-weight: 500; }

/* Добавки */
.extras {
  margin-top: 26px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}
.extras__title {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}
.extras__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  user-select: none;
}
.extras__row:hover { border-color: var(--gold-dim); }
.extras__row.on { border-color: var(--gold); background: rgba(201,164,92,.06); }
.extras__row input { display: none; }
.extras__name { display: flex; align-items: center; gap: 12px; }
.extras__emoji { font-size: 20px; }
.extras__check {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 13px;
  transition: all .2s ease;
  flex: none;
}
.extras__row.on .extras__check { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.extras__price { color: var(--gold); font-weight: 600; }

/* Кнопка оплаты */
.pay-cta { margin-top: 26px; text-align: center; }
.pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 24px rgba(201, 164, 92, .25);
}
.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(201, 164, 92, .4);
}
.pay-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.pay-note a { color: var(--muted); text-decoration: underline; }
.pay-note a:hover { color: var(--gold); }

.copy-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.copy-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
  font-family: var(--font-body);
}

/* --- Таблица цен --- */

.price-table {
  max-width: 640px;
  margin: 56px auto 0;
}
.price-table h2 { font-size: 26px; margin-bottom: 18px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.price-cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
}
.price-cell__n { color: var(--muted); font-size: 13px; }
.price-cell__v {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  margin-top: 4px;
}
@media (max-width: 560px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Мероприятия и мелочи --- */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.note-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.note-card h3 { font-size: 19px; margin-bottom: 8px; }
.note-card p { color: var(--muted); font-size: 15px; }
.note-card .hall__icon-svg { margin-bottom: 10px; }
.note-card--gold .hall__icon-svg { color: var(--gold); --icon: url("../img/icons/candy.svg?v=3"); }
.note-card--fire .hall__icon-svg { color: var(--fire); --icon: url("../img/icons/candle.svg?v=3"); }
.note-card--blood .hall__icon-svg { color: var(--blood); --icon: url("../img/icons/eye.svg?v=3"); }

.steps {
  max-width: 640px;
  margin: 56px auto 0;
  counter-reset: step;
}
.steps h2 { font-size: 26px; margin-bottom: 18px; }
.step {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step:last-child { border-bottom: none; }
.step__n {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  flex: none;
  width: 34px;
}
.step p { color: var(--muted); font-size: 15px; }
.step p b { color: var(--text); font-weight: 500; }
