/*
Theme Name: Mystic Daily
Theme URI: https://magic-daily.com.ua/
Author: Magic Daily
Description: Лёгкая авторская тема для магического портала: тёмная и светлая схемы, слайдер, блоки рубрик, отдельные сайдбары для рубрик, встроенное оглавление, ленивый YouTube и поиск картинок в редакторе. Без jQuery и тяжёлых библиотек.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mystic-daily
Tags: dark, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ============ 1. Palette (dark default / light override) ============ */
:root {
  --bg: #0b0918;
  --panel: #141026;
  --panel2: #181231;
  --line: rgba(212, 175, 94, .16);
  --gold: #d4af5e;
  --gold-hi: #eed9a2;
  --gold-dim: #9c8449;
  --ink: #e9e3d3;
  --mut: #a79f8d;
  --moon: #b9c4e0;
  --card-title: #f0e5c5;
  --list-link: #d9d0b4;
  --badge-ink: #120e24;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  --ov-strong: rgba(11, 9, 24, .92);
  --ov-mid: rgba(11, 9, 24, .45);
}
html.scheme-light {
  --bg: #f3eee2;
  --panel: #fffdf7;
  --panel2: #f8f3e6;
  --line: rgba(122, 95, 38, .25);
  --gold: #8a6d2f;
  --gold-hi: #6b5320;
  --gold-dim: #97803f;
  --ink: #292239;
  --mut: #6f6754;
  --moon: #4b4570;
  --card-title: #33284d;
  --list-link: #453a5e;
  --badge-ink: #fff8e6;
  --shadow: 0 18px 44px -28px rgba(60, 45, 20, .45);
  --ov-strong: rgba(20, 14, 40, .88);
  --ov-mid: rgba(20, 14, 40, .38);
}

