/* =========================================================
   Личный кабинет (гостевой). Токены и кнопки — из 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); }
/* Карточка и следующий за ней блок слипались: у .card нет нижнего
   отступа, а у .tiles — верхнего. «Период не определён» упирался прямо
   в плитки со знаками. */
.card + .tiles,
.tiles + .card,
.card + .year-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;
}

/* Глава со сроками. Выделена намеренно: это единственное место во всём
   разборе, где названы даты, и ради неё считаются границы аспектов.
   Остальные главы про «сейчас» и выглядят одинаково — эта должна
   отличаться, иначе потеряется последней в списке. */
.chapter-card details.is-when {
  margin: var(--s-2) -12px 0;
  /* Отступ снизу — свой, а не от последнего абзаца: у блока не было
     нижнего поля, и отступ абзаца схлопывался наружу вместе с ним.
     Текст упирался прямо в золотую рамку. */
  padding: 0 12px var(--s-3);
  border-bottom: 0;
  border-radius: var(--r-md);
  background: rgba(213, 173, 105, 0.13);
  box-shadow: inset 0 0 0 1px rgba(157, 112, 66, 0.3);
}
.chapter-card details.is-when p:last-child { margin-bottom: 0; }
/* Оговорка под главой: мельче и тише текста, но на виду. Она про то,
   насколько груба оценка, и прятать её было бы нечестно. */
.chapter-card details.is-when .when-note {
  margin: var(--s-3) 2px 0 40px;
  padding-top: var(--s-2);
  border-top: 1px solid rgba(157, 112, 66, 0.26);
  font-size: 12.5px; line-height: 1.55; color: var(--ink-muted);
}
.chapter-card details.is-when summary { color: var(--plum); }
.chapter-card details.is-when summary i { color: var(--gold-deep); }

/* =========================================================
   ЯРКИЕ БЛОКИ ОБЗОРА
   ========================================================= */
.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); }


/* опрос про период */
.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; }
  .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-gender-hint {
  margin: calc(-1 * var(--s-2) + 2px) 0 var(--s-2);
  font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
}
.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); }
/* строки плотнее обычного 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-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); }

/* Сила господина дня. Шкала, а не проценты: важно не число, а то, с
   какой стороны от равновесия человек стоит. */
.bazi-scale { margin-bottom: var(--s-3); }
.bazi-scale-track {
  position: relative; display: block; height: 10px;
  border-radius: var(--r-pill); background: rgba(58,34,20,.08);
}
.bazi-scale-track i {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, #8d94a1, var(--gold-deep));
}
/* Отметка равновесия стоит не на середине. Из пяти ролей господина дня
   поддерживают только две, остальные три расходуют, поэтому ровный
   счёт — это уже перевес в сторону силы. */
.bazi-scale-track em {
  position: absolute; top: -5px; width: 2px; height: 20px;
  background: var(--plum-2); opacity: .5;
}
.bazi-scale-legend {
  position: relative;
  display: flex; justify-content: space-between; margin-top: 9px;
  font-size: 12.5px; color: var(--ink-soft);
}
.bazi-scale-legend b { font-weight: 600; }
/* Подпись равновесия стоит под своей отметкой, а не по центру строки:
   отметка на 0,40, и подпись посередине читалась бы как «равновесие
   здесь», указывая не туда. Координату проставляет JS. */
.bazi-scale-legend b:nth-child(2) {
  position: absolute; transform: translateX(-50%);
  white-space: nowrap; color: var(--plum-2);
}

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

/* =========================================================
   ПЕРИОД: опрос из семи вопросов
   ========================================================= */
.period-form { display: block; }
.period-question {
  margin: 0 0 var(--s-4); padding: 0; border: 0;
  border-top: 1px solid var(--line); padding-top: var(--s-3);
}
.period-question:first-of-type { border-top: 0; padding-top: 0; }
.period-question legend {
  display: flex; align-items: baseline; gap: 10px; padding: 0;
  margin-bottom: var(--s-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px; font-weight: 600; color: var(--plum-2);
}
.period-question legend i {
  font-style: normal; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; color: var(--gold-deep);
}
.period-options { display: flex; flex-wrap: wrap; gap: 8px; }
/* Вариант ответа — кнопка, а не радиоточка: по ним попадают пальцем,
   и семь вопросов подряд иначе читаются как налоговая форма. */
.period-option {
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255,252,246,.7); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px; line-height: 1.3; transition: box-shadow .15s, background .15s;
}
.period-option input { position: absolute; opacity: 0; pointer-events: none; }
.period-option:hover { background: rgba(255,252,246,.95); }
.period-option:has(input:checked) {
  background: linear-gradient(150deg, #2c1738, #17091d);
  color: #fff8ef;
  box-shadow: inset 0 1px 0 rgba(255,246,234,.16), 0 8px 18px rgba(30,12,34,.22);
}
.period-option:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--gold-deep); }
.period-custom {
  display: block; width: 100%; margin-top: 10px;
  padding: 10px 12px; border-radius: var(--r-md);
  border: 0; box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(255,252,246,.8); font: inherit; font-size: 14.5px;
}
.period-expectation { display: block; margin-bottom: var(--s-3); }
.period-expectation textarea {
  display: block; width: 100%; resize: vertical;
  padding: 10px 12px; border-radius: var(--r-md);
  border: 0; box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(255,252,246,.8); font: inherit; font-size: 14.5px;
}

