/*
Theme Name:        MagicManual
Theme URI:         https://magicmanual.ru
Author:            MagicManual
Author URI:        https://magicmanual.ru
Description:       Профессиональная тема для эзотерического сайта MagicManual
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:           Private
Text Domain:       magicmanual
Tags:              custom-background, custom-logo, custom-menu, featured-images, full-width-template, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

/* ══════════════════════════════════════════════════════════
   RESET & ROOT
══════════════════════════════════════════════════════════ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	/* Brand palette */
	--gold:          #C9A84C;
	--gold-light:    #E2C97A;
	--gold-dark:     #8A6B28;
	--gold-muted:    rgba(201,168,76,0.12);
	--gold-border:   rgba(201,168,76,0.18);
	--gold-border-h: rgba(201,168,76,0.40);

	--ink:       #0D0B0F;
	--ink-mid:   #131018;
	--ink-soft:  #19152A;
	--ink-card:  #161221;
	--ink-hover: #1E1830;

	--parchment:     #EEE4CE;
	--parchment-dim: #A8997E;
	--text:          #BAB0A0;
	--text-muted:    #6A6058;
	--crimson:       #8B1A2A;

	/* Typography */
	--font-display: 'Cinzel', serif;
	--font-body:    'Cormorant Garamond', serif;
	--font-ui:      'Jost', sans-serif;

	/* Layout */
	--max-w: 1180px;
	--h-hdr: 68px;
	--gap:   1.8rem;

	/* Transitions */
	--t: 0.28s ease;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--ink);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.78;
	overflow-x: hidden;
}

/* Noise overlay */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 9999;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.05em;
	line-height: 1.15;
	color: var(--parchment);
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--gold);
	text-decoration: none;
	transition: color var(--t);
}
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.4em; }

/* ── Layout helpers ── */
.container {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 5vw;
}

.section {
	padding: 5.5rem 5vw;
}
.section--dark   { background: var(--ink-mid); }
.section--soft   { background: var(--ink-soft); }

/* ── Buttons ── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-ui);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 13px 34px;
	border: none;
	cursor: pointer;
	transition: all var(--t);
	text-decoration: none;
}

.btn--primary {
	background: var(--gold);
	color: var(--ink);
}
.btn--primary:hover {
	background: var(--gold-light);
	color: var(--ink);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(201,168,76,0.25);
}

.btn--outline {
	background: transparent;
	color: var(--parchment-dim);
	border: 1px solid var(--gold-border);
}
.btn--outline:hover {
	color: var(--gold);
	border-color: var(--gold);
	background: var(--gold-muted);
}

.btn--ghost {
	background: transparent;
	color: var(--gold-dark);
	border: 1px solid var(--gold-border);
	padding: 9px 20px;
	font-size: 0.65rem;
}
.btn--ghost:hover {
	color: var(--gold);
	border-color: var(--gold-border-h);
}

/* ── Section header ── */
.sec-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-ui);
	font-size: 0.6rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin-bottom: 0.6rem;
}
.sec-label::after {
	content: '';
	display: block;
	width: 36px;
	height: 1px;
	background: var(--gold-dark);
}

.sec-title {
	font-size: clamp(1.7rem, 3.5vw, 2.5rem);
	margin-bottom: 0.4em;
}
.sec-title span {
	color: var(--gold);
}

.sec-lead {
	font-size: 1rem;
	color: var(--parchment-dim);
	max-width: 560px;
	margin-bottom: 2.8rem;
}

/* ── Divider ── */
.divider {
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
	margin: 0;
}

/* ── Fade-in animations ── */
.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
	opacity: 1;
	transform: none;
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--h-hdr);
	z-index: 800;
	background: rgba(13,11,15,0.96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--gold-border);
}

.header-inner {
	display: flex;
	align-items: center;
	height: var(--h-hdr);
	max-width: calc(var(--max-w) + 10vw);
	margin: 0 auto;
	padding: 0 5vw;
	gap: 0;
}

