/* =====================================================================
   Тема «Ezoterika 2026» для Ezoterika.eu
   Тёмная шапка с латунью, светлый фон для чтения, рубрики.
   Шрифты Prata и Golos Text лежат в папке темы (не грузятся с Google).

   1. Шрифты и переменные      6. Статья и статичные страницы
   2. Основа                   7. Подписка, подвал, нижняя панель
   3. Кнопки                   8. Блоки внутри статей (сниппеты)
   4. Шапка, меню, поиск       9. Таро Теней (сниппеты tt-*)
   5. Главная и ленты         10. Магазин, печать, адаптив
   ===================================================================== */

/* ---------- 1. Шрифты и переменные ---------- */

@font-face { font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/prata-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/prata-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/golos-text-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/golos-text-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/golos-text-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/golos-text-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/golos-text-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/golos-text-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Ночь и латунь — шапка, тёмные блоки, кнопки */
  --night: #1B1622;
  --night-2: #2A2232;
  --night-line: #2E2636;
  --night-border: #5A4F66;
  --on-night: #F3EEE6;
  --on-night-2: #D7CFDF;
  --on-night-3: #B7AEC0;
  --accent: #D9B872;          /* латунь: кнопки на тёмном */
  --accent-ink: #7A5C22;      /* латунь для текста на светлом */
  --accent-ink-2: #4F3B14;

  /* Светлая часть — чтение */
  --bg: #FBFAF6;
  --paper: #FFFFFF;
  --sand: #F3EEE4;
  --ink: #231C29;
  --ink-2: #4A4252;
  --mut: #5E5566;
  --line: #E5DED2;
  --line-2: #CFC6B8;

  /* Рубрика по умолчанию (классическое Таро и всё прочее) */
  --violet: #5B4A9E;
  --violet-deep: #26215C;
  --violet-tint: #EEEAF7;
  --rb: var(--violet);
  --rb-deep: var(--violet-deep);
  --rb-tint: var(--violet-tint);

  /* Таро Теней */
  --tt: #7A1F28;
  --tt-deep: #241216;
  --tt-card: #33181D;
  --tt-border: #6E3A40;
  --tt-tint: #FBECEC;
  --tt-line: #F0CFCC;
  --tt-gold: #E8C37A;
  --tt-soft: #E2B8A8;

  --serif: 'Prata', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;

  /* Мост для плагина магазина (BluditShop читает эти переменные) */
  --c-paper: var(--bg);
  --c-surface: var(--paper);
  --c-ink: var(--ink);
  --c-ink-soft: var(--mut);
  --c-primary: var(--night);
  --c-primary-dark: var(--night);
  --c-accent: var(--accent);
  --c-accent-dark: var(--accent-ink);
  --c-border: var(--line);
  --ff-display: var(--serif);
  --ff-body: var(--sans);
  --shadow-card: 0 1px 2px rgba(27, 22, 34, .05), 0 10px 28px -14px rgba(27, 22, 34, .22);
}

/* Рубрики: класс на <body> перекрашивает акцент статьи */
.rubric-taro  { --rb: #5B4A9E; --rb-deep: #26215C; --rb-tint: #EEEAF7; }
.rubric-money { --rb: #2F6B4F; --rb-deep: #1E3B2E; --rb-tint: #E7F1EA; }
.rubric-runes { --rb: #8A5A2B; --rb-deep: #3A2614; --rb-tint: #F4EADF; }
.rubric-psy   { --rb: #2E5C7A; --rb-deep: #18303F; --rb-tint: #E6EFF5; }
.rubric-tt    { --rb: var(--tt); --rb-deep: var(--tt-deep); --rb-tint: var(--tt-tint); }

/* ---------- 2. Основа ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-ink-2); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 6px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .bottom-bar :focus-visible { outline-color: var(--accent); }

.wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 820px; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--night); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.ico { flex-shrink: 0; }
[hidden] { display: none !important; }

.eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; }
.eyebrow-accent { color: var(--accent); }
.eyebrow-tt { color: var(--tt-soft); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--mut); margin: 0 0 14px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- 3. Кнопки ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pill-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.pill-accent { background: var(--accent); color: var(--night); }
.pill-accent:hover { background: #E6C98B; color: var(--night); }
.pill-dark { background: var(--night); color: var(--on-night); }
.pill-dark:hover { background: #352B40; color: var(--on-night); }
.pill-outline { border-color: var(--accent); color: var(--accent); }
.pill-outline:hover { background: rgba(217, 184, 114, .12); color: var(--accent); }
.pill-ghost { border-color: var(--night-border); color: var(--on-night); }
.pill-ghost:hover { border-color: var(--on-night-3); color: var(--on-night); }
.pill-outline-dark { border-color: var(--line-2); color: var(--ink); font-weight: 500; }
.pill-outline-dark:hover { border-color: var(--ink); color: var(--ink); }
.pill-light { background: #F3E6E2; color: var(--tt-deep); }
.pill-light:hover { background: #FFFFFF; color: var(--tt-deep); }
.more-link { font-weight: 500; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #3A3144; background: transparent; color: var(--on-night);
  cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--on-night-3); }

/* ---------- 4. Шапка, меню, поиск ---------- */

.site-header { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--on-night); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--on-night); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--on-night); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 20px; }
.brand-sub { font-size: 12.5px; color: var(--on-night-3); }

.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15.5px; }
.nav a { color: var(--on-night); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.mobile-menu { border-top: 1px solid var(--night-line); }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.mobile-menu a { display: flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .mm-accent { color: var(--accent); font-weight: 600; }

.search-panel { border-top: 1px solid var(--night-line); padding: 14px 0; }
.search-form { display: flex; align-items: center; gap: 10px; }
.search-form input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 18px;
  border: 1px solid var(--night-border); border-radius: 999px;
  background: var(--night-2); color: var(--on-night); font: inherit; font-size: 16px;
}
.search-form input[type="search"]::placeholder { color: var(--on-night-3); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); }

