:root {
  --bg: #0a1628;
  --bg-deep: #07101c;
  --gold: #d4af6a;
  --gold-bright: #e8c878;
  --gold-dark: #b8923e;
  --text: #ffffff;
  --muted: rgba(190, 200, 220, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --font-display: "Playfair Display", Georgia, "Iowan Old Style", serif;
  --font-body: Inter, system-ui, -apple-system, sans-serif;
  --pad: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  background-color: #0a1628;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 28% 10%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.2px 1.2px at 70% 22%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 88% 14%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 18% 48%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 52% 62%, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(180deg, #0c1a30 0%, #0a1628 50%, #081220 100%);
}

.sky {
  pointer-events: none;
  position: absolute;
  top: -4%;
  right: -22%;
  z-index: 0;
  width: min(460px, 105vw);
  height: min(460px, 105vw);
  background: url("./icons/bg-celestial.svg") center / contain no-repeat;
  opacity: 0.85;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
}

/* Variant 1 — Wide column: same mobile column, wider desktop + sky in frame */
@media (min-width: 720px) {
  .wrap {
    width: min(620px, 92%);
    padding: 36px var(--pad) 48px;
  }

  .sky {
    top: -2%;
    right: 4%;
    width: min(480px, 42vw);
    height: min(480px, 42vw);
    opacity: 0.88;
  }

  h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  }

  .lead {
    font-size: 1rem;
    max-width: 38em;
  }
}

.header {
  margin-bottom: 28px;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 7vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #c9a24b, #f0d78a 45%, #d4af6a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 6px 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(190, 200, 220, 0.7);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 190, 210, 0.65);
}

h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 7.2vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.lead {
  margin: 0 0 26px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
}

.features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.features__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 106, 0.55);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(10, 22, 40, 0.35);
}

.features__icon svg {
  width: 22px;
  height: 22px;
}

.features strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.features small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.pricing {
  margin: 0 0 28px;
}

.pricing__title {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.pricing__note {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.pricing__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(160, 180, 210, 0.18);
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.4);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pricing__list li:hover {
  border-color: rgba(200, 215, 235, 0.35);
}

.pricing__list li:focus-visible {
  outline: 2px solid rgba(212, 175, 106, 0.7);
  outline-offset: 2px;
}

.pricing__item--featured {
  border-color: rgba(212, 175, 106, 0.35);
}

.pricing__item.is-selected {
  border-color: rgba(212, 175, 106, 0.75);
  background: rgba(212, 175, 106, 0.12);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 106, 0.25);
}

.pricing__meta {
  min-width: 0;
}

.pricing__meta strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.pricing__meta small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.pricing__price {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-bright);
  white-space: nowrap;
}

.pricing__byn {
  display: inline-block;
  width: 0.72em;
  height: 1em;
  margin-left: 0.06em;
  vertical-align: -0.12em;
  color: inherit;
  background-color: currentColor;
  -webkit-mask: url("./icons/currency-byn.svg") center / contain no-repeat;
  mask: url("./icons/currency-byn.svg") center / contain no-repeat;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.btn-buy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 44px 14px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #b8923e 0%, #e0c06a 48%, #c9a34f 100%);
  box-shadow:
    0 8px 24px rgba(184, 146, 62, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #14110a;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-buy:hover {
  filter: brightness(1.05);
}

.btn-buy__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  font-weight: 500;
}

.btn-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(160, 180, 210, 0.35);
  background: rgba(8, 16, 28, 0.35);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-tg[hidden] {
  display: none !important;
}

.btn-tg:hover {
  border-color: rgba(200, 215, 235, 0.5);
  background: rgba(12, 22, 38, 0.55);
}

.btn-tg__icon {
  display: grid;
  place-items: center;
}

.consent {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(160, 180, 210, 0.2);
  border-radius: 12px;
  background: rgba(6, 12, 22, 0.45);
  color: var(--muted);
  font-size: 0.8rem;
}

.consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.consent input {
  margin-top: 2px;
  accent-color: var(--gold);
}

.consent a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent--error {
  border-color: rgba(232, 200, 120, 0.75);
  box-shadow: 0 0 0 1px rgba(232, 200, 120, 0.25);
}