/* ============ 2. Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 Georgia, 'Times New Roman', serif;
  word-wrap: break-word;
}
html:not(.scheme-light) body.mystic-night-bg { background-attachment: fixed; background-size: cover; background-position: center top; background-repeat: no-repeat; }
a { color: var(--gold-hi); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, .serif { font-family: 'Cormorant Garamond', Georgia, serif; }
body.mystic-sysfonts h1, body.mystic-sysfonts h2, body.mystic-sysfonts h3, body.mystic-sysfonts h4 { font-family: Georgia, serif; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 22px; position: relative; }
.ic { display: block; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============ 3. Topbar ============ */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 12.5px; }
html:not(.scheme-light) .topbar { background: rgba(8, 6, 17, .92); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 10px; }
.topbar .dom { color: var(--gold-dim); letter-spacing: .14em; text-transform: uppercase; font-family: Verdana, sans-serif; font-size: 10.5px; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 8px; }
.langs a { color: var(--mut); padding: 0 6px; font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: .08em; }
.langs a.on, .langs a:hover { color: var(--gold); }
.scheme-btn { background: none; border: 1px solid var(--line); border-radius: 50%; width: 27px; height: 27px; cursor: pointer; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.scheme-btn:hover { border-color: var(--gold); }
.scheme-btn .i-sun { display: none; }
html.scheme-light .scheme-btn .i-sun { display: block; }
html.scheme-light .scheme-btn .i-moon { display: none; }

/* ============ 4. Hero ============ */
.hero { position: relative; min-height: clamp(300px, 38vw, 440px); display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center 38%; box-shadow: inset 0 -90px 90px -30px var(--bg), inset 0 60px 80px -40px rgba(8, 6, 17, .78); }
html.scheme-light .hero { box-shadow: inset 0 -70px 70px -40px var(--bg); }
.hero-inner { padding: 56px 20px 64px; position: relative; z-index: 0; }
.hero-inner::before { content: ""; position: absolute; inset: -24px -90px; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 9, 24, .68) 0%, rgba(11, 9, 24, .38) 50%, transparent 74%); }
.emblem { width: 58px; height: 58px; margin: 0 auto 10px; color: #d4af5e; filter: drop-shadow(0 0 12px rgba(212, 175, 94, .45)); }
.hero .site-title { font-size: clamp(34px, 5.4vw, 58px); font-weight: 600; letter-spacing: .08em; color: #f3e8c8; text-shadow: 0 2px 26px rgba(0, 0, 0, .85), 0 0 60px rgba(212, 175, 94, .25); }
.hero .site-title a { color: inherit; }
.hero .tag { margin-top: 8px; color: #d8cfae; font-style: italic; font-size: clamp(14px, 1.8vw, 19px); letter-spacing: .22em; text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
.hero .tag b { color: #d4af5e; font-weight: 400; }
/* compact hero on inner pages */
.hero.hero-mini { min-height: 120px; }
.hero.hero-mini .hero-inner { padding: 26px 20px; }
.hero.hero-mini .site-title { font-size: clamp(24px, 3vw, 34px); }

/* ============ 5. Nav ============ */
.nav { position: sticky; top: 0; z-index: 60; background: var(--panel); border-block: 1px solid var(--line); }
html:not(.scheme-light) .nav { background: rgba(12, 9, 24, .86); backdrop-filter: blur(9px); }
html.scheme-light .nav { background: rgba(255, 253, 247, .93); backdrop-filter: blur(9px); }
.nav .wrap { display: flex; align-items: center; gap: 4px; height: 52px; }
.nav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 17.5px; letter-spacing: .05em; padding: 6px 13px; border-radius: 4px; white-space: nowrap; color: var(--list-link); }
.nav-links a:hover { color: var(--gold-hi); background: rgba(212, 175, 94, .09); }
.nav-links .current-menu-item > a, .nav-links a.on { color: var(--gold); }
.nav-links ul, .nav-links li { display: contents; list-style: none; }
.search-form { display: flex; align-items: center; gap: 7px; background: rgba(212, 175, 94, .07); border: 1px solid var(--line); border-radius: 20px; padding: 5px 13px; color: var(--gold-dim); }
.search-form input[type="search"] { background: none; border: 0; outline: 0; color: var(--ink); font: 13px Georgia, serif; width: 120px; }
.search-form input::placeholder { color: var(--mut); font-style: italic; }
.search-form button { background: none; border: 0; color: var(--gold-dim); cursor: pointer; display: flex; padding: 0; }

/* ============ 6. Rubric chips ============ */
.chips-zone { padding: 22px 0 4px; }
.chips-row { position: relative; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 9px; width: 106px; padding: 15px 8px 13px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 10px; font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: .03em; color: var(--list-link); text-align: center; transition: .25s; }
.chip-ic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(212, 175, 94, .45); display: flex; align-items: center; justify-content: center; color: var(--gold); background: radial-gradient(circle at 50% 35%, rgba(212, 175, 94, .14), transparent 70%); }
.chip:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 8px 22px -10px rgba(212, 175, 94, .35); }
.c-arr { position: absolute; top: 34px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--gold); font-size: 17px; line-height: 30px; text-align: center; cursor: pointer; z-index: 5; user-select: none; }
.c-arr:hover { border-color: var(--gold); }
.c-prev { left: -13px; }
.c-next { right: -13px; }

/* ============ 7. Zodiac strip ============ */
.zstrip { margin: 8px 0 26px; border-block: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(75, 55, 130, .22), transparent); }
html.scheme-light .zstrip { background: linear-gradient(90deg, transparent, rgba(75, 55, 130, .1), transparent); }
.zstrip .wrap { display: flex; justify-content: center; gap: 2px; overflow-x: auto; padding: 9px 22px; }
.z { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 3px 6px; border-radius: 6px; color: var(--moon); }
.z b { line-height: 1; padding: 2px 0 3px; filter: drop-shadow(0 0 7px rgba(185, 196, 224, .55)); }
.z b svg { display: block; }
.z i { font-style: normal; font-family: Verdana, sans-serif; font-size: 9px; letter-spacing: .06em; color: var(--mut); margin-top: 1px; }
.z:hover { background: rgba(185, 196, 224, .1); color: var(--gold); }

