/* =========================================================
   Алика Снежная · астролог — дизайн-система
   Нежная лаванда (в цвет образа Аликы), шампанское-золото, ночное небо.
   ========================================================= */

:root {
  --bg: #fbf6ee;
  --bg-2: #f6eee2;
  --bg-3: #efe5d5;
  --surface: #fffdf9;
  --surface-solid: #fffdf9;
  --surface-2: #f8f1e6;
  --ink: #2b2140;
  --ink-2: #554868;
  --ink-3: #75698a;
  --lav: #8e6fd0;
  --lav-strong: #5b3a9e;
  --lav-deep: #3f2775;
  --lav-soft: #efe7f8;
  --rose: #f9e0e2;
  --rose-strong: #c4566f;
  --gold: #a1722a;
  --gold-2: #d6ac5e;
  --gold-soft: #f7ecd6;
  --night: #1f1636;
  --night-2: #2d2150;
  --hot: #ff4f6a;
  --hot-2: #ff9a44;
  --mint: #12a483;
  --line: rgba(91, 58, 158, 0.12);
  --line-2: rgba(91, 58, 158, 0.22);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.05), 0 10px 26px -14px rgba(60, 40, 90, 0.22);
  --shadow-lg: 0 26px 50px -22px rgba(50, 30, 80, 0.36);
  --glow: 0 0 0 5px rgba(142, 111, 208, 0.18);
  --ok: #2f8f6c;
  --warn: #b97a28;
  --bad: #c94a64;
  --soft-asp: #3f7fcf;
  --hard-asp: #d7506f;
  --conj-asp: #b8893b;
  --star: rgba(91, 58, 158, 0.6);
  /* матовое стекло: карточки полупрозрачные, небо под ними размыто */
  --glass: color-mix(in srgb, var(--surface) 74%, transparent);
  --glass-blur: blur(16px) saturate(1.25);
  --star-gold: rgba(176, 128, 48, 0.75);
  /* искорка ✦ для фонов CSS (белая и золотая) */
  --sp-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 0Q13.4 10.6 24 12Q13.4 13.4 12 24Q10.6 13.4 0 12Q10.6 10.6 12 0Z'/%3E%3C/svg%3E");
  --sp-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f6dfae' d='M12 0Q13.4 10.6 24 12Q13.4 13.4 12 24Q10.6 13.4 0 12Q10.6 10.6 12 0Z'/%3E%3C/svg%3E");
  --aurora-1: rgba(214, 172, 94, 0.16);
  --aurora-2: rgba(142, 111, 208, 0.14);
  --aurora-3: rgba(249, 210, 214, 0.32);
  --r-s: 14px;
  --r: 22px;
  --r-l: 34px;
  --ff-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --ff-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
  --ff-glyph: 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Segoe UI Symbol', 'Apple Symbols', 'DejaVu Sans', sans-serif;
  --container: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #120d20;
  --bg-2: #181229;
  --bg-3: #221a38;
  --surface: #1c1530;
  --surface-solid: #1c1530;
  --surface-2: #241b3d;
  --ink: #f5f0ff;
  --ink-2: #cbc1e4;
  --ink-3: #9d93bd;
  --lav: #b49af0;
  --lav-strong: #b69cf6;
  --lav-deep: #dccfff;
  --lav-soft: rgba(180, 154, 240, 0.14);
  --rose: rgba(240, 160, 180, 0.16);
  --rose-strong: #f19ab1;
  --gold: #e6c27a;
  --gold-2: #f0d39a;
  --gold-soft: rgba(230, 194, 122, 0.13);
  --line: rgba(180, 154, 240, 0.14);
  --line-2: rgba(180, 154, 240, 0.28);
  --shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 5px rgba(180, 154, 240, 0.2);
  --soft-asp: #86b6f2;
  --hard-asp: #f58aa3;
  --conj-asp: #ecc98a;
  --star: rgba(255, 248, 235, 0.9);
  --star-gold: rgba(243, 217, 160, 0.95);
  --aurora-1: rgba(230, 194, 122, 0.10);
  --aurora-2: rgba(110, 80, 200, 0.26);
  --aurora-3: rgba(201, 107, 143, 0.14);
  color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #120d20;
  --bg-2: #181229;
  --bg-3: #221a38;
  --surface: #1c1530;
  --surface-solid: #1c1530;
  --surface-2: #241b3d;
  --ink: #f5f0ff;
  --ink-2: #cbc1e4;
  --ink-3: #9d93bd;
  --lav: #b49af0;
  --lav-strong: #b69cf6;
  --lav-deep: #dccfff;
  --lav-soft: rgba(180, 154, 240, 0.14);
  --rose: rgba(240, 160, 180, 0.16);
  --rose-strong: #f19ab1;
  --gold: #e6c27a;
  --gold-2: #f0d39a;
  --gold-soft: rgba(230, 194, 122, 0.13);
  --line: rgba(180, 154, 240, 0.14);
  --line-2: rgba(180, 154, 240, 0.28);
  --shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 5px rgba(180, 154, 240, 0.2);
  --soft-asp: #86b6f2;
  --hard-asp: #f58aa3;
  --conj-asp: #ecc98a;
  --star: rgba(255, 248, 235, 0.9);
  --star-gold: rgba(243, 217, 160, 0.95);
  --aurora-1: rgba(230, 194, 122, 0.10);
  --aurora-2: rgba(110, 80, 200, 0.26);
  --aurora-3: rgba(201, 107, 143, 0.14);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lav-strong); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lav-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lav-strong); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--lav-strong); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; font-family: var(--ff-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
em.accent, .accent { font-style: italic; color: var(--lav-strong); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.glyph { font-family: var(--ff-glyph); font-style: normal; font-weight: 400; line-height: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4em;
  font: 600 1.5rem/1 var(--ff-hand); letter-spacing: 0; text-transform: none;
  color: var(--gold); margin-bottom: .7rem; transform: rotate(-1.5deg); transform-origin: left center;
}
.eyebrow::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 4.6 2.4 6.9 7.5 8-5.1 1.1-6.9 3.4-7.5 8-.6-4.6-2.4-6.9-7.5-8 5.1-1.1 6.9-3.4 7.5-8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 4.6 2.4 6.9 7.5 8-5.1 1.1-6.9 3.4-7.5 8-.6-4.6-2.4-6.9-7.5-8 5.1-1.1 6.9-3.4 7.5-8z'/%3E%3C/svg%3E") center/contain no-repeat; opacity: .8; }
.center .eyebrow, .eyebrow.both { transform-origin: center; }

/* ---------- фон: звёзды и сияние ---------- */
.sky-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.sky-bg canvas { width: 100%; height: 100%; }
/* мягкие пятна — радиальным градиентом, а не filter: blur (размытие пересчитывалось бы каждый кадр и тормозило прокрутку) */
.aurora { position: fixed; inset: -20vmax; z-index: -3; pointer-events: none; opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 28s ease-in-out infinite alternate; will-change: transform; --c: var(--aurora-1); background: radial-gradient(closest-side, var(--c) 0%, var(--c) 30%, transparent 100%); }
.aurora i:nth-child(1) { width: 68vmax; height: 68vmax; left: -6.5vmax; top: -6.5vmax; }
.aurora i:nth-child(2) { width: 60vmax; height: 60vmax; right: -7.5vmax; top: 10.5vmax; --c: var(--aurora-2); animation-duration: 34s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 54vmax; height: 54vmax; left: 23vmax; bottom: -7vmax; --c: var(--aurora-3); animation-duration: 40s; animation-delay: -15s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); } }

/* ---------- раскладка ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 32px 0; }
.night-band { background: linear-gradient(160deg, #221a46 0%, #1a1434 55%, #2b1f4d 100%); color: #f3eeff; position: relative; overflow: hidden; }
.night-band h2, .night-band h3 { color: #fff; }
.night-band .lead, .night-band .muted { color: #cfc5ee; }
.night-band::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Cdefs%3E%3Cpath id='s' d='M12 0Q13.4 10.6 24 12Q13.4 13.4 12 24Q10.6 13.4 0 12Q10.6 10.6 12 0Z'/%3E%3C/defs%3E%3Cuse href='%23s' fill='%23fff' transform='translate(72.0 110.0) scale(0.333)'/%3E%3Cuse href='%23s' fill='%23fff' transform='translate(263.0 73.0) scale(0.250)'/%3E%3Cuse href='%23s' fill='%23f3e2bf' transform='translate(146.5 298.5) scale(0.458)'/%3E%3Cuse href='%23s' fill='%23fff' transform='translate(319.5 243.5) scale(0.292)'/%3E%3Cuse href='%23s' fill='%23fff' transform='translate(35.0 282.0) scale(0.250)'/%3E%3Cuse href='%23s' fill='%23fff' transform='translate(205.0 167.0) scale(0.333)'/%3E%3Cuse href='%23s' fill='%23f3e2bf' transform='translate(337.5 27.5) scale(0.208)'/%3E%3Cuse href='%23s' fill='%23fff' transform='translate(17.5 17.5) scale(0.208)'/%3E%3C/svg%3E") 0 0 / 380px 380px; opacity: .3; filter: blur(1.6px); animation: twinkleSoft 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes twinkleBg { from { opacity: .35; } to { opacity: .7; } }
@keyframes twinkleSoft { from { opacity: .18; } to { opacity: .38; } }
@keyframes twinkleSoftArch { from { opacity: .35; } to { opacity: .6; } }

@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; height: var(--header-h); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--surface-solid), 0 0 0 3px var(--gold-2); flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font: 600 1.32rem/1 var(--ff-display); letter-spacing: .01em; }
.brand-role { font: 600 .66rem/1 var(--ff-body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 5px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--lav-soft); }
.nav a[aria-current="page"] { color: var(--lav-strong); background: var(--lav-soft); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: transform .2s, background .2s, color .2s; }
.icon-btn:hover { color: var(--lav-strong); transform: rotate(-12deg); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; }
@media (max-width: 1180px) { .nav a { padding: 8px 9px; font-size: .88rem; } }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; padding: 24px 24px 40px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow-y: auto; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.mobile-menu nav a { font: 500 1.7rem/1.3 var(--ff-display); color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; transform: translateY(12px); opacity: 0; transition: transform .4s, opacity .4s; }
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu nav a span { font: 400 .8rem var(--ff-body); color: var(--ink-3); }
.mobile-menu .close-row { display: flex; justify-content: space-between; align-items: center; }

/* ---------- кнопки ---------- */
.btn { --b: var(--lav-strong); display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .98rem; cursor: pointer; text-align: center; transition: transform .2s ease, box-shadow .25s ease, background .25s, color .2s, border-color .2s; position: relative; overflow: hidden; white-space: nowrap; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: linear-gradient(180deg, #6b47b8 0%, #52329a 100%); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -10px rgba(82, 50, 154, 0.75); }
:root[data-theme="dark"] .btn-primary { background: linear-gradient(180deg, #8e6ad8 0%, #6a46b8 100%); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s ease; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(82, 50, 154, 0.85); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--lav); color: var(--lav-strong); transform: translateY(-2px); }
.btn-gold { background: transparent; border-color: var(--gold-2); color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); color: var(--gold); }
/* белая кнопка на тёмных плашках: цвет текста не зависит от темы (иначе в ночной теме он светлеет и пропадает) */
.btn-light { background: #fff; color: #3f2775; font-weight: 700; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 20px -10px rgba(10, 5, 30, .6); }
.btn-light:hover { background: #fff; color: #5b3a9e; transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(10, 5, 30, .7); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-xs { padding: 6px 12px; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- карточки ---------- */
.card { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); box-shadow: var(--shadow); position: relative; }
.card.solid { background: var(--surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* у стекла свой слой: открытый список городов должен быть поверх соседних карточек */
.card:has(.ac-list.open) { z-index: 5; }
.card.hover { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.card.hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-icon { width: 56px; height: 56px; border-radius: 18px 18px 18px 6px; display: grid; place-items: center; background: var(--lav-soft); color: var(--lav-strong); margin-bottom: 18px; font-size: 1.6rem; }
.card-icon.gold { background: var(--gold-soft); color: var(--gold); }
.card-icon.rose { background: var(--rose); color: var(--rose-strong); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: var(--lav-soft); color: var(--lav-strong); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.rose { background: var(--rose); color: var(--rose-strong); }
.badge.ok { background: rgba(63, 157, 124, .14); color: var(--ok); }
.badge.warn { background: rgba(201, 138, 58, .14); color: var(--warn); }
.badge.bad { background: rgba(204, 84, 112, .12); color: var(--bad); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; color: var(--ink-2); }
.chip svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- герой ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.portrait-wrap { position: relative; width: min(100%, 470px); margin-inline: auto; aspect-ratio: 3 / 4; }
.zodiac-ring { position: absolute; inset: -11%; animation: spin 140s linear infinite; color: var(--gold); opacity: .9; }
.zodiac-ring.inner { inset: -3%; animation-duration: 90s; animation-direction: reverse; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }
.arch { position: absolute; inset: 0; border-radius: 999px 999px var(--r-l) var(--r-l); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.4) inset; background: var(--bg-3); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.04); animation: breathe 14s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.09) translateY(-1%); } }
.arch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 60%, rgba(40, 28, 80, .28)); pointer-events: none; }
.arch-frame { position: absolute; inset: -12px; border-radius: 999px 999px calc(var(--r-l) + 12px) calc(var(--r-l) + 12px); border: 1px solid var(--gold-2); opacity: .8; pointer-events: none; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: .85rem; line-height: 1.35; animation: floaty 7s ease-in-out infinite; z-index: 2; max-width: 240px; }
.float-card b { display: block; font-size: .95rem; color: var(--ink); }
.float-card .muted { font-size: .78rem; }
.float-card.fc-1 { left: -14%; top: 16%; }
.float-card.fc-2 { right: -12%; bottom: 14%; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.moon-ico { width: 38px; height: 38px; flex-shrink: 0; }
.sparkle { position: absolute; color: var(--gold-2); animation: twinkle 3.2s ease-in-out infinite; pointer-events: none; }
.sparkle svg { width: 100%; height: 100%; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; padding: 30px 30px 10px; }
  .portrait-wrap { width: min(78%, 360px); }
  .float-card.fc-1 { left: -22%; top: 8%; }
  .float-card.fc-2 { right: -22%; bottom: 6%; }
}
@media (max-width: 520px) {
  .float-card { padding: 8px 12px; font-size: .74rem; max-width: 170px; }
  .float-card b { font-size: .82rem; }
  .moon-ico { width: 28px; height: 28px; }
  .float-card.fc-1 { left: -18%; }
  .float-card.fc-2 { right: -18%; }
}

/* ---------- полоса «небо сегодня» ---------- */
.sky-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.sky-cell { padding: 20px 22px; border-right: 1px solid var(--line); display: flex; gap: 14px; align-items: center; min-width: 0; }
.sky-cell:last-child { border-right: 0; }
.sky-cell .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); font-weight: 600; }
.sky-cell .v { font: 600 1.05rem/1.3 var(--ff-body); color: var(--ink); }
.sky-cell .s { font-size: .8rem; color: var(--ink-2); }
.sky-cell .big-glyph { font-size: 1.9rem; color: var(--lav-strong); width: 40px; text-align: center; flex-shrink: 0; }
@media (max-width: 1000px) { .sky-strip { grid-template-columns: repeat(2, 1fr); } .sky-cell { border-bottom: 1px solid var(--line); } .sky-cell:nth-child(2n) { border-right: 0; } .sky-cell:last-child { grid-column: 1 / -1; border-bottom: 0; } }

