/* ═════════════════════════════════════════════════════════════════
   CALCULATORS · общий стайл-лист каталога и калькулятора имени
   Подключается на page-calculators.php и page-calculator-name.php
   ═════════════════════════════════════════════════════════════════ */

/* ── переменные локальные (не трогают глобальные сайта) ── */
.calc-catalog-page,
.calc-name-page {
	--cc-page-bg: #faf6f0;
	--cc-paper: #f1eadc;
	--cc-paper-warm: #ede4d3;
	--cc-paper-deep: #e6dcc6;
	--cc-ink: #1a1b2e;
	--cc-ink-soft: #2a2b41;
	--cc-ink-mute: #6c6c7a;
	--cc-ink-faint: #9a9486;
	--cc-gold: #cca656;
	--cc-gold-bright: #e8c878;
	--cc-gold-deep: #ba8923;
	--cc-orange: #f0865f;
	--cc-orange-deep: #d96e47;
	--cc-green: #4f725d;
	--cc-line: rgba(42, 43, 65, 0.1);
	--cc-line-warm: rgba(186, 137, 35, 0.18);
	--cc-line-faint: rgba(42, 43, 65, 0.06);
}
.calc-catalog-page,
.calc-name-page {
	background: var(--cc-page-bg);
	color: var(--cc-ink-soft);
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	line-height: 1.6;
	/* clip вместо hidden — не создаёт scroll-container, не ломает sticky внутри */
	overflow-x: clip;
}
.calc-catalog-page * { box-sizing: border-box; }
.calc-name-page * { box-sizing: border-box; }

/* ── Жёстко ограничиваем .wrap до 1440px по ВНЕШНЕЙ границе на калькуляторных страницах
   (тема по дефолту даёт 1440px content + padding → 1600px outer; здесь нужно ровно 1440px) ── */
.calc-catalog-page .wrap,
.calc-name-page .wrap {
	max-width: 1440px !important;
	padding-left: var(--wrapper-offset);
	padding-right: var(--wrapper-offset);
}

/* На ≤820px тема показывает фикс. навбар внизу (--navbar-height: 5rem),
   добавляем воздух чтобы последний блок не уезжал под него. */
@media (max-width: 820px) {
	.calc-catalog-page,
	.calc-name-page {
		padding-bottom: calc(var(--navbar-height) + 4rem);
	}
}

/* ── breadcrumbs ── */
.calc-breadcrumbs-wrap {
	background: var(--cc-page-bg);
	border-bottom: 1px solid var(--cc-line);
}
.calc-breadcrumbs {
	padding: 16px 0;
	font-size: 14px;
	color: var(--cc-ink-mute);
}
.calc-breadcrumbs a { color: var(--cc-ink-mute); text-decoration: none; transition: color .2s; }
.calc-breadcrumbs a:hover { color: var(--cc-gold-deep); }
.calc-breadcrumbs .sep { margin: 0 12px; color: rgba(42, 43, 65, 0.3); }
.calc-breadcrumbs .current { color: var(--cc-ink); }

/* ═══════════════════════════════════════════════════════════════
   PAGE: КАТАЛОГ КАЛЬКУЛЯТОРОВ
   ═══════════════════════════════════════════════════════════════ */