/* ============ 8. Layout ============ */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 30px; align-items: start; padding-bottom: 50px; }
.cols.no-side { grid-template-columns: minmax(0, 1fr); }
.side { position: sticky; top: 66px; display: flex; flex-direction: column; gap: 24px; }
.content-zone { padding-top: 26px; }

/* ============ 9. Slider ============ */
.slider { position: relative; height: 400px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex; align-items: flex-end; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 9, 24, .18) 0%, rgba(11, 9, 24, .42) 45%, rgba(11, 9, 24, .92) 100%); }
.slide-body { position: relative; z-index: 2; padding: 30px 96px 34px 34px; }
.badge { display: inline-block; font-family: Verdana, sans-serif; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--badge-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); padding: 5px 12px; border-radius: 3px; margin-bottom: 13px; }
.slide h2 { font-size: clamp(21px, 2.6vw, 31px); font-weight: 600; line-height: 1.25; max-width: 640px; }
.slide h2 a { color: #f5edd6; text-shadow: 0 2px 18px rgba(0, 0, 0, .9); }
.slide .meta { margin-top: 11px; color: #bdb298; font-size: 13.5px; font-style: italic; }
.slide .meta .more { color: #d4af5e; }
.s-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(212, 175, 94, .4); background: rgba(10, 8, 20, .55); color: #eed9a2; font-size: 20px; cursor: pointer; z-index: 4; }
.s-arr:hover { background: rgba(212, 175, 94, .25); }
.s-prev { left: 14px; }
.s-next { right: 14px; }
.dots { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 7px; z-index: 4; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #d4af5e; background: transparent; cursor: pointer; padding: 0; }
.dot.on { background: #d4af5e; box-shadow: 0 0 9px rgba(212, 175, 94, .8); }

/* ============ 10. Ad slots ============ */
.ad-slot { border: 1px dashed rgba(212, 175, 94, .3); background: rgba(212, 175, 94, .045); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--mut); font-family: Verdana, sans-serif; font-size: 10.5px; letter-spacing: .18em; overflow: hidden; }
.ad-slot.wide { min-height: 104px; margin: 28px 0; grid-column: 1 / -1; }
.ad-slot.box { min-height: 250px; }
.ad-slot:has(ins), .ad-slot:has(iframe) { border: 0; background: none; }
.ad-incontent { margin: 26px 0; }

/* ============ 11. Category blocks ============ */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.cat-block { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 14px; }
.cat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; margin-bottom: 16px; border-bottom: 1px solid rgba(212, 175, 94, .25); position: relative; }
.cat-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 74px; height: 1px; background: var(--gold); box-shadow: 0 0 8px rgba(212, 175, 94, .9); }
.cat-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1px solid rgba(212, 175, 94, .45); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.cat-head h3, .cat-head .h3 { font-size: 23px; font-weight: 600; letter-spacing: .04em; font-family: 'Cormorant Garamond', Georgia, serif; }
.cat-head h3 a, .cat-head .h3 a { color: var(--card-title); }
.cat-count { font-family: Verdana, sans-serif; font-size: 10px; color: var(--gold-dim); border: 1px solid rgba(212, 175, 94, .35); border-radius: 10px; padding: 2px 8px; }
.cat-all { margin-left: auto; font-size: 12.5px; font-style: italic; color: var(--gold-dim); white-space: nowrap; }
.cat-all:hover { color: var(--gold-hi); }
.cat-feat { margin-bottom: 8px; }
.feat-img { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.feat-img img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; transition: transform .5s; display: block; }
.cat-feat:hover .feat-img img { transform: scale(1.045); }
.feat-txt { padding: 12px 2px 6px; }
.feat-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19.5px; font-weight: 700; line-height: 1.3; color: var(--card-title); display: block; }
.feat-txt time { font-size: 12px; color: var(--mut); font-style: italic; }
.cat-list { list-style: none; }
.cat-list li { display: flex; align-items: baseline; gap: 9px; padding: 8.5px 0; border-top: 1px solid rgba(212, 175, 94, .12); }
.cat-list li::before { content: "\2726"; color: var(--gold); font-size: 10px; flex: 0 0 auto; }
.cat-list a { color: var(--list-link); font-size: 14.5px; line-height: 1.45; flex: 1; }
.cat-list a:hover { color: var(--gold-hi); }
.cat-list time { font-size: 11px; color: var(--mut); white-space: nowrap; font-style: italic; }

/* promo banner */
.promo { grid-column: 1 / -1; position: relative; display: flex; align-items: center; min-height: 236px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.promo .bg { position: absolute; inset: 0; background-size: cover; background-position: center 32%; transition: transform .7s ease; }
.promo:hover .bg { transform: scale(1.035); }
.promo .ov { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ov-strong) 0%, var(--ov-mid) 48%, transparent 100%); }
.promo .px { position: relative; padding: 34px 38px; max-width: 560px; }
.promo .k { display: block; font-family: Verdana, sans-serif; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #d4af5e; margin-bottom: 9px; }
.promo .h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: #f3e8c8; letter-spacing: .03em; margin-bottom: 8px; }
.promo p { font-size: 13.5px; color: #cfc5ab; font-style: italic; line-height: 1.6; margin-bottom: 16px; }

/* visual art blocks */
.art-block { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 480px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.art-block .bg { position: absolute; inset: 0; background-size: cover; background-position: center 18%; transition: transform .7s ease; }
.art-block:hover .bg { transform: scale(1.045); }
.art-block .ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--ov-mid) 42%, rgba(13, 10, 27, .97) 80%); }
.art-block .px { position: relative; padding: 20px 22px 22px; }
.art-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.art-head .cat-ic { background: rgba(11, 9, 24, .55); }
.art-head .h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 700; letter-spacing: .03em; }
.art-head .h3 a { color: #f0e5c5; }
.art-list { list-style: none; margin-bottom: 15px; }
.art-list li { display: flex; gap: 9px; align-items: baseline; padding: 7.5px 0; border-top: 1px solid rgba(212, 175, 94, .18); }
.art-list li:first-child { border-top: 0; }
.art-list li::before { content: "\2726"; color: #d4af5e; font-size: 10px; flex: 0 0 auto; }
.art-list a { color: #e6dcc0; font-size: 14px; line-height: 1.45; }
.art-list a:hover { color: #eed9a2; }

/* wide block */
.cat-block.wide { grid-column: 1 / -1; }
.cat-block.wide .cb-cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: start; }
.cat-block.wide .cat-list li:first-child { border-top: 0; }

/* ============ 12. Buttons ============ */
.btn { display: inline-block; font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--badge-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); padding: 9px 20px; border-radius: 4px; border: 0; cursor: pointer; }
.btn:hover { color: var(--badge-ink); box-shadow: 0 0 18px rgba(212, 175, 94, .5); }
/* Контурная кнопка в духе Mystik */
.btn-o { display: inline-block; font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #eed9a2; background: transparent; border: 1px solid rgba(212, 175, 94, .55); padding: 10px 22px; border-radius: 3px; cursor: pointer; transition: .25s; }
.btn-o:hover { background: rgba(212, 175, 94, .16); border-color: var(--gold); color: #fff; }

/* ============ 13. Sidebar / widgets ============ */
.widget { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.w-title, .widget .widget-title { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-align: center; text-transform: uppercase; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(212, 175, 94, .25); }
/* Ромбовидный орнамент над заголовками секций (мотив Mystik) */
.w-title::before, .widget .widget-title::before { content: "\25C8"; display: block; font-size: 13px; line-height: 1; color: var(--gold); margin-bottom: 7px; text-shadow: 0 0 9px rgba(212, 175, 94, .7); }
.widget ul { list-style: none; }
.widget ul li { padding: 7px 0; border-top: 1px solid rgba(212, 175, 94, .1); font-size: 14.5px; }
.widget ul li:first-child { border-top: 0; }
.s-rubrics li + li { border-top: 1px solid rgba(212, 175, 94, .1); }
.s-rubrics a { display: flex; align-items: center; gap: 11px; padding: 3px 4px; color: var(--list-link); font-size: 14.5px; }
.s-rubrics .s-ic { color: var(--gold-dim); width: 22px; height: 22px; flex: 0 0 22px; }
.s-rubrics .s-ic .ic { width: 22px; height: 22px; }
.s-rubrics em { margin-left: auto; font-style: normal; font-family: Verdana, sans-serif; font-size: 10px; color: var(--mut); }
.s-rubrics a:hover { color: var(--gold-hi); }
.mage-card { padding: 0; overflow: hidden; }
.mage-card img { width: 100%; display: block; }
.mage-card .mc-body { padding: 16px 18px 18px; text-align: center; }
.mage-card .h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-weight: 600; color: var(--card-title); margin-bottom: 6px; }
.mage-card p { font-size: 13px; color: var(--mut); line-height: 1.55; margin-bottom: 12px; }
.s-pop li { border-top: 0 !important; }
.s-pop li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(212, 175, 94, .1) !important; }
.s-pop a { display: flex; gap: 12px; align-items: center; }
.s-pop img { width: 64px; height: 64px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); flex: 0 0 64px; }
.s-pop span { font-size: 13.5px; line-height: 1.4; color: var(--list-link); }
.s-pop time { display: block; font-size: 11px; color: var(--mut); font-style: italic; margin-top: 3px; }
.s-pop a:hover span { color: var(--gold-hi); }

/* ============ 14. Article / entry content ============ */
.breadcrumbs { font-size: 12.5px; color: var(--mut); font-style: italic; margin-bottom: 14px; }
.breadcrumbs a { color: var(--gold-dim); }
.entry-card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 30px 34px 34px; }
.entry-header .entry-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.22; color: var(--card-title); margin-bottom: 10px; }
.entry-meta { font-size: 13px; color: var(--mut); font-style: italic; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.entry-meta a { color: var(--gold-dim); }
.entry-thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 22px; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { font-size: 16.5px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--card-title); line-height: 1.3; margin-top: 1.6em; }
.entry-content h2 { font-size: 27px; padding-bottom: 8px; border-bottom: 1px solid rgba(212, 175, 94, .25); }
.entry-content h3 { font-size: 22px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(212, 175, 94, .5); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 26px; }
.entry-content li + li { margin-top: .45em; }
.entry-content blockquote { position: relative; border-left: 3px solid var(--gold); background: rgba(212, 175, 94, .07); padding: 20px 22px 16px 58px; border-radius: 0 8px 8px 0; font-style: italic; }
.entry-content blockquote::before { content: "\201C"; position: absolute; left: 16px; top: 4px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 52px; line-height: 1; color: var(--gold); }
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: 13px; color: var(--mut); font-style: normal; }
.entry-content h4 { font-size: 19px; }
.entry-content h5 { font-size: 17px; letter-spacing: .04em; }
.entry-content h6 { font-size: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-dim); }
.entry-content ul li::marker { color: var(--gold); }
.entry-content ol li::marker { color: var(--gold-dim); font-family: Verdana, sans-serif; font-size: 13px; }
.page-links { margin-top: 20px; font-size: 14px; color: var(--mut); }
.page-links a { padding: 2px 8px; border: 1px solid var(--line); border-radius: 5px; margin-left: 4px; }
.entry-content img { border-radius: 8px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content th { background: rgba(212, 175, 94, .1); font-family: Verdana, sans-serif; font-size: 12px; }
.entry-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-family: Verdana, sans-serif; font-size: 11px; color: var(--gold-dim); border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; }
.tag-pill:hover { border-color: var(--gold); color: var(--gold); }