.consent--error .consent__text {
  color: #f0d9a0;
  font-weight: 600;
}

.consent__hint {
  display: none;
  margin: 8px 0 0 26px;
  color: #f0d9a0;
  font-weight: 600;
  font-size: 0.78rem;
}

.consent--error .consent__hint {
  display: block;
}

.pay {
  margin: 0 0 24px;
  text-align: center;
}

.pay__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: rgba(190, 200, 220, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
}

.pay__logos {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pay__logos-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.pay__methods {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 720px) {
  .pay__logos-card {
    padding: 14px 18px;
  }

  .pay__methods {
    max-height: 44px;
  }
}

.pwa {
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid rgba(160, 180, 210, 0.18);
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.45);
}

.pwa h2 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.pwa .btn-tg {
  font-family: var(--font-body);
  font-weight: 500;
}

.pwa p {
  margin: 0 0 12px;
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.82rem;
}

.pwa__hint {
  display: none;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.pwa__hint.is-on {
  display: block;
}

.footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.footer__merchant {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 58%;
  color: rgba(200, 210, 225, 0.8);
  font-size: 0.72rem;
  line-height: 1.35;
}

.footer__merchant strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  color: rgba(200, 210, 225, 0.75);
  font-size: 0.72rem;
}

.footer__contacts a:hover {
  color: #fff;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(160, 175, 195, 0.65);
  font-size: 0.7rem;
}

.footer__links a:hover {
  color: rgba(220, 230, 245, 0.9);
}

.footer__links span {
  opacity: 0.45;
}

.legal-page {
  max-width: 640px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}

.legal-page .back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.85rem;
}

.legal-page .lead {
  color: var(--muted);
}

.legal-page .doc-meta {
  margin: 0 0 20px;
  color: rgba(190, 200, 220, 0.55);
  font-size: 0.78rem;
}

.legal-page .doc-note {
  margin: 0 0 22px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  border-radius: 10px;
  background: rgba(212, 175, 106, 0.08);
  color: rgba(232, 200, 120, 0.9);
  font-size: 0.8rem;
  line-height: 1.4;
}

.legal-page h2 {
  margin: 22px 0 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-page p {
  margin: 0 0 10px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.legal-page li {
  margin-bottom: 4px;
}

.legal-page .ph {
  color: var(--gold-bright);
  font-weight: 500;
  white-space: nowrap;
}

.legal-page .merchant {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(160, 180, 210, 0.15);
  color: rgba(190, 200, 220, 0.55);
  font-size: 0.78rem;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.72);
}

.modal__panel {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(160, 180, 210, 0.22);
  background: #0c182c;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.modal__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.modal__text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__primary {
  min-height: 48px;
}

.modal__actions .btn-tg {
  min-height: 48px;
}

.pay-page__summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  border-radius: 12px;
  background: rgba(212, 175, 106, 0.08);
}

.pay-page__summary strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1rem;
}

.pay-page__summary span {
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 1.1rem;
}

.pay-page__status {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pay-result {
  text-align: center;
}

.pay-result .back {
  display: inline-block;
  text-align: left;
  width: 100%;
}

.pay-result h1 {
  margin-top: 8px;
}

.pay-result .lead {
  margin-left: auto;
  margin-right: auto;
}

.pay-result .pay-page__summary {
  text-align: left;
}

.pay-result__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 8px auto 12px;
  border-radius: 50%;
  border: 1px solid rgba(160, 180, 210, 0.3);
  color: rgba(200, 210, 225, 0.85);
  font-size: 1.4rem;
  font-weight: 600;
}

.pay-result__icon--ok {
  border-color: rgba(80, 180, 120, 0.55);
  background: rgba(60, 140, 90, 0.18);
  color: #8fdfb0;
}

.pay-result__icon--fail {
  border-color: rgba(220, 120, 100, 0.55);
  background: rgba(160, 60, 50, 0.18);
  color: #f0a090;
}

.pay-result__actions {
  margin-top: 8px;
}

.pay-result__actions .btn-buy,
.pay-result__actions .btn-tg {
  text-decoration: none;
}