/* Logo */
.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
	margin-right: 2.5rem;
}
.site-logo__mark {
	width: 32px;
	height: 32px;
}
.site-logo__text {
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.18em;
	color: var(--gold);
}

/* Main nav */
.main-nav {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	height: var(--h-hdr);
	flex: 1;
}

.nav-item {
	position: static;
}

.nav-trigger {
	display: flex;
	align-items: center;
	gap: 5px;
	height: var(--h-hdr);
	padding: 0 13px;
	font-family: var(--font-ui);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--parchment-dim);
	background: none;
	border: none;
	cursor: pointer;
	transition: color var(--t);
	white-space: nowrap;
}
.nav-trigger:hover,
.nav-item:hover .nav-trigger,
.nav-item:focus-within .nav-trigger { color: var(--gold); }

.nav-trigger .chevron {
	width: 8px;
	height: 8px;
	transition: transform 0.25s;
}
.nav-item:hover .chevron,
.nav-item:focus-within .chevron { transform: rotate(180deg); }

.nav-link {
	display: flex;
	align-items: center;
	height: var(--h-hdr);
	padding: 0 13px;
	font-family: var(--font-ui);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--parchment-dim);
	text-decoration: none;
	transition: color var(--t);
}
.nav-link:hover { color: var(--gold); }

/* Mega panel */
.mega-panel {
	display: none;
	position: fixed;
	top: var(--h-hdr);
	left: 0; right: 0;
	background: rgba(11,9,16,0.98);
	border-top: 2px solid var(--gold-dark);
	border-bottom: 1px solid var(--gold-border);
	z-index: 700;
	box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel { display: block; }

.mega-inner {
	max-width: calc(var(--max-w) + 10vw);
	margin: 0 auto;
	padding: 28px 5vw 32px;
	display: flex;
	gap: 0;
}

.mega-col {
	flex: 1;
	padding-right: 24px;
	margin-right: 4px;
	border-right: 1px solid var(--gold-border);
}
.mega-col:last-child {
	border-right: none;
	padding-right: 0;
}
.mega-col--narrow {
	flex: 0 0 210px;
	max-width: 210px;
}

.mega-heading {
	font-family: var(--font-ui);
	font-size: 0.56rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--gold-dark);
	display: block;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--gold-border);
}

.mega-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-ui);
	font-size: 0.8rem;
	color: var(--parchment-dim);
	padding: 4px 0;
	text-decoration: none;
	transition: color var(--t);
}
.mega-link:hover { color: var(--gold); }
.mega-link:hover .mega-link__dot { background: var(--gold); }

.mega-link--featured {
	color: var(--parchment);
	font-weight: 500;
	margin-bottom: 3px;
}
.mega-link--featured:hover { color: var(--gold); }

.mega-link__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--gold-dark);
	flex-shrink: 0;
	transition: background var(--t);
}

.mega-badge {
	font-family: var(--font-ui);
	font-size: 0.52rem;
	color: var(--gold-dark);
	background: rgba(201,168,76,0.1);
	padding: 1px 7px;
	border-radius: 20px;
}

.mega-promo {
	background: rgba(201,168,76,0.05);
	border: 1px solid var(--gold-border);
	padding: 14px;
	margin-bottom: 10px;
}
.mega-promo:last-child { margin-bottom: 0; }
.mega-promo__tag {
	font-family: var(--font-ui);
	font-size: 0.52rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-dark);
	display: block;
	margin-bottom: 4px;
}
.mega-promo__title {
	font-family: var(--font-display);
	font-size: 0.85rem;
	color: var(--parchment);
	display: block;
	margin-bottom: 4px;
}
.mega-promo__text {
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.5;
}

/* Header CTA */
.header-cta {
	margin-left: auto;
	flex-shrink: 0;
}