.search-big {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 6px 6px 22px; box-shadow: 0 14px 34px -12px rgba(27, 22, 34, .28); color: var(--mut);
}
.search-big input[type="search"], .search-inline input[type="search"] { background: transparent; border: 0; color: var(--ink); padding: 0 6px; font-size: 17px; }
.search-big input[type="search"]::placeholder { color: var(--mut); }
.search-inline { margin-top: 18px; max-width: 560px; background: var(--night-2); border: 1px solid var(--night-border); border-radius: 999px; padding: 4px 4px 4px 14px; }
.search-inline input[type="search"] { color: var(--on-night); }

.read-progress { height: 3px; background: transparent; overflow: hidden; }
.view-article .read-progress { background: var(--night-line); }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.rubric-tt .read-progress span { background: #C2414F; }

/* ---------- 5. Главная и ленты ---------- */

.hero { background: var(--night); color: var(--on-night); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 104px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero:not(.hero-has-img) .hero-text { max-width: 820px; }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; }
.hero-lead { margin: 0; font-size: 20px; color: var(--on-night-2); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-author { display: flex; align-items: center; gap: 14px; }
.hero-author p { margin: 0; font-size: 15px; color: var(--on-night-3); line-height: 1.45; }
.hero-author strong { color: var(--on-night); font-weight: 500; }
.hero-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hero-media { flex: 1 1 400px; min-width: 0; max-width: 540px; }
.hero-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; }

.avatar-mono {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--night-2); color: var(--accent); font-family: var(--serif); font-size: 24px;
  border: 1px solid var(--night-border);
}

.hero-search { position: relative; z-index: 2; margin-top: -34px; }

.block { padding-top: 72px; }
.block-tight { padding-top: 44px; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 26px; }
.block-title { margin: 0 0 26px; font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 3vw, 36px); line-height: 1.2; }
.block-head .block-title { margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }

.service-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.service-meta { margin: 0; font-size: 14px; color: var(--mut); }
.service-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; }
.service-title a { color: var(--ink); text-decoration: none; }
.service-title a:hover { color: var(--accent-ink); }
.service-text { margin: 0; color: var(--ink-2); }
.service-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-price { font-family: var(--serif); font-size: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-n { font-size: 13px; color: var(--mut); }
.chip-tt { background: var(--tt-deep); border-color: var(--tt-deep); color: #F3E6E2; }
.chip-tt:hover { color: #FFFFFF; border-color: var(--tt-border); }
.chip-tt .chip-n { color: var(--tt-soft); }

.cards { gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card-cover { display: block; aspect-ratio: 16 / 9; background: var(--rb-tint); overflow: hidden; text-decoration: none; }
.card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-cover img { transform: scale(1.03); }
/* Вертикальные и квадратные обложки (карты Таро) — целиком, на фоне рубрики */
.card-cover-fit { display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--violet-tint); }
.card-cover-fit img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(27, 22, 34, .18)); }
.card:hover .card-cover-fit img { transform: none; }
.card-tt .card-cover-fit { background: var(--tt-deep); }
/* Заглушка без обложки — в стиле рубрики, а не пустой квадрат */
.card-cover-ph { display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--violet); background: var(--violet-tint); }
.ph-mark { font-size: 30px; line-height: 1; }
.ph-label { font-family: var(--serif); font-size: 17px; color: var(--violet-deep); }
.card-tt .card-cover-ph { background: var(--tt-deep); color: var(--tt-gold); background-image: radial-gradient(circle at 50% 45%, rgba(232, 195, 122, .10), transparent 60%); }
.card-tt .ph-label { color: #F3E6E2; }
.card-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-meta { margin: 0; font-size: 14px; color: var(--mut); }
.card-cat { color: var(--accent-ink); font-weight: 500; text-decoration: none; }
.card-tt .card-cat { color: var(--tt); }
.card-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); }
.card-desc { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-sm .card-title { font-size: 19px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 36px; }
.pager-n { font-size: 15px; color: var(--mut); }
/* Результаты поиска — список, а не сетка */
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.sr-link { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
.sr-link:hover { border-color: var(--ink); color: var(--ink); }
.sr-thumb { flex: 0 0 132px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--violet-tint); display: flex; align-items: center; justify-content: center; color: var(--violet); font-size: 24px; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-thumb-fit { padding: 6px; }
.sr-thumb-fit img { object-fit: contain; }
.sr-tt .sr-thumb { background: var(--tt-deep); color: var(--tt-gold); }
.sr-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sr-meta { font-size: 13.5px; color: var(--accent-ink); font-weight: 500; }
.sr-tt .sr-meta { color: var(--tt); }
.sr-title { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.sr-snippet { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Плагин Search подсвечивает слово и в заголовке страницы — там подсветка не нужна */
.list-band mark { background: none; color: inherit; padding: 0; }
.search-results mark { background: #F6E7C2; color: inherit; border-radius: 3px; padding: 0 2px; }

.empty-state { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.empty-state p { margin: 0; }

.list-band, .static-band { background: var(--night); color: var(--on-night); padding: 36px 0 44px; }
.list-band .crumbs, .static-band .crumbs { color: var(--on-night-3); }
.list-title, .static-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.5vw, 50px); line-height: 1.15; }
.list-desc, .static-lead { margin: 14px 0 0; font-size: 19px; color: var(--on-night-2); max-width: 760px; }
.rubric-tt.view-category .list-band { background: var(--tt-deep); }

.tt-promo { background: var(--tt-deep); color: #F3E6E2; border-radius: 28px; padding: 52px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.tt-promo-text { flex: 1 1 420px; min-width: 0; }
.tt-promo-text p { color: #DCC9C3; margin: 0 0 22px; }
.tt-promo .block-title { margin-bottom: 14px; }
.tt-promo-cards { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tt-mini { aspect-ratio: 2 / 3; border-radius: 14px; border: 1px solid var(--tt-border); background: var(--tt-card); color: #F3E6E2; text-decoration: none; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.tt-mini:hover { border-color: var(--tt-gold); color: #FFFFFF; }
.tt-mini { position: relative; overflow: hidden; }
.tt-mini-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-mini-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 8, 10, .85), rgba(20, 8, 10, 0) 55%); }
.tt-mini-n, .tt-mini-name { position: relative; z-index: 1; }
.tt-mini-img .tt-mini-n { align-self: flex-start; background: rgba(20, 8, 10, .6); padding: 2px 8px; border-radius: 999px; }
.tt-mini-n { font-size: 13px; color: var(--tt-soft); }
.tt-mini-name { font-family: var(--serif); font-size: 18px; line-height: 1.2; }

.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); }

.review { margin: 0; background: var(--sand); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; color: var(--ink-2); }
.review figcaption { font-size: 15px; color: var(--mut); }

/* ---------- 6. Статья и статичные страницы ---------- */

.article-band { background: var(--rb-tint); padding: 30px 0 40px; }
.article-band-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; }
.article-band-text { flex: 1 1 520px; min-width: 0; max-width: 860px; }
.post-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(31px, 4.4vw, 50px); line-height: 1.15; color: var(--rb-deep); }
.post-meta { margin: 0; font-size: 15px; color: var(--mut); }
.article-band-cover { width: 220px; height: auto; max-height: 340px; object-fit: contain; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(27, 22, 34, .45); }
.article-band-cover.cover-square { width: 260px; }

.rubric-tt .article-band { background: var(--tt-deep); color: #F3E6E2; padding-bottom: 48px; }
.rubric-tt .article-band .crumbs, .rubric-tt .post-meta { color: #CDB3AC; }
.rubric-tt .post-title { color: #F3E6E2; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 36px; padding-bottom: 72px; }
.post { min-width: 0; max-width: 760px; }
.post-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; margin: 0 0 32px; }
.post-aside { display: none; }

.post-content { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.post-content > *:first-child { margin-top: 0; }
.post-content h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.25; margin: 48px 0 16px; color: var(--ink); }
.post-content h3 { font-size: 21px; font-weight: 600; line-height: 1.35; margin: 32px 0 10px; }
.post-content h4 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.post-content p { margin: 0 0 20px; }
.post-content a { color: var(--rb); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-content a:hover { color: var(--rb-deep); }
.post-content img { border-radius: 14px; max-height: 640px; width: auto; height: auto; }
.post-content ul, .post-content ol { margin: 0 0 20px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { margin: 28px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--rb); font-family: var(--serif); font-size: 20px; color: var(--ink-2); }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post-content table { border-collapse: collapse; width: 100%; margin: 0 0 22px; font-size: 16px; display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.post-content table.table-wrap, .post-content .table-wrap table { white-space: normal; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-content th { background: var(--rb-tint); color: var(--rb-deep); }
.post-content pre { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.post-content iframe { max-width: 100%; border: 0; }

/* Ссылки на PDF — карточкой «Скачать» */
.post-content a[href$=".pdf"], .post-content a[href$=".PDF"] {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; margin: 4px 8px 8px 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 500;
}
.post-content a[href$=".pdf"]::before, .post-content a[href$=".PDF"]::before {
  content: 'PDF'; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 48px; flex-shrink: 0;
  border-radius: 8px; background: var(--sand); color: var(--accent-ink); font-size: 12px; font-weight: 600;
}
.post-content a[href$=".pdf"]:hover, .post-content a[href$=".PDF"]:hover { border-color: var(--ink); }

.consult { margin: 40px 0 0; background: var(--night); color: var(--on-night); border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.consult-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.consult-body { flex: 1 1 260px; min-width: 0; }
.consult-title { margin: 0 0 4px; font-family: var(--serif); font-size: 23px; line-height: 1.3; }
.consult-text { margin: 0; color: var(--on-night-2); font-size: 16px; }
.rubric-tt .consult { background: var(--tt); }
.rubric-tt .consult .pill-accent { background: var(--tt-gold); color: #5C1620; }

.tt-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 32px 0 0; }
.tt-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--tt-line); border-radius: 18px; color: var(--ink); text-decoration: none; }
.tt-nav a:hover { border-color: var(--tt); }
.tt-nav span { font-size: 14px; color: var(--tt); }
.tt-nav strong { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; }
.tt-nav-next { text-align: right; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font-weight: 600; margin-right: 6px; }

.tg-inline { margin: 28px 0 0; background: var(--sand); border-radius: 20px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tg-inline p { margin: 0; flex: 1 1 280px; }

.related { margin-top: 56px; }
.related-title { margin: 0 0 22px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.25; }
.related .grid-3 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }

.post-aside { flex-direction: column; gap: 18px; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; font-size: 16px; line-height: 1.5; }
.aside-card p { margin: 0 0 12px; }
.aside-h { font-weight: 600; margin: 0 0 10px !important; }
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a { color: var(--ink); text-decoration: none; padding-left: 12px; border-left: 2px solid transparent; }
.toc-list a:hover, .toc-list a.on { color: var(--rb); border-left-color: var(--rb); }
.aside-author { background: var(--sand); border: 0; }
.aside-author-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aside-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.aside-name { margin: 0 !important; font-weight: 600; }
.aside-sub { margin: 0 !important; font-size: 14px; color: var(--mut); }
.aside-dark { background: var(--night); border: 0; color: var(--on-night); }
.aside-dark p:not(.aside-h) { color: var(--on-night-2); }
.aside-tt { background: var(--tt-deep); border: 0; color: #F3E6E2; }
.aside-tt p:not(.aside-h) { color: #DCC9C3; }

.static-layout { padding-top: 40px; padding-bottom: 72px; }
.static-layout > * { max-width: 860px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- 7. Подписка, подвал, нижняя панель ---------- */

.subscribe { padding: 72px 0 88px; }
.view-shop .subscribe { padding-top: 24px; }
.subscribe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.sub-card { border-radius: 24px; padding: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sub-card p { margin: 0; }
.sub-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.sub-tg { background: var(--night); color: var(--on-night); }
.sub-tg p { color: var(--on-night-2); }
.sub-mail { background: var(--paper); border: 1px solid var(--line); }
.sub-mail p { color: var(--ink-2); }
.sub-row { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.sub-row input[type="email"] { flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); }
.sub-row input[type="email"]:focus { outline: none; border-color: var(--accent-ink); }
.sub-row .pill { min-height: 50px; }
.sub-note { font-size: 14px; color: var(--mut) !important; }

.site-footer { background: var(--night); color: var(--on-night-3); font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.footer-about { flex: 2 1 280px; }
.footer-about p { margin: 12px 0 0; max-width: 380px; }
.footer-brand { font-family: var(--serif); font-size: 22px; color: var(--on-night); }
.footer-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 8px; }
.footer-h { color: var(--on-night); font-weight: 500; margin-bottom: 4px; }
.footer-col a { color: var(--on-night-3); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--night-line); padding: 18px 0; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-night-3); }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(27, 22, 34, .96); border-top: 1px solid var(--night-line);
}
.bb-main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: var(--accent); color: var(--night); font-weight: 600; font-size: 17px; text-decoration: none; }
.bb-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--night-border); background: transparent; color: var(--on-night); cursor: pointer; padding: 0; }
.bb-tg { border-color: var(--accent); color: var(--accent); }

/* ---------- 8. Блоки внутри статей (сниппеты, совместимы со старыми статьями) ---------- */

.tldr { background: var(--rb-tint); border-radius: 18px; padding: 18px 22px; margin: 0 0 28px; font-size: 16.5px; }
.tldr b, .tldr strong { color: var(--rb-deep); }
.tldr p { margin: 0; color: var(--rb-deep); line-height: 1.6; }

.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 0 0 28px; font-size: 16px; }
.toc p { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.toc a { display: inline-block; margin: 3px 14px 3px 0; text-decoration: none; }

.arcana-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--rb-tint); border: 1px solid transparent;
  color: var(--rb-deep); padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 16px;
}
.arcana-badge .mark { color: var(--accent-ink); font-size: 12px; }

.keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.keyword-tag { display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--line-2); color: var(--rb); padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.keyword-tag .mark { color: var(--accent-ink); margin-right: 6px; font-size: 11px; }

.section-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rb-tint); color: var(--rb); font-size: 15px; margin-right: 10px; vertical-align: middle; font-family: var(--sans); }