/* TOC */
.mystic-toc { background: rgba(212, 175, 94, .06); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 24px 0; font-size: 14.5px; }
.mystic-toc .toc-t { display: flex; align-items: center; gap: 8px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; font-weight: 700; color: var(--gold); cursor: pointer; user-select: none; }
.mystic-toc .toc-t::after { content: "\25BE"; margin-left: auto; transition: transform .25s; font-size: 13px; }
.mystic-toc.closed .toc-t::after { transform: rotate(-90deg); }
.mystic-toc ol { margin: 10px 0 0 22px; }
.mystic-toc.closed ol { display: none; }
.mystic-toc li { margin: 5px 0; }
.mystic-toc a { color: var(--list-link); text-decoration: none; }
.mystic-toc a:hover { color: var(--gold-hi); }
.mystic-toc .lvl3 { margin-left: 16px; font-size: 13.5px; }

/* lazy YouTube facade */
.yt-lite { position: relative; display: block; background-size: cover; background-position: center; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; border: 1px solid var(--line); }
.yt-lite::before { content: ""; position: absolute; inset: 0; background: rgba(8, 6, 17, .25); transition: background .25s; }
.yt-lite:hover::before { background: rgba(8, 6, 17, .05); }
.yt-lite .yt-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; background: rgba(11, 9, 24, .8); border: 1px solid rgba(212, 175, 94, .6); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.yt-lite .yt-btn::after { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #eed9a2; margin-left: 4px; }
.yt-lite:hover .yt-btn { background: rgba(212, 175, 94, .3); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Виджет-зоны в теле статьи */
.in-widget { margin: 28px 0; }
.in-widget .widget + .widget { margin-top: 16px; }

/* Блок автора (E-E-A-T) */
.author-box { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-top: 28px; }
.ab-avatar img { border-radius: 50%; border: 1px solid rgba(212, 175, 94, .45); display: block; height: auto; }
.ab-label { display: block; font-family: Verdana, sans-serif; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 4px; }
.ab-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 23px; font-weight: 700; }
.ab-name a { color: var(--card-title); }
.ab-name a:hover { color: var(--gold-hi); }
.ab-bio { font-size: 13.5px; color: var(--mut); line-height: 1.6; margin: 7px 0 9px; }
.ab-all { font-size: 12.5px; font-style: italic; color: var(--gold-dim); }
.ab-all:hover { color: var(--gold-hi); }
.author-head .ab-avatar img { border-radius: 50%; border: 1px solid rgba(212, 175, 94, .45); }
.author-head { gap: 20px; }

/* related */
.related { margin-top: 34px; }
.related .w-title { text-align: left; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rel-card { display: block; }
.rel-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.rel-card span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--list-link); }
.rel-card:hover span { color: var(--gold-hi); }

