/* Self-hosted fonts (Spectral, Manrope) — см. static/fonts/. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/manrope-800-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/manrope-800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/manrope-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/manrope-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/spectral-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/spectral-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/spectral-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/spectral-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/spectral-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/spectral-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/spectral-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/spectral-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/spectral-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/spectral-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/spectral-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/spectral-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0c0a18;
  --bg-card: rgba(255,255,255,0.06);
  --bg-card-hover: rgba(255,255,255,0.10);
  --purple-accent: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dark: #2e1065;
  --purple-glow: #6d28d9;
  --white: #ffffff;
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-30: rgba(255,255,255,0.3);
  --white-10: rgba(255,255,255,0.1);
  --border: rgba(255,255,255,0.12);
  --coral: #ff5a6a;
  --coral-deep: #e53e4e;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* ---- Semantic aliases (no new colors — only ordered usage) ---- */
  --surface: var(--bg-card);
  --surface-hover: var(--bg-card-hover);
  --action: var(--purple-accent);          /* primary action / CTA fill */
  --action-hover: var(--purple-glow);
  --accent: var(--purple-light);           /* highlight: tags, links, meta emphasis */
  --accent-soft: rgba(124,58,237,0.30);    /* accent tint for borders/fills */
  --accent-tint: rgba(124,58,237,0.12);    /* faint accent wash */
  --text: var(--white);
  --text-muted: var(--white-70);           /* body / secondary — WCAG AA safe */
  --text-faint: var(--white-50);           /* large/decorative only, never small body */
  --star: #fbbf24;                         /* rating stars (gold) */

  /* ---- Fonts ---- */
  --font-display: 'Spectral', Georgia, serif;   /* large headings only */
  --font-body: 'Manrope', sans-serif;

  /* ---- Type scale (1.25 ratio, fluid) ---- */
  --fs-hero: clamp(2.6rem, 1.4rem + 5vw, 4.2rem);
  --fs-h2:   clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  --fs-h3:   1.25rem;
  --fs-lead: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  --fs-body: 1rem;     /* 16px base */
  --fs-sm:   0.875rem; /* 14px — smallest for real copy */
  --fs-xs:   0.75rem;  /* 12px — labels/tags only, not body */

  /* ---- Spacing rhythm ---- */
  --space-section: clamp(56px, 8vw, 104px);  /* vertical gap between sections */
  --eyebrow: 0.72rem; /* uppercase overline */
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== STARFIELD BG ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* One restrained atmospheric glow — no "starry sky" cliché */
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.16) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ===== STARS ===== */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.stars span {
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.2; } 100% { opacity: 0.8; } }

/* ===== HEADER ===== */
.header-wrap {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.header-wrap.scrolled {
  background: rgba(12,10,24,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px; margin: 0 auto;
}
.header-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px; letter-spacing: 1px;
}
.header-logo svg { width: 24px; height: 24px; }
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  font-size: 14px; color: var(--white-70);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--white); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.btn-register {
  padding: 8px 20px; border-radius: 8px;
  background: var(--purple-accent); color: white;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s;
}
.btn-register:hover { background: #6d28d9; }
.btn-login {
  padding: 8px 16px; font-size: 14px;
  color: var(--white-70); background: none;
  transition: color 0.2s;
}
.btn-login:hover { color: white; }

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 14px 36px; border-radius: 28px;
  background: var(--purple-accent); color: white;
  font-size: 16px; font-weight: 700;
  transition: all 0.2s;
  border: 2px solid var(--purple-accent);
}
.btn-primary:hover { background: #6d28d9; border-color: #6d28d9; }
.btn-outline {
  padding: 14px 28px; border-radius: 28px;
  background: transparent; color: white;
  font-size: 16px; font-weight: 700;
  border: 2px solid var(--white-30);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--white-50); background: var(--white-10); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2); font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.1;
  text-align: center; margin-bottom: clamp(32px, 4vw, 52px);
}

/* ===== SPREAD CARDS ===== */
.spread-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease-out, border-color 0.22s ease-out, box-shadow 0.22s ease-out, background 0.22s ease-out;
  will-change: transform;
}
.spread-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-soft);
  box-shadow: 0 16px 40px rgba(124,58,237,0.22);
}
.card-tags {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; gap: 6px; margin: 0; flex-wrap: wrap;
  max-width: calc(100% - 24px);
}
.tag {
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: rgba(124,58,237,0.3);
  color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.3);
}
.tag.new { background: rgba(124,58,237,0.5); color: white; }
.tag.free {
  background: rgba(34,197,94,0.25);
  color: #86efac;
  border-color: rgba(34,197,94,0.4);
}

.messages-container { padding: 16px 0 0; }
.message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--white-70);
}
.message-error {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
  color: #fca5a5;
}
.message-success {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.4);
  color: #86efac;
}
.card-image {
  position: relative;
  width: calc(100% + 32px);
  margin: -16px -16px 14px;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(99,40,210,0.1));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.4s ease-out;
}
.spread-card:hover .card-image img { transform: scale(1.05); }
/* Unify tone across mixed jpg/png previews so nothing clashes with the palette */
.card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,24,0.42) 0%, rgba(12,10,24,0) 28%, rgba(12,10,24,0) 55%, rgba(12,10,24,0.6) 100%),
              rgba(124,58,237,0.12);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.card-image .cards-icon { font-size: 40px; opacity: 0.4; }
.card-image svg.cards-icon {
  width: 48px; height: 48px;
  color: var(--purple-light);
  opacity: 0.55;
}
.spread-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.spread-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 12px; }
.card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.btn-card {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 600;
  transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
  align-self: flex-start;
}
.btn-card:hover { background: var(--action); border-color: var(--action); color: #fff; }
.btn-card svg { width: 14px; height: 14px; }

/* ===== SPREADS GRID (step1) ===== */
.spreads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
/* Category landing (/spreads/<slug>/) */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--white-50); margin-bottom: 18px;
}
.breadcrumbs a { color: var(--white-70); text-decoration: none; }
.breadcrumbs a:hover { color: var(--purple-light); }
.breadcrumbs [aria-current="page"] { color: var(--white-70); }
.category-intro {
  max-width: 720px; margin: 0 auto 36px; text-align: center;
  color: var(--white-70); font-size: 16px; line-height: 1.7;
}
.category-intro p { margin: 0 0 12px; }
.category-intro a { color: var(--purple-light); }
.category-lead {
  max-width: 720px; margin: 0 auto 28px; text-align: center;
  color: var(--white-70); font-size: 16px; line-height: 1.7;
}
a.filter-btn { text-decoration: none; }
.filter-btn {
  padding: 8px 16px; border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--white-70); font-size: 13px; font-weight: 600;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  color: var(--purple-accent);
}
.filter-icon svg { width: 14px; height: 14px; display: block; }
.filter-icon .cat-svg-mask { width: 14px; height: 14px; }
.filter-btn.active .filter-icon,
.filter-btn:hover .filter-icon { color: currentColor; }
.filter-btn:hover,
.filter-btn.active {
  background: var(--purple-accent);
  border-color: var(--purple-accent);
  color: white;
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex; justify-content: center; gap: 8px;
  padding: 32px 0 16px;
}
.step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--white-50);
  transition: all 0.3s;
}
.step-dot.active {
  background: var(--purple-accent);
  border-color: var(--purple-accent);
  color: white;
}
.step-dot.done {
  background: var(--purple-dark);
  border-color: var(--purple-light);
  color: var(--purple-light);
}
.step-connector {
  width: 40px; height: 2px;
  background: var(--border);
  align-self: center;
}
.step-connector.done { background: var(--purple-light); }

/* ===== FORM STYLES (step2) ===== */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto 30px;
  -webkit-box-shadow: 0px 0px 13px 6px rgba(124, 58, 237, 0.2);
  -moz-box-shadow: 0px 0px 13px 6px rgba(124, 58, 237, 0.2);
  box-shadow: 0px 0px 13px 6px rgba(124, 58, 237, 0.2);
}
.form-card--with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card-backs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 24px;
}
.card-back {
  width: 54px;
  aspect-ratio: 6 / 11;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}