.calc-hero {
	padding: 96px 0 80px;
	position: relative;
}
.calc-hero-inner { max-width: 760px; position: relative; z-index: 3; }
.calc-hero-eyebrow {
	font-family: 'Forum', serif;
	font-style: italic;
	font-size: 16px;
	color: var(--cc-gold-deep);
	margin-bottom: 24px;
	letter-spacing: 0.04em;
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.calc-hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--cc-gold); }
.calc-hero-h1 {
	font-family: 'Forum', serif;
	font-weight: 400;
	font-size: clamp(40px, 5vw, 76px);
	line-height: 1.02;
	color: var(--cc-ink);
	margin-bottom: 28px;
	letter-spacing: -0.02em;
}
.calc-hero-h1 em { font-style: italic; color: var(--cc-gold-deep); }
.calc-hero-lede {
	font-size: 19px;
	color: var(--cc-ink-soft);
	line-height: 1.55;
	max-width: 720px;
	margin-bottom: 40px;
}
.calc-hero-lede em { font-style: italic; color: var(--cc-gold-deep); }
.calc-hero-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--cc-ink-mute); }
.calc-hero-pill {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 18px;
	background: var(--cc-paper);
	border: 1px solid var(--cc-line);
	border-radius: 999px;
}
.calc-hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cc-green); box-shadow: 0 0 0 4px rgba(79, 114, 93, 0.15); }
.calc-hero-pill .dot.coming { background: var(--cc-orange); box-shadow: 0 0 0 4px rgba(240, 134, 95, 0.15); }
.calc-hero-pill .pill-num { font-family: 'Forum', serif; color: var(--cc-ink); font-size: 17px; font-style: italic; }
.calc-hero-meta a { color: var(--cc-gold-deep); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ── HERO Юпитер (line-art с hover-fill) ── */
.hero-planet-vector {
	position: absolute;
	top: 50%;
	right: -20px;
	width: 800px;
	height: 800px;
	transform: translateY(-50%);
	z-index: 1;
	pointer-events: none;
}
.hero-planet-vector svg { width: 100%; height: 100%; overflow: visible; }
.pv-line { fill: none; stroke: var(--cc-gold-deep); stroke-width: 0.4; opacity: 0.18; }
.pv-line.bold { stroke-width: 0.6; opacity: 0.28; }
.pv-line.faint { stroke-width: 0.3; opacity: 0.08; }
.pv-limb { fill: none; stroke: var(--cc-gold-deep); stroke-width: 1.4; opacity: 0.85; }
.pv-meridian { fill: none; stroke: var(--cc-gold-deep); stroke-width: 0.6; }
.pv-band { fill: none; stroke: var(--cc-gold-deep); stroke-width: 0.7; opacity: 0.28; }
.pv-band.dark { stroke-width: 1; opacity: 0.4; }
.pv-band.zone { stroke-width: 0.4; opacity: 0.13; }
.pv-grs { fill: var(--cc-orange-deep); opacity: 0.5; }
.pv-grs-core { fill: var(--cc-orange-deep); opacity: 0.7; }
.pv-grs-outline { fill: none; stroke: var(--cc-orange-deep); stroke-width: 0.6; opacity: 0.6; }
.pv-moon-orbit { fill: none; stroke: var(--cc-gold); stroke-width: 0.5; opacity: 0.25; stroke-dasharray: 2 4; }
.pv-moon { fill: var(--cc-gold-deep); opacity: 0.85; }
.pv-moon.bright { fill: var(--cc-orange-deep); opacity: 0.9; }
.pv-pole { fill: var(--cc-gold-deep); opacity: 0.7; }
.pv-fill { fill: url(#pv-jupiter-fill); opacity: 0; transition: opacity 0.7s ease; }
.pv-fill-band { opacity: 0; mix-blend-mode: multiply; transition: opacity 0.6s ease; }
.pv-fill-band.light { mix-blend-mode: soft-light; }
.hero-planet-vector.is-filled .pv-fill { opacity: 0.95; }
.hero-planet-vector.is-filled .pv-fill-band { opacity: 0.45; }
.hero-planet-vector.is-filled .pv-fill-band.light { opacity: 0.35; }
.hero-planet-vector .pv-line, .hero-planet-vector .pv-meridian, .hero-planet-vector .pv-band, .hero-planet-vector .pv-limb { transition: opacity 0.5s ease; }
.hero-planet-vector.is-filled .pv-line, .hero-planet-vector.is-filled .pv-meridian, .hero-planet-vector.is-filled .pv-band { opacity: 0; }
.hero-planet-vector.is-filled .pv-limb { opacity: 0.4; }
.hero-planet-vector.is-filled .pv-grs { opacity: 0.85; }
.hero-planet-vector.is-filled .pv-grs-core { opacity: 1; }
.hero-planet-vector.is-filled .pv-grs-outline { opacity: 0; }
body.is-jupiter-near { cursor: pointer; }

/* ── Section common ── */
.calc-section { padding: 64px 0; }
.calc-section-header {
	display: flex; justify-content: space-between; align-items: end;
	margin-bottom: 48px; gap: 32px;
	border-bottom: 1px solid var(--cc-line-faint);
	padding-bottom: 24px;
}
.calc-section-header h2 {
	font-family: 'Forum', serif;
	font-weight: 400;
	font-size: 7.6rem;
	color: var(--cc-ink);
	line-height: 90%;
	letter-spacing: -0.015em;
}
.calc-section-header h2 em { font-style: italic; color: var(--cc-gold-deep); }
.calc-section-eyebrow { font-family: 'Forum', serif; font-style: italic; font-size: 18px; color: var(--cc-gold-deep); margin-bottom: 8px; }
.calc-section-meta { font-size: 18px; color: var(--cc-ink-mute); line-height: 1.5; text-align: right; max-width: 320px; }

/* ── Featured карточка ── */
.calc-featured {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 80px;
	align-items: stretch;
	padding: 48px 64px;
	background: linear-gradient(135deg, var(--cc-paper) 0%, var(--cc-paper-warm) 100%);
	border: 1px solid var(--cc-line-warm);
	border-radius: 16px;
	position: relative;
	overflow: hidden;
	color: inherit;
	box-shadow: 0 8px 24px rgba(186, 137, 35, 0.06);
}
.calc-featured::before { content: ''; position: absolute; top: -120px; right: -100px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(204, 166, 86, 0.12), transparent 65%); pointer-events: none; }
/* Карта планет: max-width 460 (как было), но SVG растягивается до высоты колонки
   через preserveAspectRatio (defaults к "xMidYMid meet"). Колонки на грид
   align-items:stretch — высоту определяет content правой колонки, SVG
   масштабируется внутри, не задавая высоту карточки. */
.calc-featured-preview { position: relative; max-width: 460px; margin: 0 auto; width: 100%; padding-bottom: 44px; display: flex; align-items: center; justify-content: center; }
/* SVG заполняет контейнер по обоим осям, preserveAspectRatio (defaults
   к "xMidYMid meet") сохраняет квадратные пропорции, центрируя контент. */
.calc-featured-preview svg { width: 100%; height: 100%; max-height: 460px; overflow: visible; display: block; }
.preview-orbit { fill: none; stroke: var(--cc-gold); stroke-width: 0.5; opacity: 0.45; }
.preview-orbit.bright { opacity: 0.7; stroke-width: 0.7; }
.preview-sun-halo { fill: url(#previewSunHalo); animation: cc-sun-pulse 6s ease-in-out infinite; transform-origin: 200px 200px; }
.preview-sun { fill: url(#previewSunGrad); }
@keyframes cc-sun-pulse { 0%,100%{transform:scale(1);opacity:.6} 50%{transform:scale(1.06);opacity:1} }
.preview-orb-grp { transform-origin: 200px 200px; }
.preview-orb-1 { animation: cc-rot 14s linear infinite; }
.preview-orb-2 { animation: cc-rot 22s linear infinite; }
.preview-orb-3 { animation: cc-rot 32s linear infinite; }
.preview-orb-4 { animation: cc-rot 46s linear infinite; }
.preview-orb-5 { animation: cc-rot 65s linear infinite; }
@keyframes cc-rot { to { transform: rotate(360deg); } }
.calc-preview-label { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-family: 'Forum', serif; font-style: italic; font-size: 18px; color: var(--cc-ink-faint); letter-spacing: 0.04em; white-space: nowrap; text-align: center; }

.calc-featured-tag {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
	padding: 6px 12px; border-radius: 999px; margin-bottom: 24px;
	background: rgba(79, 114, 93, 0.12); color: var(--cc-green); border: 1px solid rgba(79, 114, 93, 0.25);
}
.calc-featured-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cc-green); }
.calc-featured h3 {
	font-family: 'Forum', serif;
	font-weight: 400;
	font-size: clamp(34px, 3.6vw, 48px);
	color: var(--cc-ink);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-bottom: 10px;
}
.calc-featured h3 em { font-style: italic; color: var(--cc-gold-deep); }
.calc-featured-desc { font-size: 18px; color: var(--cc-ink-soft); line-height: 1.6; margin-bottom: 24px; max-width: 520px; }
.calc-featured-desc > p { margin: 0; }
.calc-featured-desc > p + p { margin-top: 12px; }
.calc-featured-features { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.calc-featured-features li { font-size: 18px; color: var(--cc-ink-soft); padding-left: 26px; position: relative; line-height: 1.5; }
.calc-featured-features li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: var(--cc-gold-deep); font-size: 14px; }
.calc-featured-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.calc-featured-cta {
	display: inline-flex; align-items: center; gap: 14px;
	background: var(--cc-ink); color: var(--cc-page-bg);
	padding: 18px 32px; font-family: 'Forum', serif; font-size: 19px;
	border-radius: 999px; text-decoration: none;
	transition: background .3s, transform .3s, gap .3s;
}
.calc-featured-cta::after { content: '→'; }
.calc-featured-cta:hover { background: var(--cc-gold-deep); transform: translateY(-2px); gap: 18px; }
.calc-featured-meta { font-family: 'Forum', serif; font-style: italic; font-size: 18px; color: var(--cc-ink-mute); }

/* ── Coming soon grid ── */
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.calc-card {
	background: var(--cc-page-bg);
	border: 1px solid var(--cc-line);
	border-radius: 12px;
	padding: 36px 32px 32px;
	position: relative; overflow: hidden;
	transition: transform .4s, box-shadow .4s, border-color .4s;
	display: flex; flex-direction: column;
	min-height: 320px;
}
.calc-card:hover { transform: translateY(-3px); border-color: rgba(186, 137, 35, 0.3); box-shadow: 0 16px 32px rgba(186, 137, 35, 0.06); }
.calc-card-icon { width: 64px; height: 64px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; color: var(--cc-gold-deep); opacity: 0.7; transition: opacity .3s, transform .4s; }
.calc-card:hover .calc-card-icon { opacity: 1; transform: rotate(-6deg); }
.calc-card-icon svg { width: 100%; height: 100%; }
.calc-card h3 { font-family: 'Forum', serif; font-weight: 400; font-size: 24px; color: var(--cc-ink); margin-bottom: 14px; letter-spacing: -0.01em; line-height: 1.2; }
.calc-card h3 em { font-style: italic; color: var(--cc-gold-deep); }
.calc-card-desc { font-size: 18px; color: var(--cc-ink-soft); line-height: 1.5; margin-bottom: auto; }
.calc-card-meta { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--cc-line); font-family: 'Forum', serif; font-style: italic; font-size: 14px; color: var(--cc-ink-mute); display: flex; justify-content: space-between; align-items: center; }
.calc-card-tag {
	display: inline-flex; align-items: center; gap: 6px;
	background: rgba(240, 134, 95, 0.1); color: var(--cc-orange-deep);
	border: 1px solid rgba(240, 134, 95, 0.3);
	font-family: 'Manrope', sans-serif; font-size: 14px;
	letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
	padding: 4px 10px; border-radius: 999px;
	position: absolute; top: 24px; right: 24px;
}
.calc-card-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cc-orange); }

/* ── SEO sections ── */
.calc-seo-section { padding: 80px 0; border-top: 1px solid var(--cc-line); }
.calc-seo-section:has(.calc-final-cta) { padding-bottom: 24px; border-top: none; }
.calc-catalog-page > main:last-child,
.calc-catalog-page main { padding-bottom: 0; }
.calc-catalog-page + .footer { margin-top: 0; }
.calc-seo-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.calc-seo-grid h2 {
	font-family: 'Forum', serif;
	font-weight: 400;
	font-size: 7.6rem;
	color: var(--cc-ink);
	line-height: 90%;
	letter-spacing: -0.015em;
	position: sticky; top: 32px;
}
.calc-seo-grid h2 em { font-style: italic; color: var(--cc-gold-deep); }
.calc-seo-content p { font-size: 18px; color: var(--cc-ink-soft); line-height: 1.6; margin-bottom: 22px; }
.calc-seo-content em { font-style: italic; color: var(--cc-gold-deep); }
.calc-seo-content strong { color: var(--cc-ink); font-weight: 500; }

.calc-how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.calc-how-step { background: var(--cc-paper); border: 1px solid var(--cc-line); border-radius: 10px; padding: 36px 32px 32px; }
.calc-how-step .step-num { font-family: 'Forum', serif; font-style: italic; font-size: 56px; color: var(--cc-gold); line-height: 1; margin-bottom: 18px; }
.calc-how-step h4 { font-family: 'Forum', serif; font-weight: 400; font-size: 22px; color: var(--cc-ink); margin-bottom: 12px; line-height: 1.2; }
.calc-how-step p { font-size: 18px; color: var(--cc-ink-soft); line-height: 1.5; margin: 0; }

.calc-final-cta { padding: 36px 40px; background: linear-gradient(135deg, var(--cc-paper-warm), var(--cc-paper-deep)); border: 1px solid var(--cc-line-warm); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.calc-final-text { font-family: 'Forum', serif; font-size: 22px; color: var(--cc-ink); line-height: 1.4; flex: 1; min-width: 280px; margin: 0; }
.calc-final-text em { font-style: italic; color: var(--cc-gold-deep); }
.calc-final-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.calc-btn-primary { display: inline-flex; align-items: center; gap: 12px; background: var(--cc-ink); color: var(--cc-page-bg); padding: 16px 28px; font-family: 'Forum', serif; font-size: 16px; border-radius: 999px; text-decoration: none; transition: background .3s, transform .3s; }
.calc-btn-primary::after { content: '→'; }
.calc-btn-primary:hover { background: var(--cc-gold-deep); transform: translateY(-2px); }
.calc-btn-secondary { display: inline-flex; align-items: center; padding: 15px 24px; font-family: 'Forum', serif; font-size: 16px; border-radius: 999px; border: 1px solid var(--cc-line); text-decoration: none; color: var(--cc-ink); transition: border-color .3s, color .3s; }
.calc-btn-secondary:hover { border-color: var(--cc-gold-deep); color: var(--cc-gold-deep); }

@media (max-width: 1280px) { .hero-planet-vector { right: -40px; opacity: 0.85; } }
@media (max-width: 1120px) {
	.calc-section-header h2,
	.calc-seo-grid h2 { font-size: 5.9rem; }
}
@media (max-width: 980px) {
	.hero-planet-vector { display: none; }
	.calc-featured { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
	.calc-featured-preview { max-width: 300px; padding-top: 16px; padding-bottom: 36px; }
	.calc-grid { grid-template-columns: 1fr; }
	.calc-seo-grid { grid-template-columns: 1fr; gap: 32px; }
	.calc-seo-grid h2 { position: static; }
	.calc-how-steps { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.calc-hero { padding: 56px 0 48px; }
	.calc-hero-meta { gap: 16px; }
	.calc-hero-pill { padding: 8px 14px; font-size: 14px; }
	.calc-section { padding: 48px 0; }
	.calc-section-header { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 18px; margin-bottom: 32px; }
	.calc-section-meta { text-align: left; max-width: 100%; }
	.calc-featured { padding: 28px 20px; gap: 28px; border-radius: 12px; }
	.calc-featured h3 { margin-bottom: 8px; }
	.calc-featured-features { margin-bottom: 28px; }
	.calc-featured-cta { padding: 14px 24px; font-size: 17px; }
	.calc-card { padding: 28px 22px 24px; min-height: auto; }
	.calc-seo-section { padding: 56px 0; }
	.calc-final-cta { padding: 24px 22px; gap: 20px; }
	.calc-final-text { font-size: 18px; }
	.calc-btn-primary, .calc-btn-secondary { padding: 12px 20px; font-size: 14px; }
}
@media (max-width: 580px) {
	/* Mobile rules: текст ≥13px (минимум для тегов), описания ≥18px, FAQ +2 к десктопу.
	   Заголовки по global: .h1=46/0.755, .h2=42/0.763, .h3=20/1.11, .h4=18/1.11. */
	.calc-hero-h1 { font-size: 46px; line-height: 0.755; margin-bottom: 20px; }
	.calc-hero-eyebrow { font-size: 16px; margin-bottom: 18px; }
	.calc-hero-lede { font-size: 18px; line-height: 1.4; margin-bottom: 28px; }
	.calc-hero-pill { font-size: 14px; }
	.calc-section-header h2 { font-size: 42px; line-height: 0.95; }
	.calc-section-eyebrow { font-size: 16px; }
	.calc-section-meta { font-size: 18px; line-height: 1.4; }
	.calc-card { padding: 24px 18px 20px; }
	.calc-card h3 { font-size: 26px; line-height: 1.15; }
	.calc-card-desc { font-size: 18px; line-height: 1.4; }
	.calc-card-icon { width: 52px; height: 52px; margin-bottom: 18px; }
	/* Tag шире, по центру относительно фона на мобиле */
	.calc-featured-tag {
		margin-bottom: 18px;
		padding: 6px 22px;
		font-size: 13px;
		display: flex;
		justify-content: center;
		text-align: center;
		width: 100%;
		max-width: 360px;
	}
	.calc-featured h3 { font-size: 32px; line-height: 1.05; }
	.calc-featured-desc { font-size: 18px; line-height: 1.4; margin-bottom: 24px; }
	/* Лейбл «живая карта 9 планет внутри» — меньше шрифт чтобы влезал в одну строку на узких экранах */
	.calc-preview-label { font-size: 15px; }
	.calc-featured-features li { font-size: 18px; line-height: 1.4; }
	.calc-featured-cta { font-size: 16px; }
	.calc-featured-meta { font-size: 16px; }
	.calc-final-cta { flex-direction: column; align-items: stretch; padding: 22px 18px; }
	.calc-final-actions { flex-direction: column; }
	.calc-final-text { font-size: 18px; line-height: 1.3; }
	.calc-btn-primary, .calc-btn-secondary { justify-content: center; font-size: 16px; }
	.calc-how-step { padding: 28px 22px 22px; }
	.calc-how-step .step-num { font-size: 44px; margin-bottom: 12px; }
	.calc-how-step h4 { font-size: 26px; line-height: 1.15; }
	.calc-how-step p { font-size: 18px; line-height: 1.4; }
	.calc-seo-grid h2 { font-size: 42px; line-height: 0.95; }
	.calc-seo-content p { font-size: 18px; line-height: 1.4; }
	.calc-card-tag { font-size: 13px; }
	.calc-card-meta { font-size: 14px; }
	.calc-breadcrumbs { padding: 12px 0; font-size: 13px; }
	.calc-breadcrumbs .sep { margin: 0 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   ЛУННЫЙ КАЛЕНДАРЬ · обычный + садоводу (тёмная плашка)
   На page-calculators.php между Featured «значение имени» и Coming Soon
   ═══════════════════════════════════════════════════════════════ */

.calc-luna {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 80px;
	align-items: stretch;
	padding: 56px 64px;
	background: linear-gradient(160deg, #0e1124, #06070d 60%, #0a0b16);
	border: 1px solid rgba(232,200,120,0.28);
	border-radius: 16px;
	position: relative;
	overflow: hidden;
	color: #ede4d3;
	box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.calc-luna::before {
	content: ''; position: absolute; inset: 0;
	background-image:
		radial-gradient(2px 2px at 6% 12%, rgba(232,200,120,0.7), transparent),
		radial-gradient(1.5px 1.5px at 24% 38%, rgba(255,255,255,0.55), transparent),
		radial-gradient(1.6px 1.6px at 88% 18%, rgba(232,200,120,0.5), transparent),
		radial-gradient(1.2px 1.2px at 92% 78%, rgba(232,200,120,0.4), transparent),
		radial-gradient(1.4px 1.4px at 64% 92%, rgba(255,255,255,0.4), transparent),
		radial-gradient(1.6px 1.6px at 42% 12%, rgba(255,255,255,0.5), transparent),
		radial-gradient(1.2px 1.2px at 16% 78%, rgba(255,255,255,0.4), transparent);
	pointer-events: none; z-index: 1;
}
.calc-luna > * { position: relative; z-index: 2; }

.calc-luna-nebula {
	position: absolute; inset: -20%;
	background:
		radial-gradient(ellipse 60% 80% at 30% 50%, rgba(150, 80, 180, 0.28), transparent 60%),
		radial-gradient(ellipse 80% 50% at 70% 60%, rgba(80, 120, 200, 0.22), transparent 65%);
	filter: blur(14px);
	transform: translateZ(0);
	pointer-events: none; z-index: 0;
}

.calc-luna-visual {
	position: relative; max-width: 460px; margin: 0 auto;
	width: 100%; min-height: 460px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding-bottom: 44px;
}
.calc-luna-moon {
	width: 100%; max-width: 380px; max-height: 380px;
	overflow: visible; display: block;
	position: relative; z-index: 4;
	filter: drop-shadow(0 0 24px rgba(150, 80, 180, 0.18));
}
.calc-luna-preview-label {
	position: absolute; bottom: 0; left: 50%;
	transform: translateX(-50%);
	font-family: 'Forum', serif; font-style: italic;
	font-size: 20px; color: rgba(232,200,120,0.7);
	letter-spacing: 0.04em; white-space: nowrap; text-align: center;
	z-index: 4;
}
.calc-luna-aura {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%) translateY(-22px);
	width: 100%; max-width: 380px; aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232,200,120,0.16), transparent 55%);
	animation: calc-luna-aura 5s ease-in-out infinite;
	z-index: 2; pointer-events: none;
}
@keyframes calc-luna-aura {
	0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) translateY(-22px) scale(1); }
	50%      { opacity: 1;   transform: translate(-50%, -50%) translateY(-22px) scale(1.06); }
}

.calc-luna-rings {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%) translateY(-22px) rotate(-22deg);
	width: 100%; max-width: 480px; aspect-ratio: 1;
	pointer-events: none; z-index: 1;
}
.calc-luna-ring {
	position: absolute; inset: 0;
	border: 1px solid rgba(232,200,120,0.32);
	border-radius: 50%;
	transform: scaleY(0.22);
}
.calc-luna-ring.r1 { inset: -2%;  border-color: rgba(232,200,120,0.42); }
.calc-luna-ring.r2 { inset: -10%; border-color: rgba(232,200,120,0.28); border-style: dashed; }
.calc-luna-ring.r3 { inset: -18%; border-color: rgba(232,200,120,0.18); }
.calc-luna-ring.r4 { inset: -26%; border-color: rgba(255,255,255,0.10); border-style: dotted; }

.calc-luna-bigdipper {
	position: absolute; bottom: 80px; left: 28px;
	width: 240px; height: 120px;
	pointer-events: none; z-index: 1;
}
.calc-luna-bigdipper .line { stroke: rgba(255,255,255,0.32); stroke-width: 0.9; stroke-dasharray: 2 4; fill: none; }
.calc-luna-bigdipper .star { fill: #fff; opacity: 0.95; animation: calc-luna-twinkle 3.6s ease-in-out infinite; }
.calc-luna-bigdipper .star.dim { animation: calc-luna-twinkle-dim 4.2s ease-in-out infinite; }
.calc-luna-bigdipper .star.bright { filter: drop-shadow(0 0 4px rgba(255,255,255,0.7)); animation: calc-luna-twinkle-bright 3.2s ease-in-out infinite; }
.calc-luna-bigdipper circle:nth-of-type(1) { animation-delay: 0s;   }
.calc-luna-bigdipper circle:nth-of-type(2) { animation-delay: 0.9s; animation-duration: 4.0s; }
.calc-luna-bigdipper circle:nth-of-type(3) { animation-delay: 1.6s; animation-duration: 3.4s; }
.calc-luna-bigdipper circle:nth-of-type(4) { animation-delay: 2.4s; animation-duration: 4.6s; }
.calc-luna-bigdipper circle:nth-of-type(5) { animation-delay: 0.4s; animation-duration: 3.6s; }
.calc-luna-bigdipper circle:nth-of-type(6) { animation-delay: 1.3s; animation-duration: 4.2s; }
.calc-luna-bigdipper circle:nth-of-type(7) { animation-delay: 2.1s; animation-duration: 3.5s; }
@keyframes calc-luna-twinkle        { 0%, 100% { opacity: 1;    } 50% { opacity: 0.42; } }
@keyframes calc-luna-twinkle-bright { 0%, 100% { opacity: 1;    } 50% { opacity: 0.55; } }
@keyframes calc-luna-twinkle-dim    { 0%, 100% { opacity: 0.75; } 50% { opacity: 0.22; } }

.calc-luna-debris {
	position: absolute; border-radius: 50%;
	background: rgba(232,200,120,0.7);
	box-shadow: 0 0 6px rgba(232,200,120,0.5);
	pointer-events: none; z-index: 3;
	animation: calc-luna-debris 18s ease-in-out infinite;
}
.calc-luna-debris.d1  { width: 4px; height: 4px; top: 8%;  left: 12%; animation-delay: 0s;   --dx: 22px;  --dy: 18px; }
.calc-luna-debris.d2  { width: 3px; height: 3px; top: 22%; left: 78%; animation-delay: 1.2s; --dx: -28px; --dy: 14px; }
.calc-luna-debris.d3  { width: 2px; height: 2px; top: 56%; left: 88%; animation-delay: 2.4s; --dx: -18px; --dy: -22px; }
.calc-luna-debris.d4  { width: 5px; height: 5px; top: 78%; left: 18%; animation-delay: 3.6s; --dx: 24px;  --dy: -16px; }
.calc-luna-debris.d5  { width: 3px; height: 3px; top: 38%; left: 6%;  animation-delay: 4.8s; --dx: 18px;  --dy: 22px; }
.calc-luna-debris.d6  { width: 4px; height: 4px; top: 88%; left: 58%; animation-delay: 6.0s; --dx: -14px; --dy: -28px; }
.calc-luna-debris.d7  { width: 2px; height: 2px; top: 14%; left: 48%; animation-delay: 1.8s; --dx: 16px;  --dy: 22px; }
.calc-luna-debris.d8  { width: 3px; height: 3px; top: 64%; left: 8%;  animation-delay: 3.0s; --dx: 28px;  --dy: -10px; animation-duration: 22s; }
.calc-luna-debris.d9  { width: 6px; height: 6px; top: 30%; left: 28%; animation-delay: 5.2s; --dx: -16px; --dy: 26px; animation-duration: 24s; }
.calc-luna-debris.d10 { width: 2px; height: 2px; top: 72%; left: 72%; animation-delay: 7.5s; --dx: -22px; --dy: -14px; animation-duration: 20s; }
.calc-luna-debris.d11 { width: 4px; height: 4px; top: 6%;  left: 86%; animation-delay: 8.5s; --dx: -24px; --dy: 20px; animation-duration: 26s; }
.calc-luna-debris.d12 { width: 3px; height: 3px; top: 48%; left: 92%; animation-delay: 9.5s; --dx: -30px; --dy: 16px; animation-duration: 22s; }
@keyframes calc-luna-debris {
	0%, 100% { transform: translate(0, 0); opacity: 0.45; }
	50%      { transform: translate(var(--dx), var(--dy)); opacity: 1; }
}

.calc-luna-comets { position: absolute; inset: -5%; pointer-events: none; overflow: hidden; z-index: 5; }
.calc-luna-comets span {
	position: absolute; display: block;
	width: 140px; height: 2px;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.95) 88%, #fff 100%);
	border-radius: 2px;
	box-shadow: 0 0 8px rgba(255,255,255,0.85), 0 0 22px rgba(180,210,255,0.55);
	opacity: 0; transform-origin: center; will-change: transform, opacity;
}
.calc-luna-comets span:nth-child(1) { top: 8%;  left: -15%; animation: calc-luna-comet-1 8s ease-out 0.5s infinite; }
.calc-luna-comets span:nth-child(2) { top: 24%; left: 110%; animation: calc-luna-comet-2 9s ease-out 2s   infinite; }
.calc-luna-comets span:nth-child(3) { top: 56%; left: -15%; animation: calc-luna-comet-3 10s ease-out 3.5s infinite; }
.calc-luna-comets span:nth-child(4) { top: 38%; left: 110%; animation: calc-luna-comet-2 8s ease-out 5s   infinite; }
.calc-luna-comets span:nth-child(5) { top: 72%; left: -15%; animation: calc-luna-comet-1 9s ease-out 6.5s infinite; }
.calc-luna-comets span:nth-child(6) { top: 18%; left: -15%; animation: calc-luna-comet-3 11s ease-out 8s  infinite; }
@keyframes calc-luna-comet-1 {
	0%   { opacity: 0; transform: rotate(30deg) translate(0,0) scaleX(0.3); }
	8%   { opacity: 1; transform: rotate(30deg) translate(80px,0) scaleX(1); }
	55%  { opacity: 0.9; transform: rotate(30deg) translate(720px,0) scaleX(1); }
	62%, 100% { opacity: 0; transform: rotate(30deg) translate(720px,0) scaleX(1); }
}
@keyframes calc-luna-comet-2 {
	0%   { opacity: 0; transform: rotate(155deg) translate(0,0) scaleX(0.3); }
	8%   { opacity: 1; transform: rotate(155deg) translate(80px,0) scaleX(1); }
	55%  { opacity: 0.9; transform: rotate(155deg) translate(720px,0) scaleX(1); }
	62%, 100% { opacity: 0; transform: rotate(155deg) translate(720px,0) scaleX(1); }
}
@keyframes calc-luna-comet-3 {
	0%   { opacity: 0; transform: rotate(14deg) translate(0,0) scaleX(0.3); }
	8%   { opacity: 0.95; transform: rotate(14deg) translate(80px,0) scaleX(1); }
	55%  { opacity: 0.85; transform: rotate(14deg) translate(720px,0) scaleX(1); }
	62%, 100% { opacity: 0; transform: rotate(14deg) translate(720px,0) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
	.calc-luna-comets span,
	.calc-luna-debris,
	.calc-luna-aura,
	.calc-luna-bigdipper .star { animation: none; opacity: 0.7; }
}

.calc-luna-info { display: flex; flex-direction: column; }
.calc-luna h3 {
	font-family: 'Forum', serif; font-weight: 400;
	font-size: clamp(34px, 3.6vw, 48px);
	color: #ede4d3; letter-spacing: -0.02em;
	line-height: 1.05; margin: 0 0 18px;
}
.calc-luna h3 em { font-style: italic; color: #e8c878; }
.calc-luna-desc { font-size: 18px; color: #a8a08c; line-height: 1.6; margin: 0 0 28px; max-width: 540px; }
.calc-luna-features { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.calc-luna-features li { font-size: 18px; color: #c4bda9; padding-left: 26px; position: relative; line-height: 1.5; }
.calc-luna-features li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: #fff; font-size: 14px; }

/* CTA — pill, ультра-простой transition (без box-shadow в нём → не виснет) */
.calc-luna-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: auto; }
.calc-luna-cta {
	display: inline-flex; align-items: center; gap: 14px;
	background: #e8c878; color: #06070d;
	padding: 18px 32px;
	font-family: 'Forum', serif; font-size: 19px;
	border-radius: 999px; text-decoration: none;
	border: 1px solid #e8c878;
	box-shadow: 0 6px 20px rgba(232,200,120,0.20);
	transform: translateZ(0);
	isolation: isolate;
	transition:
		background-color .2s ease,
		color            .2s ease,
		border-color     .2s ease,
		transform        .2s ease;
}
.calc-luna-cta::after { content: '→'; display: inline-block; transition: transform .2s ease; }
.calc-luna-cta:hover {
	background: #fff; border-color: #fff; color: #06070d;
	transform: translateZ(0) translateY(-2px);
}
.calc-luna-cta:hover::after { transform: translateX(3px); }
.calc-luna-cta-meta { font-family: 'Forum', serif; font-style: italic; font-size: 18px; color: rgba(168,160,140,0.9); }

/* SAD-вариант (садоводу) — зелёные акценты */
.calc-luna.is-sad .calc-luna-nebula {
	background:
		radial-gradient(ellipse 60% 80% at 30% 50%, rgba(79, 114, 93, 0.32), transparent 60%),
		radial-gradient(ellipse 80% 50% at 70% 60%, rgba(120, 180, 100, 0.22), transparent 65%);
}
.calc-luna.is-sad .calc-luna-moon { filter: drop-shadow(0 0 24px rgba(79, 114, 93, 0.28)); }
.calc-luna.is-sad .calc-luna-aura { background: radial-gradient(circle, rgba(168, 213, 154, 0.18), transparent 55%); }
.calc-luna.is-sad h3 em { color: #a8d59a; }
.calc-luna.is-sad .calc-luna-ring.r1 { border-color: rgba(168, 213, 154, 0.42); }
.calc-luna.is-sad .calc-luna-ring.r2 { border-color: rgba(168, 213, 154, 0.28); border-style: dashed; }
.calc-luna.is-sad .calc-luna-ring.r3 { border-color: rgba(168, 213, 154, 0.18); }
.calc-luna.is-sad .calc-luna-preview-label { color: rgba(168, 213, 154, 0.65); }
.calc-luna.is-sad .calc-luna-preview-label::before { content: '✿ '; color: #a8d59a; }
.calc-luna.is-sad .calc-luna-preview-label::after  { content: ' ✿'; color: #a8d59a; }
.calc-luna.is-sad .calc-luna-cta {
	background: #4f725d; border-color: #4f725d; color: #faf6f0;
	box-shadow: 0 6px 20px rgba(79, 114, 93, 0.25);
}
.calc-luna.is-sad .calc-luna-cta:hover {
	background: #fff; border-color: #fff; color: #1a1b2e;
	transform: translateZ(0) translateY(-2px);
}

/* Mobile — стэк (визуал сверху, инфо снизу) */
@media (max-width: 820px) {
	.calc-luna {
		grid-template-columns: 1fr;
		gap: 24px; padding: 32px 24px; border-radius: 14px;
	}
	.calc-luna-visual { max-width: 320px; min-height: 360px; padding-bottom: 36px; }
	.calc-luna-moon { max-width: 280px; max-height: 280px; }
	.calc-luna-preview-label { font-size: 19px; }
	.calc-luna h3 { font-size: 28px; line-height: 1.05; margin-bottom: 12px; }
	.calc-luna-desc { font-size: 18px; margin-bottom: 22px; }
	.calc-luna-features li { font-size: 18px; }
	.calc-luna-cta { padding: 14px 28px; font-size: 17px; }
	.calc-luna-comets span { width: 100px; }
	/* Большая Медведица в визуале (не на инфо-секции) */
	.calc-luna-bigdipper { width: 180px; height: 90px; bottom: auto; top: 280px; left: 14px; }
	/* Кометы только в верхней части (визуал), не в info */
	.calc-luna-comets { top: -20px; left: -5%; right: -5%; bottom: auto; height: 420px; }
}
@media (max-width: 580px) {
	.calc-luna-moon { max-width: 240px; max-height: 240px; }
	.calc-luna-bigdipper { width: 140px; height: 70px; top: 250px; left: 12px; }
	.calc-luna-comets { height: 380px; }
}

/* ═══════════════════════════════════════════════════════════════
   КАЛЬКУЛЯТОР ИМЕНИ ПО ПЛАНЕТАМ — dark featured (Astronomical HUD)
   Заменяет светлый .calc-featured. Объединяет каталог в единый dark-style.
   ═══════════════════════════════════════════════════════════════ */

.calc-featured-d {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 80px;
	align-items: stretch;
	padding: 56px 64px;
	background:
		/* центр — светло-синий spotlight */
		radial-gradient(ellipse at 50% 50%, rgba(96, 142, 220, 0.22), transparent 60%),
		/* верх-право — тёплое золото */
		radial-gradient(ellipse at 70% 30%, rgba(232, 200, 120, 0.12), transparent 50%),
		/* низ-лево — фиолетовое (как на странице calc-name) */
		radial-gradient(ellipse at 20% 80%, rgba(120, 90, 180, 0.20), transparent 60%),
		/* база */
		linear-gradient(160deg, #0e1124, #06070d 60%, #0a0b16);
	border: 1px solid rgba(232,200,120,0.28);
	border-radius: 16px;
	position: relative; overflow: hidden;
	color: #ede4d3;
	box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
/* Звёздное поле — все звёзды светло-жёлтые */
.calc-featured-d::before {
	content: ''; position: absolute; inset: 0;
	background-image:
		radial-gradient(2px 2px at 6% 12%,    rgba(251,216,144,0.85), transparent),
		radial-gradient(1.5px 1.5px at 24% 38%, rgba(251,216,144,0.7), transparent),
		radial-gradient(1.6px 1.6px at 88% 18%, rgba(251,216,144,0.75), transparent),
		radial-gradient(1.2px 1.2px at 92% 78%, rgba(251,216,144,0.6), transparent),
		radial-gradient(1.4px 1.4px at 64% 92%, rgba(251,216,144,0.65), transparent),
		radial-gradient(1.6px 1.6px at 42% 12%, rgba(251,216,144,0.7), transparent),
		radial-gradient(1.2px 1.2px at 16% 78%, rgba(251,216,144,0.6), transparent),
		radial-gradient(1.4px 1.4px at 76% 56%, rgba(251,216,144,0.65), transparent),
		radial-gradient(1.6px 1.6px at 30% 65%, rgba(251,216,144,0.7), transparent),
		radial-gradient(1.2px 1.2px at 56% 28%, rgba(251,216,144,0.6), transparent);
	pointer-events: none; z-index: 1;
}
.calc-featured-d > * { position: relative; z-index: 2; }

.calc-featured-d-visual {
	position: relative; max-width: 540px; margin: 0 auto;
	width: 100%; min-height: 540px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding-bottom: 44px;
}
.calc-featured-d-visual svg.solar {
	width: 100%; max-width: 500px; max-height: 500px;
	overflow: visible; display: block;
	position: relative; z-index: 4;
}
.calc-featured-d-preview-label {
	position: absolute; bottom: 0; left: 50%;
	transform: translateX(-50%);
	font-family: 'Forum', serif; font-style: italic;
	font-size: 20px; color: rgba(251,216,144,0.75);
	letter-spacing: 0.04em; white-space: nowrap; text-align: center;
	z-index: 5;
}

/* Astronomical HUD — полярная сетка + RA/Dec/AU подписи */
.calc-featured-d-hud { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.calc-featured-d-hud .grid {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 100%; max-width: 540px; aspect-ratio: 1;
}
.calc-featured-d-hud .grid .axis {
	position: absolute; left: 50%; top: 0; bottom: 0;
	width: 1px;
	background: linear-gradient(to bottom, transparent, rgba(232,200,120,0.20) 20%, rgba(232,200,120,0.20) 80%, transparent);
	transform-origin: 50% 50%;
}
.calc-featured-d-hud .grid .axis.a2 { transform: rotate(45deg); }
.calc-featured-d-hud .grid .axis.a3 { transform: rotate(90deg); }
.calc-featured-d-hud .grid .axis.a4 { transform: rotate(135deg); }
.calc-featured-d-hud .grid .ring {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	border: 1px dashed rgba(232,200,120,0.18);
	border-radius: 50%;
}
.calc-featured-d-hud .grid .ring.r1 { width: 30%; height: 30%; }
.calc-featured-d-hud .grid .ring.r2 { width: 60%; height: 60%; }
.calc-featured-d-hud .grid .ring.r3 { width: 90%; height: 90%; }
.calc-featured-d-hud .label {
	position: absolute;
	font-family: 'Manrope', sans-serif;
	font-size: 10px; letter-spacing: 0.3em;
	color: rgba(251,216,144,0.5); text-transform: uppercase;
}
.calc-featured-d-hud .label.tl { top: 24px; left: 24px; }
.calc-featured-d-hud .label.tr { top: 24px; right: 24px; text-align: right; }
.calc-featured-d-hud .label.bl { bottom: 24px; left: 24px; }
.calc-featured-d-hud .label.br { bottom: 24px; right: 24px; text-align: right; }
.calc-featured-d-hud .au {
	position: absolute; left: 50%;
	font-family: 'Forum', serif; font-style: italic;
	font-size: 10px; color: rgba(251,216,144,0.45);
	letter-spacing: 0.16em; transform: translateX(-50%);
}
.calc-featured-d-hud .au.au1 { top: calc(50% - 200px); }
.calc-featured-d-hud .au.au2 { top: calc(50% - 130px); }
.calc-featured-d-hud .au.au3 { top: calc(50% - 60px); }

/* Info колонка */
.calc-featured-d-info { display: flex; flex-direction: column; }
.calc-featured-d h3 {
	font-family: 'Forum', serif; font-weight: 400;
	font-size: clamp(34px, 3.6vw, 48px);
	color: #ede4d3; letter-spacing: -0.02em;
	line-height: 1.05; margin: 0 0 18px;
}
.calc-featured-d h3 em { font-style: italic; color: #e8c878; }
.calc-featured-d-desc { font-size: 18px; color: #a8a08c; line-height: 1.6; margin: 0 0 28px; max-width: 540px; }
.calc-featured-d-features { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.calc-featured-d-features li { font-size: 18px; color: #c4bda9; padding-left: 26px; position: relative; line-height: 1.5; }
.calc-featured-d-features li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: #fff; font-size: 14px; }

.calc-featured-d-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: auto; }
.calc-featured-d-cta {
	display: inline-flex; align-items: center; gap: 14px;
	background: #e8c878; color: #06070d;
	padding: 18px 32px;
	font-family: 'Forum', serif; font-size: 19px;
	border-radius: 999px; text-decoration: none;
	border: 1px solid #e8c878;
	box-shadow: 0 6px 20px rgba(232,200,120,0.20);
	transform: translateZ(0); isolation: isolate;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.calc-featured-d-cta::after { content: '→'; display: inline-block; transition: transform .2s ease; }
.calc-featured-d-cta:hover { background: #fff; border-color: #fff; color: #06070d; transform: translateZ(0) translateY(-2px); }
.calc-featured-d-cta:hover::after { transform: translateX(3px); }
.calc-featured-d-cta-meta { font-family: 'Forum', serif; font-style: italic; font-size: 18px; color: rgba(168,160,140,0.9); }

/* Solar system animations (на инлайн-классах внутри SVG) */
.calc-featured-d-visual .solar .preview-sun-halo { animation: cf-d-sun-pulse 6s ease-in-out infinite; transform-origin: 200px 200px; }
@keyframes cf-d-sun-pulse { 0%,100%{transform:scale(1);opacity:.6} 50%{transform:scale(1.08);opacity:1} }
.calc-featured-d-visual .solar .preview-orb-grp { transform-origin: 200px 200px; }
.calc-featured-d-visual .solar .preview-orb-1 { animation: cf-d-rot 14s linear infinite; }
.calc-featured-d-visual .solar .preview-orb-2 { animation: cf-d-rot 22s linear infinite; }
.calc-featured-d-visual .solar .preview-orb-3 { animation: cf-d-rot 30s linear infinite; }
.calc-featured-d-visual .solar .preview-orb-4 { animation: cf-d-rot 44s linear infinite; }
.calc-featured-d-visual .solar .preview-orb-5 { animation: cf-d-rot 60s linear infinite; }
@keyframes cf-d-rot { to { transform: rotate(360deg); } }

/* Mobile — стэк (визуал сверху, info снизу) */
@media (max-width: 820px) {
	.calc-featured-d { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; border-radius: 14px; }
	.calc-featured-d-visual { max-width: 320px; min-height: 360px; padding-bottom: 36px; }
	.calc-featured-d-visual svg.solar { max-width: 320px; max-height: 320px; }
	.calc-featured-d-preview-label { font-size: 19px; }
	.calc-featured-d h3 { font-size: 28px; line-height: 1.05; margin-bottom: 12px; }
	.calc-featured-d-desc { font-size: 18px; margin-bottom: 22px; }
	.calc-featured-d-features li { font-size: 18px; }
	.calc-featured-d-cta { padding: 14px 28px; font-size: 17px; }
	.calc-featured-d-hud .grid .ring.r1 { width: 26%; height: 26%; }
	.calc-featured-d-hud .grid .ring.r2 { width: 56%; height: 56%; }
	.calc-featured-d-hud .grid .ring.r3 { width: 86%; height: 86%; }
	.calc-featured-d-hud .au.au1 { top: calc(50% - 140px); }
	.calc-featured-d-hud .au.au2 { top: calc(50% - 90px); }
	.calc-featured-d-hud .au.au3 { top: calc(50% - 40px); }
}
@media (max-width: 580px) {
	.calc-featured-d-visual svg.solar { max-width: 280px; max-height: 280px; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGE: КАЛЬКУЛЯТОР ИМЕНИ
   ═══════════════════════════════════════════════════════════════ */

.calc-name-page {
	background: var(--cc-bg-deep, #06070d);
	color: #ede4d3;
}
.calc-name-page {
	--cc-bg-deep: #06070d;
	--cc-bg: #0a0b16;
	--cc-bg-warm: #15172a;
	--cc-bg-soft: #14152a;
	--cc-line-d: rgba(204, 166, 86, 0.18);
	--cc-line-d-faint: rgba(204, 166, 86, 0.06);
	--cc-cream: #ede4d3;
	--cc-cream-dim: #a8a08c;
}
.calc-name-page::before {
	content: '';
	position: fixed; inset: 0;
	background:
		radial-gradient(ellipse at 70% 30%, rgba(204, 166, 86, 0.06), transparent 50%),
		radial-gradient(ellipse at 20% 80%, rgba(74, 50, 100, 0.15), transparent 60%),
		radial-gradient(ellipse at 50% 50%, rgba(42, 43, 65, 0.4), transparent 70%);
	pointer-events: none;
	z-index: 0;
}
.calc-name-page::after {
	content: '';
	position: fixed; inset: 0;
	background-image:
		radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.5), transparent),
		radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,0.3), transparent),
		radial-gradient(1px 1px at 42% 78%, rgba(255,255,255,0.4), transparent),
		radial-gradient(1px 1px at 88% 65%, rgba(255,255,255,0.35), transparent),
		radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.25), transparent),
		radial-gradient(1px 1px at 65% 88%, rgba(255,255,255,0.4), transparent),
		radial-gradient(1px 1px at 8% 60%, rgba(255,255,255,0.3), transparent),
		radial-gradient(1px 1px at 95% 5%, rgba(255,255,255,0.4), transparent);
	pointer-events: none;
	z-index: 0;
}
/* Все секции и их wrap'ы поверх фоновых звёзд (z-index: 0) — иначе карточки выглядят затемнёнными */
.calc-name-page > main > *,
.calc-name-page .calcn-section,
.calc-name-page .calcn-best-variant,
.calc-name-page .calcn-seo,
.calc-name-page .calcn-result,
.calc-name-page .calcn-hero,
.calc-name-page__part-breadcrumbs { position: relative; z-index: 5; }
/* Прижимаем кремовый футер вплотную к контенту калькулятора (страница тёмная — щель слева видна) */
.calc-name-page + .footer,
body:has(.calc-name-page) .footer { margin-top: 0; }
/* breadcrumbs на тёмном фоне (структура part-breadcrumbs из category.php) */
.calc-name-page__part-breadcrumbs {
	position: relative;
	z-index: 5;
	padding: 18px 0 28px;
}
@media(max-width:580px){
	.calc-name-page__part-breadcrumbs { padding: 16px 0 18px; }
}
.calc-name-page .part-breadcrumbs__link { color: rgba(237, 228, 211, 0.55); }
.calc-name-page .part-breadcrumbs__link:not(:last-child):hover { color: var(--cc-gold); }
.calc-name-page .part-breadcrumbs__link:last-child { color: #fff; }

.calcn-hero {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
	gap: 64px;
	align-items: start;
	padding: 32px 0 80px;
	position: relative;
	z-index: 2;
}
.calcn-hero-form { position: relative; z-index: 3; }
.calcn-meta-label { font-size: 14px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cc-gold); margin-bottom: 24px; }
/* Eyebrow в .calcn-truth и .calcn-result-intro — центр + не дать черточкам уйти на отдельную строку.
   .calcn-bv-narration eyebrow — левое выравнивание, отдельные правила в основной секции BV. */
.calcn-truth .calcn-meta-label,
.calcn-result-intro .calcn-meta-label {
	text-align: center;
	max-width: 460px;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 580px) {
	.calcn-truth .calcn-meta-label,
	.calcn-result-intro .calcn-meta-label {
		font-size: 13px;
		letter-spacing: 0.22em;
		max-width: 320px;
	}
}
.calcn-h1 {
	font-family: 'Forum', serif;
	font-weight: 400;
	font-size: clamp(40px, 4.4vw, 64px);
	line-height: 1.05;
	color: var(--cc-cream);
	margin-bottom: 22px;
	letter-spacing: -0.02em;
	/* ширина задана так, что «Бесплатный» и «калькулятор.» уходят на разные строки */
	width: 760px;
	position: relative; z-index: 3;
}
.calcn-h1 em { font-style: normal; color: var(--cc-gold); }
/* lede — узкая ширина: текст автоматически переносится после ~7 слов на строку */
.calcn-lede { font-size: 18px; color: var(--cc-cream-dim); width: 580px; margin-bottom: 40px; line-height: 1.65; position: relative; z-index: 3; }
.calcn-lede em { font-style: italic; color: var(--cc-gold); }

.calcn-form { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.calcn-field {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid var(--cc-line-d);
	padding: 16px 22px;
	border-radius: 6px;
	transition: border-color .3s, background .3s;
}
.calcn-field:focus-within { border-color: var(--cc-gold); background: rgba(204, 166, 86, 0.04); }
.calcn-field.cs-invalid { border-color: #f0865f; background: rgba(240, 134, 95, 0.08); animation: cs-shake .35s ease; }
@keyframes cs-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}
.calcn-field label { display: block; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cc-cream-dim); margin-bottom: 4px; font-weight: 500; }
.calcn-field input, .calcn-field select {
	width: 100%; background: transparent; border: none; outline: none;
	font-family: 'Forum', serif; font-size: 22px; color: var(--cc-cream); font-weight: 400;
}
.calcn-field input::placeholder { color: rgba(168, 160, 140, 0.4); font-style: italic; }
.calcn-field select { appearance: none; cursor: pointer; }
/* Кастомный селект (bottom-sheet). Нативный <select> прячем визуально, но оставляем в DOM. */
.calcn-field select.cs-native-hidden {
	position: absolute; opacity: 0; pointer-events: none;
	width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: -1px; padding: 0; border: 0;
}
.calcn-field .cs-trigger {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%; background: transparent; border: none; outline: none; padding: 0; margin: 0;
	font-family: 'Forum', serif; font-size: 22px; font-weight: 400; line-height: 1.2;
	color: var(--cc-cream); text-align: left; cursor: pointer;
	-webkit-appearance: none; appearance: none;
}
.calcn-field .cs-trigger:focus-visible { outline: none; }
.calcn-field .cs-trigger-value { color: var(--cc-cream); }
.calcn-field .cs-trigger-value.is-placeholder { color: rgba(168, 160, 140, 0.5); }
.calcn-field .cs-trigger-arrow {
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--cc-gold); margin-left: 12px; flex-shrink: 0;
	transition: transform .25s ease;
}
.calcn-field .cs-trigger-arrow svg { display: block; }
.calcn-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Поля «День»/«Месяц» — select в обычном потоке (та же высота что у инпутов ФИО).
   Весь .calcn-field clickable благодаря JS-делегации в calculator-name.js. */
.calcn-field-row .calcn-field { cursor: pointer; }
.calcn-submit {
	margin-top: 12px;
	background: linear-gradient(135deg, var(--cc-gold), var(--cc-gold-deep));
	border: none; color: var(--cc-bg-deep);
	padding: 22px 40px;
	font-family: 'Manrope', sans-serif; font-weight: 600;
	font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase;
	cursor: pointer; border-radius: 6px;
	transition: transform .3s, box-shadow .3s;
}
.calcn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(204, 166, 86, 0.3); }
.calcn-submit:disabled { opacity: 0.6; cursor: wait; }
.calcn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.calcn-submit-spinner { display: none; width: 20px; height: 20px; flex-shrink: 0; color: currentColor; }
.calcn-submit.is-loading { color: #fff; }
.calcn-submit.is-loading .calcn-submit-text { opacity: 0.85; }
.calcn-submit.is-loading .calcn-submit-spinner { display: inline-block; animation: calcn-submit-spin 0.9s linear infinite; }
@keyframes calcn-submit-spin { to { transform: rotate(360deg); } }
.calcn-form-note { font-family: 'Manrope', sans-serif; font-style: normal; font-size: 18px; color: var(--cc-cream-dim); margin-top: 16px; line-height: 1.5; }

/* ── Карта 9 планет ── статично в гриде, +20% относительно базового размера на десктопе ── */
.calcn-orbital-stage {
	position: relative;
	aspect-ratio: 1/1;
	width: 100%;
	max-width: 1254px; /* 950 × 1.32 — на десктопе ещё +10% поверх предыдущего +20% */
	margin: 50px auto 0;
	align-self: start;
}
.calcn-orbital-svg { width: 100%; height: 100%; overflow: visible; }
.calcn-orbit-line { fill: none; stroke: var(--cc-line-d); stroke-width: 0.4; }
.calcn-orbit-line.bright { stroke: rgba(204, 166, 86, 0.32); }
.calcn-orbit-line.faint-belt { stroke: rgba(204, 166, 86, 0.08); stroke-dasharray: 1 3; }
.calcn-coord-axis { stroke: var(--cc-line-d-faint); stroke-width: 0.3; stroke-dasharray: 2 4; }
.calcn-coord-label { fill: var(--cc-cream-dim); font-family: 'Manrope', sans-serif; font-size: 9px; letter-spacing: 0.15em; opacity: 0.5; }
.calcn-sun { fill: url(#sunGrad); filter: drop-shadow(0 0 24px rgba(232, 200, 120, 0.6)); }
.calcn-sun-halo { fill: url(#sunHalo); transform-origin: 390px 390px; animation: calcn-sun-pulse 5s ease-in-out infinite; }
@keyframes calcn-sun-pulse { 0%,100%{transform:scale(1);opacity:.9} 50%{transform:scale(1.06);opacity:1} }
.calcn-orb { transform-origin: 390px 390px; }
.orb-mercury { animation: calcn-rot 10s linear infinite; }
.orb-venus { animation: calcn-rot 18s linear infinite; }
.orb-earth { animation: calcn-rot 26s linear infinite; }
.orb-mars { animation: calcn-rot 34s linear infinite; }
.orb-asteroid-belt { animation: calcn-rot 38s linear infinite; }
.orb-ceres { animation: calcn-rot 39s linear infinite; }
.orb-jupiter { animation: calcn-rot 44s linear infinite; }
.orb-saturn { animation: calcn-rot 56s linear infinite; }
.orb-uranus { animation: calcn-rot 72s linear infinite; }
.orb-neptune { animation: calcn-rot 90s linear infinite; }
.orb-pluto { animation: calcn-rot 115s linear infinite; }
.calcn-moon-orbit { transform-origin: 0 0; animation: calcn-rot 9s linear infinite; }
@keyframes calcn-rot { to { transform: rotate(360deg); } }
.asteroid { fill: rgba(232, 212, 168, 0.55); }
.asteroid.bright { fill: rgba(232, 212, 168, 0.85); }
.asteroid.dim { fill: rgba(204, 166, 86, 0.35); }

/* ── Caption под картой (sticky-вместе с картой т.к. внутри .calcn-orbital-stage) ── */
.calcn-map-caption {
	position: absolute;
	bottom: -44px; left: 50%;
	transform: translateX(-50%);
	font-family: 'Forum', serif;
	font-style: italic;
	font-size: 17px;
	color: var(--cc-cream-dim);
	letter-spacing: 0.04em;
	white-space: nowrap;
	pointer-events: none;
}

/* ── Hit-area + hover-zoom планет на карте ──
   pointer-events:visiblePainted ловит только сам круг, а не всё SVG. */
.calcn-hitarea {
	fill: transparent;
	pointer-events: visiblePainted;
	cursor: pointer;
}
.calcn-belt-hit { cursor: pointer; }
.calcn-planet-visible {
	transition: transform .3s ease, filter .3s ease;
	transform-box: fill-box;
	transform-origin: center;
}
.calcn-orb.is-hovered .calcn-planet-visible {
	filter:
		drop-shadow(0 0 20px rgba(232, 200, 120, 0.95))
		drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
	transform: scale(1.5);
	transform-box: fill-box;
	transform-origin: center;
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), filter .3s;
}

/* ── Tooltip на карте планет (singleton, добавляется в body) ── */
.calcn-planet-tooltip {
	position: fixed;
	pointer-events: none;
	display: flex;
	align-items: stretch;
	background: linear-gradient(180deg, #15172a, #0a0b16);
	border: 1px solid var(--cc-gold);
	border-radius: 10px;
	overflow: hidden;
	min-width: 380px;
	max-width: 460px;
	color: var(--cc-cream, #ede4d3);
	box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 0 36px rgba(204, 166, 86, 0.25);
	z-index: 9999;
	opacity: 0;
	transform: translateY(8px) scale(0.96);
	transition: opacity .25s, transform .25s;
	font-family: 'Manrope', sans-serif;
}
.calcn-planet-tooltip.visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}
.calcn-planet-tooltip .cpt-icon {
	flex-shrink: 0;
	width: 88px;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--cc-gold);
	position: relative;
}
.calcn-planet-tooltip .cpt-disc {
	width: 56px; height: 56px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fff5d8, #ba8923 70%, #3a2308);
	box-shadow: 0 0 20px var(--cpt-glow, rgba(232, 200, 120, 0.5)),
				inset -8px -10px 18px rgba(0, 0, 0, 0.4);
	position: relative;
}
.calcn-planet-tooltip .cpt-symbol {
	position: absolute;
	bottom: -4px; right: -4px;
	width: 26px; height: 26px;
	background: #06070d;
	border: 1px solid var(--cc-gold);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Forum', serif;
	color: var(--cc-gold);
	font-size: 14px;
	line-height: 1;
}
.calcn-planet-tooltip .cpt-info { flex: 1; padding: 16px 20px; min-width: 0; }
.calcn-planet-tooltip .cpt-name {
	font-family: 'Forum', serif;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.1;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}
.calcn-planet-tooltip .cpt-keywords {
	font-size: 14px;
	font-weight: 300;
	color: var(--cc-cream-dim, #a8a08c);
	line-height: 1.55;
}
.calcn-planet-tooltip .cpt-tag {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 600;
	white-space: nowrap;
}
.calcn-planet-tooltip .cpt-tag.good {
	background: rgba(79, 114, 93, 0.18);
	color: #a8d4b4;
	border: 1px solid rgba(168, 212, 180, 0.3);
}
.calcn-planet-tooltip .cpt-tag.care {
	background: rgba(240, 134, 95, 0.15);
	color: var(--cc-orange, #f0865f);
	border: 1px solid rgba(240, 134, 95, 0.4);
}

/* ── Звёздные кольца вокруг 3 result-планет (анимация задаётся через .calcn-pb-revealed ниже) ── */
.calcn-reveal-stars {
	pointer-events: none;
	transform-origin: 300px 300px;
}
.calcn-reveal-star {
	fill: rgba(232, 200, 120, 0.9);
	font-family: 'Forum', serif;
	text-anchor: middle;
	dominant-baseline: central;
	pointer-events: none;
	filter: drop-shadow(0 0 4px rgba(232, 200, 120, 0.7));
}
.calcn-reveal-star.dim { fill: rgba(232, 200, 120, 0.55); }
.calcn-reveal-star.bright {
	fill: rgba(255, 240, 200, 0.95);
	filter: drop-shadow(0 0 6px rgba(255, 240, 200, 0.8));
}
@keyframes calcn-stars-rot { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

/* ── Result section ── */
.calcn-result {
	padding: 56px 0;
	position: relative;
	z-index: 2;
	border-top: 1px solid var(--cc-line-d);
}
.calcn-result-intro { text-align: center; margin-bottom: 56px; }
.calcn-result-intro .calcn-meta-label { margin-bottom: 14px; }
.calcn-result-intro h2 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); color: var(--cc-cream); letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.05; }
.calcn-result-intro h2 em { font-style: italic; color: var(--cc-gold); }
.calcn-greeting { font-family: 'Forum', serif; font-style: italic; font-size: 24px; color: var(--cc-cream-dim); max-width: 640px; margin: 0 auto; line-height: 1.45; }

.calcn-planet-block { padding: 80px 0; }
.calcn-planet-block + .calcn-planet-block { border-top: 1px solid var(--cc-line-d); }
.calcn-pb-header { text-align: center; margin-bottom: 56px; }
.calcn-pb-eyebrow { font-family: 'Forum', serif; font-style: italic; font-size: 14px; color: var(--cc-gold); margin-bottom: 10px; line-height: 1.2; }
.calcn-pb-eyebrow::before { content: '— '; }
.calcn-pb-eyebrow::after { content: ' —'; }
.calcn-pb-header h3 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(36px, 4vw, 56px); color: var(--cc-cream); line-height: 1.1; margin: 0; }
.calcn-pb-header h3 em { font-style: italic; color: var(--cc-gold); }
.calcn-name-display { font-family: 'Forum', serif; font-style: italic; color: var(--cc-gold-bright); }

.calcn-pb-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
/* Sticky-блок «планета + текст-описание» держится до низа 5-й карточки в правой колонке.
   gap уменьшен на ~25% (32→24), чтобы текст был ближе к планете. */
.calcn-pb-sticky { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.calcn-pb-stage { max-width: 720px; width: 100%; }
.calcn-pb-stage svg { width: 100%; height: 100%; overflow: visible; }
/* ── Анимация появления планет (последовательная: фон → кольца-орбиты → планета → декорации) ── */
.calcn-res-glow { opacity: 0; transform-origin: 300px 300px; }
.calcn-res-rings { opacity: 0; transform-origin: 300px 300px; }
.calcn-res-body, .calcn-res-body-stroke { opacity: 0; transform-origin: 300px 300px; }
.calcn-res-orbit-faint { opacity: 0; transform-origin: 300px 300px; }
.calcn-reveal-stars { opacity: 0; }
.calcn-pb-info { opacity: 0; transform: translateY(24px); }

.calcn-pb-revealed .calcn-res-glow         { animation: calcn-glow-in    2.2s ease-out 0.1s forwards; }
.calcn-pb-revealed .calcn-res-orbit-faint  { animation: calcn-orbit-fade 1.6s ease-out 0.4s forwards; }
.calcn-pb-revealed .calcn-res-body,
.calcn-pb-revealed .calcn-res-body-stroke  { animation: calcn-planet-in  1.4s cubic-bezier(.34, 1.5, .64, 1) 0.8s forwards; }
.calcn-pb-revealed .calcn-res-rings        { animation: calcn-rings-in   1.8s cubic-bezier(.2, .9, .3, 1) 1.2s forwards; }
.calcn-pb-revealed .calcn-reveal-stars     { animation: calcn-stars-rot 28s linear infinite, calcn-stars-fade-in 1.4s ease-out 1.6s forwards; }
.calcn-pb-revealed .calcn-reveal-stars.ccw { animation: calcn-stars-rot 36s linear infinite reverse, calcn-stars-fade-in 1.4s ease-out 1.7s forwards; }
.calcn-pb-revealed .calcn-reveal-stars.outer { animation: calcn-stars-rot 50s linear infinite, calcn-stars-fade-in 1.4s ease-out 1.8s forwards; }
.calcn-pb-revealed .calcn-reveal-stars.outer.ccw { animation: calcn-stars-rot 65s linear infinite reverse, calcn-stars-fade-in 1.4s ease-out 1.9s forwards; }
.calcn-pb-revealed .calcn-pb-info          { animation: calcn-info-up    1s ease-out 1.4s forwards; }

@keyframes calcn-glow-in    { 0%{opacity:0; transform: scale(0.5)} 100%{opacity:1; transform: scale(1)} }
@keyframes calcn-orbit-fade { 0%{opacity:0; transform: scale(0.85)} 100%{opacity:1; transform: scale(1)} }
@keyframes calcn-planet-in  { 0%{opacity:0; transform: scale(0.3) translateY(20px)} 100%{opacity:1; transform: scale(1) translateY(0)} }
@keyframes calcn-rings-in   { 0%{opacity:0; transform: scale(1.4) rotate(-25deg)} 100%{opacity:0.85; transform: scale(1) rotate(0deg)} }
@keyframes calcn-stars-fade-in { 0%{opacity:0} 100%{opacity:1} }
@keyframes calcn-info-up    { 0%{opacity:0; transform: translateY(24px)} 100%{opacity:1; transform: translateY(0)} }

.calcn-pb-info { max-width: 560px; }
.calcn-pb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; min-height: 28px; }
.calcn-tag {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
	font-family: 'Manrope', sans-serif; font-weight: 500;
	padding: 6px 14px; border-radius: 999px;
	background: rgba(79, 114, 93, 0.12); color: #a8d4b4; border: 1px solid rgba(168, 212, 180, 0.3);
}
.calcn-tag::before { content: '✦'; }
.calcn-tag.care { background: rgba(240, 134, 95, 0.1); color: var(--cc-orange); border-color: rgba(240, 134, 95, 0.3); }
.calcn-tag.care::before { content: '⚠'; }
/* [hidden] перебивает inline-flex: иначе у Сатурна показывались оба тега */
.calcn-tag[hidden] { display: none !important; }
.calcn-res-name { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(44px, 4.6vw, 64px); color: var(--cc-cream); line-height: 1; margin-bottom: 12px; letter-spacing: -0.02em; }
.calcn-res-sub { font-family: 'Manrope', sans-serif; font-size: 14px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cc-cream-dim); margin-bottom: 24px; }
.calcn-res-essence { font-family: 'Forum', serif; font-style: italic; font-size: 22px; line-height: 1.55; color: var(--cc-cream); border-left: 2px solid var(--cc-gold); padding-left: 22px; }

.calcn-pb-content .calcn-interp-grid { display: flex; flex-direction: column; gap: 24px; }
.calcn-interp-card {
	background: linear-gradient(180deg, rgba(204, 166, 86, 0.04), rgba(204, 166, 86, 0.01));
	border: 1px solid var(--cc-line-d);
	border-radius: 8px;
	padding: 40px 36px;
	position: relative; overflow: hidden;
	transition: border-color .3s, transform .3s, background .3s;
}
.calcn-interp-card:hover {
	border-color: rgba(204, 166, 86, 0.4);
	transform: translateY(-3px);
	background: linear-gradient(180deg, rgba(204, 166, 86, 0.07), rgba(204, 166, 86, 0.02));
}
.calcn-interp-card.natal-card:hover {
	border-color: rgba(168, 212, 180, 0.5);
	background: linear-gradient(180deg, rgba(79, 114, 93, 0.12), rgba(79, 114, 93, 0.03));
}
.calcn-interp-card::before { content: ''; position: absolute; top: 0; left: 0; width: 60px; height: 1px; background: var(--cc-gold); }
.calcn-interp-card .ic-num { font-family: 'Forum', serif; font-style: italic; color: var(--cc-gold); font-size: 17px; margin-bottom: 14px; }
.calcn-interp-card h4 { font-family: 'Forum', serif; font-weight: 400; font-size: 28px; color: var(--cc-cream); margin-bottom: 18px; }
.calcn-interp-card p { color: var(--cc-cream-dim); font-size: 18px; line-height: 1.6; }
.calcn-interp-card.natal-card { background: linear-gradient(180deg, rgba(79, 114, 93, 0.08), rgba(79, 114, 93, 0.02)); border-color: rgba(168, 212, 180, 0.25); }
.calcn-interp-card.natal-card::before { background: var(--cc-green); width: 80px; }
.calcn-interp-card.natal-card .ic-num { color: #a8d4b4; }
/* Карточка «Слово автора» — золотой акцент + курсив для эмоционального тона */
.calcn-interp-card.author-card { background: linear-gradient(135deg, rgba(232, 200, 120, 0.06) 0%, rgba(232, 200, 120, 0.02) 100%); border-color: rgba(232, 200, 120, 0.25); }
.calcn-interp-card.author-card::before { background: linear-gradient(135deg, rgba(232, 200, 120, 0.6) 0%, transparent 100%); }
.calcn-interp-card.author-card .ic-num { color: var(--cc-gold-bright); }
.calcn-interp-card.author-card p { font-style: italic; line-height: 1.7; }
/* Карточка «Плюсы планеты» — изумрудный акцент (положительная сила) */
.calcn-interp-card.plus-card { background: linear-gradient(180deg, rgba(91, 192, 134, 0.10) 0%, rgba(91, 192, 134, 0.02) 100%); border-color: rgba(91, 192, 134, 0.3); }
.calcn-interp-card.plus-card::before { background: linear-gradient(135deg, #5bc086, transparent); width: 80px; }
.calcn-interp-card.plus-card .ic-num { color: #6fd29c; }
/* Карточка «Слабые стороны планеты» — коралловый/красный (предупреждение) */
.calcn-interp-card.minus-card { background: linear-gradient(180deg, rgba(220, 110, 90, 0.10) 0%, rgba(220, 110, 90, 0.02) 100%); border-color: rgba(220, 110, 90, 0.3); }
.calcn-interp-card.minus-card::before { background: linear-gradient(135deg, #dc6e5a, transparent); width: 80px; }
.calcn-interp-card.minus-card .ic-num { color: #e88a76; }
/* Карточка «Как усилить/смягчить планету» — жёлто-зелёный, ближе к зелёному (действие) */
.calcn-interp-card.practice-card { background: linear-gradient(180deg, rgba(180, 200, 90, 0.10) 0%, rgba(180, 200, 90, 0.02) 100%); border-color: rgba(180, 200, 90, 0.3); }
.calcn-interp-card.practice-card::before { background: linear-gradient(135deg, #b4c85a, transparent); width: 80px; }
.calcn-interp-card.practice-card .ic-num { color: #c8d96e; }

/* ── Книга по дате ── */
.calcn-book-block { margin: 16px 0 32px; padding: 56px 0; border-top: 1px solid var(--cc-line-d); border-bottom: 1px solid var(--cc-line-d); }
.calcn-book-eyebrow { text-align: center; font-family: 'Forum', serif; font-style: italic; font-size: 14px; color: var(--cc-gold); margin-bottom: 12px; }
.calcn-book-title { text-align: center; font-family: 'Forum', serif; font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); color: var(--cc-cream); margin: 0 auto 36px; max-width: 1100px; line-height: 1.15; }
.calcn-book-title em { font-style: italic; color: var(--cc-gold); }
.calcn-book-card {
	display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: center;
	background: linear-gradient(135deg, rgba(204, 166, 86, 0.08), rgba(240, 134, 95, 0.04));
	border: 1px solid var(--cc-line-d); border-radius: 12px;
	padding: 56px;
	position: relative;
	overflow: hidden;
	max-width: 100%;
}
/* фон-блюры как в прототипе html — золотой круг справа сверху */
.calcn-book-card::before {
	content: '';
	position: absolute;
	top: -150px;
	right: -150px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(204, 166, 86, 0.15), transparent 65%);
	pointer-events: none;
}
/* и оранжевый снизу-слева для визуального баланса */
.calcn-book-card::after {
	content: '';
	position: absolute;
	bottom: -120px;
	left: -120px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(240, 134, 95, 0.1), transparent 65%);
	pointer-events: none;
}
.calcn-book-card > * { position: relative; z-index: 1; }
.calcn-book-cover {
	display: block; aspect-ratio: 3/4; max-width: 420px; margin: 0 auto;
	border-radius: 8px; overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 30px rgba(204, 166, 86, 0.18);
	transition: transform .5s, box-shadow .5s;
	background: var(--cc-bg-warm);
}
.calcn-book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.calcn-book-cover:hover { transform: translateY(-6px); box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 50px rgba(204, 166, 86, 0.28); }
.calcn-book-cover:hover img { transform: scale(1.04); }
/* vol-tag — пилюля «из серии «Звёздный компас» · по дате рождения» */
.calcn-book-voltag {
	display: inline-block;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--cc-gold);
	border: 1px solid var(--cc-line-d);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 24px;
}
.calcn-book-ribbon { font-family: 'Forum', serif; font-style: italic; font-size: 20px; color: var(--cc-gold-bright); margin-bottom: 32px; line-height: 1.4; }
.calcn-book-desc { color: var(--cc-cream-dim); font-size: 18px; line-height: 1.7; margin-bottom: 56px; }
.calcn-book-desc strong { color: var(--cc-cream); font-weight: 500; }
.calcn-book-quote { font-family: 'Forum', serif; font-style: italic; font-size: 19px; color: var(--cc-cream); border-left: 2px solid var(--cc-gold); padding-left: 24px; margin: 0 0 40px; line-height: 1.55; }
.calcn-book-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.calcn-book-cta {
	display: inline-flex; align-items: center; gap: 14px;
	background: var(--cc-orange); color: var(--cc-bg-deep);
	padding: 20px 36px;
	font-family: 'Manrope', sans-serif; font-weight: 600;
	font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase;
	text-decoration: none; border-radius: 999px;
	transition: transform .3s, box-shadow .3s;
}
.calcn-book-cta::after { content: '→'; font-size: 16px; }
.calcn-book-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px rgba(240, 134, 95, 0.35);
}
.calcn-book-secondary {
	color: var(--cc-gold);
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .3s, color .3s;
	padding: 18px 0;
}
.calcn-book-secondary:hover { border-bottom-color: var(--cc-gold); }
.calcn-book-price { font-family: 'Forum', serif; font-style: italic; font-size: 22px; color: var(--cc-gold-bright); margin-left: auto; }
.calcn-book-price s, .calcn-book-price del { color: var(--cc-cream-dim); font-size: 16px; margin-right: 10px; }

/* ── Truth (слово от Ирины) — на всю ширину сетки ── */
.calcn-truth {
	padding: 64px 80px;
	background: linear-gradient(135deg, rgba(204, 166, 86, 0.08), rgba(79, 114, 93, 0.04));
	border: 1px solid var(--cc-line-d);
	border-radius: 12px;
	text-align: center;
	max-width: 100%;
	margin: 40px 0;
	position: relative;
	overflow: hidden;
}
.calcn-truth::before {
	content: '';
	position: absolute;
	top: -100px; right: -100px;
	width: 500px; height: 500px;
	background: radial-gradient(circle, rgba(204, 166, 86, 0.12), transparent 65%);
	pointer-events: none;
}
.calcn-truth > * { position: relative; z-index: 1; }
.calcn-truth .calcn-meta-label { margin-bottom: 14px; }
.calcn-truth h3 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); color: var(--cc-cream); margin: 0 auto 24px; line-height: 1.15; max-width: 1000px; }
.calcn-truth h3 em { font-style: italic; color: var(--cc-gold); }
.calcn-truth-quote { font-family: 'Forum', serif; font-style: italic; font-size: 22px; color: var(--cc-cream); margin: 0 auto 20px; max-width: 880px; line-height: 1.5; }
.calcn-truth-author { font-size: 14px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cc-cream-dim); margin-bottom: 48px; }
.calcn-truth-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1280px; margin: 0 auto; }
.calcn-truth-cta { padding: 36px; background: var(--cc-bg-warm); border: 1px solid var(--cc-line-d); border-radius: 8px; text-decoration: none; color: var(--cc-cream); text-align: left; transition: border-color .3s, transform .3s; }
.calcn-truth-cta:hover { border-color: var(--cc-gold); transform: translateY(-3px); }
.calcn-truth-cta .cta-tag { display: inline-block; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cc-gold); border: 1px solid var(--cc-line-d); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
.calcn-truth-cta h4 { font-family: 'Forum', serif; font-weight: 400; font-size: 28px; color: var(--cc-cream); margin-bottom: 12px; }
.calcn-truth-cta h4 em { font-style: italic; color: var(--cc-gold); }
.calcn-truth-cta p { color: var(--cc-cream-dim); font-size: 18px; line-height: 1.55; margin-bottom: 24px; }
.calcn-truth-cta .cta-link { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cc-gold); }

.calcn-best-variant { padding: 64px 0; }

/* Bento Asymmetric: левая колонка = narration сверху + callout-tile снизу;
   правая колонка = 3 плашки-пункта в стопке (на всю высоту). */
.calcn-bv-grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	grid-template-rows: auto 1fr;
	gap: 20px;
	max-width: 100%;
	margin: 0;
}

/* Левая колонка — narration */
.calcn-bv-narration {
	grid-column: 1; grid-row: 1;
	padding: 44px 40px;
	background: linear-gradient(180deg, rgba(204, 166, 86, 0.08), rgba(204, 166, 86, 0));
	border: 1px solid var(--cc-line-d);
	border-radius: 24px;
}
.calcn-bv-narration .calcn-meta-label { margin-bottom: 18px; text-align: left; max-width: none; }
.calcn-bv-narration h3 {
	font-family: 'Forum', serif; font-weight: 400;
	font-size: clamp(32px, 2.6vw, 38px);
	color: var(--cc-cream);
	line-height: 1.18;
	margin: 0 0 22px;
	text-align: left;
	max-width: none;
}
.calcn-bv-narration h3 em { font-style: italic; color: var(--cc-gold); }
.calcn-bv-lede {
	font-family: 'Manrope', sans-serif;
	font-size: 18px;
	color: var(--cc-cream-dim);
	line-height: 1.6;
	margin: 0;
	text-align: left;
	max-width: none;
}

/* Левая колонка — callout-tile (главное правило в золотой обводке) */
.calcn-bv-callout-tile {
	grid-column: 1; grid-row: 2;
	padding: 36px 40px;
	background: var(--cc-bg-soft);
	border: 1px solid var(--cc-gold);
	border-radius: 24px;
	display: flex; align-items: center;
	position: relative;
	overflow: hidden;
}
.calcn-bv-callout-tile::before {
	content: '\201C';
	position: absolute; top: 4px; left: 22px;
	font-family: 'Forum', serif; font-weight: 400;
	font-size: 80px;
	color: var(--cc-gold);
	line-height: 1; opacity: .35;
	pointer-events: none;
}
.calcn-bv-callout-tile p {
	font-family: 'Forum', serif; font-style: italic;
	font-size: 20px; line-height: 1.5;
	color: var(--cc-cream);
	margin: 0; text-align: left;
	position: relative; z-index: 1;
}
.calcn-bv-callout-tile p em { font-style: italic; color: var(--cc-gold-bright); }

/* Правая колонка — 3 плашки-пункта в стопке */
.calcn-bv-points {
	grid-column: 2; grid-row: 1 / span 2;
	display: flex; flex-direction: column;
	gap: 20px;
	margin: 0;
	max-width: none;
}
.calcn-bv-point {
	padding: 30px 36px;
	background: rgba(20, 21, 42, 0.55);
	border: 1px solid var(--cc-line-d);
	border-radius: 24px;
	flex: 1;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 28px;
	align-items: start;
	transition: border-color .25s, background .25s;
}
.calcn-bv-point:hover {
	border-color: rgba(204, 166, 86, 0.32);
	background: rgba(28, 30, 56, 0.7);
}
.calcn-bv-point .bv-num {
	font-family: 'Forum', serif;
	font-size: 38px;
	color: var(--cc-gold-bright);
	line-height: 1;
	margin: 0;
}
.calcn-bv-point h4 {
	font-family: 'Forum', serif; font-weight: 400;
	font-size: 24px; color: var(--cc-cream);
	line-height: 1.2;
	margin: 0 0 12px;
}
.calcn-bv-point h4 em { font-style: italic; color: var(--cc-gold); }
.calcn-bv-point p {
	font-family: 'Manrope', sans-serif;
	color: var(--cc-cream-dim);
	font-size: 18px; line-height: 1.55;
	margin: 0;
}

.calcn-seo { padding: 56px 0; border-top: 1px solid var(--cc-line-d); }
.calcn-seo-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.calcn-seo-grid h2 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); color: var(--cc-cream); position: sticky; top: 32px; line-height: 1.15; margin: 0; }

/* В блоке-словаре левая колонка целиком sticky (h2 уже не липнет — липнет вся колонка с планетой) */
.calcn-seo-grid--dict .calcn-dict-left { position: sticky; top: 32px; align-self: start; }
.calcn-seo-grid--dict .calcn-dict-left h2 { position: static; margin-bottom: 36px; }

/* ── Planet morph: 9 планет, кросс-фейд при скролле строк таблицы ── */
.calcn-pl-morph { position: relative; max-width: 480px; }
.calcn-pl-morph-stage {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
}
.calcn-pl-morph-svg { width: 100%; height: 100%; overflow: visible; display: block; }
/* halo живёт внутри своей планетной группы — фейдится вместе с ней */
.calcn-pl-morph .pl-morph-halo { transform-box: view-box; }

.calcn-pl-morph .pl-morph-planet {
	opacity: 0;
	transform-box: view-box;
	transform-origin: 200px 200px;
	transform: scale(0.92);
	transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1), transform 0.9s cubic-bezier(.34, 1.2, .64, 1);
}
.calcn-pl-morph[data-active-planet="sun"]     .pl-morph-sun,
.calcn-pl-morph[data-active-planet="moon"]    .pl-morph-moon,
.calcn-pl-morph[data-active-planet="jupiter"] .pl-morph-jupiter,
.calcn-pl-morph[data-active-planet="uranus"]  .pl-morph-uranus,
.calcn-pl-morph[data-active-planet="mercury"] .pl-morph-mercury,
.calcn-pl-morph[data-active-planet="venus"]   .pl-morph-venus,
.calcn-pl-morph[data-active-planet="neptune"] .pl-morph-neptune,
.calcn-pl-morph[data-active-planet="saturn"]  .pl-morph-saturn,
.calcn-pl-morph[data-active-planet="mars"]    .pl-morph-mars {
	opacity: 1;
	transform: scale(1);
}

/* подпись под планетой */
.calcn-pl-morph-caption {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}
.calcn-pl-morph-eyebrow {
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--cc-cream-dim);
}
.calcn-pl-morph-name {
	font-family: 'Forum', serif;
	font-size: 30px;
	letter-spacing: -0.01em;
	color: var(--cc-gold);
	transition: color .6s ease, transform .5s ease;
}
.calcn-pl-morph-name.is-changing { transform: translateY(6px); opacity: 0.4; }

/* подсветка активной строки в таблице */
.calcn-planets-table tbody tr.is-active-planet {
	background: rgba(204, 166, 86, 0.08);
}
.calcn-planets-table tbody tr.is-active-planet .pl-symbol { color: var(--cc-gold-bright); }
.calcn-planets-table tbody tr { transition: background .35s ease; }
.calcn-seo-grid h2 em { font-style: italic; color: var(--cc-gold); }
.calcn-seo-grid > div:first-child .calcn-meta-label { margin-bottom: 10px; }
.calcn-seo-content p { font-size: 18px; color: var(--cc-cream); line-height: 1.6; margin-bottom: 22px; }
.calcn-seo-content em { font-style: italic; color: var(--cc-gold-bright); }
.calcn-seo-content strong { color: var(--cc-cream); font-weight: 500; }

.calcn-seo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.calcn-seo-step { background: linear-gradient(180deg, rgba(204, 166, 86, 0.04), rgba(204, 166, 86, 0.01)); border: 1px solid var(--cc-line-d); border-radius: 8px; padding: 36px 32px; }
.calcn-seo-step .step-num { font-family: 'Forum', serif; font-style: italic; font-size: 56px; color: var(--cc-gold); margin-bottom: 18px; }
.calcn-seo-step h4 { font-family: 'Forum', serif; font-weight: 400; font-size: 22px; color: var(--cc-cream); margin-bottom: 12px; }
.calcn-seo-step p { color: var(--cc-cream-dim); font-size: 18px; line-height: 1.55; margin: 0; }

/* ── Таблица «Что означают девять планет» — пропорции и плотность из одобренного HTML ── */
.calcn-planets-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 32px;
	font-family: 'Manrope', sans-serif;
}
.calcn-planets-table thead th {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cc-gold);
	font-weight: 500;
	text-align: left;
	padding: 14px 18px;
	border-bottom: 1px solid var(--cc-line-d);
}
.calcn-planets-table tbody tr {
	border-bottom: 1px solid var(--cc-line-d-faint);
	transition: background .25s;
}
.calcn-planets-table tbody tr:hover { background: rgba(204, 166, 86, 0.04); }
.calcn-planets-table tbody td {
	padding: 22px 18px;
	vertical-align: middle;
	color: var(--cc-cream-dim);
	font-size: 14px;
	line-height: 1.65;
}
.calcn-planets-table .pl-symbol {
	font-family: 'Forum', serif;
	font-size: 26px;
	color: var(--cc-gold);
	width: 50px;
	text-align: center;
	font-variant-emoji: text; /* iOS Safari: ♀ ♂ не как emoji-плашки */
}
.calcn-planet-tooltip .cpt-symbol { font-variant-emoji: text; }
.calcn-planets-table .pl-name {
	font-family: 'Forum', serif;
	font-size: 22px;
	color: var(--cc-cream);
	width: 180px;
	letter-spacing: -0.01em;
}
.calcn-planets-table .pl-keywords { color: var(--cc-cream-dim); font-size: 18px; line-height: 1.5; }
.calcn-planets-table .pl-keywords strong { font-weight: 500; color: var(--cc-cream); }
/* мини-тег идёт под именем планеты, выравнивается по левому краю названия */
.calcn-mini-tag {
	display: block;
	width: fit-content;
	margin: 6px 0 0;
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 4px;
	white-space: nowrap;
}
.calcn-mini-tag.good {
	background: rgba(79, 114, 93, 0.18);
	color: #a8d4b4;
	border: 1px solid rgba(168, 212, 180, 0.3);
}
.calcn-mini-tag.care {
	background: rgba(240, 134, 95, 0.15);
	color: var(--cc-orange);
	border: 1px solid rgba(240, 134, 95, 0.4);
}

.calcn-faq-list { margin-top: 24px; }
.calcn-faq-item { border-bottom: 1px solid var(--cc-line-d); }
.calcn-faq-item:first-child { border-top: 1px solid var(--cc-line-d); }
.calcn-faq-q { width: 100%; background: transparent; border: none; text-align: left; padding: 28px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; color: var(--cc-cream); font-family: 'Forum', serif; font-size: 26px; transition: color .3s; }
.calcn-faq-q:hover { color: var(--cc-gold); }
.calcn-faq-toggle { width: 28px; height: 28px; border: 1px solid var(--cc-line-d); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cc-gold); transition: transform .4s; flex-shrink: 0; }
.calcn-faq-item.is-open .calcn-faq-toggle { transform: rotate(45deg); }
/* плавный аккордеон — увеличенный max-height для длинных ответов, smooth easing */
.calcn-faq-a { overflow: hidden; max-height: 0; transition: max-height .6s ease-in-out; }
.calcn-faq-item.is-open .calcn-faq-a { max-height: 1500px; }
.calcn-faq-a-inner { padding: 0 0 32px; color: var(--cc-cream-dim); font-size: 18px; line-height: 1.65; }
.calcn-faq-a-inner em { color: var(--cc-gold-bright); font-style: italic; }

.calcn-section { padding: 80px 0; }
.calcn-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--cc-line-d-faint); }
.calcn-section-header h3 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); color: var(--cc-cream); }
.calcn-section-header h3 em { font-style: italic; color: var(--cc-gold); }
.calcn-section-eyebrow { font-family: 'Forum', serif; font-style: italic; font-size: 14px; color: var(--cc-gold); margin-bottom: 8px; }
/* PC-only: +4px к eyebrow-маркерам секций результата */
@media (min-width: 821px) {
	.calcn-pb-eyebrow { font-size: 18px; }
	.calcn-interp-card .ic-num { font-size: 21px; }
	.calcn-book-eyebrow { font-size: 18px; }
	.calcn-section-eyebrow { font-size: 18px; }
}
.calcn-section-link { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cc-gold); text-decoration: none; }

.calcn-products-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.calc-product-card { background: var(--cc-bg-soft); border: 1px solid var(--cc-line-d); border-radius: 6px; padding: 20px; text-decoration: none; color: inherit; transition: transform .3s, border-color .3s; display: block; }
.calc-product-card:hover { transform: translateY(-4px); border-color: var(--cc-gold); }
.calc-product-image { aspect-ratio: 1/1; background: linear-gradient(135deg, var(--cc-bg-warm), rgba(204, 166, 86, 0.08)); border-radius: 4px; margin-bottom: 18px; overflow: hidden; }
.calc-product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.calc-product-meta { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cc-gold); margin-bottom: 10px; }
.calc-product-card h4 { font-family: 'Forum', serif; font-weight: 400; font-size: 21px; color: var(--cc-cream); line-height: 1.25; margin-bottom: 14px; min-height: 48px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.calc-product-price { font-family: 'Forum', serif; font-style: italic; color: var(--cc-gold-bright); font-size: 20px; }
.calc-product-price del, .calc-product-price s { color: var(--cc-cream-dim); font-size: 14px; margin-right: 8px; }

.calcn-double-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.calcn-panel-list { list-style: none; margin: 0; padding: 0; }
.calcn-panel-list li { padding: 20px 0; border-bottom: 1px solid var(--cc-line-d-faint); }
.calcn-panel-list li:first-child { padding-top: 0; }
.calcn-panel-list a { display: flex; gap: 18px; text-decoration: none; color: inherit; align-items: center; }
.calcn-panel-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 4px; background: var(--cc-bg-warm); overflow: hidden; border: 1px solid var(--cc-line-d); }
.calcn-panel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.calcn-panel-list h5 { font-family: 'Forum', serif; font-weight: 400; font-size: 21px; color: var(--cc-cream); margin: 0; line-height: 1.3; transition: color .3s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.calcn-panel-list a:hover h5 { color: var(--cc-gold); }
.calc-podcast-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 4px; background: var(--cc-bg-warm); overflow: hidden; border: 1px solid var(--cc-line-d); position: relative; }
.calc-podcast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.calc-podcast-thumb.is-empty::before { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cc-gold); }
.calc-podcast-info { flex: 1; min-width: 0; }
.calc-podcast-meta { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cc-gold); margin-bottom: 6px; }

