/* ===== Extras — вкладки, книги, о проекте, избранное, share ===== */

/* --- Табы --- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px 10px;
  border-top: 1px solid var(--line);
}
.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 16px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--gold);
  background: var(--gold-glow);
  border-color: rgba(212, 169, 78, 0.28);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Вкладка «Книги» --- */

/* --- Вкладка «О проекте» --- */
.about-wrap { padding: 44px 20px 60px; max-width: 760px; }
.about-wrap > h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 40px);
  background: linear-gradient(135deg, #fff 30%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.about-block {
  margin: 22px 0;
  padding: 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.about-block h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #eceef4;
  margin-bottom: 10px;
}
.about-block p { color: var(--text); line-height: 1.65; font-size: 14.5px; margin-bottom: 10px; }
.about-block ul { margin: 6px 0 0 18px; color: var(--text); line-height: 1.7; font-size: 14px; }
.about-block li { margin-bottom: 4px; }
.about-foot { margin-top: 26px; color: var(--muted); font-size: 13px; }
.about-foot a { color: var(--gold); }

/* --- Избранное --- */
.favorites-panel {
  margin-top: 14px;
  background: rgba(212, 169, 78, 0.05);
  border: 1px solid rgba(212, 169, 78, 0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.favorites-panel.hidden { display: none; }
.fav-head {
  font-size: 13px;
  color: #c9cedb;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.fav-head .count {
  background: var(--gold-glow);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-left: 6px;
}
.fav-item {
  border-top: 1px solid rgba(212, 169, 78, 0.12);
  padding: 10px 0;
}
.fav-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; font-size: 12px; }
.fav-src { font-weight: 600; }
.fav-book { color: var(--muted); }
.fav-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.fav-actions { display: flex; gap: 10px; margin-top: 6px; }
.fav-actions button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}
.fav-actions button:hover { color: var(--gold); }
.fav-open { text-decoration: underline; }

/* --- Сердечко на карточке --- */
.fav-heart {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 0;
  transition: color .18s, transform .18s;
}
.fav-heart:hover { color: var(--gold); transform: scale(1.12); }
.fav-heart.active { color: var(--gold); }

/* --- Кнопка «Поделиться» --- */
.share-btn {
  margin-left: 12px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.share-btn:hover { background: rgba(212, 169, 78, 0.16); color: #f4e3b2; }

/* --- Мобильная адаптация --- */
@media (max-width: 640px) {
  .tabs { overflow-x: auto; padding-bottom: 8px; }
  .books-wrap, .about-wrap { padding-left: 14px; padding-right: 14px; }
  .books-grid { grid-template-columns: 1fr; }
}

/* ===== Пакет 4: точный фильтр + «Мне повезёт» + «Показать ещё» ===== */

/* --- Чип-опции поиска (exact / lucky) --- */
.search-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}
.opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 169, 78, 0.08);
  border: 1px solid rgba(212, 169, 78, 0.25);
  color: #c9b98a;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background .18s, border-color .18s;
}
.opt-chip:hover { border-color: rgba(212, 169, 78, 0.5); }
.opt-chip input { accent-color: #d4a94e; cursor: pointer; }
.opt-chip:has(input:checked) {
  background: rgba(212, 169, 78, 0.2);
  border-color: #d4a94e;
  color: #e8d9a8;
}
.opt-btn {
  background: transparent;
  border: 1px solid rgba(124, 156, 255, 0.35);
  color: #9db4ff;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.opt-btn:hover { background: rgba(124, 156, 255, 0.15); color: #c3d0ff; }

/* --- «Показать ещё» --- */
.show-more {
  display: block;
  width: calc(100% - 32px);
  max-width: 420px;
  margin: 18px auto 8px;
  background: transparent;
  border: 1px dashed rgba(212, 169, 78, 0.4);
  color: #c9b98a;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.show-more:hover { background: rgba(212, 169, 78, 0.08); border-color: #d4a94e; }

/* --- «Мне повезёт»: блок случайного пассажа --- */
.lucky-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 0 12px;
}
.lucky-title {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8f9c;
  margin-bottom: 10px;
}
.lucky-card {
  background: linear-gradient(160deg, rgba(212, 169, 78, 0.10), rgba(124, 156, 255, 0.06));
  border-color: rgba(212, 169, 78, 0.35);
}
.lucky-btn {
  display: block;
  margin: 14px auto 0;
  background: rgba(212, 169, 78, 0.12);
  border: 1px solid rgba(212, 169, 78, 0.5);
  color: #e8d9a8;
}
.lucky-btn:hover { background: #d4a94e; color: #0b0d12; }

/* ===== V21: бейдж вкладки, избранное, о проекте ===== */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5d88b, var(--gold) 60%, #a67c2f);
  color: #161006;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 10px rgba(212, 169, 78, 0.5);
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tab-badge.hidden { display: none; }
@keyframes badgePop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.page-head { text-align: center; padding: 44px 0 10px; }
.page-head h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 32px; color: var(--text); }
.page-head p { color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 620px; margin: 10px auto 0; }

/* Статистика «О проекте» */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 26px 0 8px;
}
.stat-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 169, 78, 0.5), transparent);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 169, 78, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(212, 169, 78, 0.08);
}
.stat-ico { color: #cfd4e3; margin: 0 auto 8px; display: block; filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5)); }
.stat-card b { display: block; font-size: 30px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Шаги «Как это работает» */
.about-h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: var(--text);
  margin: 44px 0 18px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.about-sub { text-align: center; color: var(--muted); max-width: 640px; margin: -6px auto 22px; font-size: 14.5px; line-height: 1.6; }

/* Список источников (6 традиций) */
.src-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.src-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--sc, var(--gold));
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  padding: 14px 16px 12px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.src-item:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.src-item b { font-size: 15.5px; color: var(--text); display: block; margin-bottom: 2px; }
.src-item .src-meta { font-size: 12px; color: var(--sc, var(--gold)); letter-spacing: 0.4px; opacity: 0.85; }
.src-item p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.about-steps ~ .about-h3 { margin-top: 0; }
/* «Источники» идёт сразу после демо-блока: чипы на мобиле переносятся на 2 строки —
   без отступа заголовок наезжает на нижний ряд кнопок-примеров */
.about-demo + .about-h3 { margin-top: 30px; }
.about-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.about-step {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.about-step:hover { transform: translateY(-3px); border-color: rgba(212, 169, 78, 0.3); }
.step-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #8a90a3;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.about-step h4 { font-size: 15.5px; color: var(--text); margin-bottom: 8px; }
.about-step p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* Демо-кнопки */
.about-demo { text-align: center; }
.about-demo p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.about-demo-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.demo-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #dde1ec;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.demo-btn:hover {
  transform: translateY(-2px);
  background: rgba(212, 169, 78, 0.16);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 18px rgba(212, 169, 78, 0.2);
}
.demo-btn:active { transform: translateY(0); }

/* Аккордеон FAQ */
.accordion { max-width: 720px; margin: 0 auto; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.acc-item.open { border-color: rgba(212, 169, 78, 0.35); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font);
  padding: 15px 18px;
  cursor: pointer;
  text-align: left;
}
.acc-head:hover { color: var(--gold); }
.acc-arrow {
  flex-shrink: 0;
  color: var(--gold-dim);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.acc-item.open .acc-arrow { transform: rotate(180deg); color: var(--gold); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.acc-item.open .acc-body { max-height: 240px; }
.acc-body p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* Пустое избранное */
.fav-empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.fav-empty svg { margin: 0 auto 16px; display: block; }
.fav-empty p { max-width: 420px; margin: 0 auto 22px; font-size: 14px; line-height: 1.7; }
.fav-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(212, 169, 78, 0.5);
  color: #e3c887;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .15s;
}
.fav-empty-btn:hover {
  background: rgba(212, 169, 78, 0.14);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 169, 78, 0.28);
  transform: translateY(-1px);
}

/* Подсветка совпадений в карточках */
mark {
  background: rgba(212, 169, 78, 0.28);
  color: #ffe9b8;
  border-radius: 3px;
  padding: 0 2px;
  box-shadow: 0 0 6px rgba(212, 169, 78, 0.2);
}

/* Кнопки share/save с SVG — выравнивание */
.share-btn svg, .save-btn svg { vertical-align: -2px; margin-right: 6px; }

/* ===== V25: Книги — премиальные карточки с неоновыми окантовками ===== */

/* Вращающаяся неоновая рамка */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.books-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 34px);
  color: var(--text);
  margin-bottom: 8px;
}
.books-head p { color: var(--muted); line-height: 1.6; margin-bottom: 26px; }
.books-head p b { color: var(--gold); }

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