.card-back:hover { transform: translateY(-3px); }
.card-back svg { width: 100%; height: 100%; display: block; }
@media (max-width: 600px) {
  .card-back { width: 44px; }
  .card-backs-row { gap: 6px; }
}
.form-card h2 {
  font-size: 22px; font-weight: 700;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--white-70);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: white;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-accent);
}
.form-group textarea {
  min-height: 120px;
  resize: none;
}
.form-error {
  color: #f87171;
  font-size: 13px;
  margin-top: 6px;
}
.form-errors-list {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.form-errors-list li {
  color: #f87171;
  font-size: 13px;
  list-style: disc;
  margin-left: 16px;
  margin-bottom: 4px;
}
.form-errors-sublist {
  margin-top: 4px;
  margin-bottom: 4px;
}
.form-errors-sublist li {
  list-style: circle;
  margin-left: 18px;
  margin-bottom: 2px;
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--white-50);
  line-height: 1.4;
}
.form-hint {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--white-70);
  font-size: 12.5px;
  line-height: 1.5;
}
.form-hint-title {
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
}
.form-hint ul { margin-left: 16px; }
.form-hint li { list-style: disc; margin-bottom: 2px; }

.form-consent {
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--white-70);
}
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--purple-accent);
  cursor: pointer;
}
.form-consent a { color: var(--purple-light); text-decoration: underline; }
.form-consent a:hover { color: var(--purple-accent); }

.spread-detailed-description {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  color: var(--white-70);
  font-size: 14px;
  line-height: 1.55;
}
.spread-detailed-description p { margin: 0 0 8px; }
.spread-detailed-description p:last-child { margin-bottom: 0; }

.example-questions {
  margin-top: 10px;
  font-size: 13px;
}
.example-questions > summary {
  cursor: pointer;
  color: var(--purple-light);
  user-select: none;
  padding: 4px 0;
}
.example-questions > summary:hover { color: var(--white); }
.example-questions ul {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
}
.example-questions li {
  cursor: pointer;
  padding: 6px 10px;
  margin-bottom: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white-70);
  transition: background .15s, color .15s, border-color .15s;
}
.example-questions li:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--purple-accent);
  color: var(--white);
}

/* ===== PAYMENT (step3) ===== */
.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto 24px;
  text-align: center;
}
.payment-card h2 {
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.payment-amount {
  font-size: 36px; font-weight: 800;
  color: var(--purple-light);
  margin-bottom: 8px;
}
.payment-desc {
  font-size: 14px; color: var(--white-50);
  margin-bottom: 28px;
}
.btn-pay {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 40px; border-radius: 28px;
  background: var(--purple-accent); color: white;
  font-size: 16px; font-weight: 700;
  transition: all 0.2s;
}
.btn-pay:hover { background: #6d28d9; transform: translateY(-2px); }

/* ===== RESULT (step4) ===== */
.result-section {
  margin: 0 auto;
  margin-bottom: 24px;
}
.result-header {
  text-align: center;
  margin-bottom: 32px;
  margin-top: 32px;
}
.result-header h1 {
  font-size: 28px; font-weight: 800;
  margin-bottom: 8px;
}
.result-header p {
  font-size: 14px; color: var(--white-50);
}
.cards-row {
  display: flex; gap: 40px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tarot-card-drawn {
  width: 148px;
  text-align: center;
}
.tarot-card-drawn.reversed { opacity: 0.92; }
.tarot-card-drawn .card-image-wrap {
  width: 100%;
  aspect-ratio: 6 / 11;
  margin: 0 0 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(124,58,237,0.15);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarot-card-drawn:hover .card-image-wrap {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(124,58,237,0.32), 0 18px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}
.tarot-card-drawn .card-image-wrap img,
.tarot-card-drawn .card-image-wrap svg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tarot-card-drawn.reversed .card-image-wrap img,
.tarot-card-drawn.reversed .card-image-wrap svg {
  transform: rotate(180deg);
}
.tarot-card-drawn .card-position {
  font-size: 12px; color: var(--white-70);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.tarot-card-drawn .card-name {
  font-size: 15px; font-weight: 600;
  margin-bottom: 2px;
}
.tarot-card-drawn .card-direction {
  font-size: 13px; color: var(--white-50);
}
.interpretation-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.interpretation-block h2 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 16px;
}
.interpretation-block .text {
  font-size: 15px; color: var(--white-70);
  line-height: 1.8;
  white-space: pre-line;
}
.interpretation-cta {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== UPSELL (step4) ===== */
.upsell-section { margin: 32px 0 32px; }
.upsell-header { text-align: center; margin-bottom: 28px; }
.upsell-header h2 {
  font-size: 24px; font-weight: 700;
  margin-bottom: 8px;
}
.upsell-header p {
  font-size: 15px; color: var(--white-70);
}
.upsell-single {
  display: flex; justify-content: center;
}
.upsell-single .spread-card { max-width: 320px; }
.upsell-single .poster-card { flex: 0 0 320px; max-width: 320px; width: 100%; }
/* On desktop the upsell carousel renders as a static grid (no slider). */
@media (min-width: 901px) {
  .upsell-carousel-wrapper { padding: 0; }
  .upsell-carousel-wrapper .carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  .upsell-carousel-wrapper .carousel .spread-card {
    flex: initial;
    scroll-snap-align: none;
  }
  .upsell-carousel-wrapper .carousel-arrow { display: none; }
}

/* ===== WAITING / PROCESSING ===== */
.waiting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  max-width: 480px;
  margin: 0 auto 24px;
  text-align: center;
}
.waiting-card h2 {
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.waiting-card p {
  font-size: 14px; color: var(--white-50);
  margin-bottom: 24px;
}
.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--purple-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== AUTH FORMS (login/register) ===== */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 420px;
  margin: 60px auto;
}
.auth-card h1 {
  font-size: 24px; font-weight: 800;
  text-align: center;
  margin-bottom: 28px;
}
.auth-card .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
.auth-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--white-50);
}
.auth-link a { color: var(--purple-light); text-decoration: underline; }

/* --- Social auth buttons --- */
.social-auth { margin-top: 20px; }
.social-auth-top { margin-bottom: 20px;}
.social-auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 14px;
  font-size: 13px; color: var(--white-50);
}
.social-auth-divider::before,
.social-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.social-auth-buttons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: filter .15s, border-color .15s;
}
.social-btn:hover { filter: brightness(1.08); }
.social-btn--vk { background: #0077FF; color: #fff; border-color: #0077FF; }
.social-btn--yandex { background: #fff; color: #000; border-color: #fff; }
@media (max-width: 420px) {
  .social-auth-buttons { grid-template-columns: 1fr; }
}

/* ===== CABINET / HISTORY ===== */
.cabinet-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}
.cabinet-section h1 {
  font-size: 28px; font-weight: 800;
  margin-bottom: 24px;
}
.orders-list {
  display: flex; flex-direction: column; gap: 12px;
}
.order-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.2s;
}
.order-item:hover { border-color: rgba(124,58,237,0.3); }
.order-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.order-info p { font-size: 12px; color: var(--white-50); }
.order-status {
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.order-status.completed { background: rgba(34,197,94,0.2); color: #4ade80; }
.order-status.processing { background: rgba(234,179,8,0.2); color: #facc15; }
.order-status.pending { background: rgba(255,255,255,0.1); color: var(--white-50); }
.order-status.failed { background: rgba(248,113,113,0.2); color: #f87171; }
a.order-status.pay { background: var(--purple-accent); color: #fff; text-decoration: none; }
a.order-status.pay:hover { background: var(--purple-light); }
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--white-50); font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  z-index: inherit;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; color: var(--white-50); line-height: 1.5; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--white-50); transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--white-30);
}
.footer-disclaimer {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--white-50);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,10,24,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  max-width: 480px; margin: 0 auto;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; color: var(--white-50);
  font-size: 10px; font-weight: 600;
  padding: 4px 12px;
  transition: color 0.2s;
  text-decoration: none;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--purple-light); }

