/* ==========================================================================
   НЕЙРОХАСЛ — Editorial Light Theme (Truespace / Apple / Stripe aesthetic)
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/Unbounded-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("/static/fonts/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("/static/fonts/NotoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F8F9FB;
  --surface: #FFFFFF;
  --surface-subtle: #F3F5F8;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #111318;
  --text-secondary: #5A6270;
  --text-muted: #8B93A1;

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: rgba(37, 99, 235, 0.09);

  --emerald: #00C978;
  --emerald-text: #047857;
  --emerald-soft: rgba(0, 201, 120, 0.12);

  --amber: #E59800;
  --amber-text: #92400E;
  --amber-soft: rgba(229, 152, 0, 0.13);

  --stage-bg: #06090F;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 2px rgba(17, 19, 24, 0.04), 0 8px 24px rgba(17, 19, 24, 0.035);
  --shadow-stage: 0 18px 44px rgba(6, 9, 15, 0.14), 0 2px 6px rgba(6, 9, 15, 0.08);
  --shadow-modal: 0 24px 60px rgba(17, 19, 24, 0.22);

  --font-display: "Unbounded", "Noto Sans", system-ui, -apple-system, sans-serif;
  --font-sans: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font-family: inherit;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 249, 251, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(17, 19, 24, 0.1);
  box-shadow: 0 2px 6px rgba(17, 19, 24, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  transition: color 0.15s ease;
}

.topnav a:hover {
  color: var(--text);
  text-decoration: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 6px 16px rgba(37, 99, 235, 0.18);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.24), 0 8px 20px rgba(37, 99, 235, 0.24);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary.btn-sm {
  padding: 8px 15px;
  font-size: 13.5px;
  border-radius: 9px;
}

.btn-primary.btn-block {
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
  text-decoration: none;
}

/* ---------- Main 2-Column Editorial Grid ---------- */

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 44px;
  align-items: start;
}

.main-col {
  min-width: 0;
}

/* ---------- Hero Manifesto ---------- */

.hero-section {
  padding-bottom: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(0, 201, 120, 0.16);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

/* ---------- Interactive Tariff Switcher ---------- */

.tariff-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.tariff-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  box-shadow: 0 1px 2px rgba(17, 19, 24, 0.03);
}

.tariff-card:hover {
  border-color: #B8C4D9;
}

.tariff-card.is-selected {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11), 0 6px 20px rgba(37, 99, 235, 0.07);
}

.tariff-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tariff-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tariff-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.tariff-card.is-selected .tariff-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.tariff-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  transform: scale(0);
  transition: transform 0.14s ease;
}

.tariff-card.is-selected .tariff-radio::after {
  transform: scale(1);
}

.tariff-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tariff-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tariff-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.tariff-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.tariff-price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.tariff-price span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.pill-emerald {
  background: var(--emerald-soft);
  color: var(--emerald-text);
}

.pill-amber {
  background: var(--amber-soft);
  color: var(--amber-text);
}

.pill-blue {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.hero-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-secondary);
}

/* ---------- Live Three.js 3D Showcase Window ---------- */

.showcase-section {
  margin-bottom: 48px;
}

.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background: radial-gradient(circle at 50% 42%, #0E182B 0%, #06090F 74%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(17, 19, 24, 0.14);
  box-shadow: var(--shadow-stage);
  cursor: grab;
  user-select: none;
}

.stage-frame:active {
  cursor: grabbing;
}

.stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.stage-frame.is-fallback .stage-fallback {
  display: block;
}

.stage-frame.is-fallback .stage-canvas {
  display: none;
}

.stage-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 2;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(6, 9, 15, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  color: #E5ECF7;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stage-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00F29A;
  box-shadow: 0 0 10px #00F29A;
}

.stage-hint {
  font-size: 11.5px;
  color: rgba(229, 236, 247, 0.72);
  background: rgba(6, 9, 15, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.stage-hud-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 2;
}

.stage-caption {
  background: rgba(6, 9, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 9px 13px;
  max-width: 500px;
}

.stage-caption-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: #FFFFFF;
  margin: 0 0 2px;
}

.stage-caption-desc {
  font-size: 12px;
  color: #BAC6DB;
  margin: 0;
  line-height: 1.45;
}

/* Segmented Tabs under 3D Window */

.stage-tabs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(17, 19, 24, 0.03);
}

.stage-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tab-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.stage-tab:hover {
  color: var(--text);
  background: var(--surface-subtle);
}