/* ---------- Карточка источника ---------- */
.books-card {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 18px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background:
    radial-gradient(130% 95% at var(--glow-x, 30%) var(--glow-y, 0%), rgba(var(--src-rgb), 0.16), transparent 55%),
    radial-gradient(150% 110% at 85% 112%, rgba(var(--src-rgb), 0.1), transparent 55%),
    linear-gradient(160deg, #171c29 0%, #0d1018 100%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--src-rgb), 0.22),
    0 0 26px -8px rgba(var(--src-rgb), 0.55),
    0 14px 34px rgba(0, 0, 0, 0.45);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.books-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(var(--src-rgb), 0.45),
    0 0 34px -6px rgba(var(--src-rgb), 0.75),
    0 18px 44px rgba(0, 0, 0, 0.55);
}
/* Бегущий неоновый блик по периметру (маска-рамка) */
.books-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.6px;
  background: conic-gradient(from var(--angle),
    transparent 0%,
    rgba(var(--src-rgb), 0.9) 18%,
    rgba(var(--src-rgb), 0.25) 30%,
    transparent 42%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderSpin 5.5s linear infinite;
  pointer-events: none;
}
@keyframes borderSpin { to { --angle: 360deg; } }

/* Плавающие звёзды */
.books-star {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px 1px rgba(var(--src-rgb), 0.9);
  opacity: 0;
  animation: starTwinkle 3.6s ease-in-out infinite;
  pointer-events: none;
}
.books-star.s1 { top: 16%; right: 15%; }
.books-star.s2 { top: 36%; right: 7%; width: 3px; height: 3px; animation-delay: 1.2s; }
.books-star.s3 { bottom: 24%; right: 21%; width: 2.5px; height: 2.5px; animation-delay: 2.2s; }
@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 0.95; transform: scale(1.2); }
}

/* ---------- Обложка-книга ---------- */
.books-cover-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  transform: translateZ(46px);
}
.books-cover {
  position: relative;
  width: 108px;
  height: 142px;
  border-radius: 4px 11px 11px 4px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.22), transparent 42%),
    linear-gradient(180deg, rgba(var(--src-rgb), 0.95) 0%, rgba(var(--src-rgb), 0.45) 52%, #0b0e16 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    inset -14px 0 24px rgba(0,0,0,0.5),
    0 20px 34px -12px rgba(0,0,0,0.8),
    0 0 30px -4px rgba(var(--src-rgb), 0.6);
  transition: box-shadow .3s;
}
.books-card:hover .books-cover {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    inset -14px 0 24px rgba(0,0,0,0.45),
    0 22px 40px -12px rgba(0,0,0,0.85),
    0 0 40px -2px rgba(var(--src-rgb), 0.85);
}
.books-cover-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 11px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.18) 55%, rgba(255,255,255,0.14));
}
.books-cover-art {
  position: absolute;
  inset: 0 0 0 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.books-cover-sym {
  color: rgba(255,255,255,0.92);
  filter: drop-shadow(0 0 7px rgba(255,255,255,0.55));
}
.books-cover-title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: #fff;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
  text-align: center;
  line-height: 1.2;
}
.books-cover-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
}

/* ---------- Текст карточки ---------- */
.books-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.books-src {
  font-family: var(--font-serif);
  font-size: 21px;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 0 18px rgba(var(--src-rgb), 0.9), 0 2px 4px rgba(0,0,0,0.5);
}
.books-count { font-size: 12px; color: var(--muted); }
.books-count b { color: #fff; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.books-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex-grow: 1; }

/* Объёмная кнопка в тон «Найти» */
.books-open {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: rgba(var(--src-rgb), 0.08);
  border: 1px solid rgba(var(--src-rgb), 0.55);
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-family: var(--font);
  font-size: 13.5px;
  padding: 8px 17px;
  border-radius: 999px;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .15s;
}
.books-open svg { margin-left: 2px; }
.books-open:hover {
  background: rgba(var(--src-rgb), 0.2);
  border-color: rgb(var(--src-rgb));
  color: #fff;
  box-shadow: 0 0 18px rgba(var(--src-rgb), 0.35);
  transform: translateY(-1px);
}
.books-open:active {
  transform: translateY(1px);
}

.books-back {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 22px;
  transition: color .18s, border-color .18s, box-shadow .18s;
}
.books-back:hover {
  color: var(--text);
  border-color: var(--gold-dim);
  box-shadow: 0 0 14px -4px rgba(212,169,78,0.5);
}
.books-loading, .books-error { color: var(--muted); padding: 30px 0; text-align: center; }
.books-error .retry-btn { margin-left: 8px; }

/* ---------- Список книг: строки с мини-обложками ---------- */
.books-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.books-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid rgba(var(--src-rgb), 0.55);
  border-radius: 13px;
  padding: 9px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.books-row:hover {
  transform: translateX(4px);
  border-color: rgba(var(--src-rgb), 0.55);
  background: linear-gradient(90deg, rgba(var(--src-rgb), 0.1), rgba(255,255,255,0.02));
  box-shadow:
    0 0 20px -4px rgba(var(--src-rgb), 0.5),
    0 0 0 1px rgba(var(--src-rgb), 0.18),
    0 8px 18px rgba(0,0,0,0.35);
}

/* Мини-обложка: детерминированный градиент от хэша названия */
.book-mini {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 42px;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(160deg,
    hsl(var(--book-hue) 62% 56%),
    hsl(var(--book-hue) 68% 24%) 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 4px 9px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.books-row:hover .book-mini {
  transform: translateY(-2px) scale(1.07);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.2),
    0 6px 14px rgba(0,0,0,0.55),
    0 0 16px -2px hsl(var(--book-hue) 80% 55% / 0.75);
}
.book-mini-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 22%, rgba(255,255,255,0.24) 46%, transparent 62%);
}
.book-mini-foil {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(90deg, rgba(0,0,0,0.5), rgba(0,0,0,0.14) 60%, rgba(255,255,255,0.16));
  border-radius: 3px 0 0 3px;
}
.book-mini b {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 13px;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.books-row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.books-row-count {
  flex-shrink: 0;
  background: rgba(var(--src-rgb), 0.13);
  border: 1px solid rgba(var(--src-rgb), 0.32);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 10px;
  border-radius: 999px;
}
.books-row-arrow {
  flex-shrink: 0;
  color: var(--src-color, var(--gold));
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}
.books-row:hover .books-row-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ===== Поддержка проекта (v29) ===== */
.support-card {
  position: relative;
  margin-top: 46px;
  padding: 38px 28px 34px;
  text-align: center;
  border: 1px solid rgba(212, 169, 78, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(212, 169, 78, 0.10) 0%, rgba(212, 169, 78, 0.03) 45%, transparent 75%),
    rgba(255, 255, 255, 0.018);
  overflow: hidden;
}
.support-aurora {
  position: absolute;
  inset: -60% -30% auto;
  height: 90%;
  background: radial-gradient(45% 60% at 50% 40%, rgba(212, 169, 78, 0.10), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
  animation: support-breathe 7s ease-in-out infinite;
}
@keyframes support-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.support-ico { position: relative; margin: 0 auto 10px; display: block; filter: drop-shadow(0 0 12px rgba(212,169,78,0.35)); }
.support-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--text);
  margin-bottom: 10px;
}
.support-text {
  position: relative;
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.support-btns {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Объёмная кнопка «Поддержать» — в языке CTA «Найти» */
.support-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #f5d88b 0%, var(--gold-bright) 26%, var(--gold) 54%, #a67c2f 100%);
  border: 1px solid rgba(255, 226, 152, 0.4);
  border-radius: 50px;
  color: #161006;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 11px 26px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 4px 0 #7d5a18,
    0 7px 0 rgba(0, 0, 0, 0.38),
    0 10px 26px rgba(212, 169, 78, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -5px 9px rgba(122, 86, 20, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.25s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.support-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #7d5a18,
    0 10px 0 rgba(0, 0, 0, 0.38),
    0 16px 34px rgba(212, 169, 78, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -5px 9px rgba(122, 86, 20, 0.4);
  filter: brightness(1.07);
}
.support-btn:active {
  transform: translateY(4px) scale(0.985);
  box-shadow:
    0 1px 0 #7d5a18,
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 6px 14px rgba(212, 169, 78, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
/* бегущий блик на кнопке поддержки */
.support-btn-shine {
  position: absolute;
  top: -30%;
  left: 0;
  width: 45%;
  height: 160%;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: skewX(-18deg) translateX(-170%);
  animation: btn-shine 3.4s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}
@keyframes btn-shine {
  0% { transform: skewX(-18deg) translateX(-170%); }
  55%, 100% { transform: skewX(-18deg) translateX(300%); }
}

/* Кнопка V2Bot — ghost в цвет бренда */
.v2bot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 156, 255, 0.07);
  border: 1px solid rgba(124, 156, 255, 0.4);
  border-radius: 50px;
  color: #cdd9ff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 10px 22px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.15s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.v2bot-btn:hover {
  background: rgba(124, 156, 255, 0.15);
  border-color: rgba(124, 156, 255, 0.75);
  color: #fff;
  box-shadow: 0 0 20px rgba(124, 156, 255, 0.25);
  transform: translateY(-1px);
}
.v2bot-btn:active { transform: translateY(1px); }
.v2bot-logo { flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(124,156,255,0.5)); }

/* Бейдж в футере */
.footer-v2bot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  color: rgba(205, 217, 255, 0.7);
  cursor: pointer;
  font-size: 12.5px;
  vertical-align: middle;
  transition: color 0.18s;
}
.footer-v2bot:hover { color: #cdd9ff; }

/* ===== Reveal-анимации (v29) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .support-aurora, .support-btn-shine { animation: none; }
  /* роадмап: без движения (сцена сама отдаёт статичный кадр из JS) */
  .rm-phase { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rm-ico, .rm-node i, .rm-node .rm-ring, .rm-node.done, .rm-node.next .rm-ico,
  .rm-ring-progress .rc-fg, .rm-track-fill { animation: none !important; transition: none !important; }
  .rm-track-fill { width: 25% !important; }
  .rm-toggle svg { transition: none !important; }
  .rm-card { transition: none !important; }
}

/* Fade-in при переключении вкладок */
.tab-pane.active { animation: pane-in 0.32s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes pane-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Кнопка «Наверх» */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 169, 78, 0.35);
  background: rgba(16, 19, 29, 0.85);
  backdrop-filter: blur(8px);
  color: #e3c887;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease, border-color 0.2s;
  z-index: 60;
  -webkit-tap-highlight-color: transparent;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover {
  border-color: rgba(212, 169, 78, 0.7);
  box-shadow: 0 0 18px rgba(212, 169, 78, 0.25);
}

/* Тост «скоро» */
.soon-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  background: rgba(16, 19, 29, 0.94);
  border: 1px solid rgba(212, 169, 78, 0.4);
  color: #e3c887;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
  white-space: nowrap;
}
.soon-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 640px) {
  .support-card { padding: 30px 18px 26px; margin-top: 36px; }
  .support-btns { flex-direction: column; }
  .support-btn, .v2bot-btn { width: 100%; justify-content: center; }
  .books-grid { grid-template-columns: 1fr; gap: 14px; }
  .books-cover { width: 92px; height: 122px; }
  .books-cover-title { font-size: 11.5px; }
  .books-card { padding: 18px 16px 16px; }
  .books-row { padding: 8px 11px; gap: 10px; font-size: 13.5px; }
  .book-mini { width: 27px; height: 38px; }
  .books-row-arrow { display: none; }
  .books-back { margin-bottom: 16px; }
}
@media (max-width: 380px) {
  .books-cover { width: 82px; height: 110px; }
  .books-row-count { padding: 2px 8px; }
}

/* Подпись цены под кнопками поддержки */
.support-price-note {
  display: block;
  width: 100%;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(227, 200, 135, 0.75);
}

/* ===== Фаза 6.1: тематические теги (28 тем) ===== */
.themes-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}
.themes-label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding-top: 5px;
  flex-shrink: 0;
}
.themes-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.theme-chip {
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  line-height: 1.4;
}
.theme-chip:hover {
  color: var(--gold);
  border-color: rgba(212, 169, 78, 0.55);
  background: rgba(212, 169, 78, 0.08);
  transform: translateY(-1px);
}
.theme-chip:active { transform: translateY(0); }