/* =========================================================
   HUMAN DESIGN: центры и каналы
   ========================================================= */
/* четыре плитки: тип, авторитет, профиль, определение */
.hd-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Стратегия — единственный практический вывод всей системы, поэтому
   стоит отдельной карточкой, а не строчкой в плитке. */
.hd-strategy b {
  display: block; margin: var(--s-2) 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; color: var(--plum-2);
}
.hd-strategy dl { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }

.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-center.is-linked {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.hd-center.is-linked:hover, .hd-center.is-linked:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 24px rgba(79,36,69,.14);
}
.hd-center.is-defined.is-linked:hover, .hd-center.is-defined.is-linked:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255,246,234,.16), 0 14px 28px rgba(30,12,34,.34);
}
.hd-center u {
  display: block; margin-top: 8px; text-decoration: none;
  font-size: 11.5px; font-weight: 700; color: var(--gold-deep);
}
.hd-center.is-defined u { color: var(--gold); }
.hd-center.is-linked:hover u { text-decoration: underline; }

.hd-channels { display: flex; flex-wrap: wrap; gap: 8px; }
/* Плашка канала: номер и то, что он соединяет. Раньше стояли только
   номера ворот — «34-57», — из которых не следовало даже этого.
   Нажатие ведёт в главу разбора, где каналы и объясняются. */
.hd-channel {
  display: block; padding: 8px 14px; border: 0;
  border-radius: var(--r-md); cursor: pointer; text-align: left;
  background: rgba(213, 173, 105, 0.16);
  box-shadow: inset 0 0 0 1px rgba(213, 173, 105, 0.36);
  font: inherit;
  transition: transform .16s ease, box-shadow .16s ease;
}
.hd-channel b {
  display: block;
  font-size: 14px; font-weight: 700; color: var(--gold-deep);
}
.hd-channel i {
  display: block; margin-top: 2px;
  font-style: normal; font-size: 12px; color: var(--ink-muted);
}
.hd-channel:hover, .hd-channel:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(157,112,66,.55), 0 10px 20px rgba(79,36,69,.14);
}

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

/* Предупреждение о недостоверном при неточном времени рождения.
   Не ошибка и не украшение — объяснение, почему части карты нет. */
.natal-uncertain {
  margin: 0 0 var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(213, 173, 105, 0.14);
  box-shadow: inset 0 0 0 1px rgba(213, 173, 105, 0.34);
  font-size: 14px; line-height: 1.6; color: #6a5324;
}
.natal-field select {
  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 select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
/* столп, который может оказаться соседним, — приглушённый и с пунктиром */
.bazi-pillar.is-shaky { opacity: .72; box-shadow: inset 0 0 0 1px rgba(180,69,63,.4); }
.bazi-pillar.is-shaky em { color: #a3341f; }

/* =========================================================
   ЧЕГО ИЗБЕГАТЬ
   ========================================================= */
.avoid-list { display: grid; gap: var(--s-3); }
.avoid-item { margin: 0; }
.avoid-item h3 {
  margin: var(--s-2) 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px; font-weight: 600; line-height: 1.15; color: var(--plum-2);
}
.avoid-item p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #514338; }
/* «почему» отделено линией: это не продолжение мысли, а её основание */
.avoid-because {
  margin-top: var(--s-3) !important;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 13.5px !important; color: var(--ink-muted) !important;
}
/* совпадение двух систем — самое весомое, поэтому выделено */
.avoid-item.is-cross {
  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);
}
.avoid-item.is-cross .t-kicker { color: var(--gold); }
.avoid-item.is-cross h3 { color: #fff8ef; }
.avoid-item.is-cross p { color: rgba(255,248,239,.82); }
.avoid-item.is-cross .avoid-because {
  border-top-color: rgba(255,248,239,.2);
  color: rgba(255,248,239,.6) !important;
}



/* =========================================================
   КНОПКА «ПОДРОБНЕЕ» И ОКНО С ПОЯСНЕНИЕМ

   Бацзы — система со своим словарём, и подпись под заголовком не может
   объяснить термин, не превратившись в лекцию. Поэтому длинное
   объяснение уезжает в окно: на экране остаётся одна строка.
   ========================================================= */
/* Кнопка заметная намеренно. Бледная подсказка «подробнее» не
   работает: её не замечают ровно те, кому она и нужна, — люди, которые
   впервые видят слова «господин дня» и «корень в ветвях». */
.explain-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 9px; padding: 4px 12px 4px 9px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold);
  font: inherit; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: none;
  color: #3a2408;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(157,112,66,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.explain-btn::before {
  content: "?";
  display: grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(58,36,8,.22);
  font-size: 10.5px; font-weight: 700;
}
.explain-btn:hover, .explain-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(157,112,66,.42);
}