/* ---------- запросы, услуги ---------- */
.need-card { display: flex; gap: 16px; align-items: flex-start; }
.need-card .num { font: 500 2.4rem/1 var(--ff-display); color: var(--gold-2); min-width: 44px; }
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .price { font: 600 1.7rem/1 var(--ff-display); color: var(--ink); }
.service-card .price small { font: 500 .8rem var(--ff-body); color: var(--ink-3); }
.service-card ul { padding: 0; margin: 14px 0 22px; list-style: none; }
.service-card li { padding-left: 24px; position: relative; margin-bottom: 7px; font-size: .93rem; color: var(--ink-2); }
.service-card li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--gold); font-size: .8rem; }
.service-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.service-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.service-card.featured { border-color: var(--gold-2); background: linear-gradient(160deg, var(--surface) 0%, var(--gold-soft) 140%); }
.service-card.featured .ribbon { position: absolute; top: 18px; right: 18px; z-index: 1; }
.service-card .deco-ring { position: absolute; right: -60px; bottom: -70px; width: 300px; height: 300px; color: var(--gold); opacity: .22; pointer-events: none; animation: spin 120s linear infinite; }
.service-card.featured { overflow: hidden; }
.service-card.featured > *:not(.deco-ring) { position: relative; }
.featured-quote { font: italic 500 1.25rem/1.45 var(--ff-display); color: var(--ink-2); max-width: 30ch; margin: 4px 0 0; }

/* ---------- шаги ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
.step { text-align: center; position: relative; padding: 0 8px; }
.step .dot { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--gold-2); font: 500 1.6rem/1 var(--ff-display); color: var(--gold); box-shadow: var(--shadow); position: relative; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- инструменты ---------- */
.tool-tile { display: flex; flex-direction: column; gap: 10px; color: inherit; min-height: 210px; overflow: hidden; }
.tool-tile:hover { color: inherit; }
.tool-tile .t-glyph { font-size: 2.4rem; color: var(--lav-strong); font-family: var(--ff-glyph); line-height: 1; }
.tool-tile .t-bg { position: absolute; right: -6px; bottom: -22px; font-size: 7.5rem; opacity: .07; font-family: var(--ff-glyph); color: var(--lav-strong); transition: transform .6s; line-height: 1; }
.tool-tile:hover .t-bg { transform: rotate(-12deg) scale(1.08); }
.tool-tile .link-arrow { margin-top: auto; }

/* ---------- обо мне ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-photo { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.about-photo .ph { border-radius: var(--r-l) var(--r-l) 999px 999px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about-photo .ph img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .sign-note { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); background: var(--surface-solid); border: 1px solid var(--gold-2); border-radius: 999px; padding: 10px 22px; font: italic 500 1.25rem var(--ff-display); color: var(--ink); white-space: nowrap; box-shadow: var(--shadow); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.value { padding: 16px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.value b { display: block; font-family: var(--ff-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.value span { font-size: .86rem; color: var(--ink-2); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .values { grid-template-columns: 1fr; } }

/* ---------- отзывы ---------- */
.reviews { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.review { scroll-snap-align: start; flex: 0 0 min(380px, 86%); display: flex; flex-direction: column; }
.review .quote { font: italic 500 1.2rem/1.5 var(--ff-display); color: var(--ink); margin-bottom: 18px; }
.review .who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review .ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lav-soft), var(--rose)); font-weight: 700; color: var(--lav-strong); }

/* ---------- FAQ / аккордеон ---------- */
.accordion { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc-item[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.acc-item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.acc-item summary:hover { color: var(--lav-strong); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .pm { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s; color: var(--lav-strong); }
.acc-item[open] summary .pm { transform: rotate(45deg); background: var(--lav-soft); }
/* пока аккордеон плавно закрывается, он ещё [open] — возвращаем «закрытый» вид сразу, чтобы плюсик и рамка двигались вместе с высотой */
.acc-item.is-closing { border-color: var(--line); box-shadow: none; }
.acc-item.is-closing summary .pm { transform: none; background: transparent; }
.details-adv summary { transition: color .2s; -webkit-tap-highlight-color: transparent; }
.details-adv summary:hover { color: var(--lav-strong); }
.acc-item .acc-body { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- формы ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row.three { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; position: relative; }
.field > label, .field > .label { font-size: .82rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field .hint { font-size: .76rem; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-solid); color: var(--ink); transition: border-color .2s, box-shadow .2s; min-height: 46px; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--lav); box-shadow: var(--glow); }
.input.invalid { border-color: var(--bad); }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239b87d9' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--lav-strong); flex-shrink: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--ink-2); user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3,1.4,.6,1); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--lav-strong); }
.switch input:checked::after { transform: translateX(18px); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg-3) 55%, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; position: relative; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface-solid); color: var(--lav-strong); box-shadow: var(--shadow); }
.ac-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 4px; background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; padding: 4px; display: none; }
.ac-list.open { display: block; animation: dropIn .22s cubic-bezier(.2,.8,.2,1); transform-origin: top center; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.ac-item { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: .9rem; display: flex; justify-content: space-between; gap: 10px; transition: background .15s; }
.ac-item small { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item:hover, .ac-item.active { background: var(--lav-soft); }
.place-meta { font-size: .76rem; color: var(--ink-3); min-height: 1.1em; }
.details-adv { border: 1px dashed var(--line-2); border-radius: 12px; padding: 4px 14px; }
.details-adv summary { cursor: pointer; padding: 8px 0; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.details-adv[open] { padding-bottom: 14px; }

/* ---------- вкладки ---------- */
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; background: color-mix(in srgb, var(--bg-3) 55%, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: 999px; border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; width: max-content; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: var(--surface-solid); color: var(--lav-strong); box-shadow: var(--shadow); }
/* скользящая подсветка: одна плашка под выбранной кнопкой переезжает с лёгкой пружинкой (ставит ui.js) */
.tab-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; background: color-mix(in srgb, var(--lav) 16%, var(--surface-solid)); box-shadow: var(--shadow), 0 0 0 1px var(--line-2); pointer-events: none; opacity: 0; will-change: transform;
  transition: transform .5s cubic-bezier(.3,1.25,.5,1), width .5s cubic-bezier(.3,1.25,.5,1), height .3s ease, opacity .25s ease; }
.has-ind > button { position: relative; z-index: 1; }
.has-ind > button[aria-selected="true"], .has-ind > button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.tab-panel { animation: fadeUp .5s ease both; }
.tab-panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.card .table-wrap { -webkit-backdrop-filter: none; backdrop-filter: none; } /* внутри стеклянной карточки фон уже размыт */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--lav-soft); }
.table .g { font-family: var(--ff-glyph); font-size: 1.15rem; color: var(--lav-strong); width: 28px; display: inline-block; text-align: center; }
.table td.wrap { white-space: normal; }
.retro-mark { color: var(--rose-strong); font-weight: 700; font-size: .8rem; margin-left: 4px; }

