/* ============================================================
   taro-info.com — публичная часть.
   Дизайн-система «Taro-Info» (Claude Design, mystic-purple):
   диагональный градиент индиго → маджента, боке, звёзды, стеклянные панели.
   Без сборки: обычный CSS.
   ============================================================ */

:root {
    /* градиент фона */
    --bg-indigo-deep: #1F1140;
    --bg-indigo: #2D1B4E;
    --bg-violet-mid: #4A2378;
    --bg-orchid: #7A2C9C;
    --bg-magenta: #B040C0;

    /* акценты */
    --c-violet: #6B4FA8;
    --c-amethyst: #9D6FE5;
    --c-magenta: #E15FE5;
    --c-magenta-2: #F072FF;
    --c-rose-glow: #FFB8E8;

    /* текст на тёмном */
    --c-white: #FFFFFF;
    --c-lilac: #E8D8F5;
    --c-lilac-2: #C8B0E0;
    --c-veil: #9C84B8;
    --c-danger: #FF6FA8;

    /* стекло */
    --glass-bg: rgba(255, 255, 255, .07);
    --glass-bg-medium: rgba(255, 255, 255, .10);
    --glass-bg-strong: rgba(255, 255, 255, .12);
    --glass-bg-deep: rgba(45, 27, 78, .55);
    --glass-border: rgba(255, 255, 255, .16);
    --glass-border-2: rgba(255, 255, 255, .28);
    --line: rgba(255, 255, 255, .10);

    /* тени */
    --shadow-card: 0 8px 24px rgba(20, 8, 40, .30), inset 0 1px 0 rgba(255, 255, 255, .16);
    --shadow-card-hover: 0 16px 40px rgba(20, 8, 40, .45), 0 0 32px rgba(225, 95, 229, .20), inset 0 1px 0 rgba(255, 255, 255, .22);
    --shadow-panel: 0 16px 40px rgba(20, 8, 40, .40), inset 0 1px 0 rgba(255, 255, 255, .22);
    --glow-magenta: 0 0 24px rgba(225, 95, 229, .45);
    --inset-shine: inset 0 1px 0 rgba(255, 255, 255, .20);

    /* шрифты. Cinzel без кириллицы — кириллица берётся из Cormorant Garamond */
    --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --font-flourish: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    --font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(.22, .61, .36, 1);
    --ease: cubic-bezier(.4, 0, .2, 1);

    --w-wide: 1200px;
    --w-reading: 800px;
    --gutter: clamp(16px, 4vw, 32px);

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    color: var(--c-lilac);
    font: 400 18px/1.7 var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(ellipse 100% 80% at 50% 50%, transparent 30%, rgba(20, 8, 40, .45) 100%),
        linear-gradient(135deg, var(--bg-indigo-deep) 0%, var(--bg-indigo) 18%, var(--bg-violet-mid) 38%, var(--bg-orchid) 68%, var(--bg-magenta) 100%);
    background-color: var(--bg-indigo-deep);
    background-attachment: fixed;
}

/* боке */
body::before {
    content: "";
    position: fixed;
    width: 120%; height: 120%;
    top: -10%; left: -10%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(240, 114, 255, .30), transparent 32%),
        radial-gradient(circle at 88% 78%, rgba(225, 95, 229, .32), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(160, 96, 255, .22), transparent 36%),
        radial-gradient(circle at 18% 88%, rgba(200, 80, 208, .20), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(157, 111, 229, .10), transparent 45%);
    animation: ti-bokeh-drift 48s ease-in-out infinite alternate;
}