/* ===== BURGER & MOBILE MENU ===== */
.burger-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; padding: 6px;
}
.burger-btn span {
  display: block; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 1000;
  display: flex; flex-direction: column;
  padding: 16px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}
.mobile-close {
  background: none; color: white;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 0;
  flex: 1;
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 18px; font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--purple-light); }
.mobile-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

/* ===== ERROR PAGES ===== */
.error-page {
  text-align: center;
  padding: 120px 24px;
}
.error-page h1 {
  font-size: 72px; font-weight: 800;
  color: var(--purple-accent);
  margin-bottom: 16px;
}
.error-page p {
  font-size: 16px; color: var(--white-50);
  margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-actions .btn-register,
  .header-actions .btn-login { display: none; }
  .burger-btn { display: flex; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 72px; }
  .spreads-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .spreads-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
  .form-card,
  .payment-card,
  .auth-card { margin: 30px 12px; padding: 24px 16px; }
  .cards-row { gap: 10px; }
  .tarot-card-drawn { width: 31%; min-width: 0; }
  .tarot-card-drawn .card-position { font-size: 11px; margin-bottom: 8px; }
}

/* ===== LEGAL PAGES ===== */
.legal-page { max-width: 820px; margin: 40px auto 80px; padding: 0 24px; color: var(--white-70); }
.legal-page h1 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.legal-page .legal-meta { color: var(--white-50); font-size: 13px; margin-bottom: 32px; }
.legal-page h2 { color: var(--white); font-size: 20px; margin: 32px 0 12px; }
.legal-page h3 { color: var(--white); font-size: 16px; margin: 20px 0 8px; }
.legal-page p, .legal-page li { line-height: 1.7; margin-bottom: 10px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page ul li { list-style: disc; }
.legal-page ol li { list-style: decimal; }
.legal-page a { color: var(--purple-light); text-decoration: underline; }
.legal-page .contacts-grid {
  display: grid; grid-template-columns: 160px 1fr; gap: 12px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-top: 16px;
}
.legal-page .contacts-grid dt { color: var(--white-50); }
.legal-page .contacts-grid dd { color: var(--white); }
@media (max-width: 600px) {
  .legal-page .contacts-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-page .contacts-grid dt { margin-top: 8px; }
}
.payment-terms {
  margin-top: 20px; font-size: 12px; color: var(--white-50); line-height: 1.6;
}
.payment-terms a { color: var(--purple-light); text-decoration: underline; }

/* ===== LANDING: HERO ===== */
.hero {
  padding: clamp(56px, 8vw, 104px) 24px clamp(40px, 6vw, 72px);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.hero-text { max-width: 620px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero); font-weight: 700;
  line-height: 1.02; margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.hero p {
  font-size: var(--fs-lead); color: var(--text-muted);
  max-width: 520px; margin: 0;
  line-height: 1.65; font-weight: 400;
}
.hero .link-inline {
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.link-inline { color: var(--purple-light); }
.link-inline:hover { color: var(--white); }
.hero-buttons {
  display: flex; gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero .btn-primary,
.hero .btn-outline { display: inline-flex; align-items: center; text-decoration: none; }

/* Hero visual: fanned deck (premium, on-brand, no kitsch) */
.hero-visual { display: flex; justify-content: center; perspective: 1400px; }
.hero-deck {
  position: relative;
  width: min(360px, 82%);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
}
.hero-visual[role="button"] { cursor: pointer; outline: none; }
.hero-visual[role="button"]:focus-visible .hero-deck { outline: 2px solid var(--purple-light); outline-offset: 12px; border-radius: 18px; }
.hero-deck .deck-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 54%;
  aspect-ratio: 6 / 11;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0.16, 1);
}
.hero-deck .deck-1 { transform: translate(-50%, -44%) rotate(-15deg) scale(0.95); z-index: 1; }
.hero-deck .deck-2 { transform: translate(-50%, -52%) rotate(0deg) scale(1);      z-index: 3; }
.hero-deck .deck-3 { transform: translate(-50%, -44%) rotate(15deg) scale(0.95);  z-index: 2; }
/* No-JS / reduced-motion hover fallback (JS upgrades this to a 3D cursor tilt) */
.hero-deck:hover .deck-1 { transform: translate(-54%, -46%) rotate(-21deg) scale(0.96); }
.hero-deck:hover .deck-3 { transform: translate(-46%, -46%) rotate(21deg) scale(0.96); }

/* ---- Flip: inner wrapper rotates, back + front faces ---- */
.deck-flip {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.15, 0.2, 1);
  will-change: transform;
}
.deck-card.is-flipped .deck-flip { transform: rotateY(180deg); }
.deck-face {
  position: absolute; inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(167,139,250,0.35);
  box-shadow: 0 24px 60px rgba(12,10,24,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}
.hero-deck .deck-2 .deck-face {
  box-shadow: 0 34px 74px rgba(124,58,237,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.deck-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deck-face--front {
  transform: rotateY(180deg);
  background: var(--bg-card);
}
@media (prefers-reduced-motion: reduce) {
  .deck-flip { transition-duration: 0.01ms; }
}
/* Soft glow behind the deck */
.hero-deck::before {
  content: ''; position: absolute; inset: -10% -10% -20%;
  background: radial-gradient(ellipse at 50% 45%, rgba(124,58,237,0.35) 0%, transparent 65%);
  filter: blur(8px); z-index: 0; pointer-events: none;
}

/* ===== LANDING: TRUST STATS BAND ===== */
.stats-band { padding: clamp(24px, 4vw, 48px) 0; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  max-width: 820px; margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(22px, 3vw, 34px) 0;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  height: 56%; width: 1px; background: var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1;
  color: var(--purple-light);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 16px 0; }
  .stat + .stat::before {
    left: 50%; top: 0; transform: translateX(-50%);
    height: 1px; width: 44%;
  }
}

/* ===== LANDING: POPULAR CAROUSEL ===== */
.popular-section { padding: clamp(16px, 3vw, 32px) 0 clamp(36px, 5vw, 56px); }
.popular-section .section-label {
  font-size: var(--eyebrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 auto 4px;
  padding: 0 72px;
  max-width: 1280px;
}
.carousel-wrapper {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  --carousel-gutter: 48px;
  padding: 0 var(--carousel-gutter);
}
.carousel {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 20px 0;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .spread-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: white;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 5;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.2); }
.carousel-arrow.left { left: 4px; }
.carousel-arrow.right { right: 4px; }
.carousel-nav { display: none; }
.carousel-dots {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center; justify-content: center;
  flex: 1; min-width: 0; padding: 0 8px;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 0; padding: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}
.carousel-dot.active {
  background: var(--purple-light);
  width: 20px; border-radius: 4px;
}

/* ===== LANDING: CHOOSE SPREAD BTN ===== */
.choose-spread { text-align: center; padding: 10px 0 50px; }
.btn-choose {
  display: inline-block;
  padding: 14px 32px; border-radius: 28px;
  background: transparent;
  border: 2px solid var(--white-30);
  color: white; font-size: 16px; font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-choose:hover { border-color: var(--purple-accent); background: rgba(124,58,237,0.1); }

/* ===== LANDING: HOW IT WORKS ===== */
.how-section {
  position: relative;
  padding: var(--space-section) 0;
}
.how-section .container { position: relative; }
.section-title.center { text-align: center; margin-bottom: 36px; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.step {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 22px 0 0;
}
.steps-row .step-connector { display: none; }
.step-num {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.step-num b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  background: none;
  border: none;
  padding: 0;
}
.step h4 {
  font-weight: 700;
  font-size: 17px;
  margin-top: 12px;
  margin-bottom: 6px;
}
.step p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ===== LANDING: CATEGORIES ===== */
.categories-section { padding: var(--space-section) 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.2s ease-out, border-color 0.2s ease-out, background 0.2s ease-out;
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.cat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(124,58,237,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--purple-accent);
}
.cat-icon svg { width: 20px; height: 20px; display: block; }
.cat-svg-mask {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.cat-icon .cat-svg-mask { width: 20px; height: 20px; }
.cat-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.cat-info p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.btn-all-categories {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  color: white; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-all-categories:hover { background: var(--bg-card-hover); border-color: rgba(124,58,237,0.3); }

/* ===== LANDING: FAQ ===== */
.faq-section { padding: var(--space-section) 0; }
.faq-header {
  display: flex; justify-content: center; align-items: center;
  text-align: center;
  max-width: 820px; margin: 0 auto 32px;
  padding: 0 24px;
}
.faq-header h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-h2); letter-spacing: -0.01em; line-height: 1.1;
}
.faq-list {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 820px; margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease-out, background 0.2s ease-out;
}
.faq-item:hover { border-color: var(--accent-soft); }
.faq-item.open { background: var(--accent-tint); border-color: var(--accent-soft); }
.faq-question {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; min-height: 44px;
  background: transparent; color: white;
  font-size: 16px; font-weight: 600; text-align: left;
  line-height: 1.4;
}
.faq-question svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--white-50);
  transition: transform 0.3s;
}
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 22px 20px;
  font-size: var(--fs-sm); color: var(--text-muted);
  line-height: 1.65;
}

/* ===== LANDING: CTA ===== */
.cta-section {
  padding: var(--space-section) 24px;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-h2); letter-spacing: -0.01em; line-height: 1.08;
  margin-bottom: 14px;
}
.cta-section p {
  font-size: var(--fs-lead); color: var(--text-muted);
  margin-bottom: 28px;
}
.btn-cta {
  display: inline-block;
  padding: 16px 40px; border-radius: 28px;
  background: var(--purple-accent); color: white;
  font-size: 16px; font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-cta:hover { background: #6d28d9; transform: translateY(-2px); }

/* ===== ENCYCLOPEDIA ===== */
.enc-hero {
  padding: 60px 0 24px;
  text-align: center;
}
.enc-hero h1 {
  font-size: 36px; font-weight: 800;
  margin: 12px 0 14px;
}
.enc-hero-sub {
  max-width: 620px; margin: 0 auto;
  color: var(--white-70); font-size: 15px; line-height: 1.6;
}
.enc-section { padding: 24px 0 60px; }
.enc-group-title {
  text-align: left; font-size: 22px; font-weight: 700;
  margin: 40px 0 20px;
}
.enc-group-title:first-child { margin-top: 0; }
.enc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.enc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 10px;
}
.enc-card:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.15);
}
.enc-card-image {
  aspect-ratio: 6 / 11;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  overflow: hidden;
  color: var(--purple-light);
}
.enc-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.enc-card-image svg { width: 42px; height: 42px; opacity: 0.6; }
.enc-card-meta {
  display: flex;
  flex-direction: row;
  gap: 2px;
  font-size: 13px;
  justify-content: center;
  align-items: baseline;
}
.enc-card-num {
  color: var(--purple-light);
  font-weight: 700;
}
.enc-card-name {
  font-weight: 600; line-height: 1.3;
}

