:root {
  color-scheme: dark;
  --bg: #10051f;
  --bg-2: #1a0930;
  --panel: rgba(58, 28, 78, .72);
  --panel-2: rgba(255, 255, 255, .07);
  --text: #fff7e6;
  --muted: rgba(255, 247, 230, .74);
  --muted-2: rgba(255, 247, 230, .55);
  --gold: #f4d374;
  --gold-soft: #ffe7a5;
  --gold-2: #c88f35;
  --line: rgba(245, 211, 116, .26);
  --line-2: rgba(255, 255, 255, .11);
  --danger: #ffd2d2;
  --ok: #d9ffd9;
  --radius: 26px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .34);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 0%, rgba(251, 210, 111, .22), transparent 26%),
    radial-gradient(circle at 10% 16%, rgba(132, 69, 172, .34), transparent 34%),
    linear-gradient(180deg, #10051f 0%, #1b0a31 46%, #130720 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 221, 130, .44) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, .18) 0 1px, transparent 1.4px);
  background-size: 92px 92px, 57px 57px;
  opacity: .35;
  z-index: -1;
}
body.tg-light {
  color-scheme: dark;
}

.miniapp-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 0 calc(94px + env(safe-area-inset-bottom));
}

.hero-screen {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  background: #170725;
  border-bottom: 1px solid rgba(245, 211, 116, .16);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-irina-mobile.webp");
  background-size: cover;
  background-position: 50% 0;
  transform: scale(1.015);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 5, 28, .22) 0%, rgba(14, 5, 28, .1) 48%, rgba(14, 5, 28, .02) 100%),
    linear-gradient(180deg, rgba(14, 5, 28, 0) 0%, rgba(14, 5, 28, .18) 56%, rgba(14, 5, 28, .96) 100%);
}
.hero-content {
  position: relative;
  min-height: 740px;
  padding: max(26px, env(safe-area-inset-top)) 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.brand-block h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(56px, 16vw, 86px);
  line-height: .82;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 0 18px rgba(251, 210, 111, .34), 0 3px 16px rgba(0, 0, 0, .35);
}
.brand-block p {
  margin: 22px 0 0;
  color: #fff4df;
  text-transform: uppercase;
  letter-spacing: .055em;
  line-height: 1.45;
  font-size: clamp(15px, 3.7vw, 20px);
}
.benefits {
  display: grid;
  gap: 12px;
  width: min(58%, 330px);
  margin-top: 24px;
}
.benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  align-items: center;
}
.benefit span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(245, 211, 116, .55);
  color: var(--gold);
  background: rgba(29, 12, 44, .58);
  box-shadow: inset 0 0 18px rgba(245, 211, 116, .08);
}
.benefit p {
  margin: 0;
  color: rgba(255, 247, 230, .9);
  line-height: 1.38;
  font-size: clamp(13px, 3.4vw, 16px);
}

.next-card, .flow-card, .protect-card, .info-card, .form-card, .success-card {
  position: relative;
  width: calc(100% - 34px);
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(74, 35, 96, .76), rgba(31, 13, 48, .72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.next-card {
  display: grid;
  grid-template-columns: 64px 1fr 54px;
  gap: 14px;
  align-items: center;
  padding: 24px;
  margin-top: -112px;
}
.card-icon, .video-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--gold);
  border: 1px solid rgba(245, 211, 116, .38);
  background: rgba(18, 7, 33, .34);
  font-size: 24px;
}
.video-icon { justify-self: end; }
.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  line-height: 1.25;
}
h2 {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.1;
  color: #fff7e6;
}
.next-info p:not(.eyebrow), .form-note, .info-card p, .success-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.muted { color: var(--muted-2) !important; }
.button {
  appearance: none;
  border: 0;
  min-height: 54px;
  border-radius: 999px;
  padding: 14px 20px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.button-primary {
  color: #1e1022;
  background: linear-gradient(135deg, #fff1b8 0%, #f1c45a 48%, #c58b33 100%);
  box-shadow: 0 12px 25px rgba(199, 142, 51, .22);
}
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}
.button.full { width: 100%; }
.button:disabled { opacity: .65; cursor: wait; }
.next-button {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.flow-card, .info-card, .form-card, .success-card { padding: 22px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-title span {
  color: var(--gold);
  font-size: 30px;
}
.section-title h2 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 18px;
  font-family: Manrope, system-ui, sans-serif;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
}
.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 24px);
  width: calc(100% - 38px);
  border-top: 1px dashed rgba(255, 247, 230, .28);
}
.step b {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 247, 230, .28);
  background: rgba(32, 13, 49, .72);
  color: #fff7e6;
  font-size: 17px;
  font-weight: 500;
}
.step.is-active b {
  color: #24140b;
  background: linear-gradient(135deg, #fff1b8, #d69b39);
  border-color: transparent;
}

.protect-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(145deg, rgba(92, 48, 115, .6), rgba(40, 17, 56, .62));
}
.protect-card span {
  color: var(--gold);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(245, 211, 116, .33);
  font-size: 26px;
}
.protect-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.info-card a { display: inline-block; margin-top: 12px; color: var(--gold); text-decoration: none; font-weight: 700; }

form { display: grid; gap: 13px; margin-top: 18px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(245, 211, 116, .22);
  background: rgba(19, 8, 33, .58);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 15px;
  font: inherit;
  font-size: 16px;
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(245, 211, 116, .76); }
input::placeholder, textarea::placeholder { color: rgba(255, 247, 230, .42); }
textarea { resize: vertical; min-height: 92px; }
.plan-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.plan-fieldset legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
}
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.plan {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(245, 211, 116, .16);
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
}
.plan.is-selected, .plan.featured.is-selected {
  background: rgba(245, 211, 116, .15);
  border-color: rgba(245, 211, 116, .58);
}
.plan input { accent-color: var(--gold-2); }
.plan strong { display: block; color: var(--text); }
.plan small { display: block; margin-top: 3px; color: var(--gold); }
.consent-line {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: 13px;
}
.consent-line input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--gold-2); }
a { color: var(--gold); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { min-height: 21px; color: var(--muted); font-size: 14px; }
.form-message.error { color: var(--danger); }
.form-message.ok { color: var(--ok); }
.success-card { text-align: center; background: rgba(68, 34, 90, .82); }
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(245, 211, 116, .13);
  font-size: 34px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: rgba(20, 7, 34, .9);
  border-top: 1px solid rgba(245, 211, 116, .14);
  backdrop-filter: blur(20px);
}
.bottom-nav a {
  min-height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: rgba(255, 247, 230, .62);
  text-decoration: none;
  font-size: 12px;
}
.bottom-nav a span {
  display: block;
  color: currentColor;
  font-size: 24px;
  line-height: 1;
}
.bottom-nav a.is-active {
  color: var(--gold);
  background: rgba(255, 255, 255, .07);
}

@media (min-width: 560px) {
  .hero-screen, .hero-content { min-height: 820px; }
  .benefits { width: 48%; }
  .plans { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 380px) {
  .hero-screen, .hero-content { min-height: 680px; }
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .benefits { width: 64%; gap: 9px; }
  .benefit { grid-template-columns: 38px 1fr; }
  .benefit span { width: 38px; height: 38px; }
  .next-card { grid-template-columns: 50px 1fr 44px; padding: 20px; }
  .card-icon, .video-icon { width: 44px; height: 44px; font-size: 20px; }
  .bottom-nav { padding-left: 8px; padding-right: 8px; }
  .bottom-nav a { font-size: 11px; border-radius: 15px; }
}