/* ---------- страницы инструментов ---------- */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.tool-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
.tool-layout > aside { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1000px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } .tool-layout > aside { position: static; } }
.result-empty { text-align: center; padding: clamp(40px, 6vw, 80px) 20px; }
.result-empty .big { font-family: var(--ff-glyph); font-size: 4rem; color: var(--lav); opacity: .55; margin-bottom: 12px; animation: floaty 6s ease-in-out infinite; }
.wheel-card { padding: clamp(12px, 2vw, 24px); }
.wheel-box { position: relative; width: 100%; max-width: 680px; margin-inline: auto; aspect-ratio: 1; }
.wheel-box svg { width: 100%; height: 100%; overflow: visible; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.result-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.big3 .b3 { text-align: center; padding: 20px 14px; }
.big3 .b3 .g { font-family: var(--ff-glyph); font-size: 2.3rem; color: var(--lav-strong); line-height: 1; }
.big3 .b3 .k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-top: 10px; }
.big3 .b3 .v { font: 600 1.4rem/1.2 var(--ff-display); margin-top: 4px; }
@media (max-width: 560px) { .big3 { grid-template-columns: 1fr; } }
.interp { display: grid; gap: 14px; }
.interp-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.interp-item .ig { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--ff-glyph); font-size: 1.5rem; background: var(--lav-soft); color: var(--lav-strong); }
.interp-item h4 { margin: 0 0 4px; font-size: 1.02rem; }
.interp-item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.interp-item p { margin: 0 0 6px; color: var(--ink-2); font-size: .95rem; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: .9rem; }
.bar .track { height: 10px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.bar .track { display: block; }
.bar .fill { display: block; height: 100%; border-radius: inherit; width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bar .pct { text-align: right; font-weight: 700; color: var(--ink-2); }
.asp-grid { border-collapse: collapse; font-family: var(--ff-glyph); margin: 0 auto; }
.asp-grid td { width: 34px; height: 34px; text-align: center; border: 1px solid var(--line); font-size: 1rem; }
.asp-grid td.h { background: var(--surface-2); color: var(--lav-strong); }
.asp-grid td.e { border: 0; }
.asp-grid td.a { cursor: help; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.recent { display: grid; gap: 8px; }
.recent button { display: flex; justify-content: space-between; gap: 10px; text-align: left; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .86rem; transition: border-color .2s, transform .2s; }
.recent button:hover { transform: translateX(2px); }
.recent button:hover { border-color: var(--lav); }
.recent small { color: var(--ink-3); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-s); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold-2) 50%, transparent); font-size: .9rem; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.notice.info { background: var(--lav-soft); border-color: var(--line-2); }
.notice.info svg { color: var(--lav-strong); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: clamp(22px, 3vw, 34px); border-radius: var(--r); background: linear-gradient(135deg, #2a2152, #3c2c6e 60%, #6b4a86); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h3 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #dcd2f7; }
.cta-band::after { content: '✦'; position: absolute; right: 24%; top: -10px; font-size: 6rem; color: rgba(255,255,255,.06); }

/* ---------- синастрия ---------- */
.score-ring { width: 170px; height: 170px; position: relative; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-ring .val b { font: 600 2.8rem/1 var(--ff-display); display: block; }
.score-ring .val span { font-size: .75rem; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.score-ring circle { transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
.person-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.person-tag i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- прогноз / таймлайн ---------- */
.timeline { position: relative; display: grid; gap: 12px; }
.tl-month { font: 600 1.35rem var(--ff-display); margin: 22px 0 6px; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.tl-month::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 16px 18px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--lav)); }
.tl-item .when { font-size: .82rem; color: var(--ink-3); line-height: 1.35; }
.tl-item .when b { display: block; font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.tl-item h4 { margin: 0 0 4px; font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-item h4 .gl { font-family: var(--ff-glyph); font-weight: 400; color: var(--lav-strong); font-size: 1.1rem; }
.tl-item p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.tl-item .range { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 560px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- лунный календарь ---------- */
.moon-today { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.moon-today .moon-big { width: 200px; height: 200px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(255, 240, 210, .35)); animation: floaty 8s ease-in-out infinite; }
@media (max-width: 700px) { .moon-today { grid-template-columns: 1fr; text-align: center; } }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head h3 { margin: 0; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); text-align: center; padding: 4px 0; font-weight: 700; }
.cal .day { min-height: 104px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 8px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; text-align: left; font-size: .76rem; color: var(--ink-2); min-width: 0; }
.cal .day:hover { transform: translateY(-2px); border-color: var(--lav); box-shadow: var(--shadow); }
.cal .day.other { opacity: .4; }
.cal { transition: opacity .25s ease; }
.cal.busy { opacity: .45; pointer-events: none; }
.cal .day.today { border-color: var(--gold-2); box-shadow: 0 0 0 2px var(--gold-soft); }
.cal .day.sel { border-color: var(--lav-strong); box-shadow: var(--glow); }
.cal .day .dn { display: flex; justify-content: space-between; align-items: center; font: 700 1rem var(--ff-body); color: var(--ink); }
.cal .day .dn svg { width: 22px; height: 22px; }
.cal .day .ms { font-family: var(--ff-glyph); color: var(--lav-strong); font-size: 1rem; }
.cal .day .ld { color: var(--ink-3); }
.cal .day .ev { font-weight: 700; color: var(--gold); font-size: .72rem; }
.cal .day .voc { color: var(--rose-strong); font-weight: 600; font-size: .7rem; }
@media (max-width: 700px) { .cal { gap: 3px; } .cal .day { min-height: 70px; padding: 5px; font-size: .64rem; } .cal .day .ld { display: none; } .cal .day .dn { font-size: .85rem; } .cal .day .dn svg { width: 16px; height: 16px; } }

/* ---------- астрособытия ---------- */
.gantt { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; align-items: center; }
.gantt .gl { font-weight: 600; display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.gantt .gl .g { font-family: var(--ff-glyph); color: var(--lav-strong); font-size: 1.15rem; width: 22px; text-align: center; }
.gantt .track { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--bg-3) 0, var(--bg-3) calc(100%/12 - 1px), var(--line) calc(100%/12 - 1px), var(--line) calc(100%/12)); }
.gantt .seg-r { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: linear-gradient(90deg, var(--rose-strong), #b07ad8); box-shadow: 0 4px 12px -4px rgba(201, 107, 143, .6); cursor: help; }
.gantt .seg-s { position: absolute; top: 9px; bottom: 9px; border-radius: 6px; background: var(--rose); }
.gantt .today-line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--gold); border-radius: 2px; }
.gantt .months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 600px) { .gantt { grid-template-columns: 1fr; } .gantt .months span:nth-child(2n) { visibility: hidden; } }
.event-list { display: grid; gap: 10px; }
.event { display: grid; grid-template-columns: 74px 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.event .d { font-weight: 700; font-size: .92rem; }
.event .d small { display: block; font-weight: 500; color: var(--ink-3); font-size: .74rem; }
.event .i { font-family: var(--ff-glyph); font-size: 1.5rem; color: var(--lav-strong); text-align: center; }
.event .i svg { width: 30px; height: 30px; margin: 0 auto; }
.event .t { font-size: .92rem; }
.event .t b { display: block; }
.event.past { opacity: .62; }

/* ---------- гороскоп ---------- */
.sign-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sign-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 6px; cursor: pointer; display: grid; gap: 4px; justify-items: center; transition: transform .2s, border-color .2s, background .2s; }
.sign-btn .g { font-family: var(--ff-glyph); font-size: 1.8rem; color: var(--lav-strong); line-height: 1; }
.sign-btn .n { font-weight: 600; font-size: .86rem; }
.sign-btn .d { font-size: .68rem; color: var(--ink-3); }
.sign-btn:hover { transform: translateY(-3px); border-color: var(--lav); }
.sign-btn[aria-pressed="true"] { background: linear-gradient(135deg, var(--lav-soft), var(--rose)); border-color: var(--lav); }
@media (max-width: 760px) { .sign-picker { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .sign-picker { grid-template-columns: repeat(3, 1fr); } }
.horo-block { padding: 18px 0; border-bottom: 1px dashed var(--line-2); }
.horo-block:last-child { border-bottom: 0; }
.horo-block h4 { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.horo-block h4 .gl { font-family: var(--ff-glyph); color: var(--gold); font-weight: 400; }

/* ---------- академия ---------- */
.academy-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.academy-layout > aside { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
@media (max-width: 960px) { .academy-layout { grid-template-columns: minmax(0, 1fr); } .academy-layout > aside { position: static; max-height: none; } }
.lesson-list { display: grid; gap: 4px; }
.lesson-list button { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 10px; border-radius: 12px; cursor: pointer; font-size: .9rem; color: var(--ink-2); transition: background .2s, color .2s; }
.lesson-list .n { transition: background .3s, color .3s, border-color .3s; }
.lesson-list button:hover { background: var(--lav-soft); }
.lesson-list button[aria-current="true"] { background: var(--lav-soft); color: var(--ink); font-weight: 600; }
.lesson-list .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; border: 1px solid var(--line-2); }
.lesson-list .done .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.progress { height: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--lav), var(--rose-strong)); border-radius: inherit; transition: width .8s; }
.lesson-body { font-size: 1.02rem; }
.lesson-body h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.lesson-body h3 { margin-top: 1.4em; }
.lesson-body ul { padding-left: 1.2em; }
.lesson-body li { margin-bottom: .4em; }
.lesson-body .keybox { padding: 16px 18px; border-radius: var(--r-s); background: var(--lav-soft); border-left: 3px solid var(--lav-strong); margin: 18px 0; }
.mini-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 16px 0; }
.mini-table div { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.mini-table b { display: block; font-size: 1rem; }
.mini-table .g { font-family: var(--ff-glyph); color: var(--lav-strong); font-size: 1.3rem; margin-right: 4px; }
.quiz { margin-top: 28px; }
.quiz-q { margin-bottom: 18px; }
.quiz-q p { font-weight: 600; margin-bottom: 8px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opts button { text-align: left; border: 1px solid var(--line-2); background: var(--surface-solid); border-radius: 12px; padding: 10px 14px; cursor: pointer; transition: border-color .25s, background .25s, transform .2s; }
.quiz-opts button:hover { border-color: var(--lav); transform: translateX(2px); }
.quiz-opts button.right { border-color: var(--ok); background: rgba(63,157,124,.12); animation: quizPop .45s cubic-bezier(.3,1.5,.6,1); }
.quiz-opts button.wrong { border-color: var(--bad); background: rgba(204,84,112,.1); animation: quizShake .4s ease; }
@keyframes quizPop { 50% { transform: scale(1.02); } }
@keyframes quizShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.quiz-q [data-why]:not([hidden]) { animation: fadeUp .45s cubic-bezier(.2,.8,.2,1) both; }
#quizResult:not(:empty) { animation: fadeUp .45s cubic-bezier(.2,.8,.2,1) both; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.glossary dl { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.glossary dt { font-weight: 700; margin-bottom: 4px; }
.glossary dd { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* ---------- кабинет ---------- */
.cab-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.cab-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 4px; }
.cab-nav button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 12px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); text-align: left; transition: background .2s, color .2s, box-shadow .25s; }
.cab-nav button svg { width: 20px; height: 20px; }
.cab-nav button:hover { background: var(--lav-soft); }
.cab-nav button[aria-current="true"] { background: var(--surface-solid); color: var(--lav-strong); box-shadow: var(--shadow); }
.cab-nav .count { margin-left: auto; font-size: .74rem; background: var(--lav-soft); color: var(--lav-strong); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 900px) { .cab-layout { grid-template-columns: minmax(0, 1fr); } .cab-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .cab-nav button { white-space: nowrap; } }
.stat { padding: 20px; }
.stat .k { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.stat .v { font: 600 2.2rem/1.1 var(--ff-display); margin-top: 6px; }
.stat .s { font-size: .82rem; color: var(--ink-2); }
.list { display: grid; gap: 8px; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s; }
.list-item:hover { border-color: var(--lav); transform: translateX(2px); }
.list-item .ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lav-soft), var(--rose)); font-weight: 700; color: var(--lav-strong); flex-shrink: 0; }
.list-item .main { min-width: 0; flex: 1; }
.list-item .main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .main small { color: var(--ink-3); }
.list-item .side { text-align: right; font-size: .82rem; color: var(--ink-2); flex-shrink: 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { max-width: 320px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: .92rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

/* ---------- модалка, тосты ---------- */
/* окно открыто — страница стоит: прокрутку снимаем у body (так шапка остаётся «прилипшей»), место под полосу прокрутки держим, чтобы ничего не дёрнулось */
html { scrollbar-gutter: stable; }
body.scroll-lock { overflow: hidden; }
.modal-back, .modal { overscroll-behavior: contain; }
.modal-back { position: fixed; inset: 0; z-index: 300; background: rgba(20, 14, 40, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal-back.open { opacity: 1; visibility: visible; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface-solid); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); transform: translateY(20px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); position: relative; border: 1px solid var(--line); }
.modal.wide { width: min(900px, 100%); }
.modal-back.open .modal { transform: none; }
.modal .x { position: absolute; top: 14px; right: 14px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--night); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toastIn .45s cubic-bezier(.2,.8,.2,1) backwards; display: flex; gap: 10px; align-items: center; transition: opacity .35s ease, transform .35s ease; }
.toast.out { opacity: 0; transform: translateY(12px) scale(.97); }
.toast svg { width: 18px; height: 18px; color: var(--gold-2); flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- подвал ---------- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); position: relative; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--ink-2); padding: 3px 0; font-size: .93rem; }
.footer-grid a.brand { display: flex; padding: 0; }
.footer-grid a:hover { color: var(--lav-strong); }
.socials { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); padding: 0; transition: transform .2s, color .2s, border-color .2s; }
.socials a:hover { transform: translateY(-3px); color: var(--lav-strong); border-color: var(--lav); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }
.disclaimer { font-size: .8rem; color: var(--ink-3); max-width: 70ch; margin-top: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- появление при прокрутке ---------- */
/* Анимацией (а не transition) и свойством translate: так не спорит с hover-эффектами карточек (у них transform и свой transition),
   а задержка --d работает у всех. Прячем блоки до появления, только когда ui.js включил наблюдение (класс reveal-on). */
.reveal-on .reveal:not(.in) { opacity: 0; translate: 0 22px; }
.reveal.in { animation: revealIn .9s cubic-bezier(.2,.8,.2,1) var(--d, 0s) backwards; }
@keyframes revealIn { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.hero-anim > * { animation: heroIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero-anim > *:nth-child(1) { animation-delay: .05s; }
.hero-anim > *:nth-child(2) { animation-delay: .15s; }
.hero-anim > *:nth-child(3) { animation-delay: .3s; }
.hero-anim > *:nth-child(4) { animation-delay: .45s; }
.hero-anim > *:nth-child(5) { animation-delay: .6s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.portrait-in { animation: portraitIn 1.6s cubic-bezier(.2,.8,.2,1) both .2s; }
@keyframes portraitIn { from { opacity: 0; transform: scale(.94) translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- колесо карты: анимации ---------- */
.w-rot { transform-origin: 50% 50%; animation: wheelIn 1.3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes wheelIn { from { opacity: 0; transform: rotate(-40deg) scale(.86); } to { opacity: 1; transform: none; } }
.w-planet { opacity: 0; animation: popIn .6s cubic-bezier(.3,1.5,.6,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes popIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.w-asp { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* ---------- «волшебство» перед результатом (UI.conjure): ~1,3 с, повторно ~0,7 с ---------- */
.conj { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 340px; padding: 24px 12px; text-align: center; animation: conjLife var(--ms) ease both; }
@keyframes conjLife { 0% { opacity: 0; transform: scale(.94); } 14% { opacity: 1; transform: none; } 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.05); } }
.conj-orb { width: min(230px, 62vw); height: auto; overflow: visible; }
.conj-orb * { transform-box: view-box; transform-origin: 0 0; }
.conj-glow { fill: var(--lav-soft); opacity: .55; animation: conjGlow var(--ms) ease-in-out both; }
@keyframes conjGlow { 0% { transform: scale(.4); opacity: 0; } 50% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.12); opacity: .45; } }
/* круг доворачивается до --end (в гороскопе — выбранный знак наверх), знаки при этом остаются ровными */
.conj-ring { animation: conjSpin var(--ms) cubic-bezier(.3,.7,.3,1) both; }
@keyframes conjSpin { from { transform: rotate(calc(var(--end) - 75deg)); } to { transform: rotate(var(--end)); } }
.conj-c1 { fill: none; stroke: var(--line-2); stroke-width: 1; }
.conj-c2 { fill: none; stroke: var(--gold); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 2 5; }
.conj-orb .conj-g { transform-box: fill-box; transform-origin: center; }
.conj-g { font-family: var(--ff-glyph); font-size: 13px; fill: var(--lav-strong); text-anchor: middle; dominant-baseline: central; opacity: 0; animation: conjG calc(var(--ms) * .45) ease forwards, conjUp var(--ms) cubic-bezier(.3,.7,.3,1) both; animation-delay: calc(var(--ms) * .03 * var(--i)), 0s; }
@keyframes conjUp { from { transform: rotate(calc(75deg - var(--end))); } to { transform: rotate(calc(0deg - var(--end))); } }
.conj-g.on { animation: conjG calc(var(--ms) * .45) ease forwards, conjUp var(--ms) cubic-bezier(.3,.7,.3,1) both, conjOn calc(var(--ms) * .28) cubic-bezier(.3,1.4,.5,1) forwards; animation-delay: calc(var(--ms) * .03 * var(--i)), 0s, calc(var(--ms) * .5); }
@keyframes conjOn { to { font-size: 24px; fill: var(--gold); opacity: 1; } }
.conj-g.num { font-family: var(--ff-body); font-weight: 700; font-size: 11px; fill: var(--gold); }
@keyframes conjG { 0% { opacity: 0; } 45% { opacity: 1; fill: var(--gold); } 100% { opacity: .8; } }
.conj-pl { animation: conjPl calc(var(--ms) * .62) cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--ms) * .03 * var(--i)); transform: rotate(var(--a)); }
@keyframes conjPl { from { transform: rotate(calc(var(--a) - var(--s))) scale(.3); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(var(--a)); opacity: 1; } }
.conj-pl circle { stroke-width: 3; stroke-opacity: .28; }
.conj-pl .gold { fill: var(--gold); stroke: var(--gold); }
.conj-pl .lav { fill: var(--lav-strong); stroke: var(--lav-strong); }
.conj-pl .rose { fill: var(--rose-strong); stroke: var(--rose-strong); }
.conj-lines line { stroke: var(--gold); stroke-opacity: .6; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; animation: conjLine calc(var(--ms) * .26) ease-out forwards; animation-delay: calc(var(--ms) * (.56 + .04 * var(--i))); }
@keyframes conjLine { to { stroke-dashoffset: 0; } }
.conj-star { fill: var(--gold); animation: conjStar var(--ms) cubic-bezier(.3,1.3,.5,1) both; }
@keyframes conjStar { 0% { transform: scale(0) rotate(-90deg); opacity: 0; } 35% { transform: scale(1) rotate(0); opacity: 1; } 75% { transform: scale(.75) rotate(45deg); opacity: .9; } 100% { transform: scale(1.35) rotate(90deg); opacity: 1; } }
.conj-text { display: grid; margin: 4px 0 0; min-height: 1.6em; font-family: var(--ff-display); font-size: 1.2rem; font-style: italic; color: var(--ink-2); }
.conj-text span { grid-area: 1 / 1; opacity: 0; animation: conjTxt calc(var(--ms) / var(--n)) ease both; animation-delay: calc(var(--ms) / var(--n) * var(--i)); }
.conj-text span:last-child { animation-name: conjTxtLast; }
@keyframes conjTxt { 0% { opacity: 0; transform: translateY(6px); } 22%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes conjTxtLast { 0% { opacity: 0; transform: translateY(6px); } 22%, 100% { opacity: 1; transform: none; } }
.conj-bar { display: block; width: 140px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.conj-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lav), var(--gold)); transform-origin: 0 50%; animation: conjBar var(--ms) linear both; }
@keyframes conjBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 640px) { .conj { min-height: 300px; } }
.w-hover { cursor: pointer; }
.w-hover:hover circle.pbg { stroke-width: 2; }
.wheel-tip { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 6; background: var(--night); color: #fff; padding: 9px 13px 10px; border-radius: 12px; font-size: .82rem; line-height: 1.35; box-shadow: var(--shadow-lg); width: max-content; max-width: min(300px, calc(100vw - 32px)); display: grid; gap: 3px; opacity: 0; transition: opacity .15s; }
.wheel-tip.show { opacity: 1; }
.wheel-tip .wt-t { font-weight: 700; font-size: .86rem; }
.wheel-tip .wt-s { display: flex; align-items: center; gap: 7px; font-size: .76rem; color: #e9defc; }
.wheel-tip .wt-s i { flex: none; width: 14px; height: 3px; border-radius: 2px; }
.wheel-tip .wt-a { font-size: .78rem; color: #d7cdf0; }
.wheel-tip .wt-h { font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: #f0d59c; }
.wheel-tip .wt-h:empty { display: none; }
/* аспекты: при наведении линия ярче, остальные приглушаются, в середине — значок аспекта */
.w-aspg { cursor: pointer; transition: opacity .2s; }
.w-asp-v { transition: stroke-width .15s, stroke-opacity .15s; }
.w-asp-mark { transition: opacity .15s; }
.wheel-box.wf .w-aspg { opacity: .14; }
.wheel-box.wf .w-aspg.on { opacity: 1; }
.w-aspg.on .w-asp-v { stroke-width: 2.8; stroke-opacity: 1; }
.w-aspg.on .w-asp-mark { opacity: 1; }
.w-cusp { cursor: help; }
/* окно «аспект / планета / дом» */
.am { display: grid; gap: 10px; }
.am-glyphs { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 2.1rem; color: var(--lav-strong); line-height: 1; margin-top: 4px; }
.am-roman { font: 600 2rem var(--ff-display); color: var(--gold); }
.am h3 { text-align: center; margin: 2px 0 0; }
.am h3 small { font-family: var(--ff-body); font-size: .8rem; }
.am .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.am h4 { margin: 8px 0 0; }
.am p { margin: 0; }
.am-about { color: var(--ink-2); text-align: center; font-size: .92rem; }
.am-pls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.am-pl { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.am-pl > .glyph { font-size: 1.6rem; color: var(--lav-strong); line-height: 1.1; }
.am-pl b { display: block; }
.am-pl small { display: block; color: var(--ink-3); font-size: .76rem; margin: 2px 0 4px; }
.am-pl span:not(.glyph) { font-size: .82rem; color: var(--ink-2); }
.am-asps { display: flex; flex-wrap: wrap; gap: 6px; }
.am-asps .chip { cursor: pointer; font-size: .82rem; }
.am-asps .chip:hover { border-color: var(--lav); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-on .reveal:not(.in) { opacity: 1 !important; translate: none !important; }
}

/* ---------- переходы между страницами ----------
   Браузер сам делает снимок старой страницы и плавно сменяет его новой (Chrome, Edge, Safari 18.2+).
   Шапка, звёздное небо и сияние названы отдельно — они одинаковые на всех страницах и стоят на месте,
   а содержимое растворяется со сдвигом. Где этого нет (Firefox, старые iPhone) — запасной вариант ниже, через ui.js. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.promo-bar { view-transition-name: promo-bar; }
.sky-bg { view-transition-name: sky; }
.aurora { view-transition-name: aurora; }
.mobile-cta { view-transition-name: mobile-cta; }
::view-transition { background: var(--bg); }
::view-transition-group(site-header), ::view-transition-group(promo-bar), ::view-transition-group(sky), ::view-transition-group(aurora), ::view-transition-group(mobile-cta) { animation-duration: .46s; }
/* прозрачность у старой и новой одинаковой длительности и плавности — в сумме всегда 100%, без вспышек */
::view-transition-old(root) { animation: ptFadeOut .46s ease both, ptLift .46s cubic-bezier(.4,0,.2,1) both; }
::view-transition-new(root) { animation: ptFadeIn .46s ease both, ptRise .56s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ptFadeOut { to { opacity: 0; } }
@keyframes ptFadeIn { from { opacity: 0; } }
@keyframes ptLift { to { transform: translateY(-12px); } }
@keyframes ptRise { from { transform: translateY(18px); } }
/* запасной вариант: уход — содержимое тает, приход — проявляется */
html.pt-fallback main, html.pt-fallback .site-footer { animation: ptFadeIn .5s ease both, ptRise .6s cubic-bezier(.2,.8,.2,1) both; }
html.pt-leave main, html.pt-leave .site-footer { opacity: 0; transform: translateY(-12px); transition: opacity .24s ease, transform .24s ease; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* смена темы: круг из кнопки (View Transitions), а где их нет — мягкое перетекание цветов */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* при смене темы всё раскрывается одним кругом — отдельные снимки шапки и неба не нужны */
html.theme-vt .site-header, html.theme-vt .promo-bar, html.theme-vt .sky-bg, html.theme-vt .aurora, html.theme-vt .mobile-cta { view-transition-name: none; }
html.theme-vt *, html.theme-vt *::before, html.theme-vt *::after { transition: none !important; }
html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after { transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease, fill .5s ease, stroke .5s ease !important; }

/* ---------- печать ---------- */
@media print {
  .site-header, .site-footer, .sky-bg, .aurora, .no-print, aside, .tabs, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; backdrop-filter: none; background: #fff; border-color: #ddd; break-inside: avoid; }
  .tab-panel[hidden] { display: block !important; }
  .tool-layout { grid-template-columns: 1fr; }
  .w-rot, .w-planet, .w-asp { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .reveal, .reveal-on .reveal:not(.in) { opacity: 1 !important; translate: none !important; animation: none !important; }
  details > *:not(summary) { opacity: 1 !important; }
}

/* ---------- запись (главная) ---------- */
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .2s, color .2s, transform .2s; }
.contact-line:hover { transform: translateX(2px); }
.contact-line svg { width: 22px; height: 22px; color: var(--lav-strong); }
.contact-line:hover { border-color: var(--lav); color: var(--lav-strong); }
.services-featured { grid-column: span 2; }
@media (max-width: 960px) { .services-featured { grid-column: span 2; } }
@media (max-width: 640px) { .services-featured { grid-column: auto; } }
.service-card.featured .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 640px) { .service-card.featured .two-col { grid-template-columns: 1fr; } }
.ac-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #f3eeff; backdrop-filter: blur(10px); display: flex; flex-direction: column; }
.ac-card .ac-foot { margin-top: auto; padding-top: 18px; }
.ac-card h3 { color: #fff; }
.ac-card p { color: #d6ccf3; }
.ac-card .price { font: 600 1.6rem var(--ff-display); color: var(--gold-2); }

/* ---------- узкие экраны ---------- */
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .header-inner { gap: 10px; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 36px; height: 36px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero-cta .btn { width: 100%; }
  .result-head .row .btn { flex: 1 1 auto; }
  .tabs { width: 100%; }
  .card { padding: 18px; }
  .kv { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 96px 1fr 40px !important; font-size: .82rem; }
  .event { grid-template-columns: 62px 36px minmax(0, 1fr); padding: 10px 12px; }
  .score-ring { margin: 0 auto; }
}

.tool-layout > *, .academy-layout > *, .cab-layout > *, .hero-grid > *, .about-grid > *, .booking-grid > *, .grid > * { min-width: 0; }
@media (max-width: 960px) {
  .float-card.fc-1 { top: 56%; }
  .float-card.fc-2 { bottom: 3%; }
}
@media (max-width: 640px) {
  .service-card.featured .ribbon { position: static; align-self: flex-start; margin-bottom: 12px; }
}
@media (max-width: 520px) {
  .sky-strip { grid-template-columns: 1fr; }
  .sky-cell, .sky-cell:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .sky-cell:last-child { border-bottom: 0; }
}
.form-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .form-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .form-row.four { grid-template-columns: 1fr; } }


/* =========================================================
   v2 — тёплый «человеческий» слой: бумага, рукописные пометки,
   фото-сцена со свечами, сочные плашки скидок
   ========================================================= */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] body::before { opacity: .25; mix-blend-mode: screen; }
.ic { display: inline-block; vertical-align: middle; width: 1.2em; height: 1.2em; flex-shrink: 0; }
.price-hint .ic { width: 22px; height: 22px; color: var(--gold); }
.value .ic { width: 22px; height: 22px; margin-bottom: 6px; }
.ac-card > span .ic { width: 28px; height: 28px; }
.link-arrow .ic { width: 16px; height: 16px; }
.hand { font-family: var(--ff-hand); font-weight: 600; }
.brand-role { display: block; }

/* ---- плашки ---- */
.sticker { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 12px; border-radius: 999px; font: 800 .95rem/1 var(--ff-body); color: #fff; background: linear-gradient(135deg, var(--hot) 0%, var(--hot-2) 100%); box-shadow: 0 8px 18px -8px rgba(255, 79, 106, .75), inset 0 1px 0 rgba(255,255,255,.35); transform: rotate(-4deg); white-space: nowrap; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(120, 25, 20, .35); }
.sticker.sm { padding: 4px 9px; font-size: .78rem; }
.sticker.xs { padding: 2px 7px; font-size: .7rem; transform: none; box-shadow: none; }
.sticker.big { width: 104px; height: 104px; border-radius: 50%; flex-direction: column; font-size: 1.9rem; transform: rotate(10deg); line-height: .95; text-align: center; }
.sticker.big small { font: 700 .62rem/1.15 var(--ff-body); text-transform: none; letter-spacing: 0; max-width: 78px; white-space: normal; }
.sticker.wiggle { animation: wiggle 4s ease-in-out infinite; }
@keyframes wiggle { 0%, 86%, 100% { transform: rotate(10deg) scale(1); } 90% { transform: rotate(4deg) scale(1.06); } 94% { transform: rotate(14deg) scale(1.06); } }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 8px; font: 800 .72rem/1 var(--ff-body); letter-spacing: .03em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.tag svg { width: 14px; height: 14px; }
.tag.hit { background: linear-gradient(135deg, #ff4f6a, #ff7a3d); box-shadow: 0 6px 14px -6px rgba(255, 79, 106, .7); text-shadow: 0 1px 2px rgba(120, 25, 20, .35); }
.tag.new { background: linear-gradient(135deg, #0f9a7b, #1fb08e); box-shadow: 0 6px 14px -6px rgba(18, 164, 131, .6); text-shadow: 0 1px 2px rgba(5, 60, 45, .35); }
.tag.gift { background: linear-gradient(135deg, #8a4fd8, #d0569b); box-shadow: 0 6px 14px -6px rgba(138, 79, 216, .6); }
.tag.gold { background: linear-gradient(135deg, #c9952f, #e6b85a); color: #3b2508; }
.price-old { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--hot); text-decoration-thickness: 2px; font: 600 .92rem var(--ff-body); margin-right: 2px; }
.offer-card .price { font: 600 1.85rem/1 var(--ff-display); color: var(--ink); }
.gift-card .price { color: #fff; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.price-row .sticker { align-self: center; }

/* ---- полоса акции ---- */
.promo-bar { background: linear-gradient(90deg, #ff4f6a 0%, #ff7a52 55%, #ff9a44 100%); color: #fff; font-size: .9rem; position: relative; z-index: 101; text-shadow: 0 1px 2px rgba(120, 25, 20, .35); }
.promo-bar .promo-btn { text-shadow: none; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 6px 36px 6px 0; position: relative; flex-wrap: wrap; text-align: center; }
.promo-flame svg { width: 20px; height: 20px; animation: flicker 1.8s ease-in-out infinite; }
.promo-text b { font-size: 1.02rem; }
.promo-until { opacity: .92; }
.promo-btn { background: #fff; color: #e2384f; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .82rem; cursor: pointer; box-shadow: 0 4px 10px -4px rgba(0,0,0,.25); }
.promo-btn { transition: transform .2s, box-shadow .2s; }
.promo-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -6px rgba(0,0,0,.3); }
.promo-x { transition: opacity .2s, transform .25s; }
.promo-x:hover { opacity: 1; transform: translateY(-50%) rotate(90deg); }
.promo-x { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: #fff; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; opacity: .85; }
.promo-x svg { width: 18px; height: 18px; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); opacity: 1; } 40% { transform: scale(1.12) rotate(3deg); opacity: .85; } 70% { transform: scale(.95) rotate(-1deg); opacity: 1; } }
@media (max-width: 560px) { .promo-inner { font-size: .8rem; gap: 8px; padding: 6px 30px 6px 0; flex-wrap: nowrap; justify-content: flex-start; text-align: left; min-height: 0; } .promo-flame { display: none; } .promo-until { display: block; font-size: .72rem; opacity: .9; } .promo-btn { padding: 6px 10px; font-size: .76rem; flex-shrink: 0; } }

/* ---- шапка: выпадающее меню ---- */
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--ink-2); font: 500 .92rem var(--ff-body); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.nav-drop-btn .chev { width: 16px; height: 16px; transition: transform .25s; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn, .nav-drop-btn.active { color: var(--ink); background: var(--lav-soft); }
.nav-drop.open .chev { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 50; }
.nav-drop.open .nav-panel, .nav-drop:hover .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav .nav-panel a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; white-space: normal; }
.nav .nav-panel a:hover { background: var(--bg-2); }
.np-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lav-soft); color: var(--lav-strong); flex-shrink: 0; }
.np-ic svg { width: 22px; height: 22px; }
.nav-panel b { display: block; color: var(--ink); font-weight: 700; font-size: .92rem; }
.nav-panel small { color: var(--ink-3); font-size: .78rem; }

/* ---- мобильное меню ---- */
.mobile-menu nav.mm-main a { font-size: 1.55rem; }
.mm-label { margin: 22px 0 8px; font: 600 1.35rem var(--ff-hand); color: var(--gold); }
.mm-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-tools a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .88rem; font-weight: 600; }
.mm-tools a svg { width: 20px; height: 20px; color: var(--lav-strong); flex-shrink: 0; }
.mm-cabinet { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; font-size: .8rem; color: var(--ink-3); }
.mm-cabinet svg { width: 14px; height: 14px; }

/* ---- кнопка записи на телефоне ---- */
.mobile-cta { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 90; display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(40, 20, 70, .45); transform: translateY(130%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.mobile-cta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mobile-cta .mc-text { flex: 1; min-width: 0; line-height: 1.25; }
.mobile-cta b { display: block; font-size: .88rem; }
.mobile-cta small { font-size: .74rem; color: var(--ink-3); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-cta.show { transform: none; }
@media (max-width: 768px) { .mobile-cta { display: flex; } .site-footer { padding-bottom: 96px; } }

/* ---- герой: фото-сцена ---- */
.hero-v2 { padding-top: clamp(20px, 4vw, 48px); }
.hello { font: 600 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 var(--ff-hand); color: var(--lav-strong); margin: 0 0 6px; display: inline-flex; align-items: flex-end; gap: 8px; transform: rotate(-2deg); }
.hello svg { width: 64px; height: 40px; color: var(--gold-2); }
.hl { position: relative; white-space: nowrap; color: var(--lav-strong); font-style: italic; }
.hl svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .42em; overflow: visible; color: var(--gold-2); }
.hl svg path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: drawLine 1.4s .9s ease forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.price-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -8px 0 22px; font-size: .98rem; color: var(--ink-2); }
.price-hint b { color: var(--ink); font-size: 1.1rem; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.trust-row svg { width: 22px; height: 22px; color: var(--gold); }

.scene { position: relative; width: min(100%, 470px); margin-inline: auto; aspect-ratio: 896 / 1140; }
.scene-bg { position: absolute; left: 0; right: 0; top: 14.7%; bottom: 0; border-radius: 999px 999px 30px 30px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 100%, #7a4a86 0%, transparent 60%), radial-gradient(90% 60% at 50% 20%, #3b2a72 0%, transparent 70%), linear-gradient(180deg, #221846 0%, #2d1f55 55%, #4b2f63 100%); box-shadow: var(--shadow-lg); }
.scene-bg::before { content: ''; position: absolute; inset: 0; background: var(--sp-w) 14% 18% / 9px no-repeat, var(--sp-w) 78% 12% / 7px no-repeat, var(--sp-g) 88% 36% / 12px no-repeat, var(--sp-w) 8% 44% / 7px no-repeat, var(--sp-w) 30% 8% / 9px no-repeat, var(--sp-g) 62% 6% / 7px no-repeat, var(--sp-w) 93% 58% / 10px no-repeat, var(--sp-w) 4% 70% / 7px no-repeat; filter: blur(1.3px); opacity: .5; animation: twinkleSoftArch 4s ease-in-out infinite alternate; }
.scene-frame { position: absolute; left: -12px; right: -12px; top: calc(14.7% - 12px); bottom: -12px; border: 1.5px solid var(--gold-2); border-radius: 999px 999px 40px 40px; opacity: .85; pointer-events: none; }
.scene-ring { position: absolute; left: 50%; top: 22%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--gold-2); opacity: .55; pointer-events: none; }
.scene-ring > div { width: 100%; height: 100%; animation: spin 160s linear infinite; }
.scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; clip-path: inset(0 0 0 0 round 0 0 30px 30px); filter: drop-shadow(0 18px 24px rgba(30, 15, 50, .25)); }
.flame-glow { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; background: radial-gradient(circle, rgba(255, 214, 140, .75) 0%, rgba(255, 170, 80, .28) 32%, transparent 68%); mix-blend-mode: screen; animation: candle 2.6s ease-in-out infinite; }
.flame-glow.l { left: 5%; top: 60%; }
.flame-glow.r { left: 96.8%; top: 53.2%; animation-delay: -1.1s; animation-duration: 3.1s; }
@keyframes candle { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 30% { opacity: 1; transform: translate(-50%, -52%) scale(1.08); } 55% { opacity: .7; transform: translate(-50%, -50%) scale(.94); } 75% { opacity: .95; transform: translate(-50%, -51%) scale(1.04); } }
.scene .float-card { z-index: 3; }
.scene .fc-1 { left: -16%; top: 34%; }
.scene .fc-2 { right: -8%; bottom: 4%; }
.scene .sticker.big { position: absolute; right: -6%; top: 10%; z-index: 4; }
.hand-note { position: absolute; left: -24%; top: 4%; font: 600 1.55rem/1.05 var(--ff-hand); color: var(--lav-strong); transform: rotate(-8deg); z-index: 3; display: flex; flex-direction: column; align-items: flex-end; }
.hand-note svg { width: 70px; height: 46px; color: var(--gold-2); margin-right: -40px; }
@media (max-width: 1100px) { .hand-note { display: none; } }
@media (max-width: 960px) {
  .hero-v2 .hero-visual { order: -1; padding: 6px 24px 0; }
  .scene { width: min(78%, 360px); }
  .scene .fc-1 { left: -24%; top: 52%; }
  .scene .fc-2 { display: none; }
  .scene .sticker.big { width: 84px; height: 84px; font-size: 1.5rem; right: -14%; top: 12%; }
  .scene .sticker.big small { font-size: .54rem; max-width: 64px; }
}

/* ---- запросы ---- */
.need-card .need-ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px 16px 16px 4px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.need-card .need-ic svg { width: 28px; height: 28px; }
.need-card:nth-child(3n+2) .need-ic { background: var(--lav-soft); color: var(--lav-strong); }
.need-card:nth-child(3n) .need-ic { background: var(--rose); color: var(--rose-strong); }

/* ---- услуги ---- */
.service-card .tags-top { display: flex; gap: 6px; flex-wrap: wrap; position: absolute; top: 18px; right: 18px; z-index: 2; }
.service-card .price { font-size: 1.85rem; }
.service-card .price-note { font-size: .74rem; color: var(--hot); font-weight: 700; }
.service-card.featured { background: linear-gradient(160deg, var(--surface) 0%, var(--gold-soft) 140%); border-color: color-mix(in srgb, var(--gold-2) 60%, transparent); }
@media (max-width: 640px) { .service-card .tags-top { position: static; margin-bottom: 12px; } }

/* ---- пакеты и сертификат ---- */
.offer-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.offer-card .sticker.corner { position: absolute; top: 18px; right: 16px; }
.offer-card .plus { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.offer-card .plus .pi { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--bg-2); font-size: .84rem; font-weight: 600; }
.offer-card .plus .pi svg { width: 16px; height: 16px; color: var(--lav-strong); }
.offer-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.offer-card .save { font: 700 .82rem var(--ff-body); color: var(--mint); display: block; }
.gift-card { background: linear-gradient(150deg, #3a2470 0%, #5b3a9e 55%, #a0508e 100%); color: #fff; border: 0; }
.gift-card h3, .gift-card .price { color: #fff; }
.gift-card p { color: #e7dcff; }
.gift-card .gift-bow { position: absolute; right: -20px; bottom: -26px; width: 150px; height: 150px; color: rgba(255,255,255,.12); transform: rotate(-12deg); }
.gift-card .foot { border-top-color: rgba(255,255,255,.25); }

/* ---- шаги ---- */
.step .dot svg { width: 28px; height: 28px; }
.step .dot { color: var(--lav-strong); background: var(--surface); }
.step .num { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-2); color: #3b2508; font: 800 .74rem/24px var(--ff-body); text-align: center; }

/* ---- инструменты ---- */
.tool-tile .t-ic { width: 54px; height: 54px; border-radius: 16px 16px 16px 4px; display: grid; place-items: center; background: var(--lav-soft); color: var(--lav-strong); }
.tool-tile .t-ic svg { width: 30px; height: 30px; }
.tool-tile .t-bg { font-size: 0; right: -24px; bottom: -28px; opacity: .07; color: var(--lav-strong); }
.tool-tile .t-bg svg { width: 150px; height: 150px; }
.tool-tile .free { position: absolute; top: 18px; right: 18px; }

/* ---- обо мне: полароид ---- */
.polaroid { position: relative; background: #fff; padding: 14px 14px 64px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 22px 40px -18px rgba(40, 20, 60, .45); transform: rotate(-3deg); max-width: 400px; margin: 0 auto; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.polaroid:hover { transform: rotate(-1deg) translateY(-4px); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; display: block; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 600 1.6rem/1 var(--ff-hand); color: #3a2c55; }
.polaroid .tape { position: absolute; width: 110px; height: 30px; background: rgba(246, 225, 180, .78); top: -14px; left: 50%; transform: translateX(-50%) rotate(-4deg); box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.polaroid .tape.r { left: auto; right: -30px; top: 40px; transform: rotate(42deg); width: 90px; background: rgba(214, 196, 240, .75); }
:root[data-theme="dark"] .polaroid { background: #f6efe4; }
.hand-sign { font: 600 2rem/1 var(--ff-hand); color: var(--lav-strong); margin: 14px 0 10px; transform: rotate(-2deg); }
.story { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--gold-2); background: var(--surface); border-radius: 0 14px 14px 0; }

/* ---- отзывы: как сообщения ---- */
.review { background: transparent; border: 0; box-shadow: none; padding: 0; }
.review .bubble { position: relative; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 14px; }
.review .quote { font-size: 1.15rem; margin-bottom: 0; }
.review .who { padding-left: 6px; }

/* ---- запись ---- */
.alina-say { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 6px; }
.alina-say img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 3px var(--surface-solid), 0 0 0 4px var(--gold-2); }
.alina-say .bubble, .alina-note .bubble { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 6px 20px 20px 20px; padding: 12px 16px; box-shadow: var(--shadow); font: 600 1.35rem/1.2 var(--ff-hand); color: var(--ink); }
.booking-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; padding-right: 40px; }
.booking-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface-solid), 0 0 0 4px var(--gold-2); }
.promo-inline { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 14px; border-radius: 14px; background: color-mix(in srgb, var(--hot) 9%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--hot) 45%, transparent); font-size: .9rem; }

/* ---- записка Аликы на страницах-инструментах ---- */
.alina-note { display: flex; gap: 12px; align-items: flex-start; }
.alina-note img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 3px var(--surface-solid), 0 0 0 4px var(--gold-2); }
.alina-note .bubble p { margin: 0 0 8px; }
.alina-note .bubble .btn { font-family: var(--ff-body); }
.alina-note .bubble { font-size: 1.25rem; }

@media (max-width: 960px) {
  .hero-v2 { padding-top: 10px; }
  .hero-v2 .hero-visual { padding: 0 34px; }
  .scene { width: min(72%, 300px); }
  .hello { font-size: 1.6rem; }
}
@media (max-width: 560px) {
  .hero-v2 h1 { font-size: 2.35rem; }
  .price-hint { margin-top: -4px; font-size: .9rem; }
  .trust-row { gap: 8px 16px; }
  .trust-row li { font-size: .84rem; }
  .scene .fc-1 { left: -30%; top: 58%; padding: 6px 10px; }
}
#about, #offers, #services, .hero-v2 { overflow-x: clip; }
@media (max-width: 560px) { .polaroid { max-width: 84%; } .polaroid .tape.r { right: -16px; } }

.note-card { background: linear-gradient(160deg, var(--surface) 0%, var(--lav-soft) 160%); }
.note-card .alina-note .bubble { box-shadow: none; }
.note-card .bubble .row, .note-card .bubble .btn { margin-top: 4px; }
.alina-note .bubble { font: 400 .98rem/1.55 var(--ff-body); color: var(--ink-2); padding: 14px 18px; }
.alina-note .note-who { display: block; font: 700 1.4rem/1 var(--ff-hand); color: var(--lav-strong); margin-bottom: 4px; }

/* ---- видео и звук ---- */
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.scene-bg::before { z-index: 1; }
.greet { position: absolute; right: -26px; bottom: 40px; width: 118px; height: 118px; border-radius: 50%; padding: 0; border: 4px solid #fff; overflow: hidden; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(40, 20, 70, .55); background: var(--night); transform: rotate(3deg); transition: transform .3s; }
.greet:hover { transform: rotate(0) scale(1.05); }
.greet video { width: 100%; height: 100%; object-fit: cover; display: block; }
.greet-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(30, 15, 50, .25); }
.greet-play .ic { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.greet-label { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font: 600 1.25rem var(--ff-hand); color: var(--lav-strong); }
.greet-full { width: 100%; max-height: 80vh; border-radius: 14px; background: #000; display: block; }
.sound-toggle[aria-pressed="true"] { color: var(--lav-strong); background: var(--lav-soft); }
.mobile-cta { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.in-artifact [data-act="png"], .in-artifact [data-act="print"], .in-artifact .no-artifact { display: none !important; }

/* ---- карточки для сторис и сертификаты ---- */
.card-preview { display: grid; place-items: center; background: var(--bg-2); border-radius: 16px; padding: 14px; }
.card-preview img { display: block; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 100%; height: auto; }
.card-preview.portrait img { max-height: 66vh; width: auto; }
.cert-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; margin-top: 14px; }
@media (max-width: 1000px) { .cert-layout { grid-template-columns: minmax(0, 1fr); } }
.cert-preview canvas { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: var(--shadow-lg); }
.gift-preview { margin: -4px 0 14px; }
.gift-preview img { width: 78%; max-width: 280px; height: auto; display: block; border-radius: 8px; transform: rotate(-4deg); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }

.field { align-content: start; }

/* плашка «получать в Telegram» (бот Аликы) */
.bot-cta { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.bot-cta:hover { transform: translateY(-2px); border-color: var(--gold-2); }
.bot-cta svg { width: 26px; height: 26px; flex-shrink: 0; color: #2aa3df; }
.bot-cta span { flex: 1; font-weight: 600; }
.bot-cta .arr { flex: 0; color: var(--gold); font-size: 1.2rem; }

/* валюта справа сверху (в шапке) */
.cur-drop { position: relative; }
.cur-btn { height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font: 700 .8rem/1 var(--ff-body); letter-spacing: .04em; transition: color .2s, border-color .2s, background .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.cur-btn:hover, .cur-drop.open .cur-btn { color: var(--lav-strong); border-color: var(--line-2); }
.cur-btn .cur-sign { font: 600 1.25rem/1 var(--ff-display); color: var(--gold); min-width: .75em; text-align: center; }
.cur-btn .chev { width: 15px; height: 15px; opacity: .7; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cur-drop.open .cur-btn .chev { transform: rotate(180deg); }
.cur-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 214px; display: grid; gap: 2px; padding: 8px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px) scale(.97); transform-origin: top right; transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility .2s; }
.cur-drop.open .cur-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.cur-title { padding: 4px 10px 6px; font: 600 1.15rem/1.1 var(--ff-hand); color: var(--gold); }
.cur-panel button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: 600 .93rem var(--ff-body); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.cur-panel button:hover, .cur-panel button:focus-visible { background: var(--lav-soft); outline: none; }
.cur-panel .cs { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font: 600 1.2rem/1 var(--ff-display); }
.cur-panel .ck { width: 18px; height: 18px; margin-left: auto; color: var(--lav-strong); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s cubic-bezier(.3,1.5,.6,1); }
.cur-panel [aria-checked="true"] { color: var(--lav-strong); }
.cur-panel [aria-checked="true"] .cs { background: var(--lav-soft); color: var(--lav-strong); }
.cur-panel [aria-checked="true"] .ck { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .cur-btn { height: 40px; padding: 0 8px 0 11px; gap: 3px; }
  .cur-btn .cur-code { display: none; }
}
/* узкие телефоны: шапка с кнопкой валюты должна помещаться */
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 1.06rem; }
  .icon-btn { width: 38px; height: 38px; }
  .cur-btn { height: 38px; padding: 0 6px 0 9px; }
}
@media (max-width: 340px) { .site-header .brand-mark { display: none; } }

/* переключатель валюты над услугами */
.cur-switch { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 22px; }
.cur-switch .seg button { padding: 6px 12px; }
.cur-switch[hidden] { display: none; }

/* ---------- анкета на консультацию (js/ui.js: bookingFormHTML) — коротко, в один столбик ---------- */
.modal.booking-modal { width: min(560px, 100%); }
.ix { gap: 14px; }
.ix [hidden] { display: none !important; }
.ix .notice { margin: 0; }
.ix .textarea { min-height: 0; resize: vertical; }
.ix-opt { font-weight: 500; color: var(--ink-3); }
.ix-meta { display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.ix-meta:empty { display: none; }
.ix-meta svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.ix-meta s { color: var(--ink-3); }
.ix-meta b { color: var(--ink); }
.ix-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-solid); color: var(--ink-2); font: 600 .86rem var(--ff-body); cursor: pointer; transition: border-color .2s, background .2s, color .2s, box-shadow .2s, transform .2s; }
.ix-chip svg { width: 16px; height: 16px; color: var(--gold); transition: color .2s; }
.ix-chip:hover { border-color: var(--lav); transform: translateY(-1px); }
.ix-chip[aria-pressed="true"] { background: linear-gradient(180deg, #6b47b8 0%, #52329a 100%); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(82, 50, 154, .85); }
.ix-chip[aria-pressed="true"] svg { color: #fff; }
.ix-consent { font-size: .82rem; align-items: center; }
.ix-consent input { margin-top: 0; }
.ix-pre { white-space: pre-wrap; margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; font-size: .88rem; max-height: 220px; overflow: auto; }
.ix-next { margin: 0 0 6px; padding-left: 1.3em; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
/* анкета: блок «человек» — «Мои карты», имя, дата календарём, время или «не знаю», город поиском */
.ix-person { display: grid; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--lav-soft) 32%, transparent); }
.ix-legend { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ix-legend .ix-opt { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.ix-pp { display: contents; }
.ix .form-row.ix-row { gap: 12px; }
.form-row.one { grid-template-columns: minmax(0, 1fr); }
.ix-unk { font-size: .8rem; gap: 8px; }
.ix-unk input { width: 16px; height: 16px; margin-top: 2px; }
.ix .input[type="time"]:disabled { opacity: .45; }
@media (max-width: 480px) { .ix-person { padding: 12px; } }
/* кнопка-ссылка и стрелки месяца (кабинет: расписание) */
.bk-link { border: 0; background: none; padding: 4px 2px; color: var(--lav-strong); font: 600 .86rem var(--ff-body); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--lav-strong) 40%, transparent); text-underline-offset: 3px; }
.bk-link:hover { text-decoration-color: currentColor; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bk-cal-head b { font: 600 1.2rem/1.1 var(--ff-display); }
.bk-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: color .2s, border-color .2s, opacity .2s; }
.bk-nav svg { width: 18px; height: 18px; }
.bk-nav:hover:not(:disabled) { color: var(--lav-strong); border-color: var(--lav); }
.bk-nav:disabled { opacity: .3; cursor: default; }
@media (max-width: 560px) {
  .ix-chip { padding: 7px 11px; font-size: .82rem; gap: 6px; }
}

/* ---------- кабинет: расписание записи (js/pages/cabinet-schedule.js) ---------- */
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.card h3 > svg { width: 22px; height: 22px; color: var(--gold); vertical-align: -3px; margin-right: 4px; }
.sc-bar { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.sc-bar > svg { width: 26px; height: 26px; flex-shrink: 0; }
.sc-bar > div { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.sc-bar small { color: var(--ink-2); font-size: .84rem; }
.sc-bar.ok > svg { color: var(--ok); }
.sc-bar.warn { background: color-mix(in srgb, var(--hot) 8%, var(--surface)); border-color: color-mix(in srgb, var(--hot) 35%, transparent); }
.sc-bar.warn > svg { color: var(--rose-strong); }
.sc-bar.gold { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold-2) 55%, transparent); }
.sc-bar.gold > svg { color: var(--gold); }
.sc-week { display: grid; gap: 4px; }
.sc-wk { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sc-wk:last-child { border-bottom: 0; }
.sc-wk .switch { padding-top: 10px; font-weight: 700; color: var(--ink); }
.sc-wk-body { min-height: 42px; display: flex; align-items: center; }
.sc-wk-body > .muted { padding-top: 2px; }
.sc-ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.sc-range { display: flex; align-items: center; gap: 6px; }
.sc-range .input { width: 108px; min-height: 40px; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.sc-range > span { color: var(--ink-3); }
.sc-ranges .bk-link { display: inline-flex; align-items: center; gap: 4px; }
.sc-ranges .bk-link svg { width: 14px; height: 14px; }
.sc-cal .bk-cal-head { margin-bottom: 6px; }
.sc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sc-grid .dw { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 2px 0 4px; }
.sc-d { min-width: 0; min-height: 50px; padding: 5px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); display: grid; align-content: space-between; gap: 2px; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; font-family: var(--ff-body); }
.sc-d:hover:not(:disabled) { border-color: var(--lav); transform: translateY(-1px); box-shadow: var(--shadow); }
.sc-d .n { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.sc-d .h { font-size: .64rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-d.work { background: color-mix(in srgb, var(--lav-soft) 70%, var(--surface-solid)); }
.sc-d.special { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold-2) 60%, transparent); }
.sc-d.special .h { color: var(--gold); font-weight: 700; }
.sc-d.off { background: color-mix(in srgb, var(--rose) 70%, var(--surface-solid)); border-color: color-mix(in srgb, var(--rose-strong) 30%, transparent); }
.sc-d.off .h { color: var(--rose-strong); font-weight: 700; }
.sc-d.weekly-off .h { color: var(--ink-3); }
.sc-d.today { box-shadow: 0 0 0 2px var(--gold-2); }
.sc-d.past { opacity: .4; cursor: default; }
.bz { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--lav-strong); color: #fff; font: 700 .62rem/1 var(--ff-body); font-style: normal; }
[data-theme="dark"] .bz { color: #1b1430; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; }
.sc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sc-legend .lg { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line-2); }
.sc-legend .lg.work { background: color-mix(in srgb, var(--lav-soft) 70%, var(--surface-solid)); }
.sc-legend .lg.special { background: var(--gold-soft); border-color: var(--gold-2); }
.sc-legend .lg.off { background: var(--rose); border-color: color-mix(in srgb, var(--rose-strong) 40%, transparent); }
.sc-vac { margin-top: 16px; display: grid; gap: 6px; }
.sc-vac .label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.sc-vac-row, .sc-busy-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-vac-row .input { flex: 1 1 140px; width: auto; min-height: 42px; padding: 8px 10px; }
.sc-busy-add .input { min-height: 42px; padding: 8px 10px; width: auto; }
.sc-busy-add input[type=date] { flex: 1 1 150px; }
.sc-busy-add input[type=time] { flex: 0 1 108px; }
.sc-list { display: grid; gap: 6px; margin-top: 12px; }
.sc-li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.sc-li > svg { width: 18px; height: 18px; color: var(--lav-strong); flex-shrink: 0; }
.sc-li > span { flex: 1; min-width: 0; }
.sc-li .icon-btn { flex-shrink: 0; }
.sc-durs { display: grid; gap: 8px; }
.sc-dur { display: grid; grid-template-columns: minmax(0, 1fr) 84px 28px; align-items: center; gap: 8px; font-size: .9rem; }
.sc-dur .input { min-height: 40px; padding: 7px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.sc-dur small { color: var(--ink-3); }
.sc-choice { display: grid; gap: 10px; }
.sc-day-ranges { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--bg-2); }
@media (max-width: 560px) {
  .sc-wk { grid-template-columns: 1fr; gap: 4px; }
  .sc-wk .switch { padding-top: 0; }
  .sc-range .input { width: 96px; }
  .sc-d { min-height: 42px; padding: 4px 3px; }
  .sc-d .h { font-size: .56rem; }
}
/* окно анкеты на телефоне: шапка компактнее */
@media (max-width: 560px) {
  .booking-modal .booking-head { gap: 12px; }
  .booking-modal .booking-head img { width: 50px; height: 50px; }
  .booking-modal .booking-head h3 { font-size: 1.35rem; }
  .booking-modal .promo-inline { padding: 8px 12px; margin-bottom: 10px; font-size: .82rem; }
}

/* ===== Кабинет: заявки и «Для тебя» (_private/cabinet-requests.js, cabinet-care.js) ===== */
/* предложить время (Расписание, Заявки) */
.pp { display: grid; gap: 12px; min-width: 0; }
.pp .notice { margin: 0; }
.pp-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.pp-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--lav-strong); }
.pp-days { display: grid; }
.pp-day { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pp-day:last-child { border-bottom: 0; }
.pp-dt { padding-top: 8px; font: 600 1.02rem/1.2 var(--ff-display); color: var(--ink); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chip { display: inline-grid; justify-items: center; min-width: 64px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-solid); color: var(--lav-strong); font: 700 .92rem/1.1 var(--ff-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.pp-chip small { margin-top: 2px; font: 600 .66rem var(--ff-body); color: var(--ink-3); }
.pp-chip:hover { border-color: var(--lav); transform: translateY(-1px); }
.pp-chip.held { border-style: dashed; border-color: var(--gold-2); }
.pp-chip[aria-pressed="true"] { background: linear-gradient(180deg, #6b47b8 0%, #52329a 100%); border-color: transparent; color: #fff; }
.pp-chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .82); }
.pp-msg { display: grid; gap: 8px; }
.pp-head { margin: 0; }
@media (max-width: 560px) { .pp-day { grid-template-columns: minmax(0, 1fr); gap: 4px; } .pp-dt { padding-top: 0; } }

/* заявки: список */
.rq-how { padding: 16px 18px; }
.rq-how ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.rq-item.fresh { border-color: color-mix(in srgb, var(--gold-2) 60%, transparent); background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); }
.rq-item .main small { display: block; }
.rq-item .main .rq-next { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--lav-strong); font-weight: 600; }
.rq-next svg { width: 14px; height: 14px; flex-shrink: 0; }
.rq-dots { display: inline-flex; gap: 4px; }
.rq-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.rq-dots i.done { background: var(--gold-2); }
.rq-dots i.on { background: var(--lav-strong); box-shadow: 0 0 0 3px var(--lav-soft); }
.rq-dash .list-item { padding: 10px 12px; }
/* заявки: карточка */
.modal.rq-modal { width: min(880px, 100%); }
.rq-modal [hidden] { display: none !important; }
.rq-head { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding-right: 40px; }
.rq-ava { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--lav-soft), var(--rose)); font: 600 1.4rem var(--ff-display); color: var(--lav-strong); }
.rq-who { flex: 1 1 220px; min-width: 0; }
.rq-who h3 { margin: 0; }
.rq-who p { margin: 2px 0 0; }
.rq-head-act { gap: 8px; }
.rq-steps { list-style: none; margin: 18px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rq-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 .84rem var(--ff-body); cursor: pointer; transition: border-color .2s, color .2s, background .2s, box-shadow .2s; }
.rq-steps button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface-solid); font-size: .74rem; }
.rq-steps button span svg { width: 13px; height: 13px; }
.rq-steps button.done span { background: var(--gold-soft); border-color: var(--gold-2); color: var(--gold); }
.rq-steps button.cur span { background: #5b3a9e; border-color: #5b3a9e; color: #fff; }
.rq-steps button[aria-selected="true"] { border-color: var(--lav-strong); color: var(--lav-strong); background: var(--surface-solid); box-shadow: var(--shadow); }
.rq-panel { min-width: 0; }
.rq-panel p.small > svg, .rq-panel .tiny > svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--lav-strong); }
.rq-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.rq-close { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
.rq-close svg { width: 15px; height: 15px; }
.rq-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rq-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: .9rem; }
.rq-facts dt { color: var(--ink-3); font-weight: 600; }
.rq-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.rq-q { white-space: pre-wrap; }
.rq-side { display: grid; gap: 12px; }
.rq-chart { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-s); background: var(--bg-2); border: 1px solid var(--line); font-size: .88rem; }
.rq-chart .glyph { margin-right: 6px; font-style: normal; color: var(--lav-strong); }
.rq-chart .btn { justify-self: start; margin-top: 4px; }
.rq-miss { padding: 12px 14px; border-radius: var(--r-s); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold-2) 50%, transparent); font-size: .86rem; }
.rq-miss b { display: flex; align-items: center; gap: 6px; }
.rq-miss b svg { width: 16px; height: 16px; color: var(--gold); }
.rq-miss ul { margin: 6px 0; padding-left: 1.2em; }
.rq-miss small { color: var(--ink-3); }
.rq-ok { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ok); font-weight: 600; font-size: .9rem; }
.rq-ok svg { width: 18px; height: 18px; }
.rq-tip { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-s); background: color-mix(in srgb, var(--lav-soft) 55%, var(--surface)); border: 1px solid var(--line); }
.rq-tip > svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--lav-strong); }
.rq-tip > div { flex: 1; min-width: 0; }
.rq-modal .btn { max-width: 100%; white-space: normal; text-align: left; }
.rq-tip p { margin: 4px 0 8px; font-size: .88rem; color: var(--ink-2); }
.rq-tip p:last-child { margin-bottom: 0; }
.rq-qs { display: grid; gap: 14px; }
.rq-qg { display: grid; gap: 8px; }
.rq-qg h4 { margin: 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rq-offered { display: grid; gap: 6px; margin-bottom: 16px; }
.rq-offered h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.rq-offered h4 svg { width: 18px; height: 18px; color: var(--gold); }
.rq-booked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-s); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold-2) 50%, transparent); }
.rq-booked > svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold); }
.rq-booked > div { flex: 1 1 240px; display: grid; gap: 2px; }
.rq-booked small { color: var(--ink-2); }
.rq-tpls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.rq-check { display: grid; gap: 8px; }
.rq-main { margin-bottom: 8px; }
@media (max-width: 700px) {
  .rq-grid { grid-template-columns: minmax(0, 1fr); }
  .rq-steps button { padding: 5px 10px 5px 5px; font-size: .8rem; }
  .rq-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rq-facts dd { margin-bottom: 8px; }
}

/* «Для тебя» */
.care-hand { margin: 8px auto; max-width: 52ch; font: 600 1.55rem/1.3 'Caveat', var(--ff-display), cursive; color: var(--lav-deep); }
.care-tip { text-align: center; padding: 26px 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--lav-soft) 70%, var(--surface)), color-mix(in srgb, var(--rose) 40%, var(--surface))); }
.care-q { width: 100%; display: grid; gap: 6px; align-content: start; text-align: left; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.care-q svg { width: 26px; height: 26px; color: var(--gold); }
.care-q b { font: 600 1.15rem/1.2 var(--ff-display); color: var(--ink); }
.care-q small { font-size: .84rem; color: var(--ink-3); }
.care-ladder { display: grid; gap: 10px; margin-top: 12px; }
.care-step { padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
.care-step p { margin: 4px 0 8px 28px; color: var(--ink-2); }
.care-step .btn { margin-left: 28px; }
.care-step.cur { border-color: var(--lav-strong); box-shadow: inset 3px 0 0 var(--lav-strong); }
.care-step.done { background: color-mix(in srgb, var(--gold-soft) 60%, var(--surface)); }
.care-check { display: grid; gap: 8px; }
.care-check .icon-btn { margin-left: auto; flex-shrink: 0; }
.care-safe { display: grid; gap: 6px; }
.care-si { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.care-si details { margin: 2px 0 0 28px; }
.care-si summary { cursor: pointer; list-style: none; font-size: .78rem; font-weight: 600; color: var(--lav-strong); }
.care-si summary::-webkit-details-marker { display: none; }
.care-si p { margin: 6px 0 2px; color: var(--ink-2); }
.care-phr > summary { cursor: pointer; list-style: none; }
.care-phr > summary::-webkit-details-marker { display: none; }
.care-phrases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.care-ph { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
.care-ph p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.care-ph .btn { justify-self: start; margin-top: 4px; }
.care-ph .care-note { display: flex; gap: 6px; color: var(--rose-strong); }
.care-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.care-quote { margin: 10px 0 0; padding: 12px 18px; border-left: 3px solid var(--gold-2); border-radius: 0 12px 12px 0; background: var(--bg-2); font: 600 1.35rem/1.3 'Caveat', cursive; color: var(--ink); }
.care-quote cite { display: block; margin-top: 4px; font: 500 .82rem var(--ff-body); font-style: normal; color: var(--ink-3); }
.care-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.care-w { position: relative; padding: 12px 42px 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
.care-w p { margin: 0 0 4px; font-size: .9rem; }
.care-w .icon-btn { position: absolute; top: 6px; right: 6px; }
.care-dash .care-hand { margin: 6px 0 0; max-width: none; font-size: 1.35rem; }
/* окна: три минуты, семь шагов, «ты молодец» */
.modal.care-modal { width: min(560px, 100%); }
.care-ritual { text-align: center; }
.care-ritual .care-check { max-width: 340px; margin: 0 auto; text-align: left; }
.care-main { max-width: 420px; margin: 0 auto; padding-left: 1.2em; display: grid; gap: 4px; text-align: left; }
.care-breath { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 200px; margin: 10px 0; }
.care-orb { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--lav) 65%, #fff), var(--lav-strong)); box-shadow: 0 0 44px -8px var(--lav); opacity: .55; transform: scale(.7); transition: transform 4s ease-in-out, opacity 4s ease-in-out; }
.care-breath[data-ph="in"] .care-orb, .care-breath[data-ph="hold"] .care-orb { transform: scale(1.15); opacity: .9; }
.care-breath[data-ph="out"] .care-orb { transform: scale(.7); opacity: .5; transition-duration: 6s; }
.care-breath b { font: 600 1.3rem var(--ff-display); color: var(--ink); }
.care-breath small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.care-breath.calm .care-orb { transition: none; }
.care-sos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.care-sos li { display: flex; align-items: flex-start; gap: 12px; }
.care-sos li > svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--lav-strong); }
.care-sos p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); }
.care-burst { position: relative; height: 76px; }
.care-burst i { --a: calc(var(--i) * 51.4deg); position: absolute; left: 50%; top: 50%; font-style: normal; font-size: 1.4rem; color: var(--gold); animation: careBurst 1.4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes careBurst {
  from { transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) rotate(calc(-1 * var(--a))); opacity: 0; }
  40% { opacity: 1; }
  to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-34px) rotate(calc(-1 * var(--a))); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .care-burst i { animation: none; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-34px) rotate(calc(-1 * var(--a))); }
  .care-orb { transition: none !important; }
}