/* ===== CARD MODAL ===== */
.card-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.card-modal[hidden] { display: none; }
.card-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 8, 22, 0.78);
  backdrop-filter: blur(4px);
}
.card-modal-dialog {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #16102a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.card-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none;
  color: var(--white-70); cursor: pointer;
  padding: 6px; border-radius: 8px;
  transition: all 0.15s;
}
.card-modal-close:hover { background: rgba(255,255,255,0.06); color: white; }
.card-modal-header {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.card-modal-image {
  aspect-ratio: 6 / 11;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
}
.card-modal-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-modal-image-placeholder { color: var(--purple-light); opacity: 0.6; }
.card-modal-image-placeholder svg { width: 56px; height: 56px; }
.card-modal-title-block h3 {
  font-size: 24px; font-weight: 800; margin: 4px 0 6px;
}
.card-modal-arcana {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--purple-light); font-weight: 700;
}
.card-modal-en {
  font-size: 13px; color: var(--white-50); font-style: italic;
  margin-bottom: 8px;
}
.card-modal-keywords {
  font-size: 13px; color: var(--white-70);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 8px 12px; border-radius: 8px;
  margin-top: 10px;
}
.card-modal-meanings {
  display: flex; flex-direction: column; gap: 16px;
}
.card-meaning-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--purple-light); font-weight: 700;
  margin-bottom: 6px;
}
.card-meaning p {
  font-size: 14px; color: var(--white-70); line-height: 1.65;
  margin: 0;
}

/* Секции расширенного описания карты */
.card-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.card-section-title {
  font-size: 15px; font-weight: 700;
  color: white; margin: 0 0 12px;
  letter-spacing: 0.01em;
}
/* На странице карты — sticky-заголовок текущей секции при скролле.
   top = высота шапки (header-wrap sticky). Прилипает в пределах своего .card-section. */
.card-detail-page .card-section-title {
  position: sticky;
  top: 56px;
  z-index: 5;
  margin: 0 -8px 12px;
  padding: 10px 8px;
  background: rgba(12, 10, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
}
.card-section-body p {
  font-size: 14px; color: var(--white-70); line-height: 1.65;
  margin: 0 0 8px;
}
.card-section-body p:last-child { margin-bottom: 0; }

/* В модалке энциклопедии — превью описания: ~5 строк + fade.
   Полное описание открывается по кнопке «Полное описание карты». */
.card-modal-dialog .card-section-body {
  max-height: calc(1.65em * 5);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent);
          mask-image: linear-gradient(to bottom, black 65%, transparent);
}