/* звёзды */
body::after {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .85;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 14%, #FFB8E8 60%, transparent 100%),
        radial-gradient(1.5px 1.5px at 28% 32%, #FFFFFF 60%, transparent 100%),
        radial-gradient(1px 1px at 44% 8%, #FFB8E8 60%, transparent 100%),
        radial-gradient(2px 2px at 62% 22%, #F072FF 60%, transparent 100%),
        radial-gradient(1px 1px at 78% 42%, #FFFFFF 60%, transparent 100%),
        radial-gradient(1.5px 1.5px at 88% 16%, #FFB8E8 60%, transparent 100%),
        radial-gradient(1px 1px at 8% 62%, #FFFFFF 60%, transparent 100%),
        radial-gradient(1.5px 1.5px at 32% 72%, #F072FF 60%, transparent 100%),
        radial-gradient(1px 1px at 56% 86%, #FFB8E8 60%, transparent 100%),
        radial-gradient(1.5px 1.5px at 84% 78%, #FFFFFF 60%, transparent 100%),
        radial-gradient(1px 1px at 96% 54%, #F072FF 60%, transparent 100%),
        radial-gradient(1px 1px at 38% 48%, #FFFFFF 60%, transparent 100%),
        radial-gradient(.75px .75px at 18% 36%, #FFB8E8 60%, transparent 100%),
        radial-gradient(.75px .75px at 72% 64%, #FFFFFF 60%, transparent 100%);
    animation: ti-twinkle 6s ease-in-out infinite alternate;
}

@keyframes ti-bokeh-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}

@keyframes ti-twinkle {
    0%, 100% { opacity: .47; }
    50% { opacity: .85; }
}

.site { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.site > main { flex: 1; }

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

a { color: var(--c-magenta); text-decoration-color: rgba(225, 95, 229, .4); text-underline-offset: 3px; transition: color .15s var(--ease), text-shadow .15s var(--ease); }
a:hover { color: var(--c-magenta-2); text-shadow: 0 0 16px rgba(255, 114, 255, .6); text-decoration-color: var(--c-magenta-2); }

:focus-visible { outline: 2px solid var(--c-magenta); outline-offset: 2px; border-radius: 4px; }

::selection { background: rgba(225, 95, 229, .45); color: #fff; }

.wrap { max-width: var(--w-wide); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-reading { max-width: calc(var(--w-reading) + 2 * var(--gutter)); }

.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 10px 16px; border-radius: 6px; background: var(--bg-indigo); color: #fff; }

/* ---------- Примитивы ---------- */

.eyebrow {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: var(--c-magenta);
    text-shadow: 0 0 12px rgba(225, 95, 229, .5);
    margin: 0;
}

.glass {
    background: var(--glass-bg-medium);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-panel);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s var(--ease);
}
.btn:hover { text-shadow: none; }
.btn-lg { font-size: 16px; padding: 15px 26px; }
.btn-primary {
    background: linear-gradient(180deg, var(--c-magenta-2), var(--c-magenta));
    color: #fff;
    border-color: rgba(255, 255, 255, .20);
    box-shadow: 0 8px 24px rgba(20, 8, 40, .35), var(--glow-magenta), var(--inset-shine);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20, 8, 40, .35), 0 0 32px rgba(225, 95, 229, .65), var(--inset-shine); }
.btn-secondary {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    border-color: var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-secondary:hover { color: #fff; background: var(--glass-bg-strong); border-color: var(--glass-border-2); }
.btn svg { flex-shrink: 0; }

.ornament { display: flex; justify-content: center; margin: 48px auto; padding-inline: var(--gutter); }
.ornament img { width: min(420px, 80vw); height: auto; }
.ornament-fleuron img { width: min(320px, 60vw); }

.breadcrumbs { font-family: var(--font-ui); font-size: 12px; letter-spacing: .04em; color: var(--c-lilac-2); margin-bottom: 14px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { margin: 0 8px; color: var(--c-magenta); }
.breadcrumbs [aria-current] { color: #fff; }

/* ---------- Логотип ---------- */

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand:hover { text-shadow: none; }
.brand-arch {
    width: 32px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px 16px 0 0;
    border: 1.2px solid rgba(255, 255, 255, .30);
    background: var(--glass-bg);
    box-shadow: var(--inset-shine);
}
.brand-arch svg { width: 15px; height: 15px; filter: drop-shadow(0 0 5px rgba(225, 95, 229, .6)); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: #fff; letter-spacing: .20em; line-height: 1; }
.brand-tagline { font-family: var(--font-flourish); font-style: italic; font-size: 13px; font-weight: 500; color: var(--c-magenta); text-shadow: 0 0 12px rgba(225, 95, 229, .5); line-height: 1.05; margin-top: 3px; }

/* ---------- Шапка ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(45, 27, 78, .55);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding-block: 15px; }

.site-nav { display: flex; gap: 22px; margin-left: 8px; }
.site-nav > div { position: relative; }
.site-nav .nav-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--font-ui); font-size: 14px; font-weight: 500;
    color: var(--c-lilac); text-decoration: none;
    padding: 6px 0 6px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.site-nav .nav-link:hover { color: #fff; text-shadow: none; }
.site-nav .is-active > .nav-link { color: #fff; border-bottom-color: var(--c-magenta); }
.nav-caret { font-size: 9px; color: var(--c-magenta); }

.nav-sub {
    position: absolute; top: calc(100% + 8px); left: -14px;
    min-width: 280px;
    padding: 10px 0;
    background: rgba(45, 27, 78, .85);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-top: 2px solid var(--c-magenta);
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(20, 8, 40, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
}
/* «мостик», чтобы меню не закрывалось при переходе курсора */
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 8px 20px; font-family: var(--font-body); font-size: 16px; color: var(--c-lilac); text-decoration: none; }
.nav-sub a:hover, .nav-sub .is-active a { color: #fff; background: rgba(225, 95, 229, .12); text-shadow: none; }

.nav-forum {
    margin-left: auto;
    font-family: var(--font-ui); font-weight: 600; font-size: 13px; letter-spacing: .04em;
    padding: 9px 16px; border-radius: 6px;
    background: linear-gradient(180deg, var(--c-magenta-2), var(--c-magenta));
    color: #fff; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .20);
    box-shadow: 0 0 20px rgba(225, 95, 229, .45), var(--inset-shine);
}
.nav-forum:hover { color: #fff; text-shadow: none; box-shadow: 0 0 28px rgba(225, 95, 229, .65), var(--inset-shine); }

.menu-button {
    display: none;
    width: 40px; height: 40px; margin-left: auto;
    align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    color: #fff; cursor: pointer;
}

/* ---------- Мобильное меню (drawer) ---------- */

.drawer-backdrop {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(20, 8, 40, .60);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease;
}
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
    width: 88%; max-width: 340px;
    display: flex; flex-direction: column; overflow: auto;
    background: linear-gradient(180deg, rgba(45, 27, 78, .96) 0%, rgba(31, 17, 64, .96) 100%);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, .16);
    box-shadow: -24px 0 64px rgba(20, 8, 40, .55);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s var(--ease-out), visibility .32s;
}
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
html.drawer-open { overflow: hidden; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head .menu-button { display: flex; margin: 0; width: 36px; height: 36px; }
.drawer nav { flex: 1; padding: 12px 0; }
.drawer-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 22px;
    font-family: var(--font-flourish); font-size: 22px; font-weight: 500;
    color: var(--c-lilac); text-decoration: none;
    border-left: 3px solid transparent;
}
.drawer-link:hover { color: #fff; text-shadow: none; }
.drawer-link.is-active { color: #fff; border-left-color: var(--c-magenta); background: rgba(225, 95, 229, .10); }
.drawer-subs { padding: 0 22px 12px 25px; }
.drawer-subs a { display: block; padding: 7px 0; font-size: 15px; color: var(--c-lilac-2); text-decoration: none; }
.drawer-subs a::before { content: "· "; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); }
.drawer-foot .btn { width: 100%; border-radius: 8px; padding: 14px 16px; font-size: 14px; letter-spacing: .04em; }
.drawer-foot p { margin: 14px 0 0; text-align: center; font-family: var(--font-ui); font-size: 11px; letter-spacing: .04em; color: var(--c-veil); }

/* ---------- Нижняя панель вкладок (мобильные) ---------- */

.tabbar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 8, 40, .78);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 -8px 24px rgba(20, 8, 40, .40);
}
.tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 6px 4px; border-radius: 10px; border: 1px solid transparent;
    font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: .06em;
    color: var(--c-veil); text-decoration: none;
}
.tabbar a:hover { text-shadow: none; color: #fff; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a.is-active {
    color: #fff;
    background: rgba(225, 95, 229, .16);
    border-color: rgba(225, 95, 229, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 16px rgba(225, 95, 229, .25);
}

@media (max-width: 1080px) {
    .site-nav, .nav-forum { display: none; }
    .menu-button { display: flex; }
    .header-inner { padding-block: 12px; }
    .brand { gap: 9px; }
    .brand-arch { width: 24px; height: 32px; border-radius: 12px 12px 0 0; }
    .brand-arch svg { width: 12px; height: 12px; }
    .brand-name { font-size: 18px; letter-spacing: .18em; }
    .brand-tagline { font-size: 11px; }
}

@media (max-width: 760px) {
    .tabbar { display: flex; }
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Главная: герой ---------- */

.hero { padding: 88px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 64px; align-items: center; }
.hero-grid > :first-child { grid-column: 1; grid-row: 1; align-self: end; }
.hero-text-tail { grid-column: 1; grid-row: 2; align-self: start; }
.hero-title { font-family: var(--font-display); font-size: 76px; font-weight: 500; line-height: 1; letter-spacing: .04em; color: #fff; margin: 20px 0 4px; }
.hero-flourish {
    font-family: var(--font-flourish); font-style: italic; font-size: 56px; font-weight: 500; line-height: 1;
    color: var(--c-magenta);
    text-shadow: 0 0 32px rgba(225, 95, 229, .55), 0 0 64px rgba(225, 95, 229, .25);
    margin-bottom: 24px;
}
.hero-lead { font-size: 20px; line-height: 1.6; color: var(--c-lilac); max-width: 520px; margin: 0 0 32px; }
.hero-lead strong { font-weight: 600; color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: 12px; letter-spacing: .04em; color: var(--c-lilac-2); }
.hero-note em { color: #fff; }

.hero-cards { grid-column: 2; grid-row: 1 / span 2; position: relative; height: 500px; display: flex; align-items: center; justify-content: center; }
.hero-cards img {
    position: absolute; width: 210px; height: auto; border-radius: 10px;
    box-shadow: 0 24px 50px rgba(20, 8, 40, .55), 0 0 32px rgba(225, 95, 229, .30);
}
.hero-cards img:nth-child(1) { transform: translate(-120px, 22px) rotate(-10deg); }
.hero-cards img:nth-child(2) { width: 240px; z-index: 2; transform: translate(0, -10px); box-shadow: 0 32px 70px rgba(20, 8, 40, .65), 0 0 48px rgba(225, 95, 229, .40); }
.hero-cards img:nth-child(3) { transform: translate(120px, 22px) rotate(10deg); }

@media (max-width: 960px) {
    .hero { padding: 28px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 0; }
    .hero-grid > :first-child, .hero-text-tail, .hero-cards { grid-column: 1; grid-row: auto; }
    .hero-title { font-size: 54px; margin-top: 14px; }
    .hero-flourish { font-size: 40px; margin-bottom: 18px; }
    .hero-cards { height: 250px; margin: 4px -10px 44px; }
    .hero-cards img { width: 120px; border-radius: 8px; }
    .hero-cards img:nth-child(1) { transform: translate(-60px, 10px) rotate(-10deg); }
    .hero-cards img:nth-child(2) { width: 140px; transform: translate(0, -6px); }
    .hero-cards img:nth-child(3) { transform: translate(60px, 10px) rotate(10deg); }
    .hero-lead { font-size: 17px; line-height: 1.55; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-actions .btn { border-radius: 10px; font-size: 15px; }
    .hero-note { margin-top: 24px; padding-top: 16px; font-size: 11px; line-height: 1.7; }
}

/* ---------- Секции главной ---------- */

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-family: var(--font-flourish); font-size: 42px; font-weight: 500; color: #fff; margin: 12px 0 0; line-height: 1.2; }
.section-head p { margin: 10px auto 0; max-width: 620px; color: var(--c-lilac-2); }

.intro { max-width: var(--w-reading); margin: 0 auto; padding: 52px 60px; }
.intro-head { text-align: center; margin-bottom: 30px; }
.intro-head h2 { font-family: var(--font-flourish); font-style: italic; font-size: 44px; font-weight: 500; color: #fff; margin: 14px 0 0; }
/* В тексте главной три карти вже показані в герої */
.intro .prose > p:first-child:has(img) { display: none; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
    display: flex; flex-direction: column; gap: 6px;
    min-height: 158px; padding: 22px 18px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    color: inherit; text-decoration: none;
    transition: all .2s var(--ease-out);
}
.cat-card:hover { background: var(--glass-bg-strong); border-color: var(--glass-border-2); box-shadow: var(--shadow-card-hover); transform: translateY(-3px); text-shadow: none; color: inherit; }
.cat-num { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .20em; color: var(--c-rose-glow); }
.cat-title { font-family: var(--font-flourish); font-size: 22px; font-weight: 600; line-height: 1.15; color: #fff; }
.cat-desc { font-size: 15px; line-height: 1.5; color: var(--c-lilac-2); }
.cat-count { margin-top: auto; padding-top: 8px; font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--c-veil); }

.more-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--c-rose-glow); text-decoration: none; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service {
    padding: 40px 36px;
    border-radius: 16px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 16px 40px rgba(20, 8, 40, .40), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.service-accent {
    background: linear-gradient(135deg, rgba(110, 31, 46, 0) 0%, rgba(225, 95, 229, .30) 100%), rgba(45, 27, 78, .55);
    border-color: rgba(225, 95, 229, .35);
    box-shadow: 0 16px 40px rgba(20, 8, 40, .40), 0 0 48px rgba(225, 95, 229, .15), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.service h3 { font-family: var(--font-flourish); font-style: italic; font-size: 36px; font-weight: 500; line-height: 1.1; color: #fff; margin: 14px 0; }
.service p { font-size: 17px; line-height: 1.6; color: var(--c-lilac); margin: 0 0 22px; max-width: 420px; }

@media (max-width: 960px) {
    .section-head { margin-bottom: 22px; }
    .section-head h2 { font-size: 30px; }
    .intro { padding: 26px 22px; }
    .intro-head h2 { font-size: 30px; }
    .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-card { min-height: 96px; padding: 16px 14px; }
    .cat-num { font-size: 11px; }
    .cat-title { font-size: 17px; }
    .cat-desc { display: none; }
    .services { grid-template-columns: 1fr; gap: 14px; }
    .service { padding: 24px 22px; border-radius: 14px; }
    .service h3 { font-size: 26px; margin: 10px 0; }
    .service p { font-size: 15px; margin-bottom: 14px; }
    .ornament { margin: 32px auto; }
}

/* ---------- Заголовки страниц ---------- */

.page-hero { padding: 56px 0 8px; }
.page-title { font-family: var(--font-flourish); font-style: italic; font-size: 60px; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: #fff; margin: 12px 0 8px; }
.page-title-ritual { font-family: var(--font-display); font-style: normal; font-size: 64px; line-height: 1; letter-spacing: .06em; margin: 14px 0 18px; }
.page-lead { font-family: var(--font-flourish); font-style: italic; font-size: 21px; line-height: 1.55; color: var(--c-lilac); max-width: 640px; margin: 0; }
.page-meta { font-family: var(--font-ui); font-size: 12px; letter-spacing: .04em; color: var(--c-lilac-2); margin-top: 10px; }

@media (max-width: 760px) {
    .page-hero { padding-top: 28px; }
    .page-title { font-size: 38px; }
    .page-title-ritual { font-size: 40px; }
    .page-lead { font-size: 18px; }
}

/* ---------- Каталог (категория) ---------- */

.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-top: 48px; }
.sidebar {
    align-self: start; position: sticky; top: 96px;
    padding: 16px 4px;
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 8, 40, .30), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.sidebar .eyebrow { padding: 4px 18px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sidebar nav { display: flex; flex-direction: column; gap: 1px; }
.sidebar a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
    padding: 9px 18px;
    font-size: 16px; line-height: 1.35; color: var(--c-lilac-2); text-decoration: none;
    border-left: 2px solid transparent;
}
.sidebar a:hover { color: #fff; text-shadow: none; }
.sidebar a.is-active { color: #fff; font-weight: 600; background: rgba(225, 95, 229, .18); border-left-color: var(--c-magenta); }
.sidebar .count { font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--c-veil); }
.sidebar a.is-active .count { color: var(--c-rose-glow); }

.list-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-family: var(--font-ui); font-size: 12px; color: var(--c-lilac-2); }
.list-head strong { color: #fff; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 22px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    color: inherit; text-decoration: none;
    transition: all .2s var(--ease-out);
}
.card:hover { background: var(--glass-bg-strong); border-color: var(--glass-border-2); box-shadow: var(--shadow-card-hover); transform: translateY(-3px); color: inherit; text-shadow: none; }
.card-image { margin: -22px -22px 6px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px 12px 0 0; border-bottom: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(135deg, #1F1140 0%, #4A2378 50%, #7A2C9C 100%); }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 { font-family: var(--font-flourish); font-size: 26px; font-weight: 600; line-height: 1.1; color: #fff; margin: 4px 0 0; }
.card p { font-size: 16px; line-height: 1.55; color: var(--c-lilac-2); margin: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: 12px; color: var(--c-veil); }
.card-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--c-rose-glow); }
.card-foot .card-more:only-child { margin-left: auto; }

.empty { color: var(--c-lilac-2); font-style: italic; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a, .pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px; border-radius: 6px;
    font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
    background: var(--glass-bg); border: 1px solid rgba(255, 255, 255, .14);
}
.pager a:hover { background: var(--glass-bg-strong); text-shadow: none; color: #fff; }
.pager [aria-current] { background: linear-gradient(180deg, var(--c-magenta-2), var(--c-magenta)); border-color: rgba(255, 255, 255, .20); box-shadow: 0 0 16px rgba(225, 95, 229, .45); }

@media (max-width: 960px) {
    .catalog { grid-template-columns: 1fr; margin-top: 28px; }
    .sidebar { position: static; }
    .cards-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .cards, .cards-3 { grid-template-columns: 1fr; }
    .card h3 { font-size: 23px; }
}

/* ---------- Статья ---------- */

.article-panel { max-width: var(--w-reading); margin: 0 auto; padding: 52px 60px; }
.cover { margin: 0 0 32px; text-align: center; }
.cover img { border-radius: 12px; max-height: 480px; width: auto; box-shadow: 0 24px 50px rgba(20, 8, 40, .55), 0 0 32px rgba(225, 95, 229, .25); }
.article-foot { max-width: var(--w-reading); margin: 28px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-ui); font-size: 13px; }
.article-foot a { text-decoration: none; font-weight: 600; color: var(--c-rose-glow); }

@media (max-width: 760px) {
    .article-panel { padding: 26px 20px; border-radius: 14px; }
}

/* Тексты из RichEditor на тёмном стекле (включая старый контент 2014+) */
.prose { font-size: 18px; line-height: 1.75; color: var(--c-lilac); overflow-wrap: break-word; text-wrap: pretty; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-family: var(--font-flourish); font-style: italic; font-size: 30px; font-weight: 500; line-height: 1.2; color: #fff; margin: 40px 0 18px; }
.prose h3 { font-family: var(--font-flourish); font-size: 24px; font-weight: 600; line-height: 1.25; color: #fff; margin: 32px 0 14px; }
.prose strong { font-weight: 600; color: #fff; }
.prose em { color: var(--c-rose-glow); }
.prose a { color: var(--c-magenta); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--c-magenta); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--c-magenta); font-family: var(--font-flourish); font-style: italic; font-size: 22px; color: #fff; }
.prose hr { border: 0; height: 24px; margin: 36px 0; background: url('/img/ornaments/divider-star.svg') center / 260px auto no-repeat; }
.prose img { border-radius: 8px; vertical-align: middle; margin: 4px; box-shadow: 0 12px 30px rgba(20, 8, 40, .45); }
.prose .lead { font-family: var(--font-flourish); font-style: italic; font-size: 22px; color: #fff; }
.prose small { font-size: 14px; color: var(--c-veil); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 28px 0; }
.prose td, .prose th { padding: 10px 14px; vertical-align: top; border: 1px solid var(--line); }
.prose td > p:last-child, .prose th > p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
    .prose { font-size: 16px; line-height: 1.7; }
    .prose h2 { font-size: 26px; }
}

/* YouTube: превью → плеер по клику (js/site.js) */
.yt {
    position: relative; display: block; aspect-ratio: 16 / 9; max-width: 720px; margin: 28px auto;
    border-radius: 12px; overflow: hidden; background: #000;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 50px rgba(20, 8, 40, .55), 0 0 32px rgba(225, 95, 229, .25);
}
.yt img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play {
    position: absolute; inset: 50% auto auto 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--c-magenta-2), var(--c-magenta));
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: var(--glow-magenta), var(--inset-shine);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.yt-play::after { content: ""; position: absolute; inset: 50% auto auto 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 36px rgba(225, 95, 229, .7), var(--inset-shine); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-caption { text-align: center; color: var(--c-veil); font-family: var(--font-ui); font-size: 13px; margin-top: -16px; }

/* ---------- Блок «Замовити» ---------- */

.cta {
    max-width: var(--w-reading); margin: 64px auto 0; padding: 56px 48px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(45, 27, 78, .65) 0%, rgba(176, 64, 192, .40) 100%);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(225, 95, 229, .35);
    box-shadow: 0 24px 64px rgba(20, 8, 40, .50), 0 0 64px rgba(225, 95, 229, .20), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.cta h2 { font-family: var(--font-flourish); font-style: italic; font-size: 38px; font-weight: 500; color: #fff; margin: 14px 0; line-height: 1.15; }
.cta p { font-size: 18px; line-height: 1.6; color: var(--c-lilac); max-width: 480px; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
    .cta { margin-top: 40px; padding: 32px 22px; border-radius: 14px; }
    .cta h2 { font-size: 28px; }
    .cta p { font-size: 16px; }
}

/* ---------- Подвал ---------- */

.site-footer {
    margin-top: 96px;
    padding: 64px 0 40px;
    background: rgba(20, 8, 40, .45);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    color: var(--c-lilac);
}
.site-footer .ornament { margin: 0 auto 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: .18em; color: #fff; margin-bottom: 6px; }
.footer-brand-tagline { font-family: var(--font-flourish); font-style: italic; font-size: 18px; color: var(--c-magenta); text-shadow: 0 0 12px rgba(225, 95, 229, .45); margin-bottom: 14px; }
.footer-about { font-size: 15px; line-height: 1.65; color: var(--c-lilac-2); margin: 0; }
.footer-col .eyebrow { margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 15px; color: var(--c-lilac); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: 12px; color: var(--c-veil); }
.footer-bottom a { color: inherit; }

@media (max-width: 960px) {
    .site-footer { margin-top: 64px; padding: 40px 0 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

.not-found { text-align: center; padding: 96px 0 32px; }
.not-found .page-title { font-size: 52px; }
.not-found p { margin: 0 auto 28px; }

@media (prefers-reduced-motion: reduce) {
    body::before, body::after { animation: none; }
    *, *::before, *::after { transition: none !important; }
}
