.page {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 24px auto;
  padding: 36px 20px 48px;
  background: rgba(6, 7, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.page h1 {
  font-family: Georgia, "Cambria", "Times New Roman", serif;
  font-size: clamp(24px, 4vw, 34px);
  margin: 8px 0 12px;
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: initial;
}

.lead { color: var(--ink-dim); line-height: 1.5; }
.back { color: var(--lavender); text-decoration: none; font-size: 14px; }
.note, .hint { color: var(--ink-dim); font-size: 14px; line-height: 1.5; }
.hint.detected { color: var(--lavender); }

.progress {
  display: flex;
  gap: 6px;
  margin: 24px 0;
}

.progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.progress span.active { background: var(--gold); }

.step h2 { font-size: 18px; margin: 0 0 16px; }
.hidden { display: none !important; }

input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-size: 16px;
}

.time-picker,
.date-picker {
  --wheel-item-height: 48px;
  margin: 8px 0 4px;
}

.date-picker-frame {
  gap: 4px;
}

.date-picker .wheel {
  max-width: none;
}

.date-picker .wheel-day {
  flex: 0 0 64px;
}

.date-picker .wheel-month {
  flex: 1 1 auto;
  min-width: 110px;
}

.date-picker .wheel-year {
  flex: 0 0 84px;
}

.date-picker .wheel-item {
  font-size: 22px;
}

.date-picker .wheel-item.near {
  font-size: 24px;
}

.date-picker .wheel-item.selected {
  font-size: 28px;
}

.date-picker .wheel-item.far {
  font-size: 18px;
}

.time-picker-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.time-picker-frame::before,
.time-picker-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--wheel-item-height) * 1.6);
  pointer-events: none;
  z-index: 2;
}

.time-picker-frame::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(6, 7, 15, 0.98) 20%, transparent);
}

.time-picker-frame::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(6, 7, 15, 0.98) 20%, transparent);
}

.wheel {
  flex: 1;
  max-width: 96px;
  height: calc(var(--wheel-item-height) * 5);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.wheel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.wheel::-webkit-scrollbar {
  display: none;
}

.wheel:focus {
  outline: none;
}

.wheel-list {
  list-style: none;
  margin: 0;
  padding: calc(var(--wheel-item-height) * 2) 0;
}

.wheel-item {
  height: var(--wheel-item-height);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  scroll-snap-align: center;
  color: rgba(185, 179, 214, 0.35);
  transition: color 0.12s ease, opacity 0.12s ease, transform 0.12s ease, font-size 0.12s ease;
  user-select: none;
}

.wheel-item.wheel-pad {
  visibility: hidden;
  pointer-events: none;
  scroll-snap-align: none;
}

.wheel-item.near {
  color: rgba(167, 155, 214, 0.75);
  font-size: 28px;
}

.wheel-item.selected {
  color: var(--gold);
  font-size: 34px;
  font-weight: 600;
  text-shadow: 0 0 24px var(--gold-soft);
  transform: scale(1.02);
}

.wheel-item.far {
  color: rgba(185, 179, 214, 0.22);
  font-size: 22px;
}

.time-picker-sep {
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  padding: 0 2px 4px;
  z-index: 1;
  text-shadow: 0 0 16px var(--gold-soft);
}

.wheel-highlight {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: var(--wheel-item-height);
  border-radius: 12px;
  border: 1px solid rgba(232, 195, 116, 0.35);
  background: rgba(232, 195, 116, 0.06);
  box-shadow: inset 0 0 20px rgba(232, 195, 116, 0.05);
  pointer-events: none;
  z-index: 0;
}

.radio, .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.4;
}

.nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #c99b45);
  color: #1a1206;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--ink);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.city-results {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.city-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: none;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.city-item:hover { background: rgba(232,195,116,0.12); }

.review {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.error {
  color: #ffb4b4;
  margin-top: 12px;
}

.status-card {
  margin: 24px 0;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--gold-soft);
  background: rgba(255,255,255,0.03);
}

