:root{
  --bg1:#fff6f2;
  --bg2:#fff9ef;
  --bg3:#f8f4ff;
  --card:#ffffffcc;
  --line:rgba(125, 80, 180, .10);
  --text:#3e2459;
  --muted:#7a648f;
  --accent:#ff6f61;
  --accent2:#ffb347;
  --accent3:#7c5cff;
  --soft:#f7ecff;
  --ok:#25a56a;
  --danger:#d14b6d;
}

*{box-sizing:border-box}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, #ffe8df 0%, transparent 28%),
    radial-gradient(circle at top right, #fff0cc 0%, transparent 24%),
    radial-gradient(circle at bottom right, #efe4ff 0%, transparent 26%),
    linear-gradient(135deg, var(--bg1), var(--bg2) 48%, var(--bg3));
  color:var(--text);
  margin:0;
  min-height:100vh;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.hero {
  text-align:center;
  padding: 18px 12px 10px;
}

.hero-badge {
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.65);
  color:var(--accent3);
  font-weight:700;
  font-size:14px;
  box-shadow:0 10px 28px rgba(124,92,255,.08);
}

.hero h1 {
  margin:18px 0 12px;
  font-size:42px;
  line-height:1.08;
  color:#4a216d;
}

.hero p {
  margin:0 auto;
  max-width:760px;
  font-size:18px;
  line-height:1.6;
  color:var(--muted);
}

.occasion-list {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:20px 0 0;
}

.occasion-chip {
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.8);
  border:1px solid rgba(125,80,180,.10);
  color:#6c4f8f;
  font-size:14px;
  box-shadow:0 8px 22px rgba(124,92,255,.05);
}

.balanceBar {
  margin:24px auto 0;
  max-width:760px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.balanceBarItem {
  background:#fff;
  border:1px solid rgba(125,80,180,.10);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 28px rgba(88,52,125,.06);
}

.balanceBarLabel {
  display:block;
  font-size:13px;
  color:#8a769f;
  margin-bottom:8px;
}

.balanceBarValue {
  font-size:28px;
  font-weight:800;
  color:#4a216d;
}

.balanceBarValue.free {
  color:#ff7a6e;
}

.pricingSection {
  margin:28px 0 10px;
  background:linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,247,237,.88));
  border:1px solid rgba(125,80,180,.08);
  border-radius:28px;
  padding:24px;
  box-shadow:0 18px 44px rgba(88,52,125,.08);
}

.pricingTop h2 {
  margin:8px 0 10px;
  color:#4a216d;
  font-size:32px;
}

.pricingTop p {
  margin:0;
  color:#7b6690;
  line-height:1.7;
}

.pricingEyebrow {
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(125,80,180,.10);
  color:#7c5cff;
  font-size:13px;
  font-weight:700;
}

.pricingGrid {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
  margin-top:22px;
}

.priceCard {
  position:relative;
  background:#fff;
  border:1px solid rgba(125,80,180,.10);
  border-radius:22px;
  padding:22px 18px 18px;
  box-shadow:0 14px 32px rgba(88,52,125,.06);
  display:flex;
  flex-direction:column;
  min-height:280px;
}