/* Burger */
.burger-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
	margin-left: 12px;
}
.burger-btn span {
	display: block;
	width: 22px;
	height: 1px;
	background: var(--parchment-dim);
	transition: all 0.3s;
}
.burger-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
	display: none;
	position: fixed;
	top: var(--h-hdr);
	left: 0; right: 0; bottom: 0;
	background: var(--ink-mid);
	overflow-y: auto;
	z-index: 790;
	padding: 24px 5vw 40px;
	-webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { display: block; }

.mob-section { margin-bottom: 24px; }
.mob-section__title {
	font-family: var(--font-ui);
	font-size: 0.58rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--gold-dark);
	display: block;
	margin-bottom: 8px;
}
.mob-link {
	display: block;
	font-family: var(--font-ui);
	font-size: 0.88rem;
	color: var(--parchment-dim);
	padding: 7px 0;
	border-bottom: 1px solid rgba(201,168,76,0.06);
	text-decoration: none;
	transition: color var(--t);
}
.mob-link:hover { color: var(--gold); }
.mob-cta {
	display: block;
	text-align: center;
	background: var(--gold);
	color: var(--ink) !important;
	font-family: var(--font-ui);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 14px;
	margin-top: 20px;
	text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: calc(var(--h-hdr) + 4rem) 5vw 6rem;
	position: relative;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 55% at 50% 65%, rgba(139,26,42,0.16) 0%, transparent 65%),
		radial-gradient(ellipse 45% 40% at 78% 18%, rgba(201,168,76,0.08) 0%, transparent 55%),
		radial-gradient(ellipse 40% 50% at 18% 82%, rgba(83,59,120,0.10) 0%, transparent 55%);
	pointer-events: none;
}

.hero__ring {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: min(640px, 88vw);
	height: min(640px, 88vw);
	border: 1px solid rgba(201,168,76,0.06);
	border-radius: 50%;
	pointer-events: none;
	animation: heroSpin 80s linear infinite;
}
.hero__ring::before {
	content: '';
	position: absolute;
	inset: 26px;
	border: 1px solid rgba(201,168,76,0.03);
	border-radius: 50%;
}
@keyframes heroSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-ui);
	font-size: 0.64rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin-bottom: 1.4rem;
	position: relative;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
	content: '';
	width: 38px;
	height: 1px;
	background: var(--gold-dark);
}

.hero__title {
	font-size: clamp(2.8rem, 7.5vw, 5.8rem);
	letter-spacing: 0.04em;
	color: var(--parchment);
	margin-bottom: 0.3em;
	position: relative;
}
.hero__title .accent {
	color: var(--gold);
	font-weight: 300;
}

.hero__subtitle {
	font-family: var(--font-ui);
	font-size: clamp(0.9rem, 2vw, 1.05rem);
	color: var(--parchment-dim);
	max-width: 500px;
	margin: 0 auto 2.8rem;
	position: relative;
	line-height: 1.7;
}

.hero__buttons {
	display: flex;
	gap: 1.2rem;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
}

.hero__scroll {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-ui);
	font-size: 0.58rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-muted);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.hero__scroll-line {
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, var(--gold-dark), transparent);
	animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ══════════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════════ */
.stats-bar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--ink-mid);
	border-top: 1px solid var(--gold-border);
	border-bottom: 1px solid var(--gold-border);
}

.stat-item {
	padding: 2rem 1.5rem;
	text-align: center;
	border-right: 1px solid var(--gold-border);
}
.stat-item:last-child { border-right: none; }

.stat-item__number {
	display: block;
	font-family: var(--font-display);
	font-size: 2.1rem;
	color: var(--gold);
	letter-spacing: 0.06em;
	line-height: 1;
	margin-bottom: 4px;
}
.stat-item__label {
	font-family: var(--font-ui);
	font-size: 0.6rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   SERVICES GRID
══════════════════════════════════════════════════════════ */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--gold-border);
	border: 1px solid var(--gold-border);
}