.status-card .label { font-size: 12px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.status-card .value { font-size: 20px; margin-top: 6px; color: var(--gold); }

.result-page .meta { color: var(--ink-dim); }
.result-page .lead.subtle { color: var(--ink-dim); font-size: 14px; margin-top: -4px; }
.chart-wrap.small { width: min(220px, 70vw); margin: 24px auto 8px; }
.chart-wrap.small.is-live { width: min(260px, 78vw); }

.chart-legend {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  color: var(--ink-dim);
  font-size: 13px;
}

.legend-mark {
  display: inline-flex;
  width: 1.4em;
  justify-content: center;
  color: var(--gold);
}

.planet {
  opacity: 0;
  animation: planet-in 0.7s ease forwards;
  animation-delay: calc(0.15s * var(--i, 0));
}

.planet-ray {
  stroke: var(--gold-soft);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.planet-halo {
  fill: rgba(232, 195, 116, 0.12);
  stroke: rgba(232, 195, 116, 0.45);
  stroke-width: 1;
}

.planet-dot {
  fill: rgba(6, 7, 15, 0.85);
  stroke: var(--gold);
  stroke-width: 1.2;
}

.planet-symbol {
  fill: var(--gold);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.planet-moon .planet-dot { stroke: var(--lavender); }
.planet-moon .planet-halo { stroke: rgba(167, 155, 214, 0.5); fill: rgba(167, 155, 214, 0.1); }
.planet-moon .planet-symbol { fill: #d8d0f5; }
.planet-moon .planet-ray { stroke: rgba(167, 155, 214, 0.35); }

.planet-ascendant .planet-dot { stroke: #f0e2b0; }
.planet-ascendant .planet-symbol { fill: #f5ebc8; font-size: 8px; }

@keyframes planet-in {
  from {
    opacity: 0;
    transform: scale(0.6);
    transform-origin: 150px 150px;
  }
  to {
    opacity: 1;
    transform: scale(1);
    transform-origin: 150px 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .planet {
    opacity: 1;
    animation: none;
  }
}

.scope-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0 8px;
}

@media (min-width: 560px) {
  .scope-grid { grid-template-columns: 1fr 1fr; }
}

.scope-box {
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.scope-box h2 { font-size: 16px; margin: 0 0 10px; }
.scope-box ul { margin: 0; padding-left: 18px; color: var(--ink-dim); font-size: 14px; line-height: 1.5; }

.cards { display: grid; gap: 14px; margin: 24px 0; }
.card {
  text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
}
.card h2 { font-size: 18px; margin: 0 0 6px; }
.theme { color: var(--gold); font-size: 13px; margin: 0 0 10px; }
.muted { color: var(--ink-dim); font-size: 14px; }
.reflection {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.45;
}
.reflection strong {
  color: var(--ink);
  font-weight: 600;
}

.synthesis, .notice, .paywall, .methodology {
  text-align: left;
  margin: 24px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.method-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
}
.method-list li + li { margin-top: 8px; }

.method-more {
  margin: 14px 0 0;
  font-size: 14px;
}
.method-more a {
  color: var(--gold);
  text-decoration: none;
}
.method-more a:hover { text-decoration: underline; }

.method-card {
  text-align: left;
  margin: 20px 0;
}
.method-card h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

.feedback {
  text-align: left;
  margin: 24px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.feedback-intro { margin-top: 0; }
.feedback-thanks {
  color: var(--gold);
  margin: 8px 0 0;
}
.fb-field {
  display: block;
  margin: 0 0 18px;
}
.fb-field > span {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}
.fb-field select {
  display: none;
}
.fb-text-picker {
  --wheel-item-height: 32px;
  margin: 0;
}
.fb-text-picker .time-picker-frame {
  padding: 6px 10px;
  border-radius: 14px;
}
.fb-text-picker .wheel {
  height: calc(var(--wheel-item-height) * 3);
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
}
.fb-text-picker .wheel-list {
  padding: calc(var(--wheel-item-height) * 1) 0;
}
.fb-text-picker .wheel-item {
  font-size: 14px;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-text-picker .wheel-item.near {
  font-size: 15px;
}
.fb-text-picker .wheel-item.selected {
  font-size: 16px;
  color: var(--gold);
}
.fb-text-picker .wheel-item.far {
  font-size: 13px;
}
.fb-text-picker .time-picker-frame::before,
.fb-text-picker .time-picker-frame::after {
  height: calc(var(--wheel-item-height) * 1);
}
.fb-score-picker {
  --wheel-item-height: 32px;
  margin: 0;
}
.fb-score-picker .time-picker-frame {
  padding: 6px 8px;
  border-radius: 14px;
  gap: 0;
}
.fb-score-picker .wheel {
  height: calc(var(--wheel-item-height) * 3);
  max-width: none;
}
.fb-score-picker .wheel-list {
  padding: calc(var(--wheel-item-height) * 1) 0;
}
.fb-score-picker .wheel-item {
  font-size: 16px;
}
.fb-score-picker .wheel-item.near {
  font-size: 17px;
}
.fb-score-picker .wheel-item.selected {
  font-size: 20px;
}
.fb-score-picker .wheel-item.far {
  font-size: 14px;
}
.fb-score-picker .time-picker-frame::before,
.fb-score-picker .time-picker-frame::after {
  height: calc(var(--wheel-item-height) * 1);
}
.fb-score-frame .wheel {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}
.fb-score-frame-single {
  max-width: none;
  width: 100%;
}
.fb-score-frame-single .wheel {
  width: 100%;
  max-width: none;
}
.fb-score-labels {
  display: flex;
  margin-top: 6px;
  padding: 0 8px; /* как у .fb-score-picker .time-picker-frame */
  gap: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  color: var(--ink-dim);
}
.fb-score-labels span {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 2px;
}
.fb-personal-picker .scale-hint,
.scale-hint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0 8px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font-size: 12px;
  color: var(--ink-dim);
  opacity: 0.8;
}
.scale-hint span {
  white-space: nowrap;
}
#feedback-error {
  color: #f0a8a8;
  font-size: 14px;
  margin: 0 0 12px;
}
#feedback-form .cta {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
}

.paywall ul { padding-left: 18px; color: var(--ink-dim); }
.price { color: var(--ink-dim); font-size: 14px; }
