[hidden] { display: none !important; } /* иначе .btn с display перекрывает атрибут hidden */

.zs { max-width: 1120px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 64px; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.center-row { justify-content: center; margin: 24px 0; }
.btn-ghost { background: var(--surface); box-shadow: 0 3px 0 var(--line); border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: 0 4px 0 var(--line); }
.btn.is-active { outline: 3px solid var(--green-2); outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer; text-decoration: underline dotted; }

/* Вступление */
.intro {
  display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); margin-bottom: 32px;
}
.intro h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.intro .lead { font-size: 1.15rem; color: var(--text); }
.intro-art { width: 220px; filter: drop-shadow(var(--shadow)); }
.intro-steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.intro-steps li { counter-increment: s; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.intro-steps li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-2); color: #fff; font-weight: 800; font-size: .9rem;
}
.intro-steps span { color: var(--muted); font-size: .95rem; }
.intro-faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.intro-faq summary { cursor: pointer; font-weight: 700; }
.intro-faq p { color: var(--muted); margin: 8px 0 0; }
#intro-close { margin-top: 16px; }

/* Контекст дня */
.context { text-align: center; margin: 8px 0 16px; }
.context-title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 0 8px; }
.context-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); margin: 0; }

.zs-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0; box-shadow: var(--shadow);
}
.pending { border-color: var(--gold); }

/* Настройки */
.zs-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-items: start; }
.zs-settings label, .city-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.zs-settings label .small { font-weight: 400; }
.zs-settings input, .ask-form input {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.zs-settings .row { grid-column: 1 / -1; }
.city-field { position: relative; }
.city-field .link { align-self: flex-start; font-weight: 400; }
.city-list {
  position: absolute; z-index: 5; top: 72px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  max-height: 280px; overflow-y: auto;
}
.city-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 400; }
.city-list li small { color: var(--muted); margin-left: 6px; }
.city-list li:hover, .city-list li[aria-selected="true"] { background: var(--surface-2); }

/* Карточки мудрецов */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.adv {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 8px;
}
.adv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adv-name { font-weight: 800; }
.adv-icon { font-size: 1.4rem; margin-right: 6px; }
.adv-title { font-weight: 700; margin: 0; }
.adv-short { margin: 0; }
.adv-more { display: none; color: var(--muted); font-size: .95rem; }
.adv-more p { margin: 0 0 8px; }
.adv-about { font-size: .85rem; border-top: 1px dashed var(--line); padding-top: 8px; }
.adv.open .adv-more { display: block; }
.adv-toggle { align-self: flex-start; font-size: .9rem; }
.adv.synoptic { background: var(--sci-bg); }

.chip { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.chip.go { background: var(--trad-bg); color: var(--green); }
.chip.wait { background: #f6dede; color: #a33227; }
.chip.neutral { background: #f6edd3; color: #8a6416; }

/* Итог */
.chucha {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; margin-top: 24px;
  background: var(--surface-2); border-radius: var(--radius); padding: 20px 24px;
}
.chucha h2 { font-size: 1.4rem; margin: 0 0 10px; }
.chucha #chucha-text { margin: 8px 0 12px; font-size: 1.1rem; }
.tally { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); }
.tally span { display: block; }
.tally .go, .dot.go { background: var(--green-2); }
.tally .neutral, .dot.neutral { background: var(--gold-2); }
.tally .wait, .dot.wait { background: #c0392b; }
.tally-legend { margin: 6px 0 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 10px; }
.dot:first-child { margin-left: 0; }
.decide p { margin: 0 0 10px; }

.ask-form { display: flex; gap: 10px; }
.ask-form input { flex: 1; }
.ask-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ask-list li { display: flex; gap: 10px; align-items: baseline; }
.ask-list .chip { flex-shrink: 0; }

.stat-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; margin: 8px 0; }
.stat-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stat-bar span { display: block; height: 100%; background: var(--green-2); }
.stat-row.me { font-weight: 800; }
.stat-row.me .stat-bar span { background: var(--gold-2); }

.cta { text-align: center; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip.wait { background: #3d1f1c; color: #f0a49b; }
  :root:not([data-theme="light"]) .chip.neutral { background: #3a3020; color: #f2cc6a; }
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .intro { grid-template-columns: 1fr; }
  .intro-art { display: none; }
  .intro-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .chucha { grid-template-columns: 1fr; }
  .chucha img { width: 64px; height: 64px; }
  .zs-settings { grid-template-columns: 1fr; }
  .ask-form { flex-direction: column; }
  .stat-row { grid-template-columns: 110px 1fr 56px; }
}

/* Анкета */
.profile-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 14px 0 0; }
.wizard-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 26, 18, .55);
  display: grid; place-items: center; padding: 16px;
}
.wizard-backdrop[hidden] { display: none; }
.wizard {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); border-radius: var(--radius); padding: 20px 24px 24px; box-shadow: var(--shadow);
}
.wz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wz-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wz-progress span { display: block; height: 100%; width: 0; background: var(--green-2); transition: width .2s; }
.wz-step { display: none; }
.wz-step.active { display: block; }
.wz-step h2 { font-size: 1.5rem; }
.wz-who { color: var(--muted); font-size: .95rem; }
.wz-step input[type=text], .wz-step input[type=date], .wz-step input[type=time] {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%;
}
.wz-step .check { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.wz-points { padding-left: 20px; color: var(--muted); }
.wz-summary { list-style: none; padding: 0; display: grid; gap: 6px; }
.wz-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.wz-nav #wz-skip { margin-left: auto; }
.city-list { top: 48px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); font-weight: 600;
}
.chips input:checked + span { background: var(--trad-bg); border-color: var(--green-2); color: var(--green); }
.chips input:focus-visible + span { outline: 2px solid var(--green-2); }

/* Личное на карточке */
.adv-personal { margin: 0; font-size: .92rem; background: var(--trad-bg); color: var(--green); border-radius: 10px; padding: 6px 10px; }
.adv-personal::before { content: "✦ Лично: "; font-weight: 700; }

/* По твоим темам */
.focus-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.focus-list li { display: grid; grid-template-columns: 150px auto 1fr; gap: 10px; align-items: baseline; }
.focus-list .who { color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) {
  .focus-list li { grid-template-columns: 1fr; gap: 4px; }
  .wizard { padding: 16px; }
}
