/* ==========================================================================
   Serenadia — public site
   "A letter sealed in gold": deep plum ground, warm gold accent, soft rose,
   editorial serif for emotion, clean sans for function.
   ========================================================================== */

:root {
  --bg: #14102A;
  --bg-2: #1B1538;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-solid: #1E1840;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #F5EFE6;
  --text-2: #D8D0E4;
  --muted: #A79FBF;
  --gold: #F2B441;
  --gold-2: #FFD27A;
  --gold-ink: #1A1233;
  --gold-soft: rgba(242, 180, 65, 0.14);
  --rose: #F28CA6;
  --rose-soft: rgba(242, 140, 166, 0.16);
  --ok: #8FD9AE;
  --err: #F58A8A;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  --container: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

img, svg { max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
a { color: var(--gold-2); text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--gold-ink); }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------------------------
   Atmosphere
   -------------------------------------------------------------------------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 40% at 12% -5%, rgba(242, 180, 65, 0.20), transparent 70%),
    radial-gradient(45% 40% at 105% 15%, rgba(242, 140, 166, 0.14), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(56, 40, 110, 0.5), transparent 70%),
    var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

main, .nav, .footer, .modal, .toast { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 14px;
}

.section__title em, .hero__title em, .final__title em {
  font-style: italic;
  color: var(--gold-2);
}

.section__sub {
  margin-top: 14px;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

.section { padding: clamp(64px, 9vw, 120px) 0; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  margin-top: 18px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip--rose { background: var(--rose-soft); color: var(--rose); border: 1px solid rgba(242, 140, 166, 0.35); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.2s, opacity 0.2s;
  user-select: none;
}

.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn--primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 10px 30px -10px rgba(242, 180, 65, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(242, 180, 65, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

.btn--ghost {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn.is-loading { pointer-events: none; }
.btn.is-loading > * { opacity: 0.25; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(20, 16, 42, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-2);
  min-height: 44px;
}

.brand-mark { width: 18px; height: 18px; filter: drop-shadow(0 0 8px rgba(242, 180, 65, 0.6)); }

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--gold-2); }

.nav__right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.lang-toggle button {
  min-width: 42px;
  min-height: 36px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 560px) { .nav__cta { display: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-top: 18px;
  max-width: 11ch;
}

.hero__sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-2);
}

.hero__sub b { color: var(--gold-2); font-weight: 700; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Gift card art */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.gift-card {
  position: relative;
  width: min(340px, 84vw);
  aspect-ratio: 4 / 5;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 45%, rgba(242, 140, 166, 0.10)),
    var(--bg-2);
  border: 1px solid rgba(255, 210, 122, 0.28);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 120px -30px rgba(242, 180, 65, 0.45);
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  overflow: hidden;
  animation: cardIn 1.1s var(--ease) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: rotate(-9deg) translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: rotate(-4deg) translateY(0) scale(1); }
}

.gift-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 45%, transparent 60%);
  transform: translateX(-100%);
  animation: sheen 6s ease-in-out 1.5s infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%   { transform: translateX(-100%); }
  35%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.gift-card__ring {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--gold) 0 10px, transparent 11px),
    repeating-radial-gradient(circle, rgba(255, 210, 122, 0.55) 0 1px, transparent 1px 7px);
  opacity: 0.55;
  animation: rotate 40s linear infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }

.gift-card__meta { position: relative; display: flex; flex-direction: column; gap: 4px; }

.gift-card__for {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.gift-card__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--text);
}

.gift-card__from { font-size: 14px; color: var(--muted); margin-top: 6px; }

.gift-card__foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.note {
  position: absolute;
  font-family: var(--serif);
  color: var(--gold-2);
  opacity: 0.8;
  filter: drop-shadow(0 0 12px rgba(242, 180, 65, 0.7));
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
.note--1 { font-size: 44px; left: 4%; top: 12%; animation-delay: -1s; }
.note--2 { font-size: 30px; right: 8%; bottom: 14%; animation-delay: -3.5s; }
.note--3 { font-size: 24px; left: 14%; bottom: 6%; animation-delay: -5s; opacity: 0.5; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-16px) rotate(6deg); }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; margin-top: 12px; order: 2; }
  .gift-card { width: min(300px, 78vw); }
  .hero__title { max-width: none; }
}