/* Там, где кнопок подряд много — пять строк силы и четыре столпа, —
   золотая заливка превращается в рябь и перетягивает внимание с самих
   чисел. Поэтому тихий вариант: фон серый, обводка та же золотая.
   Яркими остаются одиночные, где кнопка — единственная на блок. */
.explain-btn.is-quiet {
  background: transparent;
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1px rgba(157,112,66,.55);
}
.explain-btn.is-quiet::before {
  background: rgba(65,48,37,.1);
  color: var(--ink-muted);
}
.explain-btn.is-quiet:hover, .explain-btn.is-quiet:focus-visible {
  background: rgba(157,112,66,.1);
  box-shadow: inset 0 0 0 1px rgba(157,112,66,.8);
}
/* Карточка столпа ведёт в главу, которая её объясняет: сама карта
   сверху, её чтение ниже, и прыгать между ними удобнее, чем искать
   нужное место глазами. */
.bazi-pillar.is-linked { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.bazi-pillar.is-linked:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79,36,69,.16);
}
.bazi-pillar-go {
  display: block; margin-top: 10px;
  font-size: 12px; font-weight: 700; color: var(--gold-deep);
  text-decoration: none;
}
.bazi-pillar.is-day .bazi-pillar-go { color: var(--gold); }
.bazi-pillar.is-linked:hover .bazi-pillar-go { text-decoration: underline; }

/* На тёмной карточке столпа дня серое не читается — там светлее. */
.bazi-pillar.is-day .explain-btn.is-quiet {
  color: rgba(255,248,239,.8);
  box-shadow: inset 0 0 0 1px rgba(213,173,105,.65);
}
.bazi-pillar.is-day .explain-btn.is-quiet::before {
  background: rgba(255,248,239,.16);
  color: rgba(255,248,239,.8);
}
.bazi-pillar.is-day .explain-btn.is-quiet:hover { background: rgba(213,173,105,.18); }

/* В строке таблицы кнопка стоит у термина, а не распирает строку. */
.readout dt .explain-btn { margin-left: 8px; }
/* В шапке столпа — на своей строке: заголовок там короткий и в одну
   колонку, кнопка рядом ломала бы сетку на узком экране. */
.bazi-pillar .explain-btn { margin: 6px 0 0; }

.explain-modal {
  width: min(620px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  padding: 0; border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  overflow: visible;
}
.explain-modal::backdrop { background: rgba(32, 12, 28, .55); }
.explain-modal .explain-body {
  max-height: min(80vh, 720px);
  padding: var(--s-5);
  overflow-y: auto;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #fffcf6, #f5ece0);
  box-shadow: 0 24px 60px rgba(36, 16, 42, .34);
}
.explain-close {
  position: absolute; top: 10px; right: 12px; z-index: 1;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(65,48,37,.08);
  font-size: 19px; line-height: 1; color: var(--ink-muted);
}
.explain-close:hover { background: rgba(65,48,37,.16); }

.explain-body h2 {
  margin: 0 var(--s-4) var(--s-3) 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px; font-weight: 600; line-height: 1.12; color: var(--plum-2);
}
.explain-body h3 {
  margin: var(--s-3) 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-deep);
}
.explain-body p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: #4f4137; }
.explain-body ul { margin: 0 0 10px; padding: 0; list-style: none; }
.explain-body li {
  position: relative;
  padding: 7px 0 7px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.6; color: #4f4137;
}
.explain-body li:last-child { border-bottom: 0; }
.explain-body li::before {
  content: "·"; position: absolute; left: 2px; color: var(--gold-deep);
}
.explain-body b { font-weight: 700; color: var(--ink); }

@media (max-width: 680px) {
  .explain-modal .explain-body { padding: var(--s-4); }
}