/* post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.post-nav a { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-size: 14px; color: var(--list-link); }
.post-nav a:hover { border-color: var(--gold); color: var(--gold-hi); }
.post-nav .lbl { display: block; font-family: Verdana, sans-serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 5px; }
.post-nav .next { text-align: right; }

/* comments */
.comments-area { margin-top: 34px; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment-list .children { list-style: none; margin-left: 28px; }
.comment-author { font-weight: 700; color: var(--card-title); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; }
.comment-metadata { font-size: 12px; color: var(--mut); font-style: italic; margin-bottom: 6px; }
.comment-content { font-size: 15px; }
.comment-reply-link { font-size: 12.5px; color: var(--gold-dim); }
.comment-form label { display: block; font-family: Verdana, sans-serif; font-size: 11.5px; letter-spacing: .06em; color: var(--mut); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; font: 15px Georgia, serif; margin-bottom: 14px; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--gold); }

/* ============ 15. Archive / cards grid ============ */
.arch-head { margin: 6px 0 22px; padding: 24px 28px; border-radius: 12px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.arch-head .cat-ic { width: 52px; height: 52px; flex: 0 0 52px; }
.arch-head .cat-ic .ic { width: 30px; height: 30px; }
.arch-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--card-title); }
.arch-desc { font-size: 13.5px; color: var(--mut); font-style: italic; margin-top: 4px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card .card-img { display: block; overflow: hidden; }
.card .card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-family: Verdana, sans-serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dim); }
.card-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 700; line-height: 1.3; }
.card-title a { color: var(--card-title); }
.card-title a:hover { color: var(--gold-hi); }
.card-x { font-size: 13.5px; color: var(--mut); line-height: 1.55; }
.card-meta { margin-top: auto; font-size: 12px; color: var(--mut); font-style: italic; }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination .page-numbers { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--list-link); font-family: Verdana, sans-serif; font-size: 13px; }
.pagination .page-numbers.current { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--badge-ink); border-color: var(--gold); }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* 404 & search */
.big-msg { text-align: center; padding: 60px 20px; }
.big-msg .h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 44px; color: var(--card-title); margin-bottom: 10px; }
.big-msg p { color: var(--mut); font-style: italic; margin-bottom: 22px; }
.big-msg .search-form { max-width: 420px; margin: 0 auto; }
.big-msg .search-form input[type="search"] { width: 100%; }
.err-art { max-width: 640px; margin: 0 auto 26px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.err-art img { display: block; width: 100%; }

/* ============ 16. Footer ============ */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 10px; }
html:not(.scheme-light) .site-footer { background: rgba(8, 6, 17, .94); }
.f-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; padding: 38px 0 26px; }
.f-cols .h5 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; font-weight: 600; letter-spacing: .08em; color: var(--gold); margin-bottom: 12px; }
.f-cols p { font-size: 13.5px; color: var(--mut); line-height: 1.7; }
.f-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.f-links a, .f-plain a { font-size: 13.5px; color: var(--list-link); line-height: 1.9; display: block; }
.f-links a:hover, .f-plain a:hover { color: var(--gold-hi); }
.f-cols ul { list-style: none; }
.f-bottom { border-top: 1px solid var(--line); padding: 14px 0 18px; text-align: center; font-size: 12px; color: var(--mut); font-style: italic; }
.f-bottom b { color: var(--gold-dim); font-weight: 400; }