@media (max-width: 640px) {
  .themes-wrap { gap: 8px; }
  .themes-label { width: 100%; text-align: center; padding-top: 2px; }
}

/* ===== Фаза 6.2: заметки к избранному ===== */
.fav-note-zone { margin-top: 8px; }
.fav-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gold);
  background: rgba(212, 169, 78, 0.07);
  border: 1px solid rgba(212, 169, 78, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  white-space: pre-wrap;
  word-break: break-word;
}
.fav-note-ico { flex-shrink: 0; margin-top: 2px; color: var(--gold); opacity: 0.8; }
.fav-note-btn {
  font-size: 11.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 3px 10px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.fav-note-btn:hover { color: var(--gold); border-color: rgba(212, 169, 78, 0.5); }
.fav-note-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 8px 10px;
  resize: vertical;
  min-height: 46px;
}
.fav-note-input:focus { outline: none; border-color: rgba(212, 169, 78, 0.6); }
.fav-note-ctrl { display: flex; gap: 8px; margin-top: 6px; }
.fav-note-save {
  font-size: 12px;
  color: #171310;
  background: linear-gradient(180deg, #f2cf8a, #d9a94e);
  border: none;
  border-radius: 8px;
  padding: 4px 14px;
  cursor: pointer;
  font-weight: 600;
}
.fav-note-save:active { transform: translateY(1px); }
.fav-note-clear {
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
}
.fav-note-clear:hover { color: #ff8b7a; border-color: rgba(255,107,92,0.5); }

/* ===== Фаза 6.3: side-by-side сравнение ===== */
.cmp-btn {
  margin-left: 6px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: rgba(255,255,255,0.38);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.cmp-btn:hover { color: var(--gold); background: rgba(212,169,78,0.1); }
.cmp-btn.active { color: var(--gold); background: rgba(212,169,78,0.14); }

.cmp-dock {
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translate(-50%, 80px);
  display: flex; align-items: center; gap: 8px;
  background: rgba(16,14,12,0.92);
  border: 1px solid rgba(212,169,78,0.35);
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.55), 0 0 24px rgba(212,169,78,0.12);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s ease;
}
.cmp-dock.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cmp-dock-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  color: #171310;
  background: linear-gradient(180deg, #f2cf8a, #d9a94e);
  border: none;
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.cmp-dock-btn:hover { box-shadow: 0 0 18px rgba(212,169,78,0.35); }
.cmp-dock-btn:active { transform: translateY(1px); }
.cmp-dock-clear {
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.cmp-dock-clear:hover { color: #ff8b7a; border-color: rgba(255,107,92,0.5); }

/* ---------- Модалка поддержки ---------- */
.sup-modal {
  position: fixed; inset: 0;
  background: rgba(6,5,4,0.86);
  z-index: 85;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.sup-modal.show { opacity: 1; pointer-events: auto; }
.sup-modal-inner {
  width: min(480px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #141110;
  border: 1px solid rgba(212,169,78,0.28);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  padding: 22px 24px 24px;
}
.sup-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sup-modal-head h3 { margin: 0; font-size: 17px; letter-spacing: 0.4px; color: var(--gold); }
.sup-modal-close {
  background: transparent; border: none;
  color: var(--muted); cursor: pointer;
  padding: 6px; border-radius: 8px;
}
.sup-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.sup-modal-text { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.sup-modal-text b { color: var(--text); font-weight: 600; }
.sup-wallet { margin-bottom: 16px; }
.sup-wallet-label { font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sup-addr {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,169,78,0.32);
  border-radius: 12px;
  padding: 12px 14px;
  color: #e3c887;
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-all;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sup-addr:hover { border-color: rgba(212,169,78,0.65); background: rgba(212,169,78,0.06); }
.sup-addr-ico { flex: 0 0 auto; opacity: 0.75; }
.sup-addr.copied { border-color: rgba(106,214,140,0.7); color: #6ad68c; }
.sup-modal-btns { display: flex; flex-direction: column; gap: 10px; }
.sup-v2btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,169,78,0.2), rgba(212,169,78,0.08));
  border: 1px solid rgba(212,169,78,0.45);
  color: #e3c887;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sup-v2btn:hover { transform: translateY(-1px); border-color: rgba(212,169,78,0.8); box-shadow: 0 6px 22px rgba(212,169,78,0.18); }
.sup-modal-note { font-size: 12px; line-height: 1.5; color: var(--muted); opacity: 0.85; }

.cmp-modal {
  position: fixed; inset: 0;
  background: rgba(6,5,4,0.86);
  z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.cmp-modal.show { opacity: 1; pointer-events: auto; }
.cmp-modal-inner {
  width: min(1080px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #141110;
  border: 1px solid rgba(212,169,78,0.28);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  padding: 20px 22px 24px;
}
.cmp-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cmp-modal-head h3 { margin: 0; font-size: 17px; letter-spacing: 0.4px; color: var(--gold); }
.cmp-modal-close {
  background: transparent; border: none;
  color: var(--muted); cursor: pointer;
  padding: 6px; border-radius: 8px;
}
.cmp-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.cmp-modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.cmp-col {
  border: 1px solid color-mix(in srgb, var(--sc, #888) 45%, transparent);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.cmp-col-head { display: flex; flex-direction: column; gap: 3px; }
.cmp-col-src {
  font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--sc, #888);
}
.cmp-col-book { font-size: 11.5px; color: var(--muted); }
.cmp-col-text {
  font-size: 13px; line-height: 1.62; color: var(--text);
  max-height: 340px; overflow: auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}
.cmp-col-del {
  align-self: flex-start;
  font-size: 11.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 3px 10px;
  cursor: pointer;
}
.cmp-col-del:hover { color: #ff8b7a; border-color: rgba(255,107,92,0.5); }
body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .cmp-modal { padding: 10px; }
  .cmp-modal-inner { padding: 14px; border-radius: 16px; }
}

/* --- Вкладка «Nexus» (скоро) --- */
.tab-soon {
  display: inline-flex; align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: var(--gold-glow);
  border: 1px solid rgba(212,169,78,0.35);
  border-radius: 999px;
  vertical-align: middle;
}
.nexus-hero { padding: 44px 0 30px; max-width: 820px; }
.nexus-eyebrow {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.nexus-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 64px); line-height: 1;
  background: linear-gradient(135deg, #fff 25%, var(--gold-bright) 60%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.nexus-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.nexus-sub { color: var(--text); line-height: 1.7; font-size: 15px; max-width: 720px; }
.nexus-sub b { color: var(--gold-bright); font-weight: 600; }
.nexus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 34px 0 20px;
}
.nexus-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.nexus-card:hover {
  border-color: rgba(212,169,78,0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.nexus-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nexus-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 auto;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.nexus-card h3 { font-family: var(--font-serif); font-size: 20px; color: #eceef4; flex: 1; }
.soon-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: var(--gold-glow);
  border: 1px solid rgba(212,169,78,0.35);
  border-radius: 999px;
}
.nexus-desc { color: var(--text); line-height: 1.65; font-size: 14px; }
.nexus-tags { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.nexus-tags span {
  font-size: 11px; letter-spacing: 0.5px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
}
.nexus-note {
  margin: 10px 0 44px; padding: 14px 18px;
  color: var(--muted); font-size: 13.5px; line-height: 1.6;
  border-left: 2px solid var(--gold-dim);
  background: rgba(212,169,78,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 820px;
}

/* exact-фильтр: пометка не ломает HTML счётчика */
.exact-note { color: var(--muted); font-size: 12.5px; }
.theme-note { color: var(--gold-dim, #d4a94e); font-size: 12.5px; opacity: 0.9; }

/* ===== BUTTON SYSTEM v4 — единый «золотой неон + объём» ===== */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* --- Chips источников: грань + неон своего цвета --- */
.chip {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3),
    0 2px 0 rgba(30, 26, 14, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s, color 0.2s, background 0.2s;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 169, 78, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 3px 0 rgba(30, 26, 14, 0.6),
    0 7px 14px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(212, 169, 78, 0.18);
}
.chip:active {
  transform: scale(0.97) translateY(1px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 1px 0 rgba(30, 26, 14, 0.6),
    0 2px 5px rgba(0, 0, 0, 0.25);
}
.chip.active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -2px 5px rgba(0, 0, 0, 0.25),
    0 3px 0 rgba(30, 26, 14, 0.65),
    0 7px 16px rgba(0, 0, 0, 0.35);
}
.chip[data-src="all"].active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 5px rgba(0, 0, 0, 0.25),
    0 3px 0 rgba(120, 88, 30, 0.9),
    0 7px 16px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(212, 169, 78, 0.45),
    0 0 42px rgba(212, 169, 78, 0.18);
}
.chip[data-src="urantia"].active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 5px rgba(0, 0, 0, 0.25),
    0 3px 0 rgba(45, 62, 128, 0.9),
    0 7px 16px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(95, 127, 224, 0.5),
    0 0 42px rgba(95, 127, 224, 0.2);
}
.chip[data-src="bible"].active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 5px rgba(0, 0, 0, 0.25),
    0 3px 0 rgba(42, 110, 64, 0.9),
    0 7px 16px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(95, 191, 126, 0.5),
    0 0 42px rgba(95, 191, 126, 0.2);
}
.chip[data-src="quran"].active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 5px rgba(0, 0, 0, 0.25),
    0 3px 0 rgba(130, 88, 28, 0.9),
    0 7px 16px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(217, 159, 69, 0.5),
    0 0 42px rgba(217, 159, 69, 0.2);
}
.chip[data-src="torah"].active,
.chip[data-src="vedic"].active,
.chip[data-src="avesta"].active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 5px rgba(0, 0, 0, 0.25),
    0 3px 0 rgba(120, 88, 30, 0.85),
    0 7px 16px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(212, 169, 78, 0.35);
}

/* --- Example-пилюли: золотое кольцо + неон --- */
.example {
  transition: transform 0.16s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s, color 0.2s;
}
.example:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 194, 104, 0.6);
  box-shadow:
    0 0 0 1px rgba(212, 169, 78, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 14px rgba(212, 169, 78, 0.22);
}
.example:active { transform: scale(0.97); }

/* --- Demo-btn (страница «О проекте») --- */
.demo-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3),
    0 2px 0 rgba(30, 26, 14, 0.6),
    0 5px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.16s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.2s, border-color 0.2s;
}
.demo-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3),
    0 3px 0 rgba(120, 88, 30, 0.8),
    0 9px 22px rgba(0, 0, 0, 0.32),
    0 0 18px rgba(212, 169, 78, 0.3);
}
.demo-btn:active { transform: scale(0.97); }

/* --- Opt-btn «Случайный запрос»: голубой неон --- */
.opt-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 0 rgba(24, 32, 60, 0.7),
    0 4px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.18s, color 0.18s, transform 0.16s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.opt-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 3px 0 rgba(24, 32, 60, 0.7),
    0 7px 16px rgba(0, 0, 0, 0.3),
    0 0 14px rgba(124, 156, 255, 0.35);
}
.opt-btn:active { transform: scale(0.97); }

/* --- Share/Save: золотое свечение --- */
.share-btn, .save-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 0 rgba(90, 66, 22, 0.7),
    0 4px 10px rgba(0, 0, 0, 0.22);
  transition: background 0.2s, color 0.2s, transform 0.16s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.share-btn:hover, .save-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 3px 0 rgba(90, 66, 22, 0.7),
    0 7px 16px rgba(0, 0, 0, 0.28),
    0 0 14px rgba(212, 169, 78, 0.3);
}
.share-btn:active, .save-btn:active { transform: scale(0.95); }

/* --- Аккордеон: золотой неон при hover/open --- */
.acc-head { transition: color 0.2s, text-shadow 0.25s; }
.acc-head:hover {
  color: #e9d9a8;
  text-shadow: 0 0 12px rgba(212, 169, 78, 0.35);
}

/* --- V2Bot-btn: голубой неон --- */
.v2bot-btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 0 rgba(24, 32, 60, 0.6),
    0 5px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.22s var(--ease-out), transform 0.16s var(--ease-out), color 0.18s;
}
.v2bot-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 3px 0 rgba(24, 32, 60, 0.6),
    0 8px 18px rgba(0, 0, 0, 0.3),
    0 0 16px rgba(124, 156, 255, 0.35);
}
.v2bot-btn:active { transform: scale(0.97); }

/* --- Sup-v2btn (модалка поддержки): золотой неон + грань --- */
.sup-v2btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 3px 0 rgba(110, 80, 26, 0.85),
    0 6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.16s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.2s;
}
.sup-v2btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 0 rgba(110, 80, 26, 0.85),
    0 10px 22px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(212, 169, 78, 0.35);
}
.sup-v2btn:active { transform: scale(0.97); }

/* --- Кнопка «Поддержать» (топбар): неон-пульс как у табов --- */
.support-btn { transition: transform 0.18s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.2s; }
.support-btn:active { transform: translateY(3px) scale(0.99); }

/* --- reduced-motion: отключаем анимации/подъёмы --- */
@media (prefers-reduced-motion: reduce) {
  .tab-btn, .chip, .example, .demo-btn, .opt-btn, .share-btn, .save-btn,
  #chat-send, .acc-head, .v2bot-btn, .sup-v2btn, .support-btn, .search-btn {
    transition: none !important;
    animation: none !important;
  }
  .tab-btn:hover, .chip:hover, .example:hover, .demo-btn:hover, .opt-btn:hover,
  #chat-send:hover, .sup-v2btn:hover, .support-btn:hover, .search-btn:hover {
    transform: none !important;
  }
}

/* --- Фаза 3: books-card появление (opacity-only, tilt не конфликтует) --- */
@keyframes booksIn { from { opacity: 0; } to { opacity: 1; } }
.books-card { animation: booksIn 0.55s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: var(--rd, 0ms); }
@media (prefers-reduced-motion: reduce) { .books-card { animation: none; } }

/* ============================================================
   ROADMAP «Путь» — таймлайн 4 недель, золотой неон + объём
   ============================================================ */
.rm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 34px; }
.rm-stat {
  background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(212,169,78,0.22);
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.25s cubic-bezier(0.23,1,0.32,1), box-shadow 0.25s;
}
.rm-stat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.45), 0 0 22px rgba(212,169,78,0.18), inset 0 1px 0 rgba(255,255,255,0.08); }
.rm-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-bright, #e0b366);
  text-shadow: 0 0 18px rgba(224,179,102,0.45);
  line-height: 1.1;
}
.rm-stat-label { display: block; margin-top: 4px; font-size: 12px; color: var(--text); opacity: 0.75; letter-spacing: 0.03em; }