/* Строка активации открывает пояснение: что это тело делает в карте и
   что значит его линия. Трактовок самих ворот у нас нет, и выдумывать
   шестьдесят четыре текста ради заполнения экрана мы не стали. */
.readout > div.is-linked {
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background .16s ease;
}
.readout > div.is-linked:hover, .readout > div.is-linked:focus-visible {
  background: rgba(157,112,66,.08);
}
.readout > div.is-linked dd::after {
  content: " ?";
  font-weight: 700; color: var(--gold-deep);
}

/* Ссылка-кнопка внутри карточки. Жила в стилях личного кабинета, хотя
   ею пользуются оба: у гостя «Весь путь и девять достижений» выглядел
   как системная кнопка браузера. */
.year-link {
  margin-top: var(--s-3);
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--gold-deep);
}
.year-link:hover { text-decoration: underline; }

/* Подписка на сообщения ВКонтакте. Кнопку рисует виджет VK — у него
   свой вид, и перекрашивать его нельзя: это их элемент, и человек
   узнаёт его именно таким. */

/* Отступ свой, а не от соседства. Блок стоит последним в разделе, а
   перед ним — обёртка с разбором, и общее правило `.card + .card`
   сюда не достаёт: соседями они друг другу не приходятся. Без этого
   блок прилипал к тому, что над ним, в любом состоянии раздела.
   Больше обычных 24 между карточками: это отдельное предложение,
   а не продолжение разбора. */
.vk-card { margin-top: var(--s-4); }

.vk-card h3 {
  margin: var(--s-2) 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--plum-2);
}
.vk-widget { margin-top: var(--s-3); min-height: 30px; }
.vk-small {
  margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-muted);
}
.vk-error { color: var(--gold-deep); }

/* Врезка внутри разбора. Тише карточки: она стоит посреди чтения, и
   её задача — попасться на глаза, а не перебить текст. */
.vk-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  margin: var(--s-3) 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: rgba(213, 173, 105, 0.12);
  box-shadow: inset 0 0 0 1px rgba(157, 112, 66, 0.26);
}
.vk-strip p {
  flex: 1 1 260px; margin: 0;
  font-size: 14px; line-height: 1.55; color: #514338;
}
.vk-strip .vk-widget { margin: 0; flex: none; }

/* Кнопка «подобрать занятия» стоит в строке благоприятных стихий,
   к которой относится, и ровно того же размера, что «подробнее».
   Отличается только тем, что залита: это действие, а не сноска. */
.explain-btn.is-action {
  background: var(--gold);
  color: #3a2408;
  box-shadow: 0 2px 8px rgba(157,112,66,.3);
}
.explain-btn.is-action::before { content: "✦"; background: rgba(58,36,8,.22); }
.explain-btn.is-action:hover, .explain-btn.is-action:focus-visible {
  box-shadow: 0 6px 14px rgba(157,112,66,.42);
}
.explain-body .activities-where {
  margin: 8px 0 var(--s-3);
  font-size: 13.5px; line-height: 1.55; color: var(--ink-muted);
}
.explain-body .big-lock { display: block; margin: 0 auto var(--s-3); }
.explain-body .btn-full { margin-top: var(--s-3); }

/* =========================================================
   ОБЗОР: свод по трём системам, зов в опрос, тизер пути

   Обзор собран вокруг одного действия. Всё остальное на нём уже
   готово — карты посчитаны, разборы собраны, — и единственное, что
   человек ещё может сделать, это ответить на вопросы о себе. Отсюда
   и вес блоков: свод сверху как обещанный результат, зов в опрос
   тёмной карточкой посередине, путь под ним как вторая причина.
   ========================================================= */

/* --- плитки стали ссылками --- */
/* Единственный способ попасть в раздел с обзора был через меню, а на
   телефоне оно уезжает наверх. Плитка и так выглядит как карточка
   раздела — пусть ею и будет. */
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.tile {
  display: block; text-decoration: none; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.tile::after {
  content: "→"; position: absolute; right: 14px; top: 12px;
  font-size: 15px; color: var(--ink-muted); opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}
a.tile:hover, a.tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 14px 30px rgba(79,36,69,.16);
}
a.tile:hover::after, a.tile:focus-visible::after { opacity: .75; transform: translateX(2px); }
/* на телефоне ховера нет — стрелку показываем сразу */
@media (hover: none) { a.tile::after { opacity: .5; } }