.service-card {
	background: var(--ink-mid);
	padding: 2.2rem 2rem;
	display: block;
	text-decoration: none;
	transition: background var(--t);
	position: relative;
	overflow: hidden;
}
.service-card::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
	transform: scaleX(0);
	transition: transform 0.4s ease;
}
.service-card:hover { background: var(--ink-hover); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__num {
	display: block;
	font-family: var(--font-ui);
	font-size: 0.56rem;
	letter-spacing: 0.22em;
	color: var(--gold-dark);
	margin-bottom: 1rem;
}

.service-card__icon {
	width: 48px;
	height: 48px;
	margin-bottom: 1.2rem;
	color: var(--gold);
	opacity: 0.85;
	transition: opacity var(--t);
}
.service-card:hover .service-card__icon { opacity: 1; }

.service-card__title {
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	color: var(--parchment);
	display: block;
	margin-bottom: 0.55rem;
}

.service-card__desc {
	font-family: var(--font-ui);
	font-size: 0.82rem;
	color: var(--text-muted);
	line-height: 1.65;
	display: block;
	margin-bottom: 1.4rem;
}

.service-card__more {
	font-family: var(--font-ui);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-dark);
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color var(--t), gap var(--t);
}
.service-card:hover .service-card__more {
	color: var(--gold);
	gap: 10px;
}

/* ══════════════════════════════════════════════════════════
   TAROT SHOWCASE
══════════════════════════════════════════════════════════ */
.tarot-showcase { text-align: center; position: relative; }

.tarot-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 2.8rem 0 2.2rem;
}

.tarot-card {
	width: 106px;
	aspect-ratio: 2/3.2;
	background: linear-gradient(160deg, var(--ink-soft) 0%, var(--ink) 100%);
	border: 1px solid var(--gold-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	text-decoration: none;
	position: relative;
	transition: all 0.38s ease;
	overflow: hidden;
}
.tarot-card::before {
	content: '';
	position: absolute;
	inset: 5px;
	border: 1px solid rgba(201,168,76,0.07);
	pointer-events: none;
}
.tarot-card:hover {
	border-color: var(--gold);
	transform: translateY(-8px);
	box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 20px rgba(201,168,76,0.08);
	background: var(--ink-soft);
}

.tarot-card__roman {
	font-family: var(--font-body);
	font-size: 0.72rem;
	color: rgba(201,168,76,0.3);
}
.tarot-card__icon {
	width: 36px;
	height: 36px;
	color: var(--gold);
	opacity: 0.75;
}
.tarot-card:hover .tarot-card__icon { opacity: 1; }
.tarot-card__name {
	font-family: var(--font-display);
	font-size: 0.48rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-dark);
	text-align: center;
	padding: 0 6px;
	line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   BLOG GRID
══════════════════════════════════════════════════════════ */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.2rem;
}

.post-card {
	display: block;
	text-decoration: none;
	border-top: 1px solid var(--gold-border);
	padding-top: 1.4rem;
	transition: all var(--t);
}
.post-card:hover .post-card__title { color: var(--gold); }

.post-card__tag {
	font-family: var(--font-ui);
	font-size: 0.58rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-dark);
	display: block;
	margin-bottom: 0.5rem;
}
.post-card__title {
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	color: var(--parchment);
	display: block;
	margin-bottom: 0.55rem;
	line-height: 1.35;
	transition: color var(--t);
}
.post-card__excerpt {
	font-family: var(--font-ui);
	font-size: 0.82rem;
	color: var(--text-muted);
	line-height: 1.6;
	display: block;
	margin-bottom: 1rem;
}
.post-card__meta {
	font-family: var(--font-ui);
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   REVIEWS
══════════════════════════════════════════════════════════ */
.reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.6rem;
}

