/* =========================================================
   Личный кабинет (гостевой). Токены и кнопки — из runa.css.
   ========================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.cab-page { background: var(--paper); }

/* =========================================================
   ШАПКА КАБИНЕТА
   ========================================================= */
.cab-head {
  position: relative;
  /* z-index выше тела кабинета — иначе выпадающие меню уходят под контент.
     overflow здесь намеренно не скрываем: он обрезал бы эти меню,
     а звёздный слой и так не выходит за границы шапки. */
  z-index: 5;
  padding: var(--s-3) 0;
  color: #fff8ef;
  background:
    radial-gradient(ellipse 60% 120% at 78% 40%, rgba(150, 104, 200, 0.3), transparent 66%),
    linear-gradient(120deg, #23102c, #150816);
}
.cab-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 14% 30%, rgba(255, 252, 240, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 42% 72%, rgba(255, 252, 240, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 68% 24%, rgba(255, 252, 240, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 88% 66%, rgba(255, 252, 240, 0.6), transparent);
  animation: starDust 12s ease-in-out infinite;
}
.cab-head-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
}
.cab-head-row .logo { width: 150px; }

.cab-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px var(--s-2);
  font-size: 14px;
}
.cab-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 248, 239, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 239, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.8);
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(213, 173, 105, 0.22);
}
.cab-id b { font-weight: 600; color: rgba(255, 248, 239, 0.9); }
.cab-id a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cab-save-top {
  background: linear-gradient(103deg, #b8873f, #f4dfae 46%, #c2913f);
  color: #3a2408;
  box-shadow: 0 6px 18px rgba(97, 68, 26, 0.42);
}

/* =========================================================
   СЕТКА КАБИНЕТА
   ========================================================= */
.cab {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-5) 0 var(--s-7);
}

/* ---------- боковая навигация ---------- */
.cab-nav { position: sticky; top: var(--s-3); }
.cab-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: rgba(255, 252, 246, 0.72);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.cab-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #55483d;
  transition: background 0.16s ease, color 0.16s ease;
}
.cab-tab i {
  flex: 0 0 auto;
  width: 22px;
  font-style: normal;
  font-size: 15px;
  text-align: center;
  color: var(--gold-deep);
}
.cab-tab span { flex: 1; }
.cab-tab .lock { font-size: 11px; opacity: 0.7; }
.cab-tab:hover { background: rgba(255, 255, 255, 0.7); }
.cab-tab.is-active {
  background: linear-gradient(120deg, #2c1738, #1a0b20);
  color: #fff8ef;
  box-shadow: 0 6px 16px rgba(30, 12, 34, 0.28);
}
.cab-tab.is-active i { color: var(--gold); }
.cab-tab.is-locked span { color: #8a7a6d; }
.cab-tab.is-locked.is-active span { color: #fff8ef; }

.cab-aside-note {
  margin-top: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #2c1738, #17091d);
  box-shadow: inset 0 1px 0 rgba(255, 246, 234, 0.14), 0 14px 30px rgba(30, 12, 34, 0.32);
  color: #fff8ef;
}
.cab-aside-note b { display: block; margin-bottom: 6px; font-size: 14px; }
.cab-aside-note p {
  margin: 0 0 var(--s-3);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 248, 239, 0.66);
}
.cab-aside-note .btn {
  background: linear-gradient(103deg, #b8873f, #f4dfae 46%, #c2913f);
  color: #3a2408;
}

/* =========================================================
   ПАНЕЛИ
   ========================================================= */
.panel-head { margin-bottom: var(--s-4); }
.panel-head h1 {
  margin: var(--s-2) 0 0;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  color: #3d1636;
}
.panel-head p {
  margin: var(--s-2) 0 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: #55483d;
}

/* подзаголовок внутри панели — например «12 глав» внутри натальной карты */
.sub-head {
  margin: var(--s-5) 0 var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.sub-head h2 {
  margin: var(--s-2) 0 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  color: #3d1636;
}
.sub-head p {
  margin: var(--s-2) 0 0;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #55483d;
}

.card {
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(255, 252, 246, 0.94), rgba(243, 234, 222, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--shadow-card);
}
.card + .card { margin-top: var(--s-3); }

/* плитки */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.tile {
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(255, 252, 246, 0.94), rgba(243, 234, 222, 0.8));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--shadow-card);
}
.tile span {
  display: block; margin-bottom: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted);
}
.tile b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px; font-weight: 600; line-height: 1.1; color: var(--plum-2);
}
.tile b.muted { color: #9c8d80; }
.tile i {
  display: block; margin-top: 4px;
  font-size: 12.5px; font-style: normal; color: var(--ink-soft);
}

/* список совпадений */
.synthesis-card .t-kicker { color: var(--gold-deep); margin-bottom: var(--s-2); }
.synthesis-list {
  counter-reset: syn; margin: 0; padding: 0; list-style: none;
}
.synthesis-list li {
  counter-increment: syn;
  position: relative;
  padding: var(--s-3) 0 var(--s-3) 52px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.6; color: #514338;
}
.synthesis-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.synthesis-list li::before {
  content: "0" counter(syn);
  position: absolute; left: 0; top: var(--s-3);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px; color: var(--gold-deep);
}
.synthesis-list b { display: block; margin-bottom: 3px; font-weight: 700; color: var(--ink); }

/* пары термин — расшифровка */
.readout { margin: 0; }
.readout > div {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.readout > div:first-child { padding-top: 0; }
.readout > div:last-child { border-bottom: 0; padding-bottom: 0; }
.readout dt {
  margin-bottom: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep);
}
.readout dd { margin: 0; font-size: 16px; line-height: 1.6; color: #4f4137; }

/* карточки «дальше» */
.next-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  margin-top: var(--s-3);
}
.next-card {
  padding: var(--s-3);
  border: 0;
  border-radius: var(--r-md);
  background: rgba(255, 252, 246, 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.next-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); }
.next-card b {
  display: block; margin: 6px 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px; font-weight: 600; color: var(--plum-2);
}
.next-card i { font-size: 13.5px; font-style: normal; color: var(--ink-soft); }
.next-card.is-locked { background: rgba(240, 232, 222, 0.6); }

/* главы */
.chapter-card details { border-bottom: 1px solid var(--line); }
.chapter-card details:last-child { border-bottom: 0; }
.chapter-card summary {
  list-style: none; display: flex; align-items: baseline; gap: var(--s-2);
  padding: var(--s-3) 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px; font-weight: 600; color: var(--plum-2); cursor: pointer;
}
.chapter-card summary::-webkit-details-marker { display: none; }
.chapter-card summary i {
  flex: 0 0 auto;
  font-family: "Manrope", sans-serif; font-style: normal;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-deep);
}
.chapter-card summary::after {
  content: "+"; margin-left: auto;
  font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 400;
  color: var(--gold-deep); transition: transform 0.2s ease;
}
.chapter-card details[open] summary::after { transform: rotate(45deg); }
.chapter-card details p {
  margin: 0 2px var(--s-3) 40px;
  font-size: 15.5px; line-height: 1.65; color: #514338;
}