@media (max-width: 980px) {
	.calcn-hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 72px; min-height: auto; }
	.calcn-h1, .calcn-lede { width: auto; max-width: 100%; }
	/* На мобильных карта в 2 раза больше — занимает всю ширину контейнера */
	.calcn-orbital-stage { max-width: 100%; margin: 0 auto; }
	.calcn-pb-grid { grid-template-columns: 1fr; gap: 36px; }
	.calcn-pb-sticky { position: static; }
	/* Result-планеты в ФИО — в 2 раза больше на мобиле, на всю ширину контейнера */
	.calcn-pb-stage { max-width: 100%; margin: 0 auto; }
	.calcn-book-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 36px; }
	.calcn-book-cover { max-width: 280px; }
	.calcn-bv-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 16px; }
	.calcn-bv-narration { grid-row: 1; padding: 38px 32px; }
	.calcn-bv-points { grid-column: 1; grid-row: 2; gap: 16px; }
	.calcn-bv-callout-tile { grid-column: 1; grid-row: 3; padding: 32px 36px; }
	.calcn-bv-narration h3 { font-size: 36px; }
	.calcn-truth-ctas { grid-template-columns: 1fr; }
	.calcn-seo-grid { grid-template-columns: 1fr; gap: 32px; }
	.calcn-seo-grid h2 { position: static; }
	.calcn-seo-grid--dict .calcn-dict-left { position: static; }
	.calcn-seo-grid--dict .calcn-dict-left h2 { margin-bottom: 12px; }
	.calcn-pl-morph { display: none; }
	.calcn-seo-steps { grid-template-columns: 1fr; }
	.calcn-products-row { grid-template-columns: 1fr 1fr; }
	.calcn-double-row { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
	.calcn-hero { padding: 48px 0 64px; gap: 40px; }
	.calcn-form { gap: 14px; max-width: 100%; }
	.calcn-field { padding: 14px 18px; }
	.calcn-field input, .calcn-field select { font-size: 18px; }
	.calcn-submit { padding: 24px 28px; font-size: 14px; }
	.calcn-result { padding: 56px 0; }
	.calcn-result-intro { margin-bottom: 48px; }
	.calcn-result-intro h2 { margin-bottom: 18px; }
	.calcn-greeting { font-size: 18px; }
	.calcn-planet-block { padding: 56px 0; }
	.calcn-pb-header { margin-bottom: 40px; }
	.calcn-interp-card { padding: 28px 22px; }
	.calcn-interp-card h4 { font-size: 22px; margin-bottom: 14px; }
	.calcn-interp-card p { font-size: 18px; line-height: 1.55; }
	.calcn-res-essence { font-size: 18px; padding-left: 18px; }
	.calcn-book-block { margin: 16px 0 32px; padding: 56px 0; }
	.calcn-book-card { padding: 28px 22px; gap: 28px; }
	.calcn-book-quote { font-size: 18px; padding-left: 18px; margin-bottom: 24px; }
	.calcn-book-actions { gap: 12px; }
	.calcn-book-cta { padding: 14px 22px; font-size: 14px; }
	.calcn-book-price { font-size: 18px; margin-left: 0; }
	.calcn-truth { padding: 56px 28px; margin: 40px auto; border-radius: 10px; }
	.calcn-truth-quote { font-size: 18px; }
	.calcn-truth-cta { padding: 26px 22px; }
	.calcn-truth-cta h4 { font-size: 22px; }
	.calcn-best-variant { padding: 56px 0; }
	.calcn-bv-narration { padding: 32px 28px; border-radius: 20px; }
	.calcn-bv-callout-tile { padding: 30px 32px; border-radius: 20px; }
	.calcn-bv-callout-tile p { font-size: 20px; }
	.calcn-bv-point { padding: 28px 28px; border-radius: 20px; }
	.calcn-seo { padding: 56px 0; }
	.calcn-seo-content p { font-size: 18px; line-height: 1.55; }
	.calcn-seo-step { padding: 28px 22px; }
	.calcn-seo-step .step-num { font-size: 44px; margin-bottom: 12px; }
	.calcn-faq-q { padding: 22px 0; font-size: 24px; gap: 16px; }
	.calcn-faq-a-inner { font-size: 18px; }
	.calcn-section { padding: 56px 0; }
	.calcn-section-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; padding-bottom: 18px; }
	.calcn-products-row { gap: 16px; }
	.calc-product-card { padding: 16px; }
	.calc-product-card h4 { font-size: 22px; min-height: 0; }
	.calcn-map-caption { font-size: 16px; bottom: -4px; }
	/* Таблица планет на узких экранах: схлопываем в стопку, дополнительно — воздух между строками */
	.calcn-planets-table thead { display: none; }
	.calcn-planets-table tbody tr {
		display: grid;
		grid-template-columns: 64px 1fr;
		gap: 14px 16px;
		padding: 28px 0;
		border-bottom: 1px solid var(--cc-line-d-faint);
	}
	.calcn-planets-table .pl-name { padding-bottom: 4px; }
	.calcn-planets-table .pl-name + .calcn-mini-tag,
	.calcn-planets-table .pl-name .calcn-mini-tag { margin-top: 8px; }
	.calcn-planets-table .pl-keywords { padding-top: 4px; }
	.calcn-planets-table tbody td { padding: 0; vertical-align: top; }
	.calcn-planets-table .pl-symbol { font-size: 28px; width: auto; grid-row: 1 / 3; }
	.calcn-planets-table .pl-name { font-size: 20px; width: auto; white-space: normal; }
	.calcn-planets-table .pl-keywords { grid-column: 2; font-size: 18px; line-height: 1.5; }
	/* На мобиле тултип у нас нет (нет hover у тача) — но если внезапно покажется, ужмём */
	.calcn-planet-tooltip { min-width: 0; max-width: 94vw; width: 94vw; }
}
@media (max-width: 580px) {
	/* Mobile rules: текст ≥13px (минимум для тегов), описания ≥18px, FAQ +2 к десктопу.
	   Заголовки по global: .h1=46/0.755, .h2=42/0.763, .h3=20/1.11, .h4=18/1.11. */
	.calcn-hero { padding: 40px 0 56px; gap: 36px; }
	.calcn-meta-label { font-size: 13px; margin-bottom: 18px; }
	.calcn-h1 { font-size: 46px; line-height: 0.95; margin-bottom: 18px; }
	.calcn-lede { font-size: 18px; line-height: 1.4; margin-bottom: 28px; }
	.calcn-form-note { font-size: 18px; line-height: 1.4; margin-top: 14px; }
	.calcn-orbital-stage { max-width: 100%; transform: scale(1.25); transform-origin: center top; margin-top: -18px; margin-bottom: 64px; }
	.calcn-map-caption { font-size: 14px; }
	.calcn-result-intro h2 { font-size: 42px; line-height: 0.95; }
	.calcn-greeting { font-size: 18px; line-height: 1.4; }
	/* На мобиле заголовки planet-block выровнены по левому краю и одного размера со «Солнце» (.calcn-res-name=42px) */
	.calcn-pb-header { text-align: left; }
	.calcn-pb-header h3 { font-size: 42px; line-height: 1; text-align: left; }
	.calcn-pb-eyebrow { font-size: 16px; text-align: left; }
	.calcn-res-name { font-size: 42px; line-height: 1; }
	.calcn-res-sub { font-size: 13px; letter-spacing: 0.24em; }
	.calcn-res-essence { font-size: 18px; line-height: 1.45; }
	.calcn-pb-tags { gap: 6px; }
	.calcn-tag { font-size: 13px; padding: 5px 10px; letter-spacing: 0.12em; }
	.calcn-interp-card { padding: 22px 18px; }
	.calcn-interp-card h4 { font-size: 26px; line-height: 1.15; }
	.calcn-interp-card p { font-size: 18px; line-height: 1.5; }
	.calcn-book-title { font-size: 42px; line-height: 0.95; margin-bottom: 36px; }
	.calcn-book-cover { max-width: 220px; }
	.calcn-book-corner { font-size: 13px; padding: 6px 10px; top: 12px; right: 12px; }
	.calcn-book-ribbon { font-size: 18px; line-height: 1.4; margin-bottom: 16px; }
	.calcn-book-desc { font-size: 18px; line-height: 1.5; margin-bottom: 40px; }
	.calcn-book-quote { font-size: 18px; line-height: 1.45; }
	.calcn-book-cta { font-size: 14px; }
	.calcn-truth { padding: 44px 22px; }
	.calcn-truth h3 { font-size: 42px; line-height: 0.95; margin-bottom: 18px; }
	.calcn-truth-quote { font-size: 18px; line-height: 1.45; }
	.calcn-truth-author { font-size: 13px; margin-bottom: 36px; }
	.calcn-truth-cta h4 { font-size: 26px; line-height: 1.15; }
	.calcn-truth-cta p { font-size: 18px; line-height: 1.5; }
	.calcn-bv-grid { gap: 14px; }
	.calcn-bv-narration { padding: 32px 26px; border-radius: 20px; }
	.calcn-bv-narration h3 { font-size: 36px; line-height: 1.08; margin-bottom: 18px; }
	.calcn-bv-lede { font-size: 18px; line-height: 1.5; margin: 0; }
	.calcn-bv-points { gap: 14px; }
	.calcn-bv-point {
		padding: 26px 24px;
		border-radius: 20px;
		grid-template-columns: 1fr;
		gap: 12px;
		text-align: left;
	}
	.calcn-bv-point .bv-num { font-size: 32px; margin: 0; text-align: left; }
	.calcn-bv-point h4 { font-size: 26px; line-height: 1.15; text-align: left; margin: 0 0 10px; }
	.calcn-bv-point p { font-size: 18px; line-height: 1.5; text-align: left; }
	.calcn-bv-callout-tile { padding: 30px 26px; border-radius: 20px; }
	.calcn-bv-callout-tile::before { font-size: 64px; top: -2px; left: 16px; }
	.calcn-bv-callout-tile p { font-size: 22px; line-height: 1.4; }
	.calcn-seo-grid h2 { font-size: 42px; line-height: 0.95; }
	.calcn-seo-content p { font-size: 18px; line-height: 1.5; }
	.calcn-seo-step h4 { font-size: 26px; line-height: 1.15; }
	.calcn-seo-step p { font-size: 18px; line-height: 1.5; }
	.calcn-faq-q { font-size: 24px; line-height: 1.15; padding: 18px 0; }
	.calcn-faq-a-inner { font-size: 18px; line-height: 1.55; } /* +2 к 16, описание ≥18 */
	.calcn-faq-toggle { width: 24px; height: 24px; }
	.calcn-section-header h3 { font-size: 44px; line-height: 0.95; }
	.calcn-section-eyebrow { font-size: 16px; }
	.calcn-section-link { font-size: 13px; }
	.calcn-planets-table .pl-name { font-size: 20px; line-height: 1.11; }
	.calcn-planets-table .pl-keywords { font-size: 18px; line-height: 1.5; }
	.calc-product-card h4 { font-size: 28px; line-height: 1.15; }
	.calcn-panel-list h5 { font-size: 25px; line-height: 1.2; }
	.calc-product-meta, .calc-podcast-meta { font-size: 13px; }
	/* Карточки книг — горизонтальный скролл-карусель на мобиле, с padding-y для transform на hover */
	.calcn-products-row {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		overflow-y: visible;
		scroll-snap-type: x mandatory;
		gap: 12px;
		padding: 8px var(--wrapper-offset, 16px);
		margin: -8px calc(var(--wrapper-offset, 16px) * -1);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.calcn-products-row::-webkit-scrollbar { display: none; }
	.calcn-products-row .calc-product-card { flex: 0 0 200px; scroll-snap-align: start; }
	.calc-product-card:hover { transform: none; } /* отключаем translate на тач — обрезается контейнером скролла */
	.calcn-field-row { grid-template-columns: 1fr 1fr; }
	.calc-name-page__part-breadcrumbs { padding: 14px 0 10px; }
}
@media (max-width: 420px) {
	/* На узких экранах оставляем только spacing — типографику не сжимаем,
	   глобальная система (.h1/.h2 = 46/42px) одинакова для 375–580px */
	.calcn-form { gap: 12px; }
	.calcn-field { padding: 12px 16px; }
	.calcn-field input, .calcn-field select { font-size: 17px; }
	.calcn-field .cs-trigger { font-size: 17px; }
	.calcn-submit { padding: 22px 22px; font-size: 12px; }
}

/* ── Bottom-sheet для кастомного селекта ──
   Мобила: шторка снизу на всю ширину. Десктоп (≥821px): центрированный модал. */
.cs-sheet-backdrop {
	position: fixed; inset: 0; z-index: 9998;
	background: rgba(6, 7, 13, 0.72);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.cs-sheet-backdrop.is-open { opacity: 1; visibility: visible; }

.cs-sheet {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
	display: flex; flex-direction: column;
	background: #14152a;
	border-top: 1px solid rgba(204, 166, 86, 0.25);
	border-top-left-radius: 20px; border-top-right-radius: 20px;
	box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
	max-height: min(75vh, 640px);
	transform: translateY(100%);
	visibility: hidden;
	transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1), visibility .35s;
	color: #ede4d3;
	font-family: 'Manrope', sans-serif;
	padding-bottom: env(safe-area-inset-bottom, 0);
}
.cs-sheet.is-open { transform: translateY(0); visibility: visible; }

.cs-sheet-head {
	position: relative; padding: 14px 22px 14px;
	border-bottom: 1px solid rgba(204, 166, 86, 0.15);
	flex-shrink: 0;
}
.cs-sheet-handle {
	width: 44px; height: 4px; border-radius: 999px;
	background: rgba(237, 228, 211, 0.25);
	margin: 0 auto 14px;
}
.cs-sheet-title {
	font-family: 'Forum', serif; font-size: 22px; line-height: 1.2;
	color: #ede4d3; text-align: center; letter-spacing: 0.02em;
}
.cs-sheet-close {
	position: absolute; top: 22px; right: 14px;
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.06); border: none; padding: 0;
	color: #ede4d3; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s;
}
.cs-sheet-close:hover { background: rgba(255, 255, 255, 0.12); }
.cs-sheet-close:active { background: rgba(255, 255, 255, 0.18); }