/* ============ 16b. Конструктор страниц (шорткоды) ============ */
.builder-content > * + * { margin-top: 28px; }
.builder-content > p { max-width: 860px; font-size: 16.5px; line-height: 1.75; }
.builder-content .cat-grid.one { grid-template-columns: 1fr; }
.cat-grid.one { display: grid; grid-template-columns: 1fr; gap: 26px; }
.cards.cols1 { grid-template-columns: 1fr; }
.cards.cols3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols4 { grid-template-columns: repeat(4, 1fr); }
.sc-btn-wrap { text-align: center; }

/* ============ 16c. Магазин (WooCommerce) ============ */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.cart-btn:hover { border-color: var(--gold); }
.cart-btn .cart-n { position: absolute; top: -6px; right: -7px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--badge-ink); font: 700 9.5px/15px Verdana, sans-serif; font-style: normal; text-align: center; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.woocommerce ul.products li.product { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 0 0 16px; text-align: center; overflow: hidden; }
.woocommerce ul.products li.product img { width: 100%; height: auto; display: block; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; font-weight: 700; color: var(--card-title); padding: 0 14px; }
.woocommerce .price, .woocommerce ul.products li.product .price { color: var(--gold); font-family: Verdana, sans-serif; font-size: 14px; display: block; margin: 6px 0 10px; }
.woocommerce .price del { color: var(--mut); opacity: .7; margin-right: 6px; }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.wc-block-components-button { display: inline-block; font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--badge-ink) !important; background: linear-gradient(180deg, var(--gold-hi), var(--gold)) !important; padding: 9px 20px; border-radius: 4px; border: 0; cursor: pointer; }
.woocommerce .button:hover { box-shadow: 0 0 18px rgba(212, 175, 94, .5); }
.woocommerce span.onsale { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--badge-ink); font-family: Verdana, sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border-radius: 3px; padding: 4px 10px; position: absolute; top: 10px; left: 10px; z-index: 2; min-height: 0; line-height: 1.4; }
.woocommerce ul.products li.product { position: relative; }
.woocommerce div.product .product_title { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--card-title); font-size: clamp(26px, 3vw, 36px); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--list-link); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--gold); }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; }
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--gold); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--panel2); border-top-color: var(--gold); color: var(--ink); border-radius: 0 0 8px 8px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold); }
@media (max-width: 840px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards.cols3, .cards.cols4 { grid-template-columns: 1fr; }
}