.topic-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; margin-right: 8px; vertical-align: middle; }
.topic-icon.love    { background: #FBEAF0; color: #A3335A; }
.topic-icon.work    { background: #EAF3DE; color: #3F6B19; }
.topic-icon.general { background: var(--rb-tint); color: var(--rb); }

.polarity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.polarity-box { padding: 18px 20px; border-radius: 0 16px 16px 0; }
.polarity-box.upright { background: var(--rb-tint); border-left: 4px solid var(--rb); }
.polarity-box.reversed { background: #FBF0E2; border-left: 4px solid #C9903A; }
.polarity-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.polarity-box.upright .polarity-label { color: var(--rb-deep); }
.polarity-box.reversed .polarity-label { color: #8A5518; }
.polarity-label .mark { margin-right: 6px; font-size: 15px; }
.polarity-box p { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.55; }

.insight-box { background: #FFF8EA; border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 0 16px 16px 0; margin: 24px 0; font-size: 16.5px; color: #4F3F22; line-height: 1.65; }
.insight-box .mark { color: var(--accent-ink); font-weight: 700; margin-right: 6px; }

.article-cta { background: var(--rb-deep); color: #FFFFFF; border-radius: 24px; padding: 28px 30px; margin: 40px 0 8px; text-align: center; }
.article-cta p.title { font-family: var(--serif); font-size: 23px; line-height: 1.3; margin: 0 0 6px; color: #FFFFFF; font-weight: 400; }
.article-cta p.sub { font-size: 16px; color: #DCD6EE; margin: 0 0 18px; }
.post-content .article-cta a, .article-cta a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--night) !important; text-decoration: none; font-weight: 600; font-size: 16px;
}
.post-content .article-cta a:hover { background: #E6C98B; }

.hub-link { font-size: 15px; color: var(--mut); margin-top: 16px; }
.hub-link a { color: var(--rb); }

.post-content .embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 22px; border-radius: 16px; overflow: hidden; background: #000; }
.post-content .embed iframe, .post-content .embed video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Плеер с выбором платформы */
.oplayer { margin: 0 0 26px; }
.oplayer-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.oplayer-tabs button { font: inherit; font-size: 14.5px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.oplayer-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.oplayer-tabs button.on { background: var(--night); border-color: var(--night); color: var(--on-night); }
.oplayer-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; }
.oplayer-frame iframe, .oplayer-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oplayer-note { margin: 8px 0 0; font-size: 14px; color: var(--mut); }

/* Кнопки и формы внутри текста статей */
.post-content button, .post-content input[type="button"], .post-content input[type="submit"], .post-content a.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  font: inherit; font-size: 15.5px; font-weight: 600; color: var(--on-night); background: var(--night);
  border: 1px solid var(--night); border-radius: 999px; cursor: pointer; text-decoration: none;
}
.post-content button:hover, .post-content input[type="submit"]:hover, .post-content a.btn:hover, a.btn:hover { background: #352B40; color: var(--on-night); }
.post-content .btn-outline, .btn-outline { background: transparent; color: var(--ink) !important; border-color: var(--line-2); }
.post-content .oplayer-tabs button { min-height: 40px; padding: 0 16px; font-weight: 400; font-size: 14.5px; background: var(--paper); color: var(--ink-2); border-color: var(--line-2); }
.post-content .oplayer-tabs button.on { background: var(--night); color: var(--on-night); border-color: var(--night); }

.post-content input[type="text"], .post-content input[type="email"], .post-content input[type="tel"], .post-content input[type="url"],
.post-content input[type="number"], .post-content input[type="date"], .post-content textarea, .post-content select,
.ds-theme-content input[type="text"], .ds-theme-content input[type="email"], .ds-theme-content input[type="tel"], .ds-theme-content input[type="url"],
.ds-theme-content input[type="number"], .ds-theme-content input[type="search"], .ds-theme-content textarea, .ds-theme-content select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 11px 14px; width: 100%; max-width: 100%;
}
.post-content textarea { min-height: 120px; resize: vertical; }
.post-content input:focus, .post-content textarea:focus, .post-content select:focus,
.ds-theme-content input:focus, .ds-theme-content textarea:focus, .ds-theme-content select:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(217, 184, 114, .3); }
.ds-theme-content input[type="number"] { width: 96px; }
.post-content label { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.post-content fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 20px; }

/* Кнопки контактов: белые, цвет мессенджера — в значке */
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 10px;
  border-radius: 18px; background: var(--paper); border: 1px solid var(--line);
  color: var(--ink) !important; text-decoration: none !important; font-weight: 600; font-size: 16px;
  box-shadow: var(--shadow-card); transition: border-color .15s ease;
}
.contact-btn:hover { border-color: var(--ink); }
.contact-btn svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; flex-shrink: 0; color: #FFFFFF; fill: currentColor; background: var(--night); }
.contact-btn.whatsapp svg  { background: #1E9E52; }
.contact-btn.telegram svg  { background: #229ED9; }
.contact-btn.youtube svg   { background: #D91C1C; }
.contact-btn.instagram svg { background: #C13584; }
.contact-btn.email svg     { background: var(--night); color: var(--accent); }
.contact-btn.faq svg       { background: #5E5566; }

/* FAQ-аккордеон */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; margin: 26px 0; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.faq-item summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; color: var(--accent-ink); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: var(--bg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { margin: 0; padding: 16px 22px 20px; color: var(--ink-2); line-height: 1.65; }

/* Таймлайн «О практике» */
.about-timeline { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.timeline-item { display: flex; align-items: flex-start; gap: 18px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 14px 14px 0; }
.timeline-year { flex-shrink: 0; font-family: var(--serif); font-size: 22px; color: var(--accent-ink); min-width: 60px; }
.timeline-item p { margin: 0; color: var(--ink-2); line-height: 1.55; }

/* Галерея сертификатов и отзывов */
.about-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 22px 0; }
.about-gallery img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; display: block; transition: opacity .15s ease; }
.about-gallery a:hover img { opacity: .85; }

/* Тизер будущей услуги («Рунное планирование») */
.service-teaser { position: relative; border-radius: 24px; padding: 28px; margin: 32px 0; background: var(--night); color: var(--on-night); }
.service-teaser-art { width: 100%; height: auto; border-radius: 16px; display: block; margin-bottom: 18px; }
.service-teaser-badge { display: inline-block; background: var(--accent); color: var(--night); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.service-teaser p { margin: 0 0 12px; line-height: 1.6; color: var(--on-night-2); }
.post-content .service-teaser a { color: var(--accent); }
.service-teaser-cta { font-weight: 600; color: var(--accent) !important; margin-bottom: 0 !important; }

/* Страница «Рунное планирование»: список преимуществ — карточками */
.page-runnoe-planirovanie .post-content > ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0 0 28px; }
.page-runnoe-planirovanie .post-content > ul > li { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 18px 58px; position: relative; line-height: 1.5; }
.page-runnoe-planirovanie .post-content > ul > li::before { content: 'ᚱ'; position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 15px; }

/* ---------- 9. Таро Теней (сниппеты tt-*) ---------- */

.tt-arcana-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--tt-tint); border: 1px solid var(--tt-line); color: var(--tt); padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.tt-arcana-badge .mark { color: #B08A2E; font-size: 12px; }
.tt-section-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tt-tint); color: var(--tt); font-size: 15px; margin-right: 10px; vertical-align: middle; font-family: var(--sans); }
.tt-ref-card { background: var(--paper); border: 1px solid var(--tt-line); border-radius: 18px; padding: 20px 24px; margin: 22px 0; }
.tt-ref-card p { margin: 0 0 10px; font-size: 16.5px; color: #3A2020; line-height: 1.6; }
.tt-ref-card p:last-child { margin-bottom: 0; }
.tt-ref-card ul { margin: 4px 0 12px; padding-left: 20px; }
.tt-ref-card ul:last-child { margin-bottom: 0; }
.tt-ref-card li { font-size: 16.5px; color: #3A2020; line-height: 1.55; margin-bottom: 4px; }
.tt-ref-label { display: inline-block; font-weight: 700; color: var(--tt); margin-right: 6px; }
.tt-insight-box { background: #FDF0EF; border-left: 4px solid var(--tt); padding: 18px 22px; border-radius: 0 16px 16px 0; margin: 24px 0; font-size: 16.5px; color: #5C1F22; line-height: 1.65; }
.tt-insight-box .mark { color: #B08A2E; font-weight: 700; margin-right: 6px; }
.tt-article-cta { background: var(--tt); color: #FFFFFF; border-radius: 24px; padding: 28px 30px; margin: 40px 0 8px; text-align: center; }
.tt-article-cta p.title { font-family: var(--serif); font-size: 23px; line-height: 1.3; margin: 0 0 6px; color: #FFFFFF; font-weight: 400; }
.tt-article-cta p.sub { font-size: 16px; color: var(--tt-line); margin: 0 0 18px; }
.post-content .tt-article-cta a, .tt-article-cta a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--tt-gold); color: #5C1620 !important; text-decoration: none; font-weight: 700; font-size: 16px; }
.tt-article-cta a .mark { margin-left: 2px; }

/* ---------- 9a. Плагин «Ezoterika: услуги и магазин» ---------- */

/* Карточка услуги в статье: [usluga ключ] */
.ezo-service-card { display: flex; align-items: stretch; margin: 32px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); }
.ezo-sc-media { flex: 0 0 180px; background: var(--night-2); display: block; }
.ezo-sc-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; max-height: none; }
.ezo-sc-body { flex: 1 1 auto; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.post-content .ezo-sc-body p { margin: 0; }
.ezo-sc-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; }
.ezo-sc-title { font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.post-content .ezo-sc-title a, .ezo-sc-title a { color: var(--ink); text-decoration: none; }
.ezo-sc-title a:hover { color: var(--accent-ink); }
.ezo-sc-text { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.ezo-sc-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ezo-sc-price { font-family: var(--serif); font-size: 24px; margin-right: auto; }
.post-content .ezo-sc-btn, .ezo-sc-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--night); color: var(--on-night); text-decoration: none; font-weight: 600; font-size: 15px; }
.post-content .ezo-sc-btn:hover, .ezo-sc-btn:hover { background: #352B40; color: var(--on-night); }
.rubric-tt .ezo-service-card { border-color: var(--tt-line); }

/* Блок заказа на странице услуги (внутри — карточка магазина) */
.ezo-buy { margin: 0 0 36px; padding: 24px; border-radius: 24px; background: var(--night); color: var(--on-night); }
.ezo-buy-title { margin: 0 0 14px; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.ezo-buy .bludit-shop-card { background: var(--paper); color: var(--ink); border-radius: 18px; overflow: hidden; }
.ezo-buy .bludit-shop-card img { border-radius: 0; max-height: 280px; width: 100%; object-fit: cover; }

/* Внутри блока заказа название и описание уже есть на странице — оставляем цену и кнопку */
.ezo-buy .bludit-shop-card h3, .ezo-buy .bludit-shop-card h3 + p { display: none; }

/* Страница услуги: шапка + текст слева, блок заказа справа */
.service-band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.service-band-text { flex: 1 1 520px; min-width: 0; }
.service-band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.service-band-cover { flex: 0 1 380px; min-width: 0; max-height: 340px; width: 100%; object-fit: cover; border-radius: 22px; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 72px; }
.service-main { min-width: 0; max-width: 760px; }
.service-note { margin: 32px 0 0; font-size: 15px; color: var(--mut); }
@media (min-width: 1080px) {
  .service-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
  .service-aside { position: sticky; top: 96px; align-self: start; }
}

/* Полоса «Подробнее об услуге» над карточкой товара в магазине */
.shop-service-bar { background: var(--sand); border-bottom: 1px solid var(--line); }
.shop-service-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- 10. Магазин, адаптив, печать ---------- */

.view-shop .ds-main { padding-top: 32px; }
.view-shop .ds-theme-content h1 { font-family: var(--serif); font-weight: 400; }
/* Исправление магазина: на узком экране поле «Личный код» растягивалось на 200px в высоту */
@media (max-width: 400px) { .ds-theme-content .ds-discount-input-row input { flex: 0 0 auto; } }

@media (min-width: 700px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
}

@media (min-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .post-aside { display: flex; position: sticky; top: 96px; align-self: start; }
  .has-side-toc .post-content .toc { display: none; } /* на компьютере оглавление уже справа */
}

@media (max-width: 979px) {
  .nav, .hide-sm { display: none !important; }
  .bottom-bar { display: flex; }
  body:not(.view-blank) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (min-width: 980px) {
  .show-sm, .mobile-menu { display: none !important; }
}
@media (min-width: 980px) and (max-width: 1199px) {
  .header-actions .pill-outline { display: none; }
  .brand-sub { display: none; }
  .nav { gap: 6px 16px; font-size: 15px; }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .header-inner { min-height: 60px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
  .header-actions { gap: 8px; }

  .hero-inner { padding-top: 0; padding-bottom: 72px; gap: 28px; }
  .hero-media { order: -1; flex-basis: 100%; max-width: none; margin: 0 -20px; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: 0; }
  .hero:not(.hero-has-img) .hero-inner { padding-top: 36px; }
  .hero-lead { font-size: 18px; }
  .hero-actions .pill { flex: 1 1 100%; }
  .hero-search { margin-top: -28px; }
  .search-big { padding-left: 16px; }
  .search-big .pill { padding: 0 18px; }

  .block { padding-top: 48px; }
  .block-tight { padding-top: 32px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 20px; }
  .service-title { font-size: 22px; }
  .tt-promo { padding: 28px 22px; border-radius: 24px; }

  .article-band { padding: 22px 0 28px; }
  .article-band-inner { gap: 18px; }
  .article-band-cover { order: -1; width: 112px; max-height: 190px; border-radius: 12px; }
  .article-band-cover.cover-square { width: 140px; }
  .sr-link { gap: 12px; padding: 10px; }
  .ezo-service-card { flex-direction: column; }
  .ezo-sc-media { flex-basis: auto; aspect-ratio: 16 / 9; }
  .ezo-sc-btn { flex: 1 1 100%; justify-content: center; }
  .ezo-buy { padding: 18px; }
  .service-band-actions .pill { flex: 1 1 100%; }
  .sr-thumb { flex-basis: 84px; }
  .sr-title { font-size: 18px; }
  .article-layout { padding-top: 24px; gap: 0; }
  .post-content { font-size: 17.5px; }
  .post-content h2 { font-size: 25px; margin-top: 40px; }
  .polarity-grid { grid-template-columns: 1fr; }
  .consult { padding: 22px; }
  .consult .pill { flex: 1 1 100%; }
  .tt-nav { grid-template-columns: 1fr; }
  .tt-nav-next { text-align: left; }
  .share-label { flex: 1 1 100%; }
  .related .grid-3 { grid-template-columns: minmax(0, 1fr); }

  .list-band, .static-band { padding: 26px 0 32px; }
  .subscribe { padding: 48px 0 56px; }
  .sub-card { padding: 24px 22px; }
  .sub-card .pill { width: 100%; }
  .sub-row .pill { flex: 1 1 100%; }
  .footer-grid { gap: 28px; padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .bottom-bar, .subscribe, .site-footer, .post-aside, .share, .tg-inline, .related, .consult { display: none !important; }
  .article-band, .rubric-tt .article-band { background: none; color: #000; }
  .rubric-tt .post-title { color: #000; }
  body { padding: 0 !important; }
}