/* --- свод по трём системам --- */
.synthesis-card { margin-top: var(--s-4); }
.synth-h {
  margin: var(--s-2) 0 0; max-width: 24ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 2.7vw, 34px); font-weight: 600; line-height: 1.1;
  color: var(--plum-2);
}
.synth-lead {
  margin: var(--s-3) 0; max-width: 64ch;
  font-size: 15px; line-height: 1.65; color: #55483d;
}
/* Откуда пункт взялся: система и её признак. Без этой строки «главное
   про вас» ничем не отличается от гороскопа — проверить нечем. */
.synth-src {
  display: block; margin-top: 8px;
  font-style: normal; font-size: 12px; color: var(--gold-deep);
}
.synth-wait {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
}
.synth-wait p { margin: 0; font-size: 14px; color: var(--ink-muted); }

/* --- зов в опрос --- */
.why-card {
  position: relative; overflow: hidden;
  margin: var(--s-4) 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(140, 82, 175, .55), transparent 60%),
    linear-gradient(150deg, #3b1538, #24102a);
  box-shadow: 0 20px 50px rgba(36, 16, 42, .3);
  color: #fff8ef;
}
.why-card .t-kicker { color: var(--gold); }
.why-card .nobr { white-space: nowrap; }
.why-card h2 {
  margin: var(--s-2) 0 0; max-width: 24ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.08;
}
.why-card > p {
  margin: var(--s-3) 0 0; max-width: 62ch;
  font-size: 15.5px; line-height: 1.66; color: rgba(255, 248, 239, .84);
}
.why-card > p + p { margin-top: 12px; }
.why-card em { font-style: italic; color: #fff8ef; }

/* Слева текст и кнопка, справа — что получится. На телефоне в одну
   колонку, иначе карточки «что получится» ужимаются до нечитаемых. */
.why-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s-4); align-items: start;
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 248, 239, .16);
}
.why-gets { display: grid; gap: 10px; }
.why-get {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 11px;
  padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(255, 248, 239, .08);
}
.why-get i {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--gold); color: #3a2408;
  font-style: normal; font-size: 13px;
}
.why-get b { display: block; font-size: 14.5px; font-weight: 700; }
.why-get span {
  display: block; margin-top: 3px;
  font-size: 12.5px; line-height: 1.5; color: rgba(255, 248, 239, .68);
}
/* Ежедневная рекомендация — то, ради чего возвращаются, поэтому она не
   рядовой пункт списка. */
.why-get.is-hero {
  background: rgba(213,173,105,.16);
  box-shadow: inset 0 0 0 1px rgba(213,173,105,.45);
}
.why-get.is-hero b { font-size: 15.5px; color: var(--gold); }
.why-get.is-hero span { color: rgba(255,248,239,.82); }

.why-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.why-cta .btn { flex: none; }
.why-cta small { font-size: 13px; color: rgba(255, 248, 239, .6); }
/* Семь шагов полоской: видно, что это недолго. */
.why-steps { display: flex; gap: 5px; margin-top: var(--s-3); }
.why-steps i {
  width: 26px; height: 4px; border-radius: 999px;
  background: rgba(255, 248, 239, .22);
}

/* --- тизер «Мой путь» --- */
.path-teaser {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--s-4); align-items: center;
  margin-top: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(255,252,246,.94), rgba(243,234,222,.82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), var(--shadow-card);
}
.path-teaser h3 {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px; font-weight: 600; line-height: 1.1; color: var(--plum-2);
}
.path-teaser p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #55483d; }
.path-dots { display: flex; gap: 6px; margin-top: var(--s-3); }
.path-dots i {
  width: 30px; height: 5px; border-radius: 999px; background: rgba(65,48,37,.12);
}
.path-dots i.is-done { background: var(--gold); }
.path-dots i.is-next { background: rgba(157,112,66,.4); }

/* Ближайшая ачивка. Единственное движение на экране — и оно там, куда
   мы ведём; выключается, если человек просил меньше анимации. */
.ach-next {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px;
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(213,173,105,.14);
  box-shadow: inset 0 0 0 1.5px rgba(157,112,66,.45);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ach-next:hover, .ach-next:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px rgba(157,112,66,.6), 0 12px 26px rgba(79,36,69,.14);
}
.ach-next > i:first-child {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--gold); color: #3a2408;
  font-style: normal; font-size: 15px;
  animation: achPulse 2.4s ease-in-out infinite;
}
@keyframes achPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(213,173,105,.6); }
  50%      { box-shadow: 0 0 0 9px rgba(213,173,105,0); }
}
@media (prefers-reduced-motion: reduce) {
  .ach-next > i:first-child { animation: none; }
}
.ach-flag {
  display: inline-block; margin-bottom: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gold-deep); color: #fff8ef;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ach-next b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.ach-next p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #514338; }