/* Переключатель прямое / перевёрнутое */
.card-position-toggle {
  display: inline-flex;
  margin: 18px 0 14px;
  /* padding: 4px;*/
  /* background: rgba(255,255,255,0.05);*/
  /* border: 1px solid var(--border);*/
  border-radius: 999px;
  gap: 4px;

  position: fixed;
  bottom: 50px;
  left: 0px;
  background: #000;
  border-radius: 0;
  border: none;
  z-index: 9999;
}
.card-position-btn {
  border: none;
  background: transparent;
  color: var(--white-70);
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.card-position-btn:hover { color: white; }
.card-position-btn.is-active {
  background: var(--purple-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
}
.card-position-toggle .card-position-btn:first-of-type {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.card-position-toggle .card-position-btn:last-of-type {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

/* FAQ по карте — аккордеон */
.card-faq { display: flex; flex-direction: column; gap: 8px; }
.card-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.card-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-size: 14px; font-weight: 600;
  color: white;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.card-faq-item summary::-webkit-details-marker { display: none; }
.card-faq-item summary::after {
  content: '+';
  font-size: 20px; font-weight: 400;
  color: var(--purple-light);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.card-faq-item[open] summary::after { content: '−'; }
.card-faq-item summary:hover { background: rgba(255,255,255,0.04); }
.card-faq-answer {
  padding: 0 16px 14px;
  font-size: 14px; color: var(--white-70); line-height: 1.65;
}

/* Кнопка «Полное описание карты» в модалке */
.card-modal-actions {
  margin-top: 20px;
  display: flex; justify-content: center;
}
.card-detail-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
}
.card-detail-link svg { transition: transform 0.15s; }
.card-detail-link:hover svg { transform: translateX(3px); }

/* Страница детали карты */
.card-detail-page { padding: 32px 0 80px; }
.card-detail-container { max-width: 820px; }
.card-detail-breadcrumbs {
  font-size: 13px; color: var(--white-50);
  margin-bottom: 18px;
}
.card-detail-breadcrumbs a {
  color: var(--purple-light); text-decoration: none;
}
.card-detail-breadcrumbs a:hover { color: white; }
.card-detail-breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.card-detail-breadcrumbs .current { color: var(--white-70); }

.card-detail-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.card-detail-image {
  aspect-ratio: 6 / 11;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.card-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-detail-title-block h1 {
  font-size: 36px; font-weight: 800; margin: 6px 0 8px; line-height: 1.15;
}
.card-detail-back {
  margin-top: 36px;
  display: flex; justify-content: center;
}

@media (max-width: 600px) {
  .card-detail-hero {
    grid-template-columns: 140px 1fr;
    gap: 18px;
  }
  .card-detail-title-block h1 { font-size: 26px; }
}
/* ===== LANDING RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { padding: 48px 24px 40px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-text { max-width: none; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-deck { width: min(280px, 64%); }
  .steps-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps-row .step-connector { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-section .section-label { padding: 0 24px; }
  .carousel-wrapper { padding: 0 var(--carousel-gutter); }
  .carousel-nav {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 8px 0;
    max-width: 520px; margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .hero-deck { width: min(240px, 62%); }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { width: 100%; text-align: center; justify-content: center; }
  .steps-row { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .categories-grid { grid-template-columns: 1fr; }
  .carousel-wrapper { --carousel-gutter: 40px; padding: 0 var(--carousel-gutter); }
  .carousel .spread-card { flex: 0 0 210px; }
  .enc-hero h1 { font-size: 26px; }
  .enc-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .enc-card { padding: 8px; }
  .card-modal-dialog { padding: 20px; }
  .card-modal-header { grid-template-columns: 100px 1fr; gap: 14px; }
  .card-modal-title-block h3 { font-size: 20px; }
  .card-position-toggle { display: flex; width: 100%; }
  .card-position-btn { flex: 1; text-align: center; padding: 8px 10px; font-size: 12px; }
  .carousel-arrow {
    top: calc(50% - 10px);
    width: 32px;
    height: calc(100% - 60px);
    border-radius: 8px;
  }
}

/* Notice banner: temporarily-disabled features (registration, new orders) */
.notice-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  color: #fde68a;
}
.notice-banner strong { display: block; margin-bottom: 4px; font-size: 15px; }
.notice-banner p { margin: 0; font-size: 13px; color: rgba(253, 230, 138, 0.85); }
.notice-banner a { color: #fde68a; text-decoration: underline; }

.hidden { display: none !important; }

.card-of-day-timer {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(167, 139, 250, 0.35);
  text-align: center;
  color: var(--white-85, rgba(255, 255, 255, 0.85));
}
.card-of-day-timer-label {
  font-size: 13px;
  color: var(--white-50, rgba(255, 255, 255, 0.55));
  margin-bottom: 8px;
}
.card-of-day-timer-clock {
  font-size: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  color: var(--purple-light, #a78bfa);
  line-height: 1.1;
}
.card-of-day-timer-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--white-50, rgba(255, 255, 255, 0.5));
}

.price-old {
  color: var(--white-50, rgba(255, 255, 255, 0.5));
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  margin-right: 4px;
}
.price-new {
  color: var(--purple-light, #a78bfa);
  font-weight: 600;
  font-size: 1.5em;
}

/* ============================================================
   STEP 2 — redesigned page (scoped under .step2-page)
   Centred composition, hero-card row with active hint slot,
   floating email tooltip, gradient CTA. Не трогает другие формы.
   ============================================================ */
.step2-page { padding: 4px 24px 60px; }

.step2-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Eyebrow */
.step2-page .spread-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-light);
}
.step2-page .spread-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 10px var(--purple-accent);
  animation: step2-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes step2-dot-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1); }
}

/* Title + tagline */
.step2-page .spread-title,
.result-header .spread-title,
#step2-details-modal .card-modal-title {
  position: relative;
  font-size: clamp(28px, 5.2vw, 50px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.06;
  text-transform: uppercase;
  margin: 4px 0 16px;
  /*color: var(--purple-light);*/
  text-shadow: 0 0 32px rgba(167,139,250,0.18);
}
.step2-page h1.spread-title::after,
.result-header h1.spread-title::after,
#step2-details-modal .card-modal-title::after {
  content: attr(data-text);
  color: var(--purple-light);
  transform: translateX(-100%);
  position: absolute;
}
.step2-page .spread-tagline,
#step2-details-modal .spread-tagline {
  max-width: 540px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--purple-light);
  text-transform: uppercase;
}
.step2-page .step2-price-note {
  max-width: 540px;
  margin: 14px auto 30px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--white-70);
  text-transform: uppercase;
}
.step2-page .step2-price-note b { color: var(--purple-light); font-weight: 700; }

/* Card row */
.step2-page .card-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto 40px;
  max-width: 620px;
}
.step2-page .card-row-tooltip {
  position: absolute;
  top: calc(50% + 10px);
  left: 50%;
  transform: translateX(-50%);
  max-width: 215px;
  width: 100%;
  padding: 8px 14px;
  background: #1a1230;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  border: 1px solid rgba(167,139,250,0.45);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 5;
}
.step2-page .card-row-tooltip.is-visible { opacity: 1; }
.step2-page .card-figure { cursor: pointer; }
.step2-page .card-figure {
  position: relative;
  flex: 0 0 auto;
  width: 108px;
/*  aspect-ratio: 2 / 3;*/
  aspect-ratio: 6 / 11;
  border-radius: 10px;
  background-color: #1c0e44;
  background-image: url('../img/card-back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, filter .3s;
  animation: step2-card-rise .65s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: calc(120ms + var(--i, 0) * 80ms);
  box-shadow: 0 14px 28px -12px rgba(0,0,0,0.7);
}
.step2-page .card-figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 38px -14px rgba(124,58,237,0.55);
  filter: brightness(1.08);
}
.step2-page .card-figure.is-active {
  box-shadow:
    0 0 0 1px rgba(167,139,250,0.55),
    0 0 30px 6px rgba(167,139,250,0.42),
    0 22px 40px -14px rgba(124,58,237,0.7);
}
.step2-page .card-figure.is-active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,10,24,0.55) 0%, rgba(12,10,24,0.78) 100%);
  pointer-events: none;
}
.step2-page .card-hint {
  position: absolute;
  z-index: 1;
  left: 10px; right: 10px;
  top: 50%; transform: translateY(-50%);
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255,255,255,0.95);
  text-align: center;
  text-shadow: 0 1px 8px rgba(12,10,24,0.85);
  pointer-events: none;
}
@keyframes step2-card-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Detailed description */
.step2-page .step2-detailed {
  max-width: 620px;
  margin: -8px auto 28px;
  padding: 14px 18px;
  text-align: left;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}
.step2-page .step2-detailed p { margin: 0 0 8px; }
.step2-page .step2-detailed p:last-child { margin-bottom: 0; }

/* Кнопка «Подробнее о раскладе» — открывает модалку с detailed_description */
.step2-details-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, #805DCF 0%, #5B458D 100%);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--white);
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 18px 36px -14px rgba(124, 58, 237, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform .15s, filter .25s, box-shadow .25s;
    margin: 15px auto;
}
.step2-details-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 26px 48px -16px rgba(124, 58, 237, 0.8);
}

/* Заголовок и тело в модалке step2 (переиспользует .card-modal-*) */
#step2-details-modal .card-modal-title {
  margin: 0 0 16px;
  max-width: calc(100% - 40px);
  color: var(--white);
}
#step2-details-modal .card-section-body {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
          mask-image: none;
  color: var(--white-70);
  font-size: 14px;
  line-height: 1.65;
}
#step2-details-modal .step2-details-btn { margin: 20px 0 0; }
#step2-details-modal .card-section-body p { margin: 0 0 10px; }
#step2-details-modal .card-section-body p:last-child { margin-bottom: 0; }
#step2-details-modal .card-section-body h2,
#step2-details-modal .card-section-body h3,
#step2-details-modal .card-section-body h4 {
  color: var(--white);
  margin: 18px 0 8px;
  font-weight: 700;
}
#step2-details-modal .card-section-body h2 { font-size: 17px; }
#step2-details-modal .card-section-body h3 { font-size: 15px; }
#step2-details-modal .card-section-body h4 { font-size: 14px; }
#step2-details-modal .card-section-body ul,
#step2-details-modal .card-section-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}
#step2-details-modal .card-section-body ul li { list-style: disc; margin-bottom: 4px; }
#step2-details-modal .card-section-body ol li { list-style: decimal; margin-bottom: 4px; }
#step2-details-modal .card-section-body a {
  color: var(--purple-light);
  text-decoration: underline;
}
#step2-details-modal .card-section-body a:hover { color: var(--white); }
#step2-details-modal .card-section-body strong { color: var(--white); font-weight: 700; }
#step2-details-modal .card-section-body em { font-style: italic; }
#step2-details-modal .card-section-body blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--purple-accent);
  background: rgba(124,58,237,0.08);
  border-radius: 0 8px 8px 0;
  color: var(--white-70);
}