/* ---------- лунный календарь: Луна без курса по часам (js/pages/moon.js) ---------- */
.cal .day { position: relative; }
.cal .day .voc { line-height: 1.25; font-variant-numeric: tabular-nums; }
.cal .day .voc i { font-style: normal; font-weight: 600; }
.voc-bar { display: block; position: relative; height: 4px; margin-top: auto; border-radius: 99px; background: var(--line); overflow: hidden; }
.voc-bar i, .voc-track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--rose-strong), #b07ad8); }
.voc-chip { color: var(--rose-strong); }
.voc-chip svg { width: 16px; height: 16px; }
.voc-chip.now { background: color-mix(in srgb, var(--rose) 70%, var(--surface)); border-color: color-mix(in srgb, var(--rose-strong) 35%, transparent); font-weight: 600; }
.voc-day { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-s); background: color-mix(in srgb, var(--rose) 45%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rose-strong) 25%, transparent); display: grid; gap: 10px; }
.voc-day.none { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 25%, transparent); font-size: .9rem; color: var(--ink-2); }
.voc-day.none svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; }
.voc-day-head { display: flex; align-items: center; gap: 12px; }
.voc-day-head > svg { width: 26px; height: 26px; color: var(--rose-strong); flex-shrink: 0; }
.voc-day-head div { display: grid; gap: 2px; }
.voc-day-head b { font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.voc-day-head small { color: var(--ink-2); font-size: .82rem; }
.voc-scale { padding-bottom: 18px; position: relative; }
.voc-track { display: block; position: relative; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--surface-solid) 70%, var(--line-2)); overflow: hidden; }
.voc-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; font-size: .66rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.voc-ticks span { position: absolute; transform: translateX(-50%); }
.voc-ticks span:first-child { transform: none; }
.voc-ticks span:last-child { transform: translateX(-100%); }
.voc-item b { font-variant-numeric: tabular-nums; }
.voc-item p { margin: 4px 0 0; }
.voc-item .glyph { color: var(--lav-strong); }
.voc-tip { display: flex; gap: 8px; margin: 0; color: var(--ink-2); }
.voc-tip svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--rose-strong); margin-top: 1px; }
.voc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.voc-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; font-size: .88rem; transition: border-color .2s, transform .2s; }
.voc-row:hover { border-color: var(--lav); transform: translateY(-1px); }
.voc-row .vd { font-weight: 700; color: var(--ink-2); }
.voc-row .vt { display: grid; gap: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.voc-row .vt small { color: var(--ink-3); font-size: .76rem; }
.voc-row .vt em { font-style: normal; font-weight: 700; color: var(--rose-strong); }
.voc-row .vs { color: var(--lav-strong); font-size: 1rem; white-space: nowrap; }
.voc-row.now { border-color: color-mix(in srgb, var(--rose-strong) 45%, transparent); background: color-mix(in srgb, var(--rose) 55%, var(--surface)); }
.voc-row.past { background: transparent; border-style: dashed; }
.voc-row.past .vd, .voc-row.past .vt b, .voc-row.past .vs { color: var(--ink-3); }
@media (max-width: 700px) {
  .cal .day .voc { display: block; font-size: .56rem; letter-spacing: -.01em; }
  .cal .day .voc i { display: none; }
  .voc-bar { height: 3px; }
  .voc-row { grid-template-columns: 68px minmax(0, 1fr) auto; }
}

/* ---------- дата рождения: ввод цифрами и выбор в календаре (ui.js → dobHTML / enhanceDob) ---------- */
.dob { position: relative; min-width: 0; }
.dob-text { padding-right: 40px; font-variant-numeric: tabular-nums; }
.dob-btn { position: absolute; right: 5px; top: 7px; width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--lav-strong); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.dob-btn svg { width: 20px; height: 20px; }
.dob-btn:hover, .dob-btn[aria-expanded="true"] { background: var(--lav-soft); }
.dob-hint { display: block; margin-top: 5px; font-size: .76rem; line-height: 1.35; color: var(--ink-3); }
.dob-hint:empty { display: none; }
.dob-hint.ok { color: var(--ink-2); }
.dob-hint.ok::before { content: '✓ '; color: var(--ok); font-weight: 700; }
.dob-hint.bad { color: var(--ink-2); }
.dob-hint.bad::before { content: '✕ '; color: var(--bad); font-weight: 700; }
.dob-pop { position: absolute; z-index: 40; top: 52px; left: 0; width: min(316px, calc(100vw - 32px)); padding: 12px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.dob-pop.right { left: auto; right: 0; }
.dob-pop-head { display: grid; grid-template-columns: 32px minmax(0, 1fr) 84px 32px; gap: 6px; align-items: center; margin-bottom: 8px; }
.dob-pop .select { min-height: 38px; padding: 6px 28px 6px 10px; font-size: .9rem; background-position: right 10px center; }
.dob-nav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.dob-nav svg { width: 16px; height: 16px; }
.dob-nav:hover { color: var(--lav-strong); border-color: var(--lav); }
.dob-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dob-grid .dw { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 4px 0; }
.dob-grid button { aspect-ratio: 1 / 1; min-width: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 600 .86rem var(--ff-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, color .15s; }
.dob-grid button:hover { background: var(--lav-soft); color: var(--lav-deep); }
.dob-grid button.today { box-shadow: inset 0 0 0 1.5px var(--gold-2); }
.dob-grid button.sel { background: linear-gradient(180deg, #6b47b8 0%, #52329a 100%); color: #fff; }
.card:has(.dob-pop) { z-index: 5; }
/* дата рождения шире времени: «23.11.1988» целиком даже в узкой колонке */
@media (min-width: 641px) { .form-row.dob-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }

/* ---------- вход Аликы (js/admin.js): кабинет, личный прогноз, подробная совместимость ---------- */
.admin-lock { padding-top: clamp(40px, 8vw, 90px); }
.lock-card { max-width: 440px; margin: 0 auto; text-align: center; display: grid; gap: 4px; }
.lock-card h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 6px 0 2px; }
.lock-card > .muted { margin: 0 0 14px; }
.lock-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--lav-soft); color: var(--lav-strong); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lav-soft) 55%, transparent); }
.lock-ic svg { width: 30px; height: 30px; }
.lock-form { text-align: left; gap: 14px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.pw-eye svg { width: 19px; height: 19px; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--lav-strong); background: var(--lav-soft); }
.lock-err { margin: 0; min-height: 1.2em; color: var(--bad); font-weight: 600; }
.lock-alina { text-align: left; margin-top: 4px; }
.lock-alina .lock-form { margin-top: 12px; }
.cab-nav .cab-logout { margin-top: 10px; color: var(--ink-3); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 14px; }
.cab-nav .cab-logout:hover { color: var(--bad); }
@media (max-width: 900px) { .cab-nav .cab-logout { margin-top: 0; border-top: 0; border-radius: 12px; padding-top: 12px; } }
.syn-pro .badge svg { width: 13px; height: 13px; }