/* =========================================================
   ЯРКИЕ БЛОКИ ОБЗОРА
   ========================================================= */
.hero-block {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  color: #fff8ef;
  background:
    radial-gradient(ellipse 66% 60% at 18% 14%, rgba(168, 118, 232, 0.42), transparent 64%),
    radial-gradient(ellipse 60% 54% at 88% 84%, rgba(232, 126, 196, 0.34), transparent 68%),
    linear-gradient(150deg, #34184a, #1a0a22);
  box-shadow: inset 0 1px 0 rgba(255, 246, 234, 0.16), 0 20px 44px rgba(28, 10, 34, 0.34);
}
.hero-block-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image:
    radial-gradient(1.6px 1.6px at 16% 26%, rgba(255, 252, 240, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 44% 74%, rgba(255, 252, 240, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 72% 20%, rgba(255, 252, 240, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 90% 62%, rgba(255, 252, 240, 0.55), transparent);
  animation: starDust 11s ease-in-out infinite;
}
.hero-block-in { position: relative; }
.hero-block .t-kicker { color: var(--gold); }
.hero-block .t-kicker::before, .hero-block .t-kicker::after { background: rgba(213, 173, 105, 0.45); }
.hero-block h1 {
  margin: var(--s-2) 0 var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600; line-height: 1.06; color: #fff8ef;
}
.hero-block p {
  margin: 0; max-width: 560px;
  font-size: 16px; line-height: 1.6; color: rgba(255, 248, 239, 0.74);
}

/* цветные плитки */
.tile.t-sun   { background: linear-gradient(150deg, #fff6e6, #f6dfba); }
.tile.t-asc   { background: linear-gradient(150deg, #fdf0f7, #eccfe4); }
.tile.t-moon  { background: linear-gradient(150deg, #eef2fd, #d3dcf4); }
.tile.t-bazi  { background: linear-gradient(150deg, #eefaf1, #cfe8d6); }
.tile.t-hd    { background: linear-gradient(150deg, #f6f0fe, #ddcdf5); }
.tile.t-period{ background: linear-gradient(150deg, #f4efe9, #e3d8cc); }

/* =========================================================
   ЗАКРЫТЫЕ МОДУЛИ НА ОБЗОРЕ
   ========================================================= */
.unlock-head { margin: var(--s-5) 0 var(--s-3); }
.unlock-head h2 {
  margin: var(--s-2) 0 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600; line-height: 1.12; color: #3d1636;
}
.unlock-head p {
  margin: var(--s-2) 0 0; max-width: 660px;
  font-size: 16px; line-height: 1.6; color: #55483d;
}

.unlock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

.unlock-card {
  position: relative;
  overflow: hidden;
  padding: var(--s-5) var(--s-4) var(--s-4);
  border: 0;
  border-radius: var(--r-lg);
  text-align: left;
  color: #fff8ef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.unlock-card.u-period {
  background:
    radial-gradient(ellipse 70% 56% at 80% 16%, rgba(196, 140, 255, 0.5), transparent 66%),
    linear-gradient(150deg, #5b2a8f, #2a0f42);
  box-shadow: inset 0 1px 0 rgba(255, 246, 234, 0.2), 0 20px 44px rgba(52, 16, 82, 0.4);
}
.unlock-card.u-avoid {
  background:
    radial-gradient(ellipse 70% 56% at 80% 16%, rgba(255, 140, 196, 0.4), transparent 66%),
    linear-gradient(150deg, #7a2661, #2d0e2a);
  box-shadow: inset 0 1px 0 rgba(255, 246, 234, 0.2), 0 20px 44px rgba(74, 16, 58, 0.4);
}
.unlock-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,246,234,.24), 0 28px 60px rgba(40, 12, 60, 0.5); }
.unlock-card .t-kicker { color: var(--gold); }
.unlock-card .t-kicker::before, .unlock-card .t-kicker::after { background: rgba(213, 173, 105, 0.5); }
.unlock-card b {
  display: block; margin: var(--s-2) 0 var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px; font-weight: 600; color: #fff8ef;
}
.unlock-card p {
  margin: 0 0 var(--s-3); max-width: 420px;
  font-size: 15px; line-height: 1.6; color: rgba(255, 248, 239, 0.78);
}
.unlock-card i {
  font-style: normal; font-size: 14px; font-weight: 700; color: var(--gold);
}

/* крупный «игрушечный» замок */
.big-lock {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  display: block;
  width: 92px; height: 92px;
  filter: drop-shadow(0 10px 20px rgba(20, 6, 34, 0.45));
}
.big-lock svg { width: 100%; height: 100%; overflow: visible; }
.big-lock rect { fill: #b98cff; }
.big-lock path { stroke: #9a6ae8; }
.big-lock .hole { fill: #5a2e9c; }

/* лента с рунами */
.runes-teaser {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
  width: 100%;
  margin-top: var(--s-3);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  background: linear-gradient(120deg, #2c1630, #1a0c20);
  color: #fff8ef;
  transition: transform 0.2s ease;
}
.runes-teaser:hover { transform: translateY(-3px); }
.runes-teaser img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; display: block; }
.runes-teaser > span { display: block; padding: var(--s-3) var(--s-4) var(--s-3) 0; }
.runes-teaser .t-kicker { color: var(--gold); }
.runes-teaser .t-kicker::before, .runes-teaser .t-kicker::after { background: rgba(213,173,105,.45); }
.runes-teaser b {
  display: block; margin: 6px 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px; font-weight: 600; color: #fff8ef;
}
.runes-teaser i { font-style: normal; font-size: 14px; color: rgba(255, 248, 239, 0.7); }

/* =========================================================
   РАЗДЕЛ РУН
   ========================================================= */
.rune-label {
  display: block; margin-bottom: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted);
}
.rune-ask textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 16px/1.5 "Manrope", sans-serif;
  color: var(--ink);
  resize: vertical;
}
.rune-ask textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.rune-materials { margin: var(--s-3) 0; }
.chips-pick button {
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; color: #55483d;
}
.chips-pick button.is-on {
  background: linear-gradient(120deg, #2c1738, #1a0b20);
  color: #fff8ef;
  box-shadow: none;
}
.rune-empty { text-align: center; }
.rune-empty span {
  display: block; margin-bottom: 8px;
  font-size: 34px; color: var(--gold-deep);
}
.rune-empty b {
  display: block; margin-bottom: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--plum-2);
}
.rune-empty p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* =========================================================
   ГОД: ПОЛОСА И ЕЖЕДНЕВНЫЙ БЛОК
   ========================================================= */
.year-card h3 {
  margin: var(--s-2) 0 var(--s-4);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px; font-weight: 600; color: var(--plum-2);
}
.year-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-bottom: 10px;
}
.year-bar .seg {
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff8ef;
}
.year-bar .s1 { background: linear-gradient(120deg, #6a3b9e, #8a56c4); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.year-bar .s2 { background: linear-gradient(120deg, #8a56c4, #b070d8); }
.year-bar .s3 { background: linear-gradient(120deg, #b070d8, #d489c0); }
.year-bar .s4 { background: linear-gradient(120deg, #d489c0, #e0ac8e); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.year-now {
  position: absolute;
  top: -8px; bottom: -8px;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(213, 173, 105, 0.28);
  border-radius: 2px;
}
.year-now b {
  position: absolute;
  top: -26px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #3a2408;
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.year-legend {
  display: flex; justify-content: space-between;
  font-size: 11.5px; font-weight: 600; color: var(--ink-muted);
}
.year-note {
  margin: var(--s-3) 0 0;
  font-size: 15.5px; line-height: 1.6; color: #514338;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-3); }
.two-col .card { margin-top: 0; }

.daily-card {
  background:
    radial-gradient(ellipse 70% 50% at 24% 12%, rgba(196, 140, 255, 0.28), transparent 62%),
    linear-gradient(150deg, #3a1c4e, #1d0b26);
  color: #fff8ef;
  box-shadow: inset 0 1px 0 rgba(255, 246, 234, 0.16), 0 14px 30px rgba(28, 10, 34, 0.34);
}
.daily-card .t-kicker { color: var(--gold); }
.daily-card .t-kicker::before, .daily-card .t-kicker::after { background: rgba(213,173,105,.45); }
.daily-date {
  display: block; margin: var(--s-2) 0 var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px; font-weight: 600; color: #fff8ef;
}
.daily-card p { margin: 0 0 var(--s-3); font-size: 15px; line-height: 1.6; color: rgba(255,248,239,.78); }
.daily-refresh { font-size: 12.5px; font-weight: 700; color: var(--gold); }

/* =========================================================
   ЗАКРЫТЫЕ РАЗДЕЛЫ
   ========================================================= */
.locked { position: relative; }
.locked-body {
  filter: blur(3px) saturate(0.85);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  max-height: 560px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 96%);
}

.lock-gate {
  position: absolute;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100% - 32px));
  padding: var(--s-6) var(--s-4) var(--s-4);
  border-radius: var(--r-lg);
  text-align: center;
  color: #fff8ef;
  background:
    radial-gradient(ellipse 72% 48% at 26% 8%, rgba(196, 140, 255, 0.44), transparent 64%),
    linear-gradient(155deg, #4a2178, #220d33);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 234, 0.22),
    0 20px 40px rgba(24, 8, 40, 0.45),
    0 48px 92px rgba(24, 8, 40, 0.5);
}
.gate-lock {
  position: absolute;
  top: -46px; right: auto; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 96px;
}
.lock-gate h3 {
  margin: 0 0 var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px; font-weight: 600; color: #fff8ef;
}
.gate-free {
  margin: 0 0 var(--s-3);
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255, 248, 239, 0.78);
}
.gate-list {
  margin: 0 0 var(--s-4);
  padding: var(--s-3) var(--s-3);
  list-style: none;
  border-radius: var(--r-md);
  background: rgba(255, 248, 239, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 239, 0.16);
  text-align: left;
}
.gate-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14.5px; font-weight: 600;
  color: rgba(255, 248, 239, 0.9);
}
.gate-list li::before {
  content: "✦";
  position: absolute; left: 0; top: 6px;
  font-size: 11px; color: var(--gold);
}

.btn-gold {
  background: linear-gradient(103deg, #b8873f, #f4dfae 46%, #c2913f);
  color: #3a2408;
  box-shadow: 0 6px 18px rgba(97, 68, 26, 0.42);
}
.btn-gold:hover { box-shadow: 0 12px 26px rgba(97, 68, 26, 0.5); }

.save-mail { display: flex; gap: var(--s-1); margin-top: var(--s-2); }
.save-mail input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 0; border-radius: var(--r-sm);
  background: rgba(255, 252, 246, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: var(--ink); font-size: 15px; font-weight: 600;
}
.save-mail input::placeholder { font-weight: 500; color: #9c8d80; }
.save-mail input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.save-mail .btn {
  flex: 0 0 auto; height: 46px; padding: 0 18px; font-size: 14px;
  color: #fff8ef;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 239, 0.34);
}
.save-mail .btn:hover { background: rgba(255, 248, 239, 0.12); }

/* опрос про период */
.quiz + .quiz, .two-col + .quiz { margin-top: var(--s-2); }
.quiz-step {
  display: inline-block; margin-bottom: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep);
}
.quiz h3 {
  margin: 0 0 var(--s-3);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--plum-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; color: #55483d;
}


/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1040px) {
  .cab { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .cab-nav { position: static; }
  /* навигация превращается в горизонтальную ленту */
  .cab-tabs {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cab-tabs::-webkit-scrollbar { display: none; }
  .cab-tab { flex: 0 0 auto; padding: 10px 14px; }
  .cab-tab i { display: none; }
  .cab-aside-note { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unlock-grid { grid-template-columns: minmax(0, 1fr); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .cab-head-row {
    grid-template-columns: 1fr auto;
    row-gap: var(--s-2);
  }
  .cab-id { grid-column: 1 / -1; order: 3; }
  .cab-head-row .logo { width: 130px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lock-gate {
    position: static;
    transform: none;
    width: auto;
    margin-top: calc(var(--s-5) * -1);
    padding-top: var(--s-6);
  }
  .locked-body { max-height: 300px; }
  .save-mail { flex-direction: column; }
  .save-mail .btn { width: 100%; }
  .hero-block { padding: var(--s-4); }
  .big-lock { width: 64px; height: 64px; }
  .gate-lock { width: 80px; height: 80px; top: -38px; }
  .runes-teaser { grid-template-columns: minmax(0, 1fr); }
  .runes-teaser img { min-height: 110px; }
  .runes-teaser > span { padding: 0 var(--s-3) var(--s-3); }
  .year-bar .seg { font-size: 10px; }
  .year-bar .seg span { transform: rotate(-90deg); white-space: nowrap; }
  .year-bar .seg { height: 62px; }
}

/* =========================================================
   СИНЯЯ РАСТЯЖКА ПОД КОНТЕНТНЫМИ РАЗДЕЛАМИ
   Синий здесь намеренно чужой для палитры: баннер должен
   читаться как отдельная плашка, а не как часть разбора.
   ========================================================= */
.promo-strip {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  color: #eef4ff;
  background:
    radial-gradient(ellipse 64% 58% at 16% 14%, rgba(86, 150, 255, 0.42), transparent 64%),
    radial-gradient(ellipse 58% 52% at 88% 86%, rgba(122, 96, 240, 0.34), transparent 68%),
    linear-gradient(150deg, #17346b, #0c1a35);
  box-shadow:
    inset 0 1px 0 rgba(224, 238, 255, 0.2),
    0 20px 44px rgba(10, 26, 54, 0.36);
}
.promo-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 14% 24%, rgba(232, 243, 255, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 40% 72%, rgba(232, 243, 255, 0.6), transparent),
    radial-gradient(1.4px 1.4px at 68% 18%, rgba(232, 243, 255, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 90% 60%, rgba(232, 243, 255, 0.55), transparent);
  animation: starDust 12s ease-in-out infinite;
}

.promo-main, .promo-extra { position: relative; }

.promo-strip .t-kicker { color: #8fc0ff; }
.promo-strip .t-kicker::before,
.promo-strip .t-kicker::after { background: rgba(143, 192, 255, 0.45); }

.promo-main h3 {
  margin: var(--s-2) 0 var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  color: #f2f7ff;
}
.promo-main p {
  margin: 0 0 var(--s-4);
  max-width: 460px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(238, 244, 255, 0.76);
}

/* правая половина: карты для близких */
.promo-extra {
  padding-left: var(--s-5);
  border-left: 1px solid rgba(143, 192, 255, 0.24);
}
.promo-ico {
  display: block;
  width: 46px; height: 46px;
  margin-bottom: var(--s-2);
  color: #8fc0ff;
}
.promo-ico svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promo-extra b {
  display: block;
  margin-bottom: var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #f2f7ff;
}
.promo-extra p {
  margin: 0 0 var(--s-2);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(238, 244, 255, 0.76);
}
.promo-extra i {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #8fc0ff;
}

@media (max-width: 1040px) {
  .promo-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .promo-extra {
    padding-left: 0;
    padding-top: var(--s-4);
    border-left: 0;
    border-top: 1px solid rgba(143, 192, 255, 0.24);
  }
}

@media (max-width: 680px) {
  .promo-strip { padding: var(--s-4); }
  .promo-main .btn { width: 100%; }
}

/* =========================================================
   Яркая заметка про сохранение — компактная, вместо баннера.
   Тот же синий, что у растяжки, но в одну строку.
   ========================================================= */
.keep-note {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  /* верхний отступ обязателен: баннер всегда идёт сразу за карточкой
     контента и без него склеивается с ней вплотную */
  margin-top: var(--s-4);
  margin-bottom: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  color: #eef4ff;
  background:
    radial-gradient(ellipse 50% 140% at 8% 50%, rgba(86, 150, 255, 0.4), transparent 68%),
    linear-gradient(120deg, #17346b, #0e2044);
  box-shadow: inset 0 1px 0 rgba(224, 238, 255, 0.2), 0 12px 26px rgba(10, 26, 54, 0.3);
}
.keep-ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(143, 192, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(143, 192, 255, 0.34);
  color: #8fc0ff;
}
.keep-ico svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linejoin: round;
}
.keep-note p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(238, 244, 255, 0.78);
}
.keep-note b { color: #f2f7ff; font-weight: 700; }
.keep-note .btn { flex: 0 0 auto; }

@media (max-width: 680px) {
  .keep-note {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: var(--s-2);
  }
  .keep-note .btn { grid-column: 1 / -1; width: 100%; }
}

/* =========================================================
   РАЗДЕЛ РУН: рабочий флоу
   ========================================================= */
.rune-access {
  display: grid; grid-template-columns: 10px minmax(0,1fr); align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-3); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: rgba(150, 220, 170, 0.14);
  box-shadow: inset 0 0 0 1px rgba(90, 160, 115, 0.24);
}
.acc-dot { width: 10px; height: 10px; border-radius: 50%; background: #5aa073; }
.rune-access b { display: block; font-size: 14.5px; color: #2f5c42; }
.rune-access i { font-style: normal; font-size: 13.5px; color: #4d6b58; }

.rune-locked { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: var(--s-3); align-items: center; }
.lock-mini {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(213,173,105,.2); font-size: 18px;
}
.rune-locked p { margin: 0; font-size: 15px; color: #55483d; }

.rune-resume {
  display: grid; grid-template-columns: 34px minmax(0,1fr); gap: var(--s-3); align-items: center;
  margin-bottom: var(--s-3); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: rgba(213,173,105,.14);
  box-shadow: inset 0 0 0 1px rgba(157,112,66,.22);
}
.rune-resume span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(213,173,105,.25); color: var(--gold-deep); }
.rune-resume p { margin: 0; font-size: 14.5px; color: #55483d; }

/* шаги */
.flow-steps {
  display: flex; gap: var(--s-2); margin: 0 0 var(--s-3); padding: 0; list-style: none;
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
}
.flow-steps li { display: flex; align-items: center; gap: 8px; }
.flow-steps li + li::before { content: "·"; margin-right: 8px; opacity: .5; }
.flow-steps b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(65,48,37,.1); font-size: 11.5px; color: var(--ink-muted);
}
.flow-steps li.is-on { color: var(--plum-2); }
.flow-steps li.is-on b { background: linear-gradient(120deg,#2c1738,#1a0b20); color: #fff8ef; }
.flow-steps li.is-done b { background: var(--gold); color: #3a2408; }

.flow-step { display: none; }
.flow-step.is-active { display: block; }

/* шаг 1 */
#questionInput {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 16px/1.55 "Manrope", system-ui, sans-serif;
  color: var(--ink);
  resize: vertical;
}
#questionInput::placeholder { font-weight: 500; color: #a8998c; }
#questionInput:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }

.field-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-top: 8px; }
.counter { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.err { font-size: 13px; font-weight: 600; color: #b4453f; }

.mat-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin: var(--s-4) 0 var(--s-2); }
.mat-head .rune-label { margin: 0; }
.mat-info-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 0; border-radius: var(--r-pill);
  background: rgba(213,173,105,.18);
  font-size: 13px; font-weight: 700; color: var(--gold-deep);
}
.mat-info-btn span {
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-deep); color: #fff8ef; font-size: 11px;
}
.mat-info-btn:hover { background: rgba(213,173,105,.3); }

.mat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-2); margin-bottom: var(--s-4); }
.material-card {
  padding: var(--s-3) var(--s-2); border: 0; border-radius: var(--r-md);
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center; transition: transform .18s ease, box-shadow .18s ease;
}
.material-card img { width: 34px; height: 56px; object-fit: contain; margin: 0 auto 8px; }
.material-card b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.material-card i { display: block; font-style: normal; font-size: 12px; color: var(--ink-muted); }
.material-card:hover { transform: translateY(-2px); }
.material-card.is-selected {
  background: linear-gradient(140deg,#2c1738,#1a0b20);
  box-shadow: 0 10px 24px rgba(30,12,34,.3);
}
.material-card.is-selected b { color: #fff8ef; }
.material-card.is-selected i { color: rgba(255,248,239,.66); }

/* шаг 2 */
.pick-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.pick-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.pick-note b { color: var(--plum-2); }
.rune-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 10px; margin-bottom: var(--s-3); }
.rune-pick {
  padding: 0; border: 0; background: none; border-radius: 10px;
  transition: transform .16s ease, filter .16s ease;
}
.rune-pick img { width: 100%; aspect-ratio: 9/16; object-fit: contain; display: block; filter: drop-shadow(0 6px 14px rgba(54,38,30,.22)); }
.rune-pick:hover { transform: translateY(-3px); }
/* выбранная руна: подложка-ореол, иначе на сетке из 24 плиток
   сдвиг и яркость почти не читаются */
.rune-pick { position: relative; }
.rune-pick.is-selected { transform: translateY(-5px); }
.rune-pick.is-selected::before {
  content: "";
  position: absolute; inset: -7px -5px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 45%, rgba(213,173,105,.42), rgba(213,173,105,0) 72%);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.rune-pick.is-selected::after {
  content: "✦";
  position: absolute; top: -10px; right: -6px;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #3a2408; font-size: 11px;
  box-shadow: 0 4px 10px rgba(97,68,26,.4);
}
.rune-pick.is-selected img { position: relative; filter: drop-shadow(0 10px 20px rgba(120,60,110,.4)) brightness(1.12); }
.pick-foot { display: flex; gap: var(--s-2); }

/* шаг 3 */
.wait-card { text-align: center; }
.wait-orb {
  width: 64px; height: 64px; margin: 0 auto var(--s-3); border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff6de, #d5ad69 58%, #8a5a2e);
  animation: waitPulse 2.4s ease-in-out infinite;
}
@keyframes waitPulse {
  0%,100% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(213,173,105,.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(213,173,105,0); }
}
.wait-card b { display: block; margin-bottom: 6px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; color: var(--plum-2); }
.wait-card p { margin: 0 auto; max-width: 440px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* шаг 4 */
.result-top { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.mat-chip {
  padding: 6px 14px; border-radius: var(--r-pill);
  background: linear-gradient(120deg,#2c1738,#1a0b20);
  font-size: 12.5px; font-weight: 700; color: #fff8ef;
}
.result-runes { display: flex; gap: 6px; flex-wrap: wrap; }
.result-runes span {
  padding: 6px 13px; border-radius: var(--r-pill);
  background: rgba(213,173,105,.2);
  font-size: 12.5px; font-weight: 700; color: var(--gold-deep);
}
.result-q {
  margin: 0 0 var(--s-3); padding-left: var(--s-3);
  border-left: 3px solid var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px; line-height: 1.3; color: var(--plum-2);
}
.result-text {
  margin-bottom: var(--s-4);
  font-size: 16.5px; line-height: 1.7; color: #4f4137;
  white-space: pre-wrap;
}

/* =========================================================
   МОДАЛКА ПРО МАТЕРИАЛЫ
   ========================================================= */
.mat-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--s-3); }
.mat-backdrop { position: absolute; inset: 0; background: rgba(20,8,24,.62); backdrop-filter: blur(3px); }
.mat-card {
  position: relative;
  width: min(680px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg,#fdf7ee,#f2e6d6);
  box-shadow: 0 30px 70px rgba(20,8,24,.5);
}
.mat-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(65,48,37,.08); font-size: 20px; color: var(--ink-soft);
}
.mat-close:hover { background: rgba(65,48,37,.16); }
.mat-card h2 {
  margin: var(--s-2) 0 var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px; font-weight: 600; color: #3d1636;
}
.mat-intro { margin: 0 0 var(--s-4); font-size: 15.5px; line-height: 1.6; color: #55483d; }
.mat-list { display: grid; gap: var(--s-3); }
.mat-list article {
  display: grid; grid-template-columns: 52px minmax(0,1fr); gap: var(--s-3);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
.mat-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.mat-list img { width: 52px; height: 84px; object-fit: contain; }
.mat-list b {
  display: block; margin-bottom: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--plum-2);
}
.mat-list p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: #514338; }
.mat-list i { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--gold-deep); }
.mat-outro { margin: var(--s-4) 0 0; font-size: 15px; font-style: italic; color: var(--ink-soft); }

@media (max-width: 1040px) {
  .rune-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .mat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rune-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
  .flow-steps { font-size: 12px; flex-wrap: wrap; }
  .pick-head { flex-direction: column; }
  .pick-foot { flex-direction: column; }
  .pick-foot .btn { width: 100%; }
  .mat-card { padding: var(--s-4); }
  .mat-list article { grid-template-columns: 40px minmax(0,1fr); }
  .mat-list img { width: 40px; height: 64px; }
}

/* гостевой шлюз в разделе рун */
.guest-gate {
  position: relative;
  margin-top: var(--s-5);
  padding: var(--s-6) var(--s-4) var(--s-4);
  border-radius: var(--r-lg);
  text-align: center;
  color: #fff8ef;
  background:
    radial-gradient(ellipse 72% 48% at 26% 8%, rgba(196, 140, 255, 0.44), transparent 64%),
    linear-gradient(155deg, #4a2178, #220d33);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 234, 0.22),
    0 20px 40px rgba(24, 8, 40, 0.45);
}
.guest-gate h3 {
  margin: 0 0 var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px; font-weight: 600; color: #fff8ef;
}
.guest-gate p {
  margin: 0 auto var(--s-4);
  max-width: 420px;
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255, 248, 239, 0.78);
}

/* =========================================================
   НАТАЛЬНАЯ КАРТА: ввод, сводка, планеты и дома
   ========================================================= */
.natal-form-lead {
  margin: 0 0 var(--s-3);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-muted);
}
.natal-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.natal-field { display: block; }
.natal-field + .natal-field { margin-top: 0; }
.natal-field > span {
  display: block; margin-bottom: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted);
}
.natal-field input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 0; border-radius: var(--r-sm);
  background: rgba(255, 253, 249, 0.95);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 16px/1 "Manrope", sans-serif; color: var(--ink);
}
.natal-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.natal-field input::placeholder { font-weight: 500; color: #9c8d80; }
.natal-hint {
  display: block; margin-top: 7px;
  font-size: 12.5px; font-style: normal; color: var(--ink-muted);
}

/* подсказки городов: список висит над карточкой, поэтому нужен свой слой */
.ac-field { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 6;
  max-height: 260px; overflow-y: auto;
  border-radius: var(--r-sm);
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 32px rgba(58, 34, 20, 0.16);
}
.ac-option {
  display: block; width: 100%; padding: 11px 14px;
  border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer;
}
.ac-option:last-child { border-bottom: 0; }
.ac-option:hover { background: rgba(213, 173, 105, 0.12); }
.ac-option strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.ac-option span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-muted); }

.natal-summary-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-3);
}
.natal-summary-top h2 { margin: 6px 0 0; }
.natal-summary-top .btn { flex: 0 0 auto; }
.natal-meta { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.natal-tiles { grid-template-columns: repeat(3, 1fr); }
.natal-detail { margin-top: var(--s-3); }
/* планет и домов много, поэтому строки плотнее обычного readout */
.readout-tight > div { padding: 10px 0; }
.readout-tight dd { font-size: 14.5px; }

.natal-cta { text-align: center; }
.natal-cta p { margin: 0 0 var(--s-3); color: var(--ink-muted); line-height: 1.55; }
.natal-stale { margin-top: var(--s-3); }

@media (max-width: 680px) {
  .natal-fields { grid-template-columns: 1fr; }
  .natal-tiles { grid-template-columns: 1fr; }
  .natal-detail { grid-template-columns: 1fr; }
  .natal-summary-top { flex-direction: column; }
  .natal-summary-top .btn { width: 100%; }
}

/* =========================================================
   БАЦЗЫ: столпы и баланс элементов
   ========================================================= */
.bazi-master h2 {
  margin: var(--s-2) 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: var(--plum-2);
}
.bazi-master p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }

.bazi-pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2);
}
.bazi-pillar {
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(255,252,246,.94), rgba(243,234,222,.8));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), var(--shadow-card);
}
/* дневной столп — это сам человек, поэтому выделен */
.bazi-pillar.is-day {
  background: linear-gradient(150deg, #2c1738, #17091d);
  color: #fff8ef;
  box-shadow: inset 0 1px 0 rgba(255,246,234,.16), 0 14px 30px rgba(30,12,34,.3);
}
.bazi-pillar.is-day .t-kicker { color: var(--gold); }
.bazi-pillar.is-day em { color: rgba(255,248,239,.6); }
.bazi-pillar b {
  display: block; margin: 8px 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px; font-weight: 600; line-height: 1.1;
}
.bazi-pillar.is-day b { color: #fff8ef; }
.bazi-parts { display: block; margin-bottom: 8px; }
.bazi-parts i {
  display: block; font-style: normal; font-size: 13px; font-weight: 600;
  padding: 3px 0;
}
.bazi-pillar em {
  display: block; font-style: normal; font-size: 12.5px; line-height: 1.45;
  color: var(--ink-soft);
}

/* цвета пяти элементов: перекос виден раньше, чем прочитаны числа */
.e-wood  { color: #3f7d4e; }
.e-fire  { color: #b4453f; }
.e-earth { color: #9a7434; }
.e-metal { color: #6b6f7a; }
.e-water { color: #3a5f8a; }
.bazi-pillar.is-day .e-wood  { color: #8fd6a2; }
.bazi-pillar.is-day .e-fire  { color: #f3a39d; }
.bazi-pillar.is-day .e-earth { color: #e3c489; }
.bazi-pillar.is-day .e-metal { color: #c8cdd8; }
.bazi-pillar.is-day .e-water { color: #a9c8ec; }

.bazi-el {
  display: grid; grid-template-columns: 74px minmax(0,1fr) 28px;
  align-items: center; gap: var(--s-2);
  padding: 7px 0; font-size: 14.5px;
}
.bazi-el-track {
  height: 10px; border-radius: var(--r-pill);
  background: rgba(58,34,20,.08); overflow: hidden;
}
.bazi-el-track i { display: block; height: 100%; border-radius: var(--r-pill); }
.bazi-el-track .e-wood  { background: #3f7d4e; }
.bazi-el-track .e-fire  { background: #b4453f; }
.bazi-el-track .e-earth { background: #9a7434; }
.bazi-el-track .e-metal { background: #8d94a1; }
.bazi-el-track .e-water { background: #3a5f8a; }
.bazi-el b { text-align: right; font-weight: 700; }
.bazi-balance-note {
  margin: var(--s-3) 0 0; padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.6; color: var(--ink-muted);
}
.bazi-meta { margin-top: var(--s-3); }

@media (max-width: 860px) {
  .bazi-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .bazi-pillars { grid-template-columns: 1fr; }
}

/* =========================================================
   HUMAN DESIGN: центры и каналы
   ========================================================= */
.hd-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hd-centers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2);
}
.hd-center {
  position: relative;
  padding: var(--s-3);
  border-radius: var(--r-md);
  /* открытый центр намеренно бледный: в бодиграфе он и рисуется пустым */
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hd-center.is-defined {
  background: linear-gradient(150deg, #2c1738, #17091d);
  color: #fff8ef;
  box-shadow: inset 0 1px 0 rgba(255, 246, 234, 0.16), 0 10px 22px rgba(30, 12, 34, 0.26);
}
.hd-center b { display: block; font-size: 15px; font-weight: 700; }
.hd-center i {
  display: block; margin-top: 3px;
  font-style: normal; font-size: 12.5px; color: var(--ink-muted);
}
.hd-center.is-defined i { color: rgba(255, 248, 239, 0.7); }
.hd-center em {
  position: absolute; top: 10px; right: 10px;
  font-style: normal; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep);
}
.hd-center.is-defined em { color: var(--gold); }

.hd-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-channel {
  padding: 6px 13px; border-radius: var(--r-pill);
  background: rgba(213, 173, 105, 0.16);
  box-shadow: inset 0 0 0 1px rgba(213, 173, 105, 0.36);
  font-size: 14px; font-weight: 700; color: var(--gold-deep);
}

@media (max-width: 860px) {
  .hd-top { grid-template-columns: 1fr; }
  .hd-centers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .hd-centers { grid-template-columns: 1fr; }
}