/* Form */
.step2-page .step2-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.step2-page .field { margin-bottom: 18px; }
.step2-page .field-label {
  display: flex; align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.step2-page .field-label .req { color: var(--purple-light); margin-left: 2px; }

/* Question textarea */
.step2-page .question-area {
  position: relative;
  border-radius: var(--radius);
  background: rgba(13,9,28,0.55);
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.step2-page .question-area:focus-within {
  border-color: var(--purple-light);
  background: rgba(13,9,28,0.78);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.step2-page .question-area textarea {
  display: block;
  width: 100%;
  min-height: 0;
  /* Starts at one line and grows with content (JS) up to this cap, then scrolls. */
  max-height: 150px;
  padding: 16px 18px 36px;
  background: rgba(255,255,255,0.02);
  border: 0;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  resize: none;
  overflow-y: auto;
  border-radius: var(--radius);
}
.step2-page .question-area textarea::placeholder { color: rgba(255,255,255,0.30); }
/* Note shown when the spread ships a prefilled question */
.step2-page .question-prefill-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border-radius: var(--radius);
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.step2-page .question-prefill-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.step2-page .question-area .counter {
  position: absolute;
  right: 14px; bottom: 10px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* Example questions */
.step2-page .example-questions { margin-top: 10px; }
.step2-page .example-questions summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  padding: 4px 0;
}
.step2-page .example-questions ul { list-style: none; padding: 0; margin: 8px 0 0; }
.step2-page .example-questions li {
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background .15s;
}
.step2-page .example-questions li:hover { background: rgba(124,58,237,0.16); }
.step2-page .example-questions .field-hint { display: block; margin-top: 6px; color: rgba(255,255,255,0.5); }

/* Email row + tooltip */
.step2-page .email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13,9,28,0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 14px 3px 3px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.step2-page .email-row:focus-within {
  border-color: var(--purple-light);
  background: rgba(13,9,28,0.78);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.step2-page .email-row input {
  flex: 1; min-width: 0;
  padding: 13px 14px;
  background: transparent;
  border: 0; outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
}
.step2-page .email-row input::placeholder { color: rgba(255,255,255,0.30); }
.step2-page .email-row input:disabled { color: rgba(255,255,255,0.62); cursor: not-allowed; }
.step2-page .email-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  cursor: help;
  transition: color .2s, background .2s;
  background: none;
  border: 0;
  font-family: inherit;
}
.step2-page .email-tooltip:hover,
.step2-page .email-tooltip:focus-visible { color: var(--white); background: rgba(255,255,255,0.04); }
.step2-page .email-tooltip .ti {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  font-style: italic;
  opacity: 0.85;
}
.step2-page .email-tooltip-label { white-space: nowrap; }
.step2-page .email-tooltip-text {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: 80vw;
  padding: 12px 14px;
  background: #1a1230;
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 20;
  text-align: left;
  cursor: default;
}
.step2-page .email-tooltip-text strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-weight: 700;
  font-size: 12.5px;
}
.step2-page .email-tooltip:hover .email-tooltip-text,
.step2-page .email-tooltip:focus-within .email-tooltip-text,
.step2-page .email-tooltip.is-open .email-tooltip-text {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.step2-page .email-account-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Price */
.step2-page .price-line {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 24px 0 14px;
  font-weight: 500;
}
.step2-page .price-line .price-current {
  color: var(--white);
  font-weight: 700;
}

/* CTA */
.step2-page .cta-wrap {
  position: relative;
  margin: 18px auto 0;
  text-align: center;
}
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 43px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #805DCF 0%, #5B458D 100%);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    0 18px 36px -14px rgba(124,58,237,0.7),
    0 0 0 1px rgba(255,255,255,0.04);
  transition: transform .15s, filter .25s, box-shadow .25s;
}
.cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: skewX(-18deg);
  transition: left .7s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(0,0,0,0.22),
    0 26px 48px -16px rgba(124,58,237,0.8);
}
.cta-btn:hover::after { left: 120%; }
.cta-btn:active { transform: translateY(0); }
.cta-price {
  font-size: 24px;
  font-weight: 900;
}

/* SmartCaptcha wrapper */
.step2-page .captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 4px;
}