.rm-timeline { position: relative; margin: 8px 0 10px; padding-left: 0; }
.rm-timeline::before {
  content: '';
  position: absolute;
  left: 17px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(212,169,78,0.85), rgba(212,169,78,0.25) 45%, rgba(212,169,78,0.5));
  box-shadow: 0 0 12px rgba(212,169,78,0.35);
}

.rm-phase { position: relative; display: flex; gap: 22px; padding: 0 0 26px; }
.rm-phase:last-child { padding-bottom: 6px; }
.rm-marker { position: relative; flex: 0 0 36px; display: flex; justify-content: center; }
.rm-dot {
  width: 14px; height: 14px;
  margin-top: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4d894, #b58a35 70%);
  border: 2px solid rgba(20,20,28,0.9);
  box-shadow: 0 0 0 4px rgba(212,169,78,0.16), 0 0 18px rgba(212,169,78,0.55);
}
.rm-phase.active .rm-dot { background: radial-gradient(circle at 35% 30%, #ffe9a8, #d4a94e 60%, #8a6420); box-shadow: 0 0 0 5px rgba(212,169,78,0.22), 0 0 26px rgba(224,179,102,0.8); animation: rmPulse 2.6s ease-in-out infinite; }
@keyframes rmPulse { 0%,100% { box-shadow: 0 0 0 5px rgba(212,169,78,0.22), 0 0 20px rgba(224,179,102,0.65); } 50% { box-shadow: 0 0 0 8px rgba(212,169,78,0.12), 0 0 34px rgba(224,179,102,0.95); } }

.rm-card {
  flex: 1;
  font-family: 'Inter Variable', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: linear-gradient(168deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s, border-color 0.3s;
}
.rm-card:hover { transform: translateY(-3px); border-color: rgba(212,169,78,0.35); box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 26px rgba(212,169,78,0.14), inset 0 1px 0 rgba(255,255,255,0.09); }
.rm-phase.active .rm-card { border-color: rgba(212,169,78,0.38); box-shadow: 0 12px 34px rgba(0,0,0,0.45), 0 0 30px rgba(212,169,78,0.15), inset 0 1px 0 rgba(255,255,255,0.08); }

.rm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; padding-right: 76px; }
.rm-week { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); opacity: 0.6; font-weight: 600; }
.rm-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.st-live { color: #ffe9a8; background: rgba(212,169,78,0.14); border: 1px solid rgba(212,169,78,0.5); box-shadow: 0 0 14px rgba(212,169,78,0.35), inset 0 1px 0 rgba(255,255,255,0.1); text-shadow: 0 0 10px rgba(224,179,102,0.6); }
.st-next { color: #9fc4ff; background: rgba(124,156,255,0.12); border: 1px solid rgba(124,156,255,0.45); box-shadow: 0 0 12px rgba(124,156,255,0.25); }
.st-plan { color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); opacity: 0.85; }

.rm-title { font-family: var(--font-serif); font-size: 21px; color: #eceef4; margin: 0 0 8px; padding-right: 72px; }
.rm-phase.active .rm-title { color: #ffe9a8; text-shadow: 0 0 22px rgba(224,179,102,0.35); }
.rm-desc { color: var(--text); line-height: 1.65; font-size: 14px; margin: 0 0 12px; }
.rm-desc b { color: var(--gold-bright, #e0b366); font-weight: 600; }

.rm-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.rm-tags span {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.rm-progress {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.rm-progress-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #8a6420, #d4a94e 55%, #ffe9a8);
  box-shadow: 0 0 14px rgba(212,169,78,0.6);
  transition: width 1.2s cubic-bezier(0.23,1,0.32,1);
}
.rm-progress-note { margin-top: 6px; font-size: 11.5px; color: var(--text); opacity: 0.6; }

.rm-outcome {
  margin-top: 30px;
  background: linear-gradient(165deg, rgba(212,169,78,0.10), rgba(212,169,78,0.02));
  border: 1px solid rgba(212,169,78,0.3);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 34px rgba(212,169,78,0.12), inset 0 1px 0 rgba(255,255,255,0.09);
}
.rm-outcome-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rm-outcome-ico { flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(212,169,78,0.5)); }
.rm-outcome h3 { font-family: var(--font-serif); font-size: 22px; color: #ffe9a8; text-shadow: 0 0 24px rgba(224,179,102,0.4); margin: 0; }
.rm-outcome-text { color: var(--text); line-height: 1.75; font-size: 14.5px; margin: 0; max-width: 760px; }
.rm-outcome-text b { color: var(--gold-bright, #e0b366); font-weight: 600; }

@media (max-width: 640px) {
  .rm-stats { grid-template-columns: repeat(2, 1fr); }
  .rm-card { padding: 16px 16px; }
  .rm-outcome { padding: 20px 18px; }
  .rm-sky { height: 340px; margin: 6px 0 30px; }
  .rm-track { height: 64px; }
  .rm-node { width: 62px; }
  .rm-node u { display: none; }
  .rm-node b { margin-top: 8px; font-size: 12px; }
  .rm-node em { font-size: 8.5px; margin-top: 1px; }
  .rm-card-head { padding-right: 64px; }
  .rm-title { padding-right: 60px; font-size: 19px; }
  .rm-num { font-size: 84px; top: -6px; right: 6px; }
  .rm-ring-progress { top: 18px; right: 14px; width: 52px; height: 52px; }
  .rm-ring-progress svg { width: 52px; height: 52px; }
  .rm-phase { gap: 16px; }
}

/* ============================================================
   Комментарии к пассажу (Фаза Н1)
   ============================================================ */
.card-comments { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.10); }
.cmt-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.15s;
}
.cmt-toggle:hover { color: #ffe9a8; border-color: rgba(212,169,78,0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 14px rgba(212,169,78,0.2); }
.cmt-toggle:active { transform: translateY(1px); }
.cmt-toggle svg { color: rgba(212,169,78,0.85); }
.cmt-count {
  font-size: 11px; min-width: 20px; text-align: center;
  background: rgba(212,169,78,0.14); color: #ffe9a8;
  border: 1px solid rgba(212,169,78,0.4);
  border-radius: 999px; padding: 1px 6px;
}
.cmt-panel { margin-top: 10px; }
.cmt-list { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cmt-empty { font-size: 12.5px; color: var(--text); opacity: 0.6; padding: 6px 2px; }
.cmt-item {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 2px solid rgba(212,169,78,0.55);
  border-radius: 10px; padding: 8px 12px;
}
.cmt-item-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; font-size: 11px; }
.cmt-item-head b { color: #ffe9a8; font-weight: 600; }
.cmt-item-head span { color: var(--text); opacity: 0.5; }
.cmt-item-text { font-size: 13px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.cmt-form { display: flex; flex-direction: column; gap: 7px; }
.cmt-author, .cmt-text {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 8px 12px;
  color: #eceef4; font-size: 13px; font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}
.cmt-author { max-width: 220px; }
.cmt-text { resize: vertical; min-height: 46px; }
.cmt-author:focus, .cmt-text:focus { outline: none; border-color: rgba(212,169,78,0.55); box-shadow: 0 0 0 3px rgba(212,169,78,0.12), inset 0 1px 2px rgba(0,0,0,0.25); }
.cmt-submit {
  align-self: flex-start;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: #ffe9a8;
  background: linear-gradient(180deg, rgba(212,169,78,0.22), rgba(212,169,78,0.10));
  border: 1px solid rgba(212,169,78,0.5);
  border-radius: 999px; padding: 7px 16px;
  box-shadow: 0 2px 0 rgba(120,90,30,0.6), inset 0 1px 0 rgba(255,255,255,0.12), 0 0 12px rgba(212,169,78,0.15);
  transition: box-shadow 0.2s, transform 0.15s;
}
.cmt-submit:hover { box-shadow: 0 2px 0 rgba(120,90,30,0.6), inset 0 1px 0 rgba(255,255,255,0.14), 0 0 18px rgba(212,169,78,0.3); }
.cmt-submit:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(120,90,30,0.6), inset 0 1px 2px rgba(0,0,0,0.3); }
.cmt-msg { font-size: 12px; }
.cmt-msg.err { color: #ff8f7a; }
.cmt-msg.ok { color: #7bd88f; }

/* ===== Роадмап v4 «Звёздная дорога»: неон, грань, орбиты, круговой прогресс ===== */

/* -- звёздное небо за hero -- */
#tab-roadmap { position: relative; }
.rm-sky {
  position: relative;
  height: 440px;
  margin: 6px 0 38px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(46,58,92,0.4), transparent 62%),
    radial-gradient(70% 55% at 82% 8%, rgba(212,169,78,0.12), transparent 55%),
    radial-gradient(55% 45% at 12% 18%, rgba(124,156,255,0.09), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  box-shadow: 0 18px 46px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
#rm6 { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Скрытые кнопки-планеты: клавиатурный доступ к фазам */
.rm-sky-btn {
  position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border: 1.5px dashed rgba(212,169,78,0); border-radius: 50%;
  background: transparent; cursor: pointer; padding: 0;
  opacity: 0; z-index: 2;
  transition: border-color 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.rm-sky-btn:focus-visible {
  opacity: 1;
  border-color: rgba(212,169,78,0.85);
  box-shadow: 0 0 0 8px rgba(212,169,78,0.18), 0 0 24px rgba(224,179,102,0.55);
  outline: none;
}
.rm-sky-btn::-moz-focus-inner { border: 0; }

/* Подсказка «нажми на планету» */
.rm-hint {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  max-width: 300px;
  padding: 9px 14px;
  background: rgba(14,16,24,0.82);
  border: 1px solid rgba(212,169,78,0.28);
  border-radius: 999px;
  color: #e8e4d8;
  font-size: 13px;
  line-height: 1.25;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: rmHintIn 0.5s 0.9s both;
}
.rm-hint svg { color: #d4a94e; flex: none; }
.rm-hint-t { white-space: nowrap; }
.rm-hint-kb {
  display: block; margin-top: 2px;
  font-size: 11px; color: rgba(232,228,216,0.55);
}
.rm-hint.fade { opacity: 0.55; }
.rm-hint.gone { opacity: 0; transform: translateY(-8px); pointer-events: none; }
@keyframes rmHintIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.rm-tt {
  position: absolute; z-index: 3; pointer-events: none;
  max-width: 232px; padding: 9px 12px 10px;
  background: rgba(13,15,22,0.94);
  border: 1px solid rgba(212,169,78,0.3);
  border-radius: 12px;
  color: #e8e4d8;
  font-size: 12.5px; line-height: 1.35;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform-origin: 12px 50%;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.rm-tt.on { opacity: 1; }
.rm-tt .rm-tt-in { transform: translateY(6px); transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1); }
.rm-tt.on .rm-tt-in { transform: translateY(0); }
/* стрелка-указатель на планету (тултип справа — стрелка слева) */
.rm-tt::before {
  content: ''; position: absolute; left: -5px; top: 50%; margin-top: -5px;
  width: 10px; height: 10px;
  background: inherit; border-radius: 2px;
  border-left: 1px solid rgba(212,169,78,0.32);
  border-bottom: 1px solid rgba(212,169,78,0.32);
  transform: rotate(45deg);
}
/* тултип слева от планеты — стрелка справа */
.rm-tt.flip::before { left: auto; right: -5px; transform: rotate(225deg); }
/* прогресс-бар в тултипе */
.rm-tt-bar {
  height: 3px; margin-top: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px; overflow: hidden;
}
/* скролл-хинт под канвасом */
.rm-scroll-hint {
  display: flex; align-items: center; gap: 7px;
  margin: 14px auto 4px; padding: 6px 14px 6px 16px;
  font-family: var(--font-serif); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(212,169,78,0.75);
  background: rgba(212,169,78,0.06);
  border: 1px solid rgba(212,169,78,0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.5s ease, color 0.25s, border-color 0.25s;
  animation: rmHintBob 2.2s ease-in-out infinite;
}
.rm-scroll-hint:hover { color: #ffd98a; border-color: rgba(212,169,78,0.45); }
.rm-scroll-hint svg { animation: rmHintArrow 2.2s ease-in-out infinite; }
.rm-scroll-hint.gone { opacity: 0; pointer-events: none; }
@keyframes rmHintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes rmHintArrow { 0%, 100% { transform: translateY(0); opacity: 0.8; } 50% { transform: translateY(3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rm-scroll-hint, .rm-scroll-hint svg { animation: none; } }

.rm-tt-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #b98a3a, #ffd98a);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255,217,138,0.5);
}
.rm-tt-title { font-weight: 600; font-size: 13.5px; color: #ffe9b0; margin-bottom: 2px; }
.rm-tt-week { color: rgba(232,228,216,0.75); margin-bottom: 6px; }
.rm-tt-row { display: flex; align-items: center; gap: 8px; }
.rm-tt-p { font-weight: 700; color: #d4a94e; font-size: 13px; }
.rm-tt-status {
  font-size: 11px; padding: 1.5px 8px; border-radius: 999px;
  background: rgba(212,169,78,0.14); color: #e8c87e;
}
.rm-tt.done .rm-tt-status { background: rgba(212,169,78,0.18); color: #ffd98a; }
.rm-tt.next .rm-tt-status { background: rgba(110,170,255,0.16); color: #9cc4ff; }
.rm-tt.plan .rm-tt-status { background: rgba(140,148,160,0.16); color: #b9c0cc; }

/* Легенда кодировки планет */
.rm-legend {
  display: flex; justify-content: center; align-items: center; gap: 26px;
  padding: 10px 0 2px;
  font-size: 12.5px; color: rgba(232,228,216,0.62);
}
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-dot.gold { background: radial-gradient(circle at 32% 30%, #ffe9b0, #e8b64c 60%, #8a5f1e); box-shadow: 0 0 8px rgba(232,182,76,0.5); }
.lg-dot.blue { background: radial-gradient(circle at 32% 30%, #cfe4ff, #5f9bf0 60%, #1d3a6e); box-shadow: 0 0 8px rgba(95,155,240,0.5); }
.lg-dot.gray { background: radial-gradient(circle at 32% 30%, #aab2c0, #5a6474 60%, #242b38); }
@media (max-width: 640px) {
  .rm-legend { gap: 16px; font-size: 11.5px; }
}

  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 640px) {
  .rm-hint { right: 10px; top: 10px; left: 10px; max-width: none; border-radius: 14px; }
  .rm-hint-kb { display: none; }
}

/* -- траектория «звёздная дорога» -- */
.rm-route {
  position: relative; z-index: 1;
  background: linear-gradient(170deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 20px 24px 12px;
  margin: 32px 0 30px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.09);
}
.rm-route::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.rm-route-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.rm-route-label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); opacity: 0.6; font-weight: 600; }
.rm-route-pct { line-height: 1; text-align: right; }
.rm-route-pct b {
  font-family: var(--font-serif); font-size: 30px; font-weight: 700;
  background: linear-gradient(135deg, #fff 15%, #ffe9a8 55%, #d4a94e 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(224,179,102,0.55));
}
.rm-route-pct em { font-style: normal; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); opacity: 0.55; margin-left: 7px; font-family: var(--font-sans); }

.rm-track { position: relative; height: 78px; margin: 6px 2px 0; }
.rm-track-line, .rm-track-fill { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 99px; }
.rm-track-line { background: rgba(255,255,255,0.08); box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
.rm-track-fill {
  width: 0%;
  background: linear-gradient(90deg, rgba(138,100,32,0.5), #d4a94e 55%, #ffe9a8);
  box-shadow: 0 0 22px rgba(224,179,102,0.7), 0 0 6px rgba(255,236,180,0.8);
  transition: width 1.4s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.rm-track.go .rm-track-fill { width: 25%; }
.rm-track-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.75) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: rmSweep 2.8s linear infinite;
}
@keyframes rmSweep { 0% { background-position: 130% 0; } 100% { background-position: -90% 0; } }

.rm-node { position: absolute; top: 0; transform: translateX(-50%); text-align: center; width: 76px; }
.rm-node i {
  position: relative; display: block; margin: 0 auto;
  width: 22px; height: 22px;
  background: radial-gradient(circle at 34% 30%, #454b5c, #1c1e26 72%);
  border: 2px solid rgba(255,255,255,0.2);
  transform: rotate(45deg); border-radius: 5px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.035), 0 6px 14px rgba(0,0,0,0.55);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.rm-node i::before {
  content: ''; position: absolute; inset: 4px; border-radius: 3px;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.35), transparent 70%);
}
.rm-node .rm-ring {
  position: absolute; left: 50%; top: 11px; width: 40px; height: 40px; margin-left: -20px; margin-top: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.18);
  opacity: 0; transition: opacity 0.4s, border-color 0.4s;
  pointer-events: none;
}
.rm-node b { display: block; margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--text); opacity: 0.5; transition: opacity 0.3s, color 0.3s, text-shadow 0.3s; }
.rm-node:hover b { color: #fff; opacity: 1; text-shadow: 0 0 12px rgba(212,169,78,0.55); }
.rm-node:hover em { color: #d4a94e; opacity: 1; }
.rm-node:hover u { color: rgba(255,255,255,0.75); opacity: 0.75; }
.rm-node:hover .rm-ring { opacity: 0.5; border-color: rgba(212,169,78,0.4); }
.rm-node:hover i { box-shadow: 0 0 0 7px rgba(212,169,78,0.12), 0 6px 14px rgba(0,0,0,0.55), 0 0 22px rgba(224,179,102,0.45); border-color: rgba(255,255,255,0.45); }
.rm-node em { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); opacity: 0.38; margin-top: 2px; }
.rm-node u { display: block; font-style: normal; text-decoration: none; font-size: 9.5px; color: var(--text); opacity: 0.28; margin-top: 1px; }

.rm-node.done i {
  background: radial-gradient(circle at 34% 30%, #fff3d0, #d4a94e 55%, #7d5a16);
  border-color: #ffe9a8;
  box-shadow: 0 0 0 5px rgba(212,169,78,0.2), 0 0 26px rgba(224,179,102,0.9), inset 0 1px 2px rgba(255,255,255,0.7);
  animation: rmFloat 4.5s ease-in-out infinite;
}
.rm-node.done .rm-ring { opacity: 1; border-color: rgba(212,169,78,0.5); animation: rmOrbit 7s linear infinite; }
.rm-node.done b { color: #ffe9a8; opacity: 1; text-shadow: 0 0 14px rgba(224,179,102,0.55); }
.rm-node.done em { color: #d4a94e; opacity: 0.85; }
.rm-node.done u { opacity: 0.55; }
.rm-node.done i::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M7 11.5l3 3 5-6' stroke='%2313141a' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
  transform: rotate(-45deg) scale(0.86);
}

.rm-node.next i {
  background: radial-gradient(circle at 34% 30%, #ffffff, #d4a94e 50%, #8a6420);
  border-color: #ffe9a8;
  box-shadow: 0 0 0 6px rgba(212,169,78,0.22), 0 0 34px rgba(224,179,102,1), inset 0 1px 2px rgba(255,255,255,0.8);
  animation: rmPulse 2.4s ease-in-out infinite;
}
.rm-node.next .rm-ring { opacity: 1; border-color: rgba(255,236,180,0.65); animation: rmOrbit 4s linear infinite reverse; }
.rm-node.next b { color: #fff; opacity: 1; text-shadow: 0 0 16px rgba(224,179,102,0.8); }
.rm-node.next em { color: #d4a94e; opacity: 1; }
.rm-node.next u { opacity: 0.6; }

@keyframes rmPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(212,169,78,0.2), 0 0 22px rgba(224,179,102,0.75); }
  50% { box-shadow: 0 0 0 10px rgba(212,169,78,0.08), 0 0 40px rgba(224,179,102,1); }
}
@keyframes rmOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rmFloat { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-3px); } }

/* -- статы -- */
.rm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 34px; }
.rm-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 18px 10px 14px; gap: 2px;
  background: linear-gradient(170deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s, border-color 0.3s;
}
.rm-stat:hover { transform: translateY(-3px); border-color: rgba(212,169,78,0.4); box-shadow: 0 16px 36px rgba(0,0,0,0.5), 0 0 26px rgba(212,169,78,0.2), inset 0 1px 0 rgba(255,255,255,0.09); }
.rm-stat-ico { color: #d4a94e; filter: drop-shadow(0 0 10px rgba(224,179,102,0.55)); margin-bottom: 4px; }
.rm-stat-num {
  font-family: var(--font-serif); font-size: 30px; line-height: 1; font-weight: 700;
  background: linear-gradient(135deg, #fff 20%, #ffe9a8 55%, #d4a94e 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(224,179,102,0.35));
}
.rm-stat-label { font-size: 11.5px; color: var(--text); opacity: 0.65; letter-spacing: 0.04em; }

/* -- таймлайн фаз -- */
.rm-timeline { position: relative; margin: 28px 0 10px; padding-left: 0; z-index: 1; }
.rm-timeline::before {
  content: '';
  position: absolute; left: 21px; top: 12px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, rgba(212,169,78,0.9), rgba(212,169,78,0.25) 38%, rgba(124,156,255,0.5));
  box-shadow: 0 0 14px rgba(212,169,78,0.4);
}
.rm-phase { position: relative; display: flex; gap: 22px; padding: 0 0 28px; opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23,1,0.32,1); }
.rm-phase.visible { opacity: 1; transform: translateY(0); }
.rm-phase:last-child { padding-bottom: 6px; }

.rm-marker { position: relative; flex: 0 0 44px; display: flex; justify-content: center; }
.rm-ico {
  margin-top: 20px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  transform: rotate(45deg);
  color: rgba(236,238,244,0.7);
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.16), rgba(255,255,255,0.03) 66%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.rm-ico svg { transform: rotate(-45deg); }
.rm-phase.done .rm-ico {
  color: #ffe9a8;
  border-color: rgba(212,169,78,0.6);
  box-shadow: 0 0 0 6px rgba(212,169,78,0.14), 0 0 28px rgba(224,179,102,0.5), inset 0 1px 1px rgba(255,255,255,0.2);
}
.rm-phase.next .rm-ico {
  color: #ffe9a8;
  border-color: rgba(212,169,78,0.65);
  box-shadow: 0 0 0 7px rgba(212,169,78,0.16), 0 0 34px rgba(224,179,102,0.65), inset 0 1px 1px rgba(255,255,255,0.2);
  animation: rmPulse 2.4s ease-in-out infinite;
}
.rm-marker-glow {
  position: absolute; left: 50%; top: 31px; width: 44px; height: 44px; margin-left: -22px; margin-top: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.16);
  opacity: 0; pointer-events: none;
}
.rm-phase.done .rm-marker-glow, .rm-phase.next .rm-marker-glow { opacity: 1; border-color: rgba(212,169,78,0.4); animation: rmOrbit 9s linear infinite; }
.rm-phase:hover .rm-ico { transform: rotate(45deg) translateY(-3px) scale(1.05); }
.rm-phase:hover .rm-ico svg { transform: rotate(-45deg); }

/* -- карточки с «гранью» -- */
.rm-card {
  position: relative; overflow: hidden;
  flex: 1;
  background: linear-gradient(170deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 20px;
  padding: 24px 24px 18px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.09);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s, border-color 0.35s;
}
.rm-card::before {
  content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
}
.rm-card:hover { transform: translateY(-4px); border-color: rgba(212,169,78,0.4); box-shadow: 0 20px 46px rgba(0,0,0,0.55), 0 0 30px rgba(212,169,78,0.16), inset 0 1px 0 rgba(255,255,255,0.1); }
.rm-phase.done .rm-card {
  border-color: rgba(212,169,78,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 36px rgba(212,169,78,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.rm-phase.next .rm-card { border-color: rgba(124,156,255,0.32); box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 30px rgba(124,156,255,0.14), inset 0 1px 0 rgba(255,255,255,0.1); }

.rm-num {
  position: absolute; right: 10px; top: -8px;
  font-family: var(--font-serif); font-size: 100px; line-height: 1; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px rgba(212,169,78,0.15);
  user-select: none; pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(212,169,78,0.18));
}
.rm-phase.done .rm-num { -webkit-text-stroke: 1.5px rgba(224,179,102,0.34); }
.rm-phase.next .rm-num { -webkit-text-stroke: 1.5px rgba(124,156,255,0.25); }

/* круговой прогресс */
.rm-ring-progress {
  position: absolute; top: 22px; right: 18px;
  width: 56px; height: 56px; z-index: 1;
}
.rm-ring-progress svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.rm-ring-progress .rc-bg { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 5; }
.rm-ring-progress .rc-fg {
  fill: none; stroke: #d4a94e; stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 163.4; stroke-dashoffset: 163.4;
  filter: drop-shadow(0 0 6px rgba(224,179,102,0.7));
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22,1,0.36,1);
}
.rm-ring-progress.blue .rc-fg { stroke: #7ea6ff; filter: drop-shadow(0 0 6px rgba(124,156,255,0.7)); }
.rm-ring-progress .rc-val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; color: #ffe9a8; letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(224,179,102,0.6);
}
.rm-ring-progress.blue .rc-val { color: #bcd2ff; text-shadow: 0 0 10px rgba(124,156,255,0.6); }
.rm-phase.plan .rm-ring-progress .rc-fg { stroke: #7a7f8c; filter: none; }
.rm-phase.plan .rm-ring-progress .rc-val { color: #7a7f8c; text-shadow: none; }

.rm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; padding-right: 78px; }
.rm-week { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); opacity: 0.62; font-weight: 600; }
.rm-status {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px;
}
.st-done { color: #7bd88f; border: 1px solid rgba(123,216,143,0.42); background: rgba(123,216,143,0.1); box-shadow: 0 0 16px rgba(123,216,143,0.25); }
.st-done::before { content: ''; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 10px rgba(123,216,143,0.9); }
.st-next { color: #9fc4ff; border: 1px solid rgba(124,156,255,0.45); background: rgba(124,156,255,0.12); box-shadow: 0 0 12px rgba(124,156,255,0.25); }
.st-next::before { content: ''; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #9fc4ff; box-shadow: 0 0 10px rgba(124,156,255,0.9); animation: rmPulse 2.4s ease-in-out infinite; }
.st-plan { color: var(--text); border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); opacity: 0.85; }

.rm-title { font-family: var(--font-serif); font-size: 24px; color: #eceef4; margin: 0 0 8px; position: relative; padding-right: 78px; }
.rm-phase.done .rm-title { color: #ffe9a8; text-shadow: 0 0 28px rgba(224,179,102,0.4); }
.rm-desc { color: var(--text); line-height: 1.68; font-size: 14px; margin: 0 0 12px; }
.rm-desc b { color: var(--gold-bright, #e0b366); font-weight: 600; }

.rm-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.rm-tags span {
  font-size: 11.5px; color: var(--text); opacity: 0.78;
  padding: 4px 11px; border-radius: 99px;
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.13);
}

/* -- аккордеон -- */
.rm-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 8px 15px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold-bright, #e0b366);
  background: rgba(212,169,78,0.09);
  border: 1px solid rgba(212,169,78,0.32);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.rm-toggle:hover { background: rgba(212,169,78,0.17); border-color: rgba(212,169,78,0.55); box-shadow: 0 0 18px rgba(212,169,78,0.22); }
.rm-toggle svg { transition: transform 0.3s cubic-bezier(0.23,1,0.32,1); }
.rm-card.open .rm-toggle svg { transform: rotate(180deg); }
.rm-details {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.23,1,0.32,1), opacity 0.35s ease, margin 0.35s ease;
}
.rm-card.open .rm-details { max-height: 340px; opacity: 1; margin-top: 12px; }

.rm-check { list-style: none; margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,0.26); border: 1px solid rgba(255,255,255,0.06); }
.rm-check li { position: relative; padding: 4px 0 4px 26px; font-size: 13.5px; line-height: 1.55; color: var(--text); opacity: 0.72; }
.rm-check li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid #7a7f8c; border-bottom: 2px solid #7a7f8c;
  transform: rotate(-45deg); opacity: 0.5;
}
.rm-check li.ok { opacity: 1; }
.rm-check li.ok::before { border-color: #7bd88f; opacity: 1; filter: drop-shadow(0 0 5px rgba(123,216,143,0.5)); }

/* -- адаптив -- */
@media (max-width: 768px) {
  .rm-stats { grid-template-columns: repeat(2, 1fr); }
  .rm-stat { padding: 14px 8px 12px; }
}
@media (max-width: 640px) {
  .rm-sky { height: 470px; }
  .rm-route { padding: 18px 14px 10px; margin: 26px 0 26px; }
  .rm-track { height: 74px; }
  .rm-node { width: 58px; }
  .rm-node u { font-size: 10px; }
  .rm-stats { grid-template-columns: repeat(2, 1fr); }
  .rm-stat { padding: 14px 8px 12px; }
  .rm-stat-num { font-size: 26px; }
  .rm-marker { flex-basis: 36px; }
  .rm-ico { width: 34px; height: 34px; margin-top: 22px; border-radius: 11px; }
  .rm-card { padding: 20px 16px 16px; }
  .rm-num { font-size: 92px; right: 4px; top: -14px; }
  .rm-ring-progress { top: 18px; right: 14px; width: 52px; height: 52px; }
  .rm-ring-progress svg { width: 52px; height: 52px; }
  .rm-ring-progress .rc-bg, .rm-ring-progress .rc-fg { stroke-width: 5; }
  .rm-card-head { padding-right: 72px; }
  .rm-title { font-size: 20px; padding-right: 66px; }
}

.rm-phase.rm-hit .rm-card {
  animation: rmHit 1.6s cubic-bezier(0.23,1,0.32,1);
}
.rm-phase.rm-hit .rm-ico {
  animation: rmPulse 1s ease-in-out 2;
}
@keyframes rmHit {
  0% { box-shadow: 0 0 0 0 rgba(212,169,78,0.55), 0 16px 40px rgba(0,0,0,0.5); }
  25% { box-shadow: 0 0 0 9px rgba(212,169,78,0.16), 0 0 60px rgba(224,179,102,0.55), 0 16px 40px rgba(0,0,0,0.5); }
  100% { box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
}

#rm6 { touch-action: pan-y; }
.rm-sky { pointer-events: none; }
#rm6 { pointer-events: auto; }