/* --------------------------------------------------------------------------
   Waveform (shared: art + player)
   -------------------------------------------------------------------------- */
.wave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 56px;
  width: 100%;
}

.wave i {
  flex: 1 1 0;
  min-width: 2px;
  height: 100%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  transform: scaleY(var(--h, 0.4));
  transform-origin: center;
  transition: background 0.2s, transform 0.3s var(--ease);
}

.wave i.on { background: var(--gold); box-shadow: 0 0 10px rgba(242, 180, 65, 0.5); }

.wave--art { height: 44px; }
.wave--art i { background: rgba(255, 210, 122, 0.35); }
.wave--art i:nth-child(-n+18) { background: var(--gold); }

.wave--art.is-live i { animation: waveDance 1.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.07s); }

@keyframes waveDance {
  0%, 100% { transform: scaleY(var(--h, 0.4)); }
  50%      { transform: scaleY(calc(var(--h, 0.4) * 0.45 + 0.1)); }
}

.wave--interactive { cursor: pointer; height: 64px; }
.wave--interactive:hover i:not(.on) { background: rgba(255, 255, 255, 0.32); }

/* --------------------------------------------------------------------------
   Demo player
   -------------------------------------------------------------------------- */
.demo { padding-top: 0; }
.demo__inner { max-width: 760px; }

.player {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 18px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.player__btn {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 12px 30px -10px rgba(242, 180, 65, 0.8);
  transition: transform 0.18s var(--ease), opacity 0.2s;
}
.player__btn:hover { transform: scale(1.04); }
.player__btn:active { transform: scale(0.96); }
.player__btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.player__btn svg { width: 26px; height: 26px; }
.player__btn .ico-pause { display: none; }
.player.is-playing .ico-play { display: none; }
.player.is-playing .ico-pause { display: block; }

.player__body { flex: 1; min-width: 0; }

.player__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.player__meta strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__meta span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }

.player__note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 480px) {
  .player { gap: 12px; padding: 14px; }
  .player__btn { width: 56px; height: 56px; }
  .player__meta strong { font-size: 19px; }
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 122, 0.45), transparent);
}

.step {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}

.step:hover { transform: translateY(-4px); border-color: rgba(255, 210, 122, 0.4); }

.step__num {
  display: block;
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.9;
  margin-bottom: 18px;
}