.review-card {
	background: var(--ink-card);
	border: 1px solid var(--gold-border);
	padding: 1.8rem;
	position: relative;
}
.review-card::before {
	content: '\201C';
	font-family: var(--font-display);
	font-size: 4rem;
	color: var(--gold-dark);
	position: absolute;
	top: 4px; left: 14px;
	line-height: 1;
	opacity: 0.22;
}

.review-card__stars {
	display: flex;
	gap: 2px;
	margin-bottom: 10px;
}
.review-card__star {
	width: 13px;
	height: 13px;
	color: var(--gold);
	opacity: 0.7;
}

.review-card__text {
	font-family: var(--font-ui);
	font-size: 0.87rem;
	color: var(--parchment-dim);
	line-height: 1.72;
	margin-bottom: 1.2rem;
}
.review-card__author {
	font-family: var(--font-ui);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-dark);
}

/* ══════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════ */
.cta-section {
	text-align: center;
	padding: 7rem 5vw;
	position: relative;
	overflow: hidden;
}
.cta-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(139,26,42,0.16) 0%, transparent 68%);
	pointer-events: none;
}
.cta-section .sec-title { max-width: 640px; margin: 0 auto 0.5em; }
.cta-section .sec-label { justify-content: center; }
.cta-section__sub {
	font-family: var(--font-ui);
	font-size: 1rem;
	color: var(--parchment-dim);
	margin-bottom: 2.4rem;
}
.cta-section__btns {
	display: flex;
	gap: 1.2rem;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
}

/* ══════════════════════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════════════════════ */
.contact-wrap {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 4rem;
	align-items: start;
}

.contact-info__heading {
	font-size: 1.6rem;
	margin-bottom: 0.6rem;
}
.contact-info__text {
	font-family: var(--font-ui);
	font-size: 0.9rem;
	color: var(--parchment-dim);
	line-height: 1.7;
	margin-bottom: 2rem;
}
.contact-channels {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.contact-channel {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-ui);
	font-size: 0.85rem;
	color: var(--parchment-dim);
	text-decoration: none;
	padding: 12px 16px;
	border: 1px solid var(--gold-border);
	transition: all var(--t);
}
.contact-channel:hover {
	border-color: var(--gold-border-h);
	color: var(--gold);
	background: var(--gold-muted);
}
.contact-channel__icon {
	width: 20px;
	height: 20px;
	color: var(--gold-dark);
	flex-shrink: 0;
}
.contact-channel:hover .contact-channel__icon { color: var(--gold); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
	font-family: var(--font-ui);
	font-size: 0.62rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-dark);
}
.form-control {
	background: var(--ink-card);
	border: 1px solid var(--gold-border);
	color: var(--parchment);
	font-family: var(--font-ui);
	font-size: 0.88rem;
	padding: 11px 14px;
	outline: none;
	transition: border-color var(--t), background var(--t);
	width: 100%;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
	border-color: var(--gold-dark);
	background: var(--ink-soft);
}
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { cursor: pointer; -webkit-appearance: none; appearance: none; }

.form-captcha {
	display: flex;
	align-items: center;
	gap: 10px;
}
.form-captcha__question {
	font-family: var(--font-ui);
	font-size: 0.85rem;
	color: var(--parchment-dim);
}
.form-captcha .form-control { width: 70px; flex-shrink: 0; }

.form-notice {
	font-family: var(--font-ui);
	font-size: 0.75rem;
	color: var(--text-muted);
}

.form-success {
	display: none;
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--gold-border);
	background: var(--gold-muted);
}
.form-success__icon {
	width: 36px; height: 36px;
	color: var(--gold);
	margin: 0 auto 1rem;
}
.form-success__title {
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: var(--parchment);
	margin-bottom: 0.4rem;
}
.form-success__text {
	font-family: var(--font-ui);
	font-size: 0.85rem;
	color: var(--parchment-dim);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
	background: #080609;
	border-top: 1px solid var(--gold-border);
	padding: 4.5rem 5vw 2rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
	gap: 2.5rem;
	max-width: var(--max-w);
	margin: 0 auto 3.5rem;
}