.ach-next u {
  display: inline-block; margin-top: 8px; text-decoration: none;
  font-size: 13px; font-weight: 700; color: var(--gold-deep);
}
.ach-rest { display: grid; gap: 7px; margin-top: 10px; }
.ach-rest span {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 13px; color: var(--ink-muted); opacity: .75;
}
.ach-rest span::before { content: "·"; color: var(--gold-deep); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .path-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .tiles-3 { grid-template-columns: 1fr; }
}

/* =========================================================
   МОЙ ПУТЬ: уровень, лестница, достижения

   Прошлая версия рисовала этап с полосой прогресса к следующему
   порогу: «ещё 4 расклада до Путника». Полосы больше нет — уровень
   набирается не количеством, а разными действиями, и «сколько
   осталось» измерить в процентах нельзя. Вместо полосы — строка о
   том, что именно сделать дальше.
   ========================================================= */
.path-level h2 {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--plum-2);
}
.path-next {
  margin: var(--s-3) 0 0; padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.6; color: var(--ink-muted);
}

/* Лестница целиком, вместе с непройденным: ступень называет, что в ней
   открывается, — иначе «Созвездие» ни о чём не говорит. */
.path-levels {
  display: grid; gap: var(--s-2);
  margin: var(--s-3) 0 0; padding: 0;
  list-style: none;
}
.path-level-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
}
.path-level-row > i {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(65,48,37,.08);
  font-style: normal; font-size: 13.5px; font-weight: 700;
  color: var(--ink-muted);
}
.path-level-row b {
  display: block;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.path-level-row p {
  margin: 5px 0 0; font-size: 13.5px; line-height: 1.55; color: #514338;
}
/* Приписка про то, что ступень держится заходами. Курсивом и мелко:
   это сноска к названию, а не часть описания. */
.path-level-row em {
  display: block; margin-top: 3px;
  font-size: 12px; font-style: italic; color: var(--ink-muted);
}
.path-level-row.is-reached {
  background: rgba(213,173,105,.09);
  box-shadow: inset 0 0 0 1px rgba(157,112,66,.3);
}
.path-level-row.is-reached > i { background: var(--gold); color: #3a2408; }
/* Текущая ступень — та, на которой человек стоит. Пройденных несколько,
   и без отметки пришлось бы считать подсвеченные. */
.path-level-row.is-current {
  background: var(--plum-2);
  box-shadow: 0 8px 20px rgba(79,36,69,.24);
}
.path-level-row.is-current > i { background: var(--gold); color: #3a2408; }
.path-level-row.is-current b { color: #fff8ef; }
.path-level-row.is-current p { color: rgba(255,248,239,.84); }
.path-level-row.is-current em { color: rgba(255,248,239,.62); }

/* Ближайшая незакрытая ступень. Ступени друг друга не блокируют, и она
   может оказаться не последней в списке, а пропуском посреди
   пройденных: рамка нужна, чтобы такой пропуск читался как «вот чего не
   хватает», а не терялся между подсвеченными строками. Обводка и едва
   заметный фон, а не заливка как у пройденных: ступень ещё не ваша. */
.path-level-row.is-next:not(.is-reached) {
  background: rgba(213,173,105,.05);
  box-shadow: none;
  outline: 1.5px dashed rgba(157,112,66,.55);
  outline-offset: -1.5px;
}
/* Номер тоже обводим: иначе строка отличается от любой другой
   незакрытой только рамкой, и на беглый взгляд они одинаковые. */
.path-level-row.is-next:not(.is-reached) > i {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--gold);
  color: var(--gold-deep);
}

/* --- достижения --- */
.path-achievements {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  margin-top: var(--s-3);
}
.path-ach {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Незаработанная приглушена, но читаема: она показывает условие, а не
   дразнит размытым пятном. Ради этого и не прячем её целиком. */
.path-ach:not(.is-earned) { opacity: .62; }
.path-ach.is-earned {
  background: rgba(213,173,105,.09);
  box-shadow: inset 0 0 0 1px rgba(157,112,66,.3);
}
.path-ach-mark {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(65,48,37,.08);
  font-size: 13px; color: var(--ink-muted);
}
.path-ach.is-earned .path-ach-mark { background: var(--gold); color: #3a2408; }
/* Ближайшая незакрытая: она не «ещё не открыта», а «в одном шаге». */
.path-ach.is-next {
  opacity: 1; text-decoration: none;
  background: rgba(213,173,105,.14);
  box-shadow: inset 0 0 0 1.5px rgba(157,112,66,.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.path-ach.is-next:hover, .path-ach.is-next:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px rgba(157,112,66,.6), 0 12px 26px rgba(79,36,69,.14);
}
.path-ach.is-next .path-ach-mark { background: var(--gold); color: #3a2408; }
.path-ach b {
  display: block; margin-bottom: 5px;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
}
.path-ach p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #514338; }

@media (max-width: 680px) {
  .path-achievements { grid-template-columns: 1fr; }
}

/* =========================================================
   ОЖИДАНИЕ РАЗБОРА: двенадцать глав
   Показываем, из чего собирается разбор. Подсветка бежит по
   списку по кругу — это не индикатор прогресса: бэкенд его не
   отдаёт, и рисовать заполняющуюся полосу было бы враньём.
   ========================================================= */
.wait-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  max-width: 520px;
  margin: var(--s-3) auto 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: waitch;
  text-align: left;
}
.wait-chapters li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  opacity: 0.5;
  animation: waitChapter 6s ease-in-out infinite;
}
.wait-chapters li::before {
  counter-increment: waitch;
  content: counter(waitch, decimal-leading-zero);
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}
/* каждая глава вспыхивает со своей задержкой — волна по списку */
.wait-chapters li:nth-child(1)  { animation-delay: 0s; }
.wait-chapters li:nth-child(2)  { animation-delay: .25s; }
.wait-chapters li:nth-child(3)  { animation-delay: .5s; }
.wait-chapters li:nth-child(4)  { animation-delay: .75s; }
.wait-chapters li:nth-child(5)  { animation-delay: 1s; }
.wait-chapters li:nth-child(6)  { animation-delay: 1.25s; }
.wait-chapters li:nth-child(7)  { animation-delay: 1.5s; }
.wait-chapters li:nth-child(8)  { animation-delay: 1.75s; }
.wait-chapters li:nth-child(9)  { animation-delay: 2s; }
.wait-chapters li:nth-child(10) { animation-delay: 2.25s; }
.wait-chapters li:nth-child(11) { animation-delay: 2.5s; }
.wait-chapters li:nth-child(12) { animation-delay: 2.75s; }

@keyframes waitChapter {
  0%, 45%, 100% { opacity: .42; color: var(--ink-muted); }
  14%           { opacity: 1;   color: var(--plum-2); }
}

@media (prefers-reduced-motion: reduce) {
  .wait-chapters li { animation: none; opacity: .62; }
  .wait-orb { animation: none; }
}
@media (max-width: 680px) {
  .wait-chapters { grid-template-columns: 1fr; }
}

/* =========================================================
   ДЕЙСТВИЯ НАД ГОТОВОЙ КАРТОЙ (баннер обзора)
   ========================================================= */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.hero-actions[hidden] { display: none; }
/* Баннер тёмный — ghost-кнопка на нём должна быть светлой.
   Баннеров два: .hero-block у гостя и .today-block у вошедшего. */
.hero-block .hero-actions .btn-ghost,
.today-block .hero-actions .btn-ghost {
  color: #fff8ef;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 239, 0.32);
  background: rgba(255, 248, 239, 0.06);
}
.hero-block .hero-actions .btn-ghost:hover,
.today-block .hero-actions .btn-ghost:hover {
  background: rgba(255, 248, 239, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 239, 0.5);
}

/* =========================================================
   МОДАЛКА «НУЖНА РЕГИСТРАЦИЯ»
   Использует каркас .mat-modal, но карточка тёмная — как все
   остальные замки в кабинете, чтобы читалась той же мыслью.
   ========================================================= */
.gate-card {
  width: min(460px, 100%);
  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 30px 70px rgba(20, 8, 24, 0.5);
}
.gate-card .mat-close {
  background: rgba(255, 248, 239, 0.12);
  color: rgba(255, 248, 239, 0.8);
}
.gate-card .mat-close:hover { background: rgba(255, 248, 239, 0.22); }
/* .gate-lock рассчитан висеть НАД карточкой (position:absolute, top:-46px).
   В модалке он от этого уезжает за край и обрезается overflow — здесь
   он обычный элемент внутри. */
.gate-card .gate-lock {
  position: static;
  transform: none;
  width: 72px; height: 72px;
  margin: 0 auto var(--s-3);
}
.gate-card h2 {
  margin: 0 0 var(--s-2);
  font-size: 26px;
  color: #fff8ef;
}
.gate-why {
  margin: 0 0 var(--s-4);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 248, 239, 0.62);
}
.gate-card .gate-later {
  margin-top: var(--s-2);
  color: rgba(255, 248, 239, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 239, 0.22);
}
.gate-card .gate-later:hover { background: rgba(255, 248, 239, 0.1); }

/* =========================================================
   НЕСКОЛЬКО КАРТ: полоса, список, добавление
   ========================================================= */
.chart-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--s-3);
}
.chart-tabs[hidden] { display: none; }
.chart-tab {
  padding: 7px 15px; border: 0; border-radius: var(--r-pill);
  background: rgba(65, 48, 37, .06);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.chart-tab:hover { background: rgba(65, 48, 37, .1); }
.chart-tab.is-active {
  background: var(--plum-2); color: #fff8ef;
  box-shadow: 0 6px 16px rgba(79, 36, 69, .26);
}

/* Карты плитками: ряд квадратов, последний — пунктирный с плюсом.
   Список строками читался как таблица и растягивал название в столбик. */
.chart-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-2);
}
.chart-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(255, 252, 246, .94), rgba(243, 234, 222, .82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), var(--shadow-card);
  transition: transform .16s ease, box-shadow .16s ease;
}
.chart-tile:hover { transform: translateY(-2px); }
/* открытая карта отличается цветом, а не только подписью */
.chart-tile.is-current {
  background: linear-gradient(150deg, #3a1a4f, #1d0b26);
  box-shadow: inset 0 1px 0 rgba(255, 246, 234, .18), 0 14px 30px rgba(28, 10, 34, .3);
}
.chart-tile-open {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; height: 100%;
  padding: var(--s-3);
  border: 0; background: none; font: inherit;
  text-align: left; cursor: pointer;
}
.chart-tile-open b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px; font-weight: 600; line-height: 1.15;
  color: var(--plum-2);
}
.chart-tile.is-current .chart-tile-open b { color: #fff8ef; }
.chart-tile-state {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted);
}
.chart-tile.is-current .chart-tile-state { color: var(--gold); }
.chart-tile-del {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(65, 48, 37, .08);
  font-size: 16px; line-height: 1; color: var(--ink-muted);
  cursor: pointer; opacity: 0; transition: opacity .16s ease;
}
.chart-tile:hover .chart-tile-del,
.chart-tile-del:focus-visible { opacity: 1; }
.chart-tile-del:hover { background: rgba(180, 69, 63, .16); color: #a3341f; }

.chart-tile-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: var(--s-3);
  background: none;
  box-shadow: none;
  /* пунктир: этой плитки ещё нет, она приглашение, а не карточка */
  border: 2px dashed rgba(65, 48, 37, .22);
  font: inherit; cursor: pointer;
}
.chart-tile-add:hover {
  border-color: var(--gold-deep);
  background: rgba(213, 173, 105, .07);
}
.chart-tile-plus {
  font-size: 30px; line-height: 1; font-weight: 300; color: var(--gold-deep);
}
.chart-tile-add i {
  font-style: normal; font-size: 12.5px; color: var(--ink-muted); text-align: center;
}