.step__title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.step__text { color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.price-card:hover { transform: translateY(-4px); border-color: rgba(255, 210, 122, 0.35); }

.price-card--featured {
  border-color: rgba(242, 180, 65, 0.75);
  background: linear-gradient(160deg, rgba(242, 180, 65, 0.14), rgba(242, 140, 166, 0.06) 60%, var(--surface));
  box-shadow: 0 0 0 1px rgba(242, 180, 65, 0.25), 0 30px 70px -30px rgba(242, 180, 65, 0.7);
  transform: translateY(-10px) scale(1.02);
}
.price-card--featured:hover { transform: translateY(-14px) scale(1.02); }

.price-card--skeleton {
  min-height: 380px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(242, 180, 65, 0.9);
}
.price-card__badge svg { width: 12px; height: 12px; fill: currentColor; }

.price-card__credits {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}
.price-card__credits small {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  margin-left: 6px;
}

.price-card__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.price-card__price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-card__old { font-size: 15px; color: var(--muted); text-decoration: line-through; }

.price-card__save {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.price-card__per { margin-top: 8px; font-size: 13px; color: var(--muted); }

.price-card__list {
  margin: 22px 0 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  flex: 1;
}

.price-card__list li { display: flex; align-items: flex-start; gap: 10px; }
.price-card__list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD27A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 10px no-repeat;
}

.pricing__foot { margin-top: 30px; text-align: center; display: grid; gap: 10px; justify-items: center; }

.pricing__secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.pricing__secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pricing__signed { font-size: 13px; color: var(--ok); font-weight: 600; }
.pricing__alt a { font-size: 14px; font-weight: 600; border-bottom: 1px dotted rgba(255, 210, 122, 0.5); }

.pricing__error {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

@media (max-width: 860px) {
  .packs { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; gap: 22px; }
  .price-card--featured { transform: none; order: -1; }
  .price-card--featured:hover { transform: translateY(-4px); }
  .price-card { padding: 26px 20px 22px; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq__inner { max-width: 820px; }

.faq__list { display: grid; gap: 10px; }

.qa {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s, background 0.25s;
}

.qa[open] { border-color: rgba(255, 210, 122, 0.4); background: var(--surface-2); }

.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  min-height: 60px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.qa summary::-webkit-details-marker { display: none; }

.qa__mark {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.qa__mark::before, .qa__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--gold-2);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.qa__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__mark::after { transform: translate(-50%, -50%) rotate(0deg); }

.qa p {
  padding: 0 20px 20px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final { padding-top: 0; }

.final__inner {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 88px) var(--gutter);
  border-radius: 32px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(242, 180, 65, 0.22), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(242, 140, 166, 0.16), transparent 70%),
    var(--bg-2);
  border: 1px solid rgba(255, 210, 122, 0.25);
  overflow: hidden;
}

.final__title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.final__sub { margin: 16px auto 28px; max-width: 520px; color: var(--text-2); font-size: 17px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: start;
}

.footer__brand p { margin-top: 6px; color: var(--muted); font-size: 13px; }

.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold-2); }

.footer__copy { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Modal (Telegram login)
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade 0.25s ease both;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__card {
  position: relative;
  width: min(440px, 100%);
  padding: 30px 26px 24px;
  border-radius: 26px;
  background: var(--surface-solid);
  border: 1px solid rgba(255, 210, 122, 0.3);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(242, 180, 65, 0.5);
  text-align: center;
  animation: modalIn 0.4s var(--ease) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal__card .eyebrow { justify-content: center; }

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--surface-2); color: var(--text); }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.modal__title { font-family: var(--serif); font-size: 32px; line-height: 1.05; margin-top: 12px; }
.modal__text { margin-top: 12px; color: var(--text-2); font-size: 15px; }

.modal__widget {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  margin: 22px 0 14px;
}

.modal__hint { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Thank-you / privacy pages
   -------------------------------------------------------------------------- */
.page-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.ty-card {
  width: min(520px, 100%);
  padding: 44px 32px 36px;
  border-radius: 30px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255, 210, 122, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 100px -30px rgba(242, 180, 65, 0.5);
  animation: modalIn 0.5s var(--ease) both;
}

.ty-check {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 20px 50px -15px rgba(242, 180, 65, 0.9);
  animation: pop 0.6s var(--ease) 0.15s both;
}
.ty-check svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.ty-title { font-family: var(--serif); font-size: clamp(32px, 6vw, 44px); line-height: 1.05; }
.ty-text { margin: 14px 0 28px; color: var(--text-2); font-size: 16px; }
.ty-actions { display: grid; gap: 10px; }
.ty-home { font-size: 14px; color: var(--muted); }
.ty-card .lang-toggle { margin-top: 26px; }

.doc { padding: clamp(32px, 6vw, 72px) 0 80px; }
.doc__inner { max-width: 760px; }
.doc h1 { font-family: var(--serif); font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 12px 0 8px; }
.doc h2 { font-family: var(--serif); font-size: 28px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); font-size: 15.5px; }
.doc p + p { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.doc .updated { color: var(--muted); font-size: 13px; }
.doc__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 14px; }
.doc__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

[data-lang-block] { display: none; }
[data-lang-block].is-on { display: block; }

/* --------------------------------------------------------------------------
   Toast, reveal, motion
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--ok { border-color: rgba(143, 217, 174, 0.5); }
.toast--err { border-color: rgba(245, 138, 138, 0.5); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