.cs-sheet-list {
	list-style: none; margin: 0; padding: 8px 0;
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	flex: 1 1 auto;
}
.cs-sheet-item {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 22px; min-height: 52px;
	font-family: 'Forum', serif; font-size: 22px; line-height: 1.2;
	color: #ede4d3;
	cursor: pointer; user-select: none;
	transition: background .15s, color .15s;
	border-bottom: 1px solid rgba(204, 166, 86, 0.06);
}
.cs-sheet-item:last-child { border-bottom: none; }
.cs-sheet-item:hover { background: rgba(204, 166, 86, 0.08); color: #e8c878; }
.cs-sheet-item:active { background: rgba(204, 166, 86, 0.16); }
.cs-sheet-item.is-selected { color: #e8c878; background: rgba(204, 166, 86, 0.06); }
.cs-sheet-item.is-selected::after {
	content: ''; width: 18px; height: 14px; flex-shrink: 0; margin-left: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'><path d='M1 7l5 5L17 1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'><path d='M1 7l5 5L17 1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

@media (min-width: 821px) {
	.cs-sheet {
		left: 50%; right: auto; bottom: auto; top: 50%;
		width: 380px; max-height: min(70vh, 560px);
		border-radius: 14px;
		border: 1px solid rgba(204, 166, 86, 0.25);
		transform: translate(-50%, -48%) scale(0.96);
		opacity: 0;
		transition: transform .25s ease, opacity .25s ease, visibility .25s;
		box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	}
	.cs-sheet.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	.cs-sheet-handle { display: none; }
	.cs-sheet-head { padding: 22px 22px 18px; }
	.cs-sheet-close { top: 16px; }
	.cs-sheet-item { padding: 12px 22px; min-height: 46px; font-size: 20px; }
}

/* ============== Floating toolbar (↑ + Навигация) — mirror of /luna/ ============== */
/* Старая тема-кнопка «scrolltop» лежит в footer.php (вне .calc-name-page),
   поэтому скрываем её через body-класс конкретной страницы калькулятора имени. */
body.page-template-page-calculator-name .scrolltop-button { display: none !important; }

.calcn-toolbar {
	position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 24px; z-index: 100;
	display: flex; align-items: center; gap: 8px;
	pointer-events: none;
}
.calcn-toolbar > * { pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }

.calcn-toolbar .back-to-top {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border-radius: 999px;
	background: #ffffff;
	backdrop-filter: blur(14px);
	border: 0.5px solid rgba(255, 255, 255, 0.95);
	color: #10142a;
	font-family: 'Manrope', sans-serif; line-height: 1;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
	box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.55);
}
.calcn-toolbar .back-to-top.is-shown { display: inline-flex; }
.calcn-toolbar .back-to-top svg { display: block; width: 14px; height: 14px; }
.calcn-toolbar .back-to-top:hover { background: #fbd890; border-color: #fbd890; color: #10142a; transform: translateY(-2px); }

.calcn-toolbar .toc-fab {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px;
	width: 150px; height: 44px; flex: none; flex-shrink: 0;
	padding: 0 18px; border-radius: 999px;
	background: #ffffff; backdrop-filter: blur(14px);
	border: 0.5px solid rgba(255, 255, 255, 0.95);
	color: #10142a; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600;
	letter-spacing: 0.04em; cursor: pointer; white-space: nowrap;
	box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.55);
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.calcn-toolbar .toc-fab:hover { background: #fbd890; border-color: #fbd890; color: #10142a; }
.calcn-toolbar .toc-fab:active { transform: translateY(1px); }
.calcn-toolbar .toc-fab .toc-fab-label { flex: 0 0 auto; }
.calcn-toolbar .toc-fab .toc-fab-icon {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 14px; width: 14px; height: 14px; color: #10142a;
	transition: color .2s ease, transform .25s cubic-bezier(.4,0,.2,1);
}
.calcn-toolbar .toc-fab .toc-fab-icon svg { display: block; width: 14px; height: 14px; }
.calcn-toolbar .toc-fab.is-open { background: #fbd890; border-color: #fbd890; color: #10142a; }
.calcn-toolbar .toc-fab.is-open .toc-fab-icon { color: #10142a; transform: rotate(180deg); }

.calc-name-page .toc-menu,
.calc-name-page ~ .toc-menu,
#calcnTocMenu {
	position: fixed; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); right: 24px; z-index: 99;
	min-width: 280px; max-width: 340px;
	max-height: calc(100vh - 120px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
	background: rgba(10, 13, 28, 0.96); backdrop-filter: blur(18px);
	border: 0.5px solid rgba(251, 216, 144, 0.35);
	border-radius: 14px;
	padding: 10px;
	box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.65);
	opacity: 0; transform: translateY(8px); pointer-events: none;
	transition: opacity .2s ease, transform .25s cubic-bezier(.4,0,.2,1);
	list-style: none; margin: 0;
}
#calcnTocMenu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
#calcnTocMenu .toc-eyebrow {
	display: block;
	font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
	letter-spacing: 0.24em; text-transform: uppercase;
	color: rgba(246, 235, 212, 0.55);
	padding: 8px 14px 10px;
}
#calcnTocMenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
#calcnTocMenu li { list-style: none; margin: 0; padding: 0; }
#calcnTocMenu li a {
	display: block; padding: 12px 14px; border-radius: 8px;
	color: #f6ebd4; text-decoration: none; font-size: 18px; line-height: 1.35;
	transition: background .15s ease, color .15s ease;
}
#calcnTocMenu li a:hover { background: rgba(251, 216, 144, 0.10); color: #fbd890; }

@media (max-width: 580px) {
	.calcn-toolbar { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); right: 16px; gap: 8px; }
	.calcn-toolbar .toc-fab { width: 140px; height: 40px; font-size: 13px; padding: 0 14px; }
	.calcn-toolbar .toc-fab .toc-fab-icon { flex: 0 0 14px; width: 14px; height: 14px; }
	.calcn-toolbar .back-to-top { width: 40px; height: 40px; }
	.calcn-toolbar .back-to-top svg { width: 12px; height: 12px; }
	#calcnTocMenu {
		left: 16px; right: 16px; max-width: none;
		bottom: calc(120px + env(safe-area-inset-bottom, 0px));
		max-height: calc(100vh - 240px);
		padding: 14px 10px 10px;
	}
}