.chart-add-card { width: min(520px, 100%); }
.chart-add-card h2 { margin: var(--s-2) 0 var(--s-2); }
/* поле и кнопка слипались */
.chart-add-card .natal-field { margin-bottom: var(--s-3); }
.chart-add-card .natal-form-error { margin: -14px 0 var(--s-3); }

/* Сообщение «такая карта уже есть, открыли её». Не ошибка: человек
   получил ровно то, за чем пришёл, просто не новой записью. Поэтому
   золотом, а не красным. */
.charts-full {
  margin: var(--s-2) 0 0;
  font-size: 13px; line-height: 1.5; color: var(--ink-muted);
}

.natal-notice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin: 0 0 var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: rgba(213, 173, 105, 0.14);
  box-shadow: inset 0 0 0 1px rgba(157, 112, 66, 0.3);
  font-size: 14px; line-height: 1.5; color: #514338;
}
.natal-notice b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px; font-weight: 600; color: var(--plum-2);
}
.natal-notice .btn { margin-top: 2px; }

/* Форма рождения внутри модалки: дата и время в одну строку, точность
   под ними. Три поля в ряд не помещались, и подписи разной длины
   сбивали строки по высоте. */
#chartFormSlot .card { box-shadow: none; background: none; padding: 0; }
#chartFormSlot .natal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2) var(--s-3);
}
#chartFormSlot .natal-fields > :nth-child(3),
#chartFormSlot .natal-fields > :nth-child(4) { grid-column: 1 / -1; }
/* Поля выравниваем по нижнему краю строки: если подпись где-то
   перенесётся на две строки, сами поля всё равно останутся на одной
   линии. Фиксированную высоту подписи не задаём — она добавляла бы
   пустоту там, где подпись однострочная. */
#chartFormSlot .natal-fields { align-items: end; }
@media (max-width: 520px) {
  #chartFormSlot .natal-fields { grid-template-columns: 1fr; }
}