/* Consent */
.step2-page .form-consent { margin-top: 26px; }
.step2-page .consent-row {
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: var(--radius);
  font-size: 9.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.step2-page .consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 22px; height: 22px;
  margin-top: 1px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.step2-page .consent-row input[type="checkbox"]:hover { border-color: var(--purple-light); }
.step2-page .consent-row input[type="checkbox"]:checked {
  background: var(--purple-accent);
  border-color: var(--purple-accent);
}
.step2-page .consent-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 7px;
  width: 6px; height: 13px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.step2-page .consent-row a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.step2-page .consent-row a:hover { color: var(--white); }

.bottom-warning {
  margin: 22px auto 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  line-height: 1.5;
}

/* Card-of-day timer */
.step2-page .card-of-day-timer {
  max-width: 440px;
  margin: 22px auto 0;
  padding: 22px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(124,58,237,0.22), rgba(124,58,237,0.06));
  border: 1px solid rgba(167,139,250,0.45);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.step2-page .card-of-day-timer-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.step2-page .card-of-day-timer-clock {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(167,139,250,0.45);
  margin-bottom: 8px;
}
.step2-page .card-of-day-timer-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Errors + notice scoped to new layout */
.step2-page .form-errors-list {
  max-width: 620px;
  margin: 0 auto 20px;
  padding: 12px 16px;
  list-style: none;
  border: 1px solid rgba(229,62,78,0.4);
  border-radius: var(--radius);
  background: rgba(229,62,78,0.08);
  font-size: 13px;
  color: #ffd2d6;
  text-align: left;
}
.step2-page .form-errors-list li { padding: 3px 0; }
.step2-page .step2-notice {
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
}
.step2-page .step2-notice strong { display: block; margin-bottom: 4px; color: var(--white); }
.step2-page .step2-notice p { margin: 0; }

/* Responsive */
@media (max-width: 720px) {
  .step2-page .card-row { gap: 12px; max-width: 100%; }
  .step2-page .card-figure { width: 78px; }
  .step2-page .card-moon { top: 10px; width: 14px; height: 14px; }
  .step2-page .card-hint { font-size: 8.5px; left: 6px; right: 6px; }
  .step2-page .email-row { flex-wrap: wrap; padding: 3px; }
  .step2-page .email-row input { padding: 12px 14px; width: 100%; }
  .step2-page .email-tooltip {
    justify-content: flex-end;
    padding: 4px 12px 8px;
    color: rgba(255,255,255,0.55);
  }
  .step2-page .email-tooltip-text { width: calc(100vw - 56px); }
  .cta-btn { padding: 18px 22px; font-size: 15px; gap: 10px; flex-wrap: wrap; }
  .cta-price { font-size: 18px; }
  .cta-badge { right: 14px; bottom: -12px; font-size: 12px; padding: 5px 11px; }
  .step2-details-btn { padding: 8px 12px; font-size: 15px; gap: 10px; flex-wrap: wrap; }
  .step-indicator { padding: 16px 0 32px; }
  .step-dot { width: 26px; height: 26px; font-size: 12px; }
  .upsell-section { margin: 16px 0 16px; }
}
@media (max-width: 420px) {
  .step2-page .spread-title, .result-header .spread-title, #step2-details-modal .card-modal-title { font-size: 26px; }
  .step2-page .card-figure { width: 62px; }
  .step2-page .card-hint { font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .step2-page .card-figure,
  .step2-page .spread-eyebrow-dot { animation: none !important; }
  .cta-btn::after { display: none; }
}


.cta-badge {
  position: absolute;
  bottom: -14px;
  right: 22px;
  padding: 6px 14px;
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  letter-spacing: 0.02em;
  box-shadow:
    0 8px 20px -8px rgba(229,62,78,0.7),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transform: rotate(-2deg);
}

/* ===== Тизер-флоу: reveal-страница ===== */
.reveal-head { text-align: center; }
.reveal-hint { font-size: 20px; opacity: 0.8; color: var(--purple-light); text-transform: uppercase; margin: 20px 0; }
.reveal-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-evenly;
  margin: 28px auto 8px;
  max-width: 760px;
  align-items: flex-start;
}
/* Карта-кнопка: без бокса-подложки — кнопкой служит сама карта.
   Внутри — 3D-переворот: рубашка (img/card-back.png) ↔ изображение карты. */
.reveal-card {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 110px;
  text-align: center;
}
.reveal-card.is-open { cursor: default; }
.reveal-card .card-position {
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.reveal-card .card-name { font-size: 13px; font-weight: 600; margin-top: 10px; }
.reveal-card .card-direction { font-size: 11px; color: var(--white-50); margin-top: 2px; }

/* Сцена переворота — это и есть «карта» (геометрия как на шаге 2). */
.reveal-flip {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 11;
  perspective: 1000px;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
/* Эффект наведения — скопирован с карточек шага 2 (.card-figure:hover). */
.reveal-card:hover .reveal-flip {
  transform: translateY(-6px);
  box-shadow: 0 24px 38px -14px rgba(124, 58, 237, 0.55);
  filter: brightness(1.08);
}
.reveal-flip-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-card.is-open .reveal-flip-inner { transform: rotateY(180deg); }

.reveal-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(124, 58, 237, 0.15);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.reveal-face img,
.reveal-face svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Лицо карты — изначально отвёрнуто; видно после поворота на 180°. */
.reveal-face-front { transform: rotateY(180deg); }
/* Перевёрнутая карта: разворачиваем само изображение лица «вверх ногами». */
.reveal-card.reversed .reveal-face-front img { transform: rotate(180deg); }

/* Имя/направление проявляются после открытия. */
.reveal-card [data-reveal-front] { opacity: 0; transition: opacity 0.3s ease 0.35s; }
.reveal-card.is-open [data-reveal-front] { opacity: 1; }

.reveal-cta { text-align: center; margin-top: 24px; margin-bottom: 24px; }
.reveal-cta .cta-btn { width: auto; min-width: 280px; }
.reveal-generating { font-size: 13px; opacity: 0.7; margin-top: 10px; }

/* ===== Тизер-флоу: step2 / step4 ===== */
.preview-note { font-size: 14px; opacity: 0.85; margin: 8px 0 4px; }

/* ----- Прогресс «Открыто X из Y частей» ----- */
.reading-progress {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--white-70);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 8px 0 28px;
  font-weight: 500;
}
.reading-progress svg { width: 20px; height: 20px; color: var(--purple-light); flex: 0 0 auto; }
.reading-progress b { color: var(--purple-light); font-weight: 700; }

/* ----- Открытые блоки расклада ----- */
.reading-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.reading-panel-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 14px;
}
.reading-panel-num {
  color: var(--purple-light);
  font-size: 30px; font-weight: 800; line-height: 1;
  min-width: 24px;
}
.reading-panel-title { color: var(--white); font-size: 19px; font-weight: 700; }
.reading-panel-body { font-size: 15px; color: var(--white-70); line-height: 1.8; }
.reading-panel-body p { margin: 0 0 14px; }
.reading-panel-body p:last-child { margin-bottom: 0; }

/* ----- Разделитель перед закрытыми блоками ----- */
.reading-interlude {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  text-align: center;
  margin: 36px 0 28px;
}
.reading-interlude p {
  margin: 0; max-width: 480px;
  color: var(--white-70); font-size: 14.5px; line-height: 1.55;
}
.reading-interlude .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 14px rgba(124,58,237,0.7);
  flex: 0 0 auto;
}

/* ----- Закрытые (платные) блоки ----- */
.locked-rows { display: grid; gap: 16px; }
.locked-row {
  display: flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  cursor: pointer; text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.locked-row-num {
  color: var(--purple-light);
  font-size: 28px; font-weight: 800; line-height: 1;
  min-width: 22px;
}
.locked-row-info { flex: 1; }
.locked-row-title { color: var(--purple-light); font-size: 17px; font-weight: 600; }
.locked-row-hook { color: var(--white-50); font-size: 14px; margin-top: 3px; }
.locked-row-lock {
  width: 46px; height: 46px; border-radius: 23px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: var(--white-50);
  cursor: pointer; text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
a.locked-row:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.07);
}
a.locked-row:hover .locked-row-lock {
  border-color: var(--purple-light);
  background: rgba(124,58,237,0.12);
}
.reading-cta { scroll-margin-top: 24px; }
.locked-row-lock svg { 
  width: 23px; 
  height: 23px;
  stroke: var(--purple-light);
}

/* ----- CTA-блок с фоновой картинкой ----- */
.reading-cta {
  position: relative;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(150,120,210,0.22);
  background: #160c2b var(--cta-bg) center center / cover no-repeat;
  text-align: center;
}
.reading-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% 50%, rgba(22,12,43,0.55) 0%, rgba(22,12,43,0.15) 60%, transparent 100%);
}
.reading-cta-inner {
  position: relative;
  padding: 36px 24px 34px;
  margin: 0 auto;
}
.reading-cta-lead {
  color: #efeafb;
  font-size: 17px; font-weight: 600;
  margin: 0 0 22px;
}
.reading-cta .cta-wrap { position: relative; display: inline-block; width: auto; margin: 0 auto; }
.reading-cta-btn { width: auto; min-width: 280px; }
.reading-cta-fine {
  margin: 22px 0 0;
  color: #c4bdd8; font-size: 13.5px; line-height: 1.5;
}
.reading-cta-terms {
  margin: 10px 0 0;
  color: var(--white-30); font-size: 12px; line-height: 1.5;
}
.reading-cta-terms a { color: var(--purple-light); text-decoration: underline; }

@media (max-width: 600px) {
  .reading-panel { padding: 24px 20px; }
  .locked-row { padding: 18px 16px; gap: 14px; }
  .locked-row-title { font-size: 15px; }
  .reading-interlude { flex-direction: column; gap: 14px; }
  .reading-interlude .dot { display: none; }
  .reading-cta .cta-wrap { display: block; width: 100%; }
  .reading-cta-btn { width: 100%; min-width: 0; }
  .reveal-cta .cta-btn { width: 100%; min-width: 0; }
  .reveal-card {width: 28%}
}
.highlight {
  color: var(--purple-light);
}

/* ============================================================
   EDITORIAL POLISH LAYER (homepage redesign)
   ============================================================ */

/* --- Accessibility: visible focus rings on all interactive elements --- */
a:focus-visible,
button:focus-visible,
.btn-card:focus-visible,
.faq-question:focus-visible,
.carousel-arrow:focus-visible,
.carousel-dot:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Micro-motion: subtle press/hover on primary CTAs (0.2s ease-out) --- */
.btn-primary, .btn-cta, .btn-outline, .btn-choose, .btn-register {
  transition: background 0.2s ease-out, border-color 0.2s ease-out,
              transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.btn-primary:hover, .btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,58,237,0.28); }
.btn-primary:active, .btn-cta:active, .btn-outline:active, .btn-choose:active { transform: translateY(0) scale(0.99); }

/* --- Editorial hairline above the CTA section for rhythm/separation --- */
.cta-section {
  border-top: 1px solid var(--border);
}

/* --- Steps: gentle lift on hover, on-style --- */
.step { transition: transform 0.2s ease-out, border-color 0.2s ease-out; }
.step:hover { transform: translateY(-2px); border-color: var(--accent-soft); }