.stage-tab.is-active {
  background: var(--text);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(17, 19, 24, 0.15);
}

/* ---------- Editorial Sections (Truespace Style) ---------- */

.editorial-section {
  padding-top: 12px;
  margin-bottom: 52px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.editorial-list {
  display: flex;
  flex-direction: column;
}

.editorial-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.editorial-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.editorial-item-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.editorial-num {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.editorial-item h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.editorial-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.inline-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}

.entry-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.entry-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
}

.entry-step-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.entry-step strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text);
}

/* ---------- Community Feed & Case Posts ---------- */

.cases-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.case-card:hover {
  border-color: #CFD6E2;
  box-shadow: 0 2px 4px rgba(17, 19, 24, 0.05), 0 12px 30px rgba(17, 19, 24, 0.06);
}

.case-body {
  padding: 20px 22px 18px;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.case-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
}

.case-author img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
}

.case-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
}

.case-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.case-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--stage-bg);
  border: 1px solid rgba(17, 19, 24, 0.1);
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.case-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.case-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ---------- FAQ Accordion ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: #C7D2E5;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.18s ease, background 0.15s ease, color 0.15s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--primary-soft);
  color: var(--primary);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---------- Right Sticky Club Card (Truespace Pattern) ---------- */

.club-aside {
  position: sticky;
  top: 86px;
}

.club-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.club-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--stage-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.club-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-media-badge {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 9, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E5ECF7;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.club-card-body {
  padding: 20px;
}

.club-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.club-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(17, 19, 24, 0.1);
  flex-shrink: 0;
}

.club-name {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  margin: 0 0 3px;
}

.club-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.club-desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-secondary);
}

.club-selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 12.5px;
}

.club-selected-label {
  color: var(--text-secondary);
  font-weight: 700;
}

.club-selected-price {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text);
}

.club-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0 16px;
}

.club-includes-title {
  margin: 0 0 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.club-checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.club-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.club-bot-link {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  text-align: center;
  transition: color 0.15s ease;
}

.club-bot-link:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 24px 36px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal-meta strong {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Mobile Sticky Bottom CTA Bar ---------- */

.mobile-sticky-bar {
  display: none;
}

/* ---------- Checkout Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 19, 24, 0.54);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 468px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
}

.modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.modal-body {
  padding: 18px 22px 22px;
}

.modal-tariff-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.modal-tariff-pill {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
}

.modal-tariff-pill.is-active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.modal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.modal-summary-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.modal-summary-note {
  font-size: 12px;
  color: var(--text-secondary);
}

.modal-summary-total {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

.field {
  margin-bottom: 13px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.field-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 16px;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--text-secondary);
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-error {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 13px;
}

.form-error.is-visible {
  display: block;
}

.modal-success {
  display: none;
}

.modal-success.is-visible {
  display: block;
}

.success-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--emerald-soft);
  color: var(--emerald-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.order-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  margin: 14px 0;
}

.order-code-value {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.success-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ---------- Legal Pages (/offer, /privacy) ---------- */

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.25;
  margin: 0 0 14px;
}

.legal-lead {
  font-size: 15.5px;
  color: var(--text-secondary);
  margin: 0 0 26px;
}

.legal-card h2 {
  font-size: 17px;
  margin: 26px 0 10px;
  color: var(--text);
}

.legal-card p,
.legal-card li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.legal-box p {
  margin: 4px 0;
}

/* ---------- Responsive (< 960px) ---------- */

@media (max-width: 960px) {
  .topnav {
    display: none;
  }

  .topbar-inner {
    padding: 0 16px;
  }

  .page-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 24px 16px 104px;
  }

  .club-aside {
    position: static;
    order: 2;
  }

  .stage-frame {
    min-height: 230px;
  }

  .stage-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(17, 19, 24, 0.08);
  }

  .mobile-bar-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }

  .mobile-bar-title {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text);
  }

  .mobile-bar-price {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
  }
}

@media (max-width: 560px) {
  .topbar-actions .btn-ghost {
    display: none;
  }

  .tariff-card {
    padding: 13px 14px;
    gap: 10px;
  }

  .tariff-price {
    font-size: 15px;
  }

  .stage-hint {
    display: none;
  }

  .stage-frame {
    aspect-ratio: 4 / 3;
    min-height: 270px;
  }

  .stage-caption {
    padding: 7px 11px;
  }

  .stage-caption-desc {
    display: none;
  }

  .case-body {
    padding: 16px;
  }

  .legal-card {
    padding: 24px 20px;
  }
}