/* ---------- нумерология (numerology.html, js/pages/numerology.js) ---------- */
.num-today { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--line); }
.num-today > span:last-child { display: grid; line-height: 1.3; }
.num-today b { font-size: .95rem; }
.num-today .small { color: var(--ink-2); }
.num-orb { --s: 44px; width: var(--s); height: var(--s); flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center; font: 600 calc(var(--s) * .5)/1 var(--ff-display); font-variant-numeric: lining-nums; color: var(--lav-deep); background: radial-gradient(circle at 35% 30%, var(--surface-solid), color-mix(in srgb, var(--lav-soft) 85%, var(--surface-solid))); box-shadow: inset 0 0 0 1.5px var(--gold-2), 0 6px 18px -10px rgba(82, 50, 154, .6); }
.num-orb.s { --s: 40px; }
.num-orb.m { --s: 78px; }
.num-orb.xl { --s: 118px; box-shadow: inset 0 0 0 2px var(--gold-2), 0 0 0 8px color-mix(in srgb, var(--gold-soft) 70%, transparent), 0 18px 40px -18px rgba(82, 50, 154, .7); }
.num-orb.master { color: #fff; background: linear-gradient(135deg, #6b47b8 0%, #52329a 55%, #b8893b 100%); box-shadow: inset 0 0 0 1.5px var(--gold-2), 0 8px 24px -10px rgba(201, 154, 74, .8); }
.num-orb.xl.master { box-shadow: inset 0 0 0 2px var(--gold-2), 0 0 0 8px color-mix(in srgb, var(--gold-soft) 80%, transparent), 0 18px 40px -16px rgba(201, 154, 74, .8); }
.num-orb.ghost { color: var(--ink-3); background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.num-hero { display: flex; gap: 24px; align-items: center; }
.num-hero-text { min-width: 0; }
.num-hero h3 { margin: 4px 0 2px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.num-hero p { margin: 0 0 8px; }
.num-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--gold) 76%, var(--ink)); }
.num-keys { font: 600 1.3rem/1.2 var(--ff-hand); color: var(--lav-strong); margin: 0 0 8px; }
.num-sw { margin-top: 18px; gap: 18px; }
.num-sw h4 { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; margin: 0 0 8px; }
.num-sw h4 svg { width: 18px; height: 18px; color: var(--gold); }
.num-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.num-chip { padding: 5px 12px; border-radius: 999px; background: var(--lav-soft); color: var(--lav-deep); font-size: .84rem; font-weight: 600; }
.num-chip.soft { background: var(--gold-soft); color: var(--ink-2); }
.num-advice { margin: 18px 0 0; padding: 10px 16px; border-left: 3px solid var(--gold-2); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--gold-soft) 60%, transparent); font: 600 1.32rem/1.3 var(--ff-hand); color: var(--ink); }
.num-how { margin-top: 14px; }
.num-how p { margin: 8px 0 0; }
.num-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.num-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: border-color .2s, transform .2s, box-shadow .2s; }
.num-tile:hover { border-color: var(--lav); transform: translateY(-1px); }
.num-tile.sel { border-color: var(--lav-strong); box-shadow: var(--glow); }
.nt-text { display: grid; gap: 2px; min-width: 0; }
.nt-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.nt-title svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.nt-keys { font-size: .78rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num-tile.empty .nt-keys { color: var(--lav-strong); font-weight: 600; }
.num-detail { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.num-detail h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.2rem; }
.num-detail p:last-child { margin-bottom: 0; }
.num-letters-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 6px; font-variant-numeric: tabular-nums; }
.nl-word { display: inline-flex; align-items: baseline; flex-wrap: wrap; }
.nl { font-weight: 700; padding: 0 1px; }
.nl sub { font-size: .66em; color: var(--ink-3); font-weight: 600; margin-left: 1px; }
.nl.v { color: var(--rose-strong); }
.only-c .nl.v, .only-v .nl:not(.v) { opacity: .35; }
.nl-sum { margin-left: 6px; color: var(--gold); font-weight: 700; }
.pq-wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 22px; align-items: start; }
.pq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 18px; background: color-mix(in srgb, var(--gold-2) 24%, transparent); }
.pq-cell { aspect-ratio: 1 / 1; min-width: 0; padding: 6px; border: 0; border-radius: 13px; background: var(--surface-solid); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 6px; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.pq-cell:hover { transform: translateY(-1px); }
.pq-cell.sel { box-shadow: inset 0 0 0 2px var(--lav-strong), var(--glow); }
.pq-digits { font: 600 1.55rem/1 var(--ff-display); color: var(--lav-deep); letter-spacing: .04em; text-align: center; word-break: break-all; }
.pq-digits small { font: 700 .8rem var(--ff-body); color: var(--gold); margin-left: 2px; }
.pq-cell.zero .pq-digits { color: var(--ink-3); }
.pq-name { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; line-height: 1.2; }
.pq-side { padding: 16px 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.pq-side h4 { margin: 6px 0 8px; font-size: 1.25rem; }
.pq-side p:last-child { margin-bottom: 0; }
.pq-side .tiny { color: var(--ink-2); }
.pq-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 8px; }
.pq-lines-h { grid-column: 1 / -1; margin: 14px 0 0; font-size: 1.1rem; }
.pq-line { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.pq-line-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pq-line-meta { display: block; margin-top: 2px; font-size: .74rem; color: var(--ink-3); }
.pq-line p { margin: 6px 0 0; color: var(--ink-2); }
.pq-meter { display: inline-flex; gap: 3px; }
.pq-meter i { width: 14px; height: 6px; border-radius: 3px; background: var(--line-2); }
.pq-line.weak .pq-meter i:first-child, .pq-line.mid .pq-meter i:nth-child(-n+2), .pq-line.strong .pq-meter i { background: linear-gradient(90deg, var(--lav), var(--rose-strong)); }
.num-cycle { display: flex; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.num-cycle .cy { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 1.05rem var(--ff-display); border: 1px solid var(--line-2); color: var(--ink-3); background: var(--surface); }
.num-cycle .cy.past { background: var(--lav-soft); color: var(--lav-deep); border-color: transparent; }
.num-cycle .cy.now { background: linear-gradient(180deg, #6b47b8 0%, #52329a 100%); color: #fff; border-color: transparent; transform: scale(1.15); box-shadow: 0 6px 16px -8px rgba(82, 50, 154, .8); }
.pm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pmo { display: grid; gap: 3px; justify-items: center; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pmo span { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pmo b { font: 600 1.4rem/1 var(--ff-display); color: var(--lav-deep); }
.pmo.cur { border-color: var(--gold-2); }
.pmo.sel { box-shadow: inset 0 0 0 2px var(--lav-strong); }
.pm-detail { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.num-mini { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.num-mini > svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.num-mini div { display: grid; gap: 2px; }
.num-mini .small { color: var(--ink-2); }
.num-basic .nb-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lav-soft); color: var(--lav-strong); margin-bottom: 12px; }
.num-basic .nb-ic svg { width: 24px; height: 24px; }
.num-basic h3 { font-size: 1.4rem; margin-bottom: 6px; }
.num-basic p { margin: 0; }
.num-seg { display: flex; width: 100%; }
.num-seg button { flex: 1 1 0; min-width: 0; padding: 8px 4px; font: 600 1.15rem/1 var(--ff-display); }
.num-letters > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.num-letters-table th, .num-letters-table td { text-align: center; padding: 8px 4px; }
.num-letters-table th { color: var(--gold); font-family: var(--ff-display); font-size: 1.2rem; }
.num-letters-table td { font-weight: 700; color: var(--ink); }
.num-empty-digits { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; font: 600 2.1rem/1 var(--ff-display); color: var(--lav); }
.num-empty-digits span:nth-child(odd) { color: var(--gold); }
/* у Cormorant по умолчанию старинные цифры («1» похожа на «I») — в нумерологии нужны обычные */
.pq-digits, .num-cycle .cy, .pmo b, .num-seg button, .num-letters-table th, .num-empty-digits, .num-orb { font-variant-numeric: lining-nums tabular-nums; }
#numResult .tabs .ts { display: none; }
@media (max-width: 480px) { #numResult .tabs .tl { display: none; } #numResult .tabs .ts { display: inline; } #numResult .tabs button { padding: 10px 16px; } }
@media (max-width: 760px) { .pq-wrap { grid-template-columns: minmax(0, 1fr); } .pq-grid { max-width: 340px; margin-inline: auto; width: 100%; } }
@media (max-width: 560px) {
  .num-hero { flex-direction: column; text-align: center; gap: 16px; }
  .num-hero .num-chips { justify-content: center; }
  .pm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .num-seg { flex-wrap: wrap; border-radius: 18px; }
  .num-seg button { flex: 0 0 calc((100% - 10px) / 6); }
  .num-today { border-radius: 22px; }
}

/* ===== Премиум-доступ (js/premium.js, premium.html, превью платных разделов) ===== */
.pw-crown { width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px 16px 16px 6px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #e5bf68 0%, #b8862f 100%); box-shadow: 0 10px 22px -12px rgba(184, 134, 47, .9), inset 0 1px 0 rgba(255,255,255,.4); }
.pw-crown svg { width: 26px; height: 26px; }
.paywall { border-color: color-mix(in srgb, var(--gold-2) 55%, var(--line)); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--gold-soft) 60%, transparent); }
.pw-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.pw-head h3 { margin: 2px 0 4px; }
.pw-head .eyebrow { margin-bottom: 2px; }
.pw-head p { margin: 0; }
.pw-feats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.pw-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; }
.pw-feats li b { color: var(--ink); }
.pw-feats li svg { width: 20px; height: 20px; color: var(--lav-strong); flex-shrink: 0; margin-top: 2px; }
.pw-feats li.on { border-color: var(--gold-2); background: var(--gold-soft); }
.pw-feats li.on svg { color: var(--gold); }
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pw-chips .chip { font-size: .8rem; padding: 6px 12px; }
.pw-chips .chip.on { border-color: var(--gold-2); color: var(--ink); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.plan { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 20px 18px 16px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.plan:hover, .plan:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--lav-strong); }
.plan.hit { border-color: var(--gold-2); background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); }
.plan-tag { position: absolute; top: -11px; left: 14px; padding: 3px 10px; border-radius: 999px; font: 700 .72rem/1.4 var(--ff-body); letter-spacing: .03em; color: #fff; background: #7a5414; }
.plan-tag.save { background: #4f2f99; }
.plan-t { font-weight: 700; font-size: 1rem; }
.plan-p { font: 600 2rem/1.1 var(--ff-display); color: var(--lav-deep); font-variant-numeric: lining-nums; }
.plan-n { font-size: .82rem; color: var(--ink-2); min-height: 2.6em; }
.plan-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: .86rem; color: var(--lav-strong); }
.plan-go svg { width: 16px; height: 16px; transition: transform .3s; }
.plan:hover .plan-go svg { transform: translateX(4px); }
.pw-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pw-fine { margin: 12px 0 0; }
.paywall.compact .pw-head { margin-bottom: 12px; }
.pw-chip { white-space: nowrap; }
.pw-chip svg { width: 14px; height: 14px; }
.pw-text { white-space: pre-wrap; word-break: break-word; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; font-size: .9rem; max-height: 220px; overflow: auto; margin: 0; }
.pw-send { display: grid; gap: 10px; margin-top: 14px; }
.pw-order-head { display: flex; gap: 14px; align-items: center; }
.pw-order { margin-top: 6px; }
.pw-welcome .pw-crown { margin: 0 auto 12px; width: 60px; height: 60px; border-radius: 50%; }
.pw-welcome .pw-crown svg { width: 32px; height: 32px; }
.pw-links { display: grid; gap: 8px; margin-top: 8px; }
.pw-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s; }
.pw-link:hover { border-color: var(--lav-strong); transform: translateX(3px); }
.pw-link > svg:first-child { width: 20px; height: 20px; color: var(--gold); }
.pw-link span { flex: 1; }
.pw-link > svg:last-child { width: 16px; height: 16px; color: var(--ink-3); }
/* закрытые карточки: заголовок виден, текста нет — вместо него полоски */
.locked-list { display: grid; gap: 10px; }
.locked-card { padding: 14px 16px; border-radius: var(--r-s); border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.lk-head { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.lk-head > svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.lk-head span { flex: 1; }
.lk-head small { font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.lk-lines { display: grid; gap: 7px; margin-top: 10px; }
.lk-lines i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--bg-3) 0%, color-mix(in srgb, var(--bg-3) 40%, transparent) 50%, var(--bg-3) 100%); background-size: 200% 100%; animation: lk-shimmer 2.8s ease-in-out infinite; }
@keyframes lk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.locked-grid { gap: 12px; }
.locked-card.theme .lk-head { font-size: .92rem; }
.locked-card.theme small { display: block; margin: 4px 0 0 27px; }
.locked-card .gl, .fc-pair .gl { font-family: var(--ff-glyph); color: var(--lav-strong); }
/* превью прогноза и совместимости */
.fc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.fc-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.fc-stat b { font: 600 1.9rem/1.1 var(--ff-display); color: var(--lav-deep); font-variant-numeric: lining-nums; }
.fc-stat span { font-size: .8rem; color: var(--ink-2); }
.fc-stat.hard { border-left: 4px solid var(--hard-asp); }
.fc-stat.soft { border-left: 4px solid var(--soft-asp); }
.fc-stat.conj { border-left: 4px solid var(--conj-asp); }
.fc-main { box-shadow: none; }
.fc-pair { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.fc-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fc-month { position: relative; display: grid; gap: 2px; padding: 10px 34px 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.fc-month b { font-size: .9rem; }
.fc-month span { font-size: .8rem; color: var(--ink-2); }
.fc-month > svg { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: var(--gold); }
/* шапка, меню, главная */
.nav-premium { display: inline-flex; align-items: center; gap: 6px; }
.nav-premium svg { width: 17px; height: 17px; color: var(--gold); }
.nav-premium.on svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold) 70%, transparent)); }
.mm-premium { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gold-2); background: var(--gold-soft); color: var(--ink); text-decoration: none; }
.mm-premium > svg:first-child { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }
.mm-premium span { flex: 1; display: grid; gap: 1px; }
.mm-premium small { color: var(--ink-2); font-size: .8rem; }
.mm-premium > svg:last-child { width: 18px; height: 18px; color: var(--ink-3); }
.premium-band { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 22px; text-decoration: none; color: inherit; border-color: color-mix(in srgb, var(--gold-2) 60%, var(--line)); }
.premium-band h3 { margin: 0 0 4px; }
.premium-band p { margin: 0; font-size: .9rem; }
.premium-band-go { display: grid; justify-items: end; gap: 4px; font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.premium-band-go b { display: inline-flex; align-items: center; gap: 6px; color: var(--lav-strong); }
.premium-band-go svg { width: 16px; height: 16px; }
/* страница premium.html */
.pm-narrow { max-width: 900px; }
.pm-status { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; padding: 16px 18px; max-width: 760px; }
.pm-status > svg { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.pm-status > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.pm-status span { color: var(--ink-2); font-size: .9rem; }
.pm-status.on { border-color: var(--gold-2); }
.pm-status.off > svg { color: var(--ink-3); }
.pm-feat { text-decoration: none; color: inherit; display: grid; align-content: start; }
.pm-feat .link-arrow { margin-top: 8px; }
.pm-plans { max-width: 940px; margin-inline: auto; }
.pm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pm-steps li { display: grid; gap: 6px; align-content: start; }
.pm-steps li::before { content: attr(data-n); position: absolute; top: 12px; right: 18px; font: 600 2.2rem/1 var(--ff-display); color: var(--line-2); } /* номер шага — водяной знак */
.pm-step-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lav-soft); color: var(--lav-strong); margin-bottom: 4px; }
.pm-step-ic svg { width: 22px; height: 22px; }
.pm-activate { margin-top: 22px; max-width: 760px; margin-inline: auto; }
.pm-act-head { display: flex; gap: 14px; align-items: flex-start; }
.pm-act-head > svg { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.pm-act-form { display: flex; gap: 10px; margin-top: 14px; align-items: stretch; }
.pm-act-form .textarea { flex: 1; min-height: 52px; }
.pm-terms li { color: var(--ink-2); }
/* нумерология: закрытые месяцы и календарь личных дней */
.pmo-l { display: grid; gap: 4px; justify-items: center; padding: 8px 4px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-3); }
.pmo-l span { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pmo-l svg { width: 16px; height: 16px; color: var(--gold); }
.pmo-l.cur { border-style: solid; border-color: var(--gold-2); }
.pd-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pd-dow { text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 2px; }
.pd-cell { --pdc: var(--lav); display: grid; gap: 1px; justify-items: center; padding: 6px 2px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--pdc) 45%, transparent); background: color-mix(in srgb, var(--pdc) 16%, var(--surface)); color: var(--ink); font: inherit; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.pd-cell.empty { visibility: hidden; }
.pd-cell span { font-size: .68rem; color: var(--ink-2); }
.pd-cell b { font: 600 1.15rem/1 var(--ff-display); font-variant-numeric: lining-nums tabular-nums; }
.pd-cell:hover { transform: translateY(-2px); }
.pd-cell.today { box-shadow: 0 0 0 2px var(--gold-2); }
.pd-cell.sel { box-shadow: inset 0 0 0 2px var(--lav-strong); }
.pd-cell.today.sel { box-shadow: 0 0 0 2px var(--gold-2), inset 0 0 0 2px var(--lav-strong); }
.pd-cell.n1 { --pdc: #e2a84a; } .pd-cell.n2 { --pdc: #8fb3e0; } .pd-cell.n3 { --pdc: #f0c75a; } .pd-cell.n4 { --pdc: #8fbf8f; } .pd-cell.n5 { --pdc: #e98a6b; }
.pd-cell.n6 { --pdc: #e79ab8; } .pd-cell.n7 { --pdc: #9b87d9; } .pd-cell.n8 { --pdc: #c9a14a; } .pd-cell.n9 { --pdc: #b493d6; }
.pd-cell.n11, .pd-cell.n22, .pd-cell.n33 { --pdc: #d4af37; }
@media (max-width: 760px) {
  .pw-feats { grid-template-columns: 1fr; }
  .pw-head { gap: 12px; }
  .pw-crown { width: 42px; height: 42px; }
  .premium-band { grid-template-columns: auto 1fr; }
  .premium-band-go { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: space-between; }
  .pm-act-form { flex-direction: column; }
  .pd-cal { gap: 3px; }
  .pd-cell { padding: 5px 0; border-radius: 8px; }
  .pd-cell b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .lk-lines i { animation: none; } }
.dob-grid button:disabled { opacity: .28; cursor: default; background: transparent; color: var(--ink-3); }
.el-days { display: inline-flex; }
.el-days button { min-width: 52px; }
.city-field { position: relative; min-width: 0; }

/* ---------- профи-инструменты (js/pro-view.js) ---------- */
.pv-top { gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.pv-seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.pv-seg::-webkit-scrollbar { display: none; }
.pv-seg button { white-space: nowrap; }
.pv-g { font-size: 1.05em; color: var(--lav-strong); }
.pv-dig td { white-space: nowrap; }
.pv-dig td.wrap { white-space: normal; min-width: 150px; }
.pv-dig .badge { margin: 1px 2px 1px 0; }
.pv-plus { color: var(--ok); }
.pv-minus { color: var(--bad); }
.pv-interps { display: grid; gap: 10px; margin-top: 12px; }
.pv-interp { padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); margin-top: 10px; }
.pv-interps .pv-interp { margin-top: 0; }
.pv-interp b { display: block; margin-bottom: 4px; }
.pv-interp p { margin: 0; font-size: .92rem; }
.pv-note { margin: 12px 0 0; }
.pv-chains { display: grid; gap: 6px; }
.pv-chains > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .86rem; }
.pv-ch { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.pv-arr { color: var(--ink-3); }
.pv-mini { padding: 14px 16px; }
.pv-mini h4 { margin: 4px 0; }
.pv-mini .eyebrow { margin: 0; }
.pv-pats { display: grid; gap: 10px; }
.pv-pat { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.pv-pat-i { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lav-soft); color: var(--lav-strong); font-weight: 700; }
.pv-pat-t { margin: 6px 0 0; }
.pv-bar { display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; overflow: hidden; }
.pv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lav), var(--gold)); }
.pv-mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; font-size: .84rem; margin-top: 8px; }
.pv-stars { display: grid; gap: 8px; }
.pv-star { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.pv-star-i { color: var(--gold); font-size: 1.2rem; line-height: 1.2; }
.pv-now { border-left: 4px solid var(--gold-2); margin: 12px 0; padding: 14px 16px; }
.pv-now h4 { margin: 4px 0; }
.pv-fird { display: grid; gap: 6px; margin-top: 12px; }
.pv-fp { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); }
.pv-fp.cur { border-color: var(--gold-2); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.pv-fp summary { cursor: pointer; }
.pv-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: .8rem; }
.pv-subs span { padding: 2px 9px; border-radius: 999px; background: var(--bg-2); }
.pv-subs span.cur { background: var(--gold-2); color: #fff; }
.pv-subs span.cur .pv-g { color: #fff; }
.pv-changes { display: grid; gap: 6px; }
.pv-change { padding: 8px 12px; border-radius: 10px; background: var(--bg-2); font-size: .92rem; }
.pv-tw tr.cur td { background: color-mix(in srgb, var(--gold) 13%, transparent); }
.pv-acg { display: grid; gap: 6px; }
.pv-acg-row { font-size: .9rem; }
.pv-dirs { display: grid; gap: 8px; }
.pv-dir { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.pv-dir.now { border-color: var(--gold-2); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.pv-dir.past { opacity: .62; }
.pv-dyn svg { width: 100%; height: auto; display: block; }
.pv-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.pv-hours > div { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); font-size: .76rem; background: var(--surface); }
.pv-hours > div.night { background: color-mix(in srgb, var(--night) 12%, var(--surface)); }
.pv-hours > div.cur { border-color: var(--gold-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.pv-hours .pv-g { font-size: 1.3rem; }
.pv-eph table { font-size: .78rem; }
.pv-eph td, .pv-eph th { padding: 5px 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-eph tr.cur td { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.pv-r { color: var(--rose-strong); font-weight: 800; font-size: .74em; margin-left: 1px; }
.pv-eph td small { color: var(--ink-2); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ---------- облако кабинета, анкета ---------- */
.cab-nav .cab-sync { font-size: .8rem; font-weight: 600; color: var(--ok); padding: 8px 14px; }
.cab-nav .cab-sync svg { width: 18px; height: 18px; }
.cab-nav .cab-sync.bad { color: var(--ink-3); }
.sync-card .sync-status { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; }
.sync-card .sync-status svg { width: 20px; height: 20px; flex: none; color: var(--ok); }
.ix-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ix-code { letter-spacing: .14em; color: var(--lav-strong); }
.el-days { justify-self: start; }

/* ---------- кабинет: карточка клиента (_private/cabinet-client.js) ---------- */
.cc-back { margin-bottom: 12px; display: inline-flex; gap: 6px; align-items: center; }
.cc-back svg { width: 16px; height: 16px; }
.cc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.cc-ava { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lav-soft), var(--rose)); font: 600 1.7rem var(--ff-display); color: var(--lav-strong); }
.cc-who h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.cc-who p { margin: 2px 0 0; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cc-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cc-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.cc-fact { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--bg-2); font-size: .84rem; border: 1px solid var(--line); }
.cc-fact svg { width: 16px; height: 16px; color: var(--lav-strong); }
.cc-g { color: var(--lav-strong); }
.cc-tabs { margin: 18px 0 16px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.cc-tabs::-webkit-scrollbar { display: none; }
.cc-tabs button { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.cc-tabs svg { width: 17px; height: 17px; }
.cc-subbar { margin-bottom: 14px; gap: 10px; align-items: flex-end; }
.cc-subbar .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.cc-subbar .seg button { white-space: nowrap; }
.cc-ov { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cc-side { display: grid; gap: 16px; }
.cc-ov-chart { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 18px; align-items: start; }
.cc-ov-chart .wheel-box { max-width: 250px; }
.cc-list { display: grid; gap: 8px; }
.cc-li { display: grid; gap: 2px; padding: 8px 12px; border-left: 3px solid var(--c, var(--lav)); border-radius: 0 10px 10px 0; background: var(--bg-2); font-size: .9rem; }
.cc-dates { display: grid; gap: 2px; }
.cc-date { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: .9rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cc-date.bd b { color: var(--gold-2); }
.cc-q { white-space: pre-wrap; background: var(--bg-2); padding: 8px 10px; border-radius: 10px; margin: 0; }
.cc-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cc-num { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cc-num b { display: block; }
.cc-num .eyebrow { margin: 0; }
.cc-num .small { display: block; }
.cc-sq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 440px; }
.cc-sqc { display: grid; gap: 2px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); text-align: center; background: var(--surface); }
.cc-sqc b { font-size: 1.1rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cc-sqc small { color: var(--ink-3); font-size: .7rem; }
.cc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cc-wd { display: grid; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); text-align: center; background: var(--surface); }
.cc-wd.soft { border-color: var(--soft-asp); }
.cc-wd.hard { border-color: var(--hard-asp); }
.cc-score { display: grid; justify-items: center; gap: 4px; }
.cc-score-n { font: 600 3.6rem var(--ff-display); color: var(--lav-strong); line-height: 1; }
@media (max-width: 900px) { .cc-ov { grid-template-columns: minmax(0, 1fr); } .cc-head { grid-template-columns: auto minmax(0, 1fr); } .cc-act { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 560px) { .cc-ov-chart { grid-template-columns: minmax(0, 1fr); } .cc-ov-chart .wheel-box { margin-inline: auto; } .cc-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cc-date { grid-template-columns: 78px minmax(0, 1fr); } }
.inbox-chip { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--night); color: #fff; font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-lg); text-decoration: none; }
.inbox-chip svg { width: 18px; height: 18px; color: var(--gold); }
.inbox-chip:hover { background: var(--night-2); }
@media (max-width: 760px) { .inbox-chip { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- «Мои карты»: сохранённые люди в формах ---------- */
.pp-box { position: relative; }
.pp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.pp-label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pp-label svg { width: 16px; height: 16px; color: var(--lav-strong); }
.pp-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pp-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-solid); cursor: pointer; font: 600 .84rem var(--ff-body); color: var(--ink); transition: border-color .2s, background .2s; max-width: 100%; }
.pp-chip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.pp-chip small { font-weight: 500; color: var(--ink-2); font-size: .74rem; white-space: nowrap; }
.pp-chip:hover { border-color: var(--lav); }
.pp-chip.on { border-color: var(--lav-strong); background: var(--lav-soft); }
.pp-chip.more { color: var(--lav-strong); }
.pp-pop { position: absolute; z-index: 45; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 32px)); padding: 10px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.pp-list { max-height: 300px; overflow-y: auto; display: grid; gap: 2px; margin-top: 8px; }
.pp-list button { display: grid; text-align: left; gap: 2px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--ink); font: 600 .9rem var(--ff-body); }
.pp-list button:hover { background: var(--lav-soft); }
.pp-list small { color: var(--ink-2); font-size: .76rem; font-weight: 500; }
.pp-g { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px 2px; }
.pp-manage { display: block; margin-top: 8px; font-size: .84rem; text-align: right; }
.pp-save { font-size: .84rem; }
.card:has(.pp-pop) { z-index: 6; }
/* ---------- главная: натальная карта сразу под первым экраном ---------- */
.nh { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.nh-form h2 { margin: 4px 0 8px; }
.nh-form > p { margin: 0 0 14px; }
.nh-result { min-width: 0; }
.nh-result .wheel-box { max-width: 520px; }
.nh-cap { text-align: center; margin: 8px 0 0; }
.nh-b3 { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.nh-b3 span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: .88rem; }
.nh-go { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
@media (max-width: 900px) { .nh { grid-template-columns: minmax(0, 1fr); } .nh-result .wheel-box { margin-inline: auto; } }

/* ---------- астропроцессор «Мои карты» (astro.html) ---------- */
.astro-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.astro-list { position: sticky; top: calc(var(--header-h) + 16px); padding: 16px; }
.ap-people { display: grid; gap: 4px; margin-top: 10px; max-height: calc(100vh - 300px); overflow-y: auto; }
.ap-person { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink); font: inherit; transition: background .2s, border-color .2s; }
.ap-person:hover { background: var(--lav-soft); }
.ap-person.on { background: var(--surface-solid); border-color: var(--lav); box-shadow: var(--shadow); }
.ap-person .ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lav-soft), var(--rose)); color: var(--lav-strong); font: 600 1rem var(--ff-display); }
.ap-pm { display: grid; min-width: 0; }
.ap-pm b, .ap-pm small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-pm small { color: var(--ink-2); font-size: .76rem; }
.ap-b3 { color: var(--lav-strong); font-size: .95rem; white-space: nowrap; }
@media (max-width: 1000px) { .astro-layout { grid-template-columns: minmax(0, 1fr); } .astro-list { position: static; } .ap-people { max-height: 320px; } }

/* ---------- «Энергетическая работа» (energy.html) ---------- */
.en-facts { margin-top: 6px; }
.en-what { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.en-what p { font-size: 1.02rem; }
.en-who { padding: clamp(20px, 3vw, 30px); }
.en-who h3 { margin: 10px 0 6px; }
.en-who-ic svg { width: 34px; height: 34px; color: var(--rose-strong); }
.en-give { display: flex; gap: 14px; align-items: flex-start; }
.en-give h4 { margin: 2px 0 4px; }
.en-give p { margin: 0; }
.en-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.en-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.en-day { flex: none; display: grid; justify-items: center; gap: 1px; width: 58px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-solid); cursor: pointer; color: var(--ink); font: inherit; transition: border-color .2s, background .2s; }
.en-day small { font-size: .7rem; color: var(--ink-2); }
.en-day b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.en-day:hover { border-color: var(--lav); }
.en-day.on { background: linear-gradient(180deg, #6b47b8 0%, #52329a 100%); border-color: transparent; color: #fff; }
.en-day.on small { color: #e9defc; }
.en-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.en-slot { padding: 9px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-solid); cursor: pointer; color: var(--ink); font: 600 .92rem var(--ff-body); font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s; }
.en-slot:hover { border-color: var(--lav); }
.en-slot.on { background: var(--lav-soft); border-color: var(--lav-strong); color: var(--lav-strong); }
.en-chosen { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .92rem; }
.en-chosen svg { width: 18px; height: 18px; color: var(--ok); }
@media (max-width: 900px) { .en-what, .en-book { grid-template-columns: minmax(0, 1fr); } }