/* --- Carousel: comfortable snap padding so first/last cards breathe --- */
.carousel { scroll-padding: 0 24px; }

/* --- Respect reduced-motion: strip transforms/animations --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .spread-card:hover, .cat-card:hover, .step:hover,
  .btn-primary:hover, .btn-cta:hover { transform: none; }
}

/* ============================================================
   MOTION LAYER — scroll reveals + cinematic hero (GSAP-driven)
   ============================================================ */

/* Reveal gate: elements start hidden ONLY when JS is present (.js on <html>).
   No-JS users never get this rule, so content is always visible for them.
   GSAP animates each element to full opacity via fromTo(). */
.js [data-reveal],
.js [data-reveal-stagger] > *,
.js [data-hero],
.js .hero-deck {
  opacity: 0;
}

/* If motion is reduced, reveal everything instantly (no fade/slide). */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal-stagger] > *,
  .js [data-hero] {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Deck: reveal but KEEP the CSS fan transform (don't flatten the stack). */
  .js .hero-deck { opacity: 1 !important; }
}

/* --- Cinematic hero: tall, vertically centred, with a scroll cue --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.how-section { scroll-margin-top: 80px; }

.hero-scroll-cue {
  position: absolute;
  left: 50%; bottom: clamp(16px, 3vh, 32px);
  transform: translateX(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  transition: color 0.2s ease-out;
  animation: cueBob 2.4s ease-in-out infinite;
}
.hero-scroll-cue:hover { color: var(--white); }
.hero-scroll-cue svg { width: 26px; height: 26px; }
@keyframes cueBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-scroll-cue { display: none; }
}

/* ============================================================
   GALLERY SPOTLIGHT — full-bleed hero + poster film-strip
   ============================================================ */

/* --- Full-bleed cinematic hero --- */
.hero--spotlight {
  position: relative;
  min-height: min(92vh, 940px);
  display: flex;
  flex-direction: row;
  align-items: flex-end;      /* content sits in the lower third */
  justify-content: initial;
  overflow: hidden;
  padding: 0;
}
@supports (min-height: 100svh) {
  .hero--spotlight { min-height: min(92svh, 940px); }
}
.hero-bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('../img/cta-bg.png');   /* fallback */
  background-image: -webkit-image-set(url('../img/cta-bg.webp') type('image/webp'), url('../img/cta-bg.png') type('image/png'));
  background-image: image-set(url('../img/cta-bg.webp') type('image/webp'), url('../img/cta-bg.png') type('image/png'));
  transform-origin: center;
}
.hero-bg::after {   /* legibility scrim (WCAG) + blend into page bottom */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,10,24,0.55) 0%, rgba(12,10,24,0.12) 28%,
                            rgba(12,10,24,0.78) 76%, var(--bg-dark) 100%),
    radial-gradient(ellipse 90% 70% at 28% 70%, rgba(12,10,24,0.35), transparent 62%);
}
.hero--spotlight .hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px clamp(48px, 9vh, 112px);
}
.hero--spotlight .hero-text { max-width: 720px; }
.hero--spotlight h1 {
  font-size: clamp(2.9rem, 1.2rem + 6vw, 5rem);
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.hero--spotlight p {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
}
@media (max-width: 900px) {
  .hero--spotlight { min-height: 76vh; }
}

/* --- Poster film-strip --- */
/* overflow-x:auto also clips vertically and at the left/right edges, cutting
   the hover lift + drop-shadow. We reserve room on all sides: extra vertical
   padding, and horizontal padding equal to the gutter while bleeding the
   scroller out to the wrapper edges (margin-inline: -gutter) so the first/last
   cards' shadows have space. A soft edge fade keeps content from hard-clipping
   or peeking behind the arrows. */
.filmstrip {
  align-items: center;
  padding: 34px var(--carousel-gutter, 48px) 60px;
  margin-inline: calc(-1 * var(--carousel-gutter, 48px));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.poster-card {
  position: relative;
  flex: 0 0 240px;
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: #fff;
  transition: transform 0.28s ease-out, border-color 0.28s ease-out, box-shadow 0.28s ease-out;
}
.poster-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 18px 44px rgba(124,58,237,0.28);
}
/* Featured lead poster (first) — wide, landscape, larger */
.filmstrip .poster-card:first-child {
  flex-basis: min(540px, 82vw);
  aspect-ratio: 16 / 10;
}
.poster-media {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(99,40,210,0.10));
}
.poster-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.5s ease-out;
}
.poster-card:hover .poster-media img { transform: scale(1.06); }
.poster-media .cards-icon { width: 46px; height: 46px; color: var(--purple-light); opacity: 0.5; }
.poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 7px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(12,10,24,0) 32%, rgba(12,10,24,0.55) 66%, rgba(12,10,24,0.9) 100%);
}
.poster-overlay h3 {
  font-size: 17px; font-weight: 700; margin: 0; line-height: 1.2;
  letter-spacing: -0.01em;
}
.poster-overlay p {
  font-size: 13px; color: rgba(255,255,255,0.82); margin: 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.poster-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px;
  font-size: 13px; font-weight: 700; color: var(--purple-light);
}
.poster-cta svg { width: 15px; height: 15px; transition: transform 0.2s ease-out; }
.poster-card:hover .poster-cta svg { transform: translateX(3px); }
/* Featured poster typography */
.filmstrip .poster-card:first-child .poster-overlay { padding: 22px; gap: 9px; }
.filmstrip .poster-card:first-child .poster-overlay h3 {
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2rem); line-height: 1.05;
}
.filmstrip .poster-card:first-child .poster-overlay p { font-size: 14px; -webkit-line-clamp: 3; }
/* Coming-soon poster */
.poster-card.is-soon { pointer-events: none; }
.poster-card.is-soon .poster-media img { filter: grayscale(0.4) brightness(0.68); }
.poster-cta--soon { color: var(--white-50); }

@media (max-width: 600px) {
  .poster-card { flex-basis: 200px; }
  .filmstrip .poster-card:first-child { flex-basis: 82vw; aspect-ratio: 3 / 2; }
}

/* ===== ОТЗЫВЫ (главная) ===== */
.reviews-section { padding: var(--space-section) 0; border-top: 1px solid var(--border); }
.reviews-head { text-align: center; margin-bottom: 4px; }
.reviews-section .section-label {
  font-size: var(--eyebrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 8px;
}
.reviews-summary {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-top: 14px;
}
.review-stars { display: inline-flex; gap: 2px; line-height: 0; }
.review-stars .star { width: 18px; height: 18px; color: rgba(255,255,255,0.18); }
.review-stars .star.is-on { color: var(--star, #fbbf24); }
.reviews-summary .reviews-avg { font-weight: 700; font-size: 18px; color: var(--text); }
.reviews-summary .reviews-count { font-size: 14px; color: var(--text-muted); }

/* Карточка отзыва — ребёнок общей карусели (.carousel-wrapper авто-инициализируется
   в main.js: стрелки на десктопе, точки на мобиле, центрирование). */
.carousel .review-card {
  flex: 0 0 360px; max-width: 360px;
  scroll-snap-align: center;
  display: flex; flex-direction: column; gap: 14px; margin: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform 0.28s ease-out, border-color 0.28s ease-out, box-shadow 0.28s ease-out;
}
.carousel .review-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.7);
}
.review-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-quote { width: 30px; height: 30px; color: var(--accent); opacity: 0.5; flex-shrink: 0; }
.review-card-head .review-stars .star { width: 15px; height: 15px; }
.review-card .review-text {
  margin: 0; flex: 1;
  color: var(--text); line-height: 1.65; font-size: 15px;
}
.review-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--purple-accent), var(--purple-light));
}
.review-id { display: flex; flex-direction: column; min-width: 0; }
.review-name { font-weight: 600; color: var(--text); }
.review-role { font-size: 13px; color: var(--text-muted); }

@media (max-width: 600px) {
  .carousel .review-card { flex-basis: 82vw; max-width: 82vw; padding: 22px; }
}