/* ============ 16d. Онлайн-гадания ============ */
.gd-game { margin: 30px 0; }
.gd-q { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-style: italic; color: var(--card-title); text-align: center; margin-bottom: 6px; }
.gd-status { text-align: center; font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-bottom: 16px; }
.gd-status b { color: var(--gold); }
.gd-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px; max-width: 860px; margin: 0 auto; perspective: 1200px; }
.gd-card { position: relative; aspect-ratio: 2 / 3; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 9px; transition: transform .25s; }
.gd-card:hover:not(:disabled) { transform: translateY(-7px); }
.gd-card .gd-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.4, .1, .2, 1); }
.gd-card.flip .gd-in { transform: rotateY(180deg); }
.gd-card .gd-back, .gd-card .gd-front { position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; border: 1px solid rgba(212, 175, 94, .4); overflow: hidden; }
.gd-card .gd-back { background-size: cover; background-position: center; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .8); }
.gd-card .gd-front { transform: rotateY(180deg); background: linear-gradient(180deg, var(--panel2), var(--panel)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.gd-card .gd-front i { font-style: normal; color: var(--gold); font-size: 15px; text-shadow: 0 0 9px rgba(212, 175, 94, .8); }
.gd-card .gd-front b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--card-title); text-align: center; word-break: break-word; }
.gd-card.off { opacity: .35; filter: grayscale(.6); cursor: default; }
.gd-results { margin-top: 26px; }
.gd-results .gd-res { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-top: 14px; animation: gdIn .5s ease; }
@keyframes gdIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gd-res img { width: 96px; flex: 0 0 96px; border-radius: 8px; border: 1px solid rgba(212, 175, 94, .35); }
.gd-pos { display: block; font-family: Verdana, sans-serif; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 3px; }
.gd-title { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--card-title); margin-bottom: 5px; }
.gd-text { font-size: 15px; line-height: 1.65; }
.gd-text p { margin: 0 0 .7em; }
.gd-text p:last-child { margin-bottom: 0; }
.gd-again-wrap { text-align: center; margin-top: 20px; }
@media (max-width: 600px) {
  .gd-deck { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
  .gd-results .gd-res { flex-direction: column; }
  .gd-res img { width: 120px; }
}

/* ============ 17. WP core helpers ============ */
.alignleft { float: left; margin: 6px 22px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 22px; }
.aligncenter { display: block; margin: 12px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 12.5px; color: var(--mut); font-style: italic; text-align: center; padding: 6px 4px; }
.sticky { border-color: var(--gold); }
.bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
embed, iframe, object, video { max-width: 100%; }

/* ============ 18. Responsive ============ */
@media (max-width: 1020px) {
  .cols { grid-template-columns: 1fr; }
  .side { position: static; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .cat-grid, .cards, .rel-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .slider { height: 330px; }
  .slide-body { padding: 24px 20px 30px; }
  .f-cols { grid-template-columns: 1fr; gap: 22px; }
  .search-form input[type="search"] { width: 76px; }
  .cat-block.wide .cb-cols { grid-template-columns: 1fr; }
  .promo { min-height: 200px; }
  .art-block { min-height: 430px; }
  .entry-card { padding: 22px 18px 26px; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .post-nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