.footer-brand__logo {
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.16em;
	color: var(--gold);
	display: block;
	margin-bottom: 0.7rem;
}
.footer-brand__desc {
	font-family: var(--font-ui);
	font-size: 0.82rem;
	color: var(--text-muted);
	line-height: 1.7;
	margin-bottom: 1.4rem;
}
.footer-contacts { display: flex; flex-direction: column; gap: 7px; }
.footer-contact {
	font-family: var(--font-ui);
	font-size: 0.75rem;
	color: var(--text-muted);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: color var(--t);
}
.footer-contact:hover { color: var(--gold-dark); }
.footer-contact svg { width: 14px; height: 14px; }

.footer-col__title {
	font-family: var(--font-ui);
	font-size: 0.58rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold-dark);
	display: block;
	margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
	font-family: var(--font-ui);
	font-size: 0.82rem;
	color: var(--text-muted);
	text-decoration: none;
	transition: color var(--t);
}
.footer-links a:hover { color: var(--parchment-dim); }

.footer-bottom {
	max-width: var(--max-w);
	margin: 0 auto;
	padding-top: 1.8rem;
	border-top: 1px solid rgba(201,168,76,0.07);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.8rem;
}
.footer-bottom__text {
	font-family: var(--font-ui);
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   SINGLE PAGE TEMPLATES
══════════════════════════════════════════════════════════ */
/* Page header */
.page-hero {
	padding: calc(var(--h-hdr) + 3.5rem) 5vw 3.5rem;
	background: var(--ink-mid);
	border-bottom: 1px solid var(--gold-border);
	text-align: center;
	position: relative;
}
.page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(139,26,42,0.10) 0%, transparent 65%);
	pointer-events: none;
}
.page-hero__breadcrumbs {
	font-family: var(--font-ui);
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	color: var(--text-muted);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: center;
}
.page-hero__breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.page-hero__breadcrumbs a:hover { color: var(--gold-dark); }
.page-hero__title {
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	margin-bottom: 0.5rem;
	position: relative;
}
.page-hero__desc {
	font-family: var(--font-ui);
	font-size: 0.98rem;
	color: var(--parchment-dim);
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.7;
}

/* Article layout */
.article-wrap {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 3.5rem;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 3.5rem 5vw;
	align-items: start;
}

.article-body { font-size: 1rem; line-height: 1.82; }
.article-body h2 {
	font-size: 1.5rem;
	margin: 2rem 0 0.8rem;
	color: var(--parchment);
}
.article-body h3 {
	font-size: 1.2rem;
	margin: 1.6rem 0 0.6rem;
	color: var(--parchment);
}
.article-body p { color: var(--text); margin-bottom: 1.1em; }
.article-body ul, .article-body ol { color: var(--text); margin-bottom: 1.1em; }
.article-body li { margin-bottom: 0.3em; }
.article-body strong { color: var(--parchment); font-weight: 600; }
.article-body a { color: var(--gold-dark); border-bottom: 1px solid var(--gold-border); }
.article-body a:hover { color: var(--gold); }
.article-body blockquote {
	border-left: 2px solid var(--gold-dark);
	padding: 0.8rem 1.4rem;
	background: var(--gold-muted);
	margin: 1.5rem 0;
	font-size: 1.05rem;
	color: var(--parchment-dim);
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-widget {
	background: var(--ink-mid);
	border: 1px solid var(--gold-border);
	padding: 1.4rem;
}
.sidebar-widget__title {
	font-family: var(--font-display);
	font-size: 0.88rem;
	letter-spacing: 0.1em;
	color: var(--parchment);
	margin-bottom: 1rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--gold-border);
}
.sidebar-posts { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sidebar-posts li a {
	font-family: var(--font-ui);
	font-size: 0.82rem;
	color: var(--parchment-dim);
	text-decoration: none;
	line-height: 1.5;
	display: block;
	transition: color var(--t);
}
.sidebar-posts li a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   TAROT CARD SINGLE
══════════════════════════════════════════════════════════ */
.tarot-single-wrap {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 3.5rem;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 3.5rem 5vw;
}

.tarot-card-visual {
	width: 280px;
	aspect-ratio: 2/3.2;
	background: linear-gradient(160deg, var(--ink-soft) 0%, var(--ink) 100%);
	border: 1px solid var(--gold-border-h);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	position: sticky;
	top: calc(var(--h-hdr) + 2rem);
}
.tarot-card-visual__roman {
	font-family: var(--font-body);
	font-size: 1rem;
	color: rgba(201,168,76,0.3);
}
.tarot-card-visual__icon {
	width: 72px; height: 72px;
	color: var(--gold);
}
.tarot-card-visual__name {
	font-family: var(--font-display);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-dark);
}