.freeCard {
  background:linear-gradient(135deg, #fff3ef, #fff8df);
  border:1px solid rgba(255,122,110,.18);
}

.freeCardBadge {
  display:inline-block;
  align-self:flex-start;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  color:#ff7a6e;
  font-size:12px;
  font-weight:800;
  border:1px solid rgba(255,122,110,.14);
  margin-bottom:16px;
}

.priceCardDiscount {
  position:absolute;
  top:14px;
  right:14px;
  padding:6px 10px;
  border-radius:999px;
  background:#ffefe9;
  color:#ff6f61;
  font-size:12px;
  font-weight:800;
}

.priceCardTitle {
  font-size:20px;
  font-weight:800;
  color:#4a216d;
  margin-bottom:12px;
}

.priceOld {
  font-size:16px;
  color:#b49ebf;
  text-decoration:line-through;
  min-height:24px;
}

.priceCurrent,
.freePrice {
  font-size:34px;
  font-weight:900;
  color:#4a216d;
  margin:6px 0 10px;
}

.freePrice {
  color:#ff7a6e;
}

.priceCardSub {
  color:#7a648f;
  line-height:1.6;
  font-size:14px;
  margin-top:auto;
  margin-bottom:18px;
}

.buyTariffBtn {
  width:100%;
}

.paymentStatusBar {
  display:none;
  margin:18px 0;
  background:#fff7e8;
  border:1px solid rgba(255,179,71,.35);
  color:#9c6118;
  border-radius:16px;
  padding:14px 16px;
  font-weight:700;
}

.paymentStatusBar.show {
  display:block;
}

.paymentStatusBar.success {
  background:#eefaf3;
  border-color:rgba(37,165,106,.24);
  color:#1f8d5a;
}

.card {
  background:var(--card);
  backdrop-filter: blur(10px);
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  margin:18px 0;
  box-shadow: 0 16px 40px rgba(88, 52, 125, .08);
}

.card h2 {
  margin:0 0 8px;
  font-size:28px;
  color:#4a216d;
}

.card-sub {
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.55;
  font-size:15px;
}

textarea, input {
  width:100%;
  border-radius:16px;
  border:1px solid rgba(125,80,180,.14);
  background:#fff;
  color:var(--text);
  padding:14px 16px;
  outline:none;
  font-size:15px;
  transition:border-color .15s ease, box-shadow .15s ease;
}

textarea:focus, input:focus {
  border-color:rgba(124,92,255,.42);
  box-shadow:0 0 0 4px rgba(124,92,255,.08);
}

textarea {
  min-height:160px;
  resize:vertical;
}

button {
  border:0;
  border-radius:16px;
  padding:14px 18px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff;
  font-weight:800;
  cursor:pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 14px 28px rgba(255,111,97,.28);
  font-size:15px;
}

button:hover { transform: translateY(-1px); }

button:disabled {
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}

button.secondary {
  background:linear-gradient(135deg, #8b7dff, #6d5cff);
  box-shadow:0 14px 28px rgba(109,92,255,.24);
}

button.danger {
  background:linear-gradient(135deg, #ff8a7a, #ff5d73);
  box-shadow:0 14px 28px rgba(255,93,115,.22);
}

.row {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.row > div {
  flex:1 1 240px;
}

.status {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  background:#fff;
  border:1px dashed rgba(125,80,180,.18);
  display:flex;
  align-items:center;
  gap:12px;
  min-height:58px;
  transition: all .2s ease;
  margin-top:14px;
}

.status.active {
  border-color: rgba(124,92,255,.38);
  box-shadow: 0 0 0 1px rgba(124,92,255,.08), 0 0 24px rgba(124,92,255,.05) inset;
}

.spinner {
  width:18px;
  height:18px;
  border-radius:50%;
  border:3px solid rgba(124,92,255,.16);
  border-top-color:#7c5cff;
  animation: spin 1s linear infinite;
  flex: 0 0 auto;
  display:none;
}

.status.active .spinner { display:block; }

.statusText {
  font-weight:700;
  color:#553172;
}

.statusHint {
  margin-top:8px;
  font-size:13px;
  color:#8b739f;
}

.dots::after {
  content:'';
  display:inline-block;
  width:24px;
  text-align:left;
  animation: dots 1.2s steps(4, end) infinite;
  overflow:hidden;
  vertical-align:bottom;
}

.pulse {
  animation: pulse 1.4s ease-in-out infinite;
}

.loadingOverlay {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(70, 33, 100, .28);
  backdrop-filter: blur(5px);
  z-index:999;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.loadingOverlay.show { display:flex; }

.loadingBox {
  width:min(460px, 100%);
  background:#fff;
  border:1px solid rgba(125,80,180,.12);
  border-radius:24px;
  padding:26px 22px;
  text-align:center;
  box-shadow:0 24px 70px rgba(82, 48, 117, .18);
}

.bigSpinner {
  width:46px;
  height:46px;
  border-radius:50%;
  border:4px solid rgba(124,92,255,.12);
  border-top-color:#7c5cff;
  animation: spin 1s linear infinite;
  margin:0 auto 16px;
}

.overlayTitle {
  font-size:22px;
  font-weight:800;
  margin-bottom:8px;
  color:#4a216d;
}

.overlayText {
  color:#785e90;
  line-height:1.6;
  font-size:15px;
}

.overlayTime {
  margin-top:14px;
  display:inline-block;
  background:#fff4e7;
  color:#b26a18;
  border:1px solid rgba(255,179,71,.35);
  padding:9px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

.presetWrap {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.presetBtn {
  background:#fff;
  color:#5b3f79;
  border:1px solid rgba(125,80,180,.14);
  box-shadow:none;
  padding:12px 16px;
  min-width:132px;
}

.presetBtn.active {
  background:linear-gradient(135deg, #ff7a6e, #ffb25b);
  color:#fff;
  border-color:transparent;
  box-shadow:0 10px 26px rgba(255,122,110,.22);
}

.presetTitle {
  margin: 8px 0 8px;
  font-size:15px;
  font-weight:700;
  color:#5a3477;
}

.selectionInfo {
  margin-top:12px;
  font-size:14px;
  color:#7a648f;
  background:#fff;
  border:1px solid rgba(125,80,180,.10);
  border-radius:14px;
  padding:12px 14px;
}

.helper-box {
  margin-top:12px;
  background:linear-gradient(135deg, rgba(255,240,231,.9), rgba(245,239,255,.9));
  border:1px solid rgba(125,80,180,.08);
  border-radius:16px;
  padding:14px;
  color:#75598d;
  line-height:1.55;
  font-size:14px;
}

.helper-box b { color:#4f2a6b; }

.hr {
  height:1px;
  background: rgba(125,80,180,.10);
  margin: 14px 0;
}

.muted { color:var(--muted); font-size:14px; }

a { color:#7c5cff; }

audio {
  border-radius:16px;
  margin-top:4px;
}

.footer-note {
  text-align:center;
  color:#866f9c;
  font-size:13px;
  padding:8px 0 16px;
}

.contactModalOverlay {
  position:fixed;
  inset:0;
  background:rgba(60, 25, 89, .42);
  backdrop-filter: blur(6px);
  z-index:1100;
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:18px;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
}

.contactModalOverlay.show {
  display:flex;
}

.contactModal {
  width:min(560px, 100%);
  background:#fff;
  border-radius:24px;
  border:1px solid rgba(125,80,180,.12);
  box-shadow:0 24px 80px rgba(82, 48, 117, .22);
  overflow:hidden;
  margin-top:18px;
  margin-bottom:18px;
  max-height:calc(100vh - 36px);
  overflow-y:auto;
}

.contactModalWide {
  width:min(980px, 100%);
}

.contactModalHead {
  padding:22px 22px 10px;
  position:sticky;
  top:0;
  background:#fff;
  z-index:2;
}

.contactModalTitle {
  font-size:26px;
  font-weight:800;
  color:#4a216d;
  margin:0 40px 8px 0;
}

.contactModalSub {
  margin:0;
  color:#7b6690;
  line-height:1.6;
  font-size:15px;
}

.contactModalClose {
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:#f5efff;
  color:#6d5cff;
  box-shadow:none;
  padding:0;
  font-size:22px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.contactModalClose.hidden {
  display:none;
}

.contactModalBody {
  padding:8px 22px 22px;
}

.modalChoiceGrid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.modalChoiceCard {
  background:#fff;
  border:1px solid rgba(125,80,180,.10);
  border-radius:22px;
  padding:18px;
}

.modalChoiceCardAccent {
  background:linear-gradient(135deg, #fff9f1, #fffefb);
}

.modalChoiceTitle {
  font-size:22px;
  font-weight:800;
  color:#4a216d;
  margin-bottom:10px;
}

.modalChoiceText {
  color:#7b6690;
  line-height:1.6;
  font-size:14px;
  margin-bottom:16px;
}

.modalTariffGrid {
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.modalTariffCard {
  position:relative;
  background:#fff;
  border:1px solid rgba(125,80,180,.10);
  border-radius:18px;
  padding:16px;
}

.modalTariffBadge {
  position:absolute;
  top:12px;
  right:12px;
  padding:5px 9px;
  border-radius:999px;
  background:#ffefe9;
  color:#ff6f61;
  font-size:11px;
  font-weight:800;
}

.modalTariffTitle {
  font-size:18px;
  font-weight:800;
  color:#4a216d;
  margin-bottom:6px;
}

.modalTariffOld {
  font-size:14px;
  color:#b49ebf;
  text-decoration:line-through;
  min-height:20px;
}

.modalTariffPrice {
  font-size:28px;
  font-weight:900;
  color:#4a216d;
  margin:4px 0;
}

.modalTariffSub {
  color:#7a648f;
  font-size:13px;
  margin-bottom:12px;
}

.fieldLabel {
  display:block;
  font-size:14px;
  font-weight:700;
  color:#583575;
  margin:0 0 8px;
}

.checkboxWrap {
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:14px;
  background:#faf7ff;
  border:1px solid rgba(125,80,180,.10);
  border-radius:16px;
  padding:14px;
}

.checkboxWrap input[type="checkbox"] {
  width:18px;
  height:18px;
  margin-top:2px;
  flex:0 0 auto;
}

.checkboxText {
  color:#6f5a86;
  font-size:14px;
  line-height:1.55;
}

.contactModalActions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.contactInfoBar {
  margin-top:12px;
  background:#fff;
  border:1px solid rgba(125,80,180,.10);
  border-radius:14px;
  padding:12px 14px;
  color:#6d5a82;
  font-size:14px;
  display:none;
}

.contactInfoBar.show {
  display:block;
}

.smallNote {
  margin-top:10px;
  font-size:13px;
  color:#8a769f;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes dots {
  0%   { content:''; }
  25%  { content:'.'; }
  50%  { content:'..'; }
  75%  { content:'...'; }
  100% { content:''; }
}

@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:.78; transform: scale(1.01); }
}

@media (max-width: 992px) {
  .pricingGrid {
    grid-template-columns:repeat(2, 1fr);
  }

  .modalChoiceGrid {
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size:32px; }
  .hero p { font-size:16px; }
  .card { padding:18px; }
  .card h2 { font-size:24px; }
  .presetBtn { min-width:unset; flex:1 1 42%; }
  .contactModalTitle { font-size:22px; }
  .balanceBar { grid-template-columns:1fr; }
  .pricingGrid { grid-template-columns:1fr; }
  .pricingTop h2 { font-size:26px; }

  .contactModalOverlay {
    padding:10px;
  }

  .contactModal {
    margin-top:0;
    margin-bottom:0;
    max-height:calc(100vh - 20px);
    border-radius:20px;
  }

  .contactModalHead,
  .contactModalBody {
    padding-left:16px;
    padding-right:16px;
  }

  .modalChoiceCard {
    padding:14px;
  }

  .contactModalActions button {
    width:100%;
  }
}