.tarot-meanings { display: flex; flex-direction: column; gap: 1.8rem; }
.tarot-meaning-block {
	border: 1px solid var(--gold-border);
	padding: 1.4rem;
}
.tarot-meaning-block__title {
	font-family: var(--font-ui);
	font-size: 0.58rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin-bottom: 0.7rem;
	display: block;
}
.tarot-meaning-block__text {
	font-family: var(--font-ui);
	font-size: 0.9rem;
	color: var(--parchment-dim);
	line-height: 1.72;
}
.tarot-keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 0.7rem;
}
.tarot-keyword {
	font-family: var(--font-ui);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	color: var(--gold-dark);
	background: rgba(201,168,76,0.07);
	border: 1px solid var(--gold-border);
	padding: 3px 10px;
}

/* ══════════════════════════════════════════════════════════
   CITY PROGRAMMATIC TEMPLATE
══════════════════════════════════════════════════════════ */
.city-faq { display: flex; flex-direction: column; gap: 0; }
.faq-item {
	border-bottom: 1px solid var(--gold-border);
}
.faq-item__q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	cursor: pointer;
	font-family: var(--font-ui);
	font-size: 0.92rem;
	color: var(--parchment-dim);
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	transition: color var(--t);
}
.faq-item__q:hover { color: var(--parchment); }
.faq-item__icon {
	width: 14px; height: 14px;
	color: var(--gold-dark);
	flex-shrink: 0;
	transition: transform 0.3s;
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
	display: none;
	padding-bottom: 1rem;
	font-family: var(--font-ui);
	font-size: 0.87rem;
	color: var(--text-muted);
	line-height: 1.7;
}
.faq-item.is-open .faq-item__a { display: block; }

/* ══════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════ */
.pagination {
	display: flex;
	gap: 4px;
	justify-content: center;
	margin-top: 3rem;
}
.page-num {
	font-family: var(--font-ui);
	font-size: 0.75rem;
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--gold-border);
	color: var(--parchment-dim);
	text-decoration: none;
	transition: all var(--t);
}
.page-num:hover, .page-num.current {
	background: var(--gold-muted);
	border-color: var(--gold-border-h);
	color: var(--gold);
}

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

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.article-wrap { grid-template-columns: 1fr; }
	.sidebar { display: none; }
	.tarot-single-wrap { grid-template-columns: 1fr; }
	.tarot-card-visual { position: static; margin: 0 auto; }
}

@media (max-width: 900px) {
	.main-nav { display: none; }
	.burger-btn { display: flex; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.reviews-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-bar { grid-template-columns: repeat(2, 1fr); }
	.stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 620px) {
	.services-grid { grid-template-columns: 1fr; }
	.blog-grid { grid-template-columns: 1fr; }
	.reviews-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
	.hero__title { font-size: 2.4rem; }
	.cta-section { padding: 5rem 5vw; }
}

@media print {
	.site-header, .mobile-nav, .hero__scroll { display: none !important; }
	body { background: #fff; color: #000; }
}
