/* =========================================================
   Lilac Nails — тема для BryanCMS 1.2
   Палитра #ec92f7, шрифты Plus Jakarta Sans + Playfair Display
   ========================================================= */

:root {
  --brand-50: #fdf6fe;
  --brand-100: #faeafd;
  --brand-200: #f6d5fb;
  --brand-300: #f0b3f8;
  --brand-400: #ec92f7;
  --brand-500: #df6bf0;
  --brand-600: #c544d9;
  --brand-700: #a32fb3;
  --brand-800: #862991;
  --brand-900: #6f2677;

  --text: #2e2633;
  --text-strong: #1f1824;
  --muted: #6f6475;
  --muted-2: #9a8fa0;
  --border: #f0e2f5;
  --card: #ffffff;
  --bg-soft: #faf7fc;

  --grad: linear-gradient(135deg, #ec92f7 0%, #d864ea 100%);
  --grad-soft: linear-gradient(135deg, #faeafd 0%, #f3ccfa 100%);

  --shadow-soft: 0 10px 30px -5px rgba(236, 146, 247, .22);
  --shadow-card: 0 8px 24px -4px rgba(140, 75, 150, .08);
  --shadow-glow: 0 0 25px rgba(236, 146, 247, .45);
  --shadow-float: 0 12px 35px rgba(140, 60, 150, .14);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --container: 1280px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #fdf8fe 0%, #faf3fd 50%, #fbf5fc 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--brand-300); color: var(--brand-900); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-500); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { color: var(--text-strong); line-height: 1.25; margin: 0; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.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: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow-card); }
.skip-link:focus { left: 8px; }

.page-main { flex: 1 0 auto; padding-top: 24px; padding-bottom: 8px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: box-shadow .25s, opacity .25s, transform .15s, background .25s, color .25s;
}
.btn:active { transform: scale(.96); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-brand { background: var(--grad); color: #fff; box-shadow: var(--shadow-soft); }
.btn-brand:hover { color: #fff; box-shadow: var(--shadow-glow); opacity: .95; }
.btn-white { background: #fff; color: var(--brand-700); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.btn-white:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-outline { background: transparent; color: var(--brand-700); border: 2px solid var(--brand-400); padding: 11px 30px; }
.btn-outline:hover { background: var(--brand-400); color: #fff; box-shadow: var(--shadow-soft); }
.btn-soft { background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-200); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-900); }

/* ---------- Прогресс чтения ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; background: rgba(250, 234, 253, .6); pointer-events: none; }
.read-progress-bar { height: 100%; width: 0; background: var(--grad); transition: width .1s ease-out; }

/* ---------- Верхняя полоса ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 16px; text-align: center;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400), #f472b6);
  color: #fff; font-size: 13px; font-weight: 500;
}
.topbar-spark { animation: pulse 2s ease-in-out infinite; }
.topbar-text { max-width: 760px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-link { color: #fff; font-weight: 700; text-decoration: underline; }
.topbar-link:hover { color: var(--brand-100); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 234, 253, .9);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text-strong); }
.brand:hover { color: var(--text-strong); }
.brand-logo { max-height: 48px; width: auto; }
.brand-icon {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 20px; box-shadow: var(--shadow-soft);
  transition: transform .3s;
}
.brand:hover .brand-icon { transform: scale(1.06); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-serif); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tagline { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); }

.main-nav { display: none; align-items: center; gap: 32px; }
.main-nav-link { position: relative; color: #4b4350; font-size: 14px; font-weight: 500; }
.main-nav-link:hover { color: var(--brand-500); }
.main-nav-link.active { color: var(--text-strong); font-weight: 600; }
.main-nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand-400); border-radius: 2px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search { position: relative; display: none; }
.header-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--brand-400); font-size: 12px; pointer-events: none; }
.header-search input {
  width: 200px; padding: 9px 16px 9px 36px; font: inherit; font-size: 12px;
  border-radius: 999px; border: 1px solid var(--brand-200); background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04); transition: all .2s; color: var(--text);
}
.header-search input:focus { outline: none; background: #fff; border-color: transparent; box-shadow: 0 0 0 2px var(--brand-400); }
.header-cta span { display: none; }

.burger {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent;
  color: #3b3340; font-size: 20px; display: inline-flex; align-items: center; justify-content: center;
}
.burger:hover { background: var(--brand-50); color: var(--brand-600); }

.mobile-menu { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 16px; border-top: 1px solid var(--brand-100); }
.mobile-menu[hidden] { display: none; }
.mobile-menu-link { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #3b3340; }
.mobile-menu-link:hover { background: var(--brand-50); color: var(--brand-700); }
.mobile-menu-link.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.mobile-search { display: flex; gap: 6px; padding: 8px 12px 0; }
.mobile-search input { flex: 1; min-width: 0; padding: 10px 14px; font: inherit; font-size: 13px; border-radius: 10px; border: 1px solid var(--brand-200); background: #fff; }
.mobile-search button { width: 42px; border: 0; border-radius: 10px; background: var(--grad); color: #fff; }

@media (min-width: 640px) {
  .header-search { display: block; }
  .header-cta span { display: inline; }
}
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .main-nav { gap: 20px; }
  .header-search { display: none; }
}
@media (min-width: 1024px) { .header-search input { width: 250px; } }
@media (max-width: 420px) {
  .brand-name { font-size: 20px; }
  .brand-tagline { display: none; }
  .header-cta { padding: 9px 12px; }
}

/* ---------- Слайдер на главной ---------- */
.hero { margin-bottom: 48px; }
.slider {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: #18121b; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  width: 100%; height: 440px;
}
@media (min-width: 640px) { .slider { height: clamp(400px, 40vw, 520px); } }
.slider-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; filter: brightness(.78); }
.slide-overlay { z-index: 1; }
.slide-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(to top, rgba(10, 6, 12, .9), rgba(24, 18, 27, .4) 55%, transparent);
}
.slide-content { padding: 24px 24px 48px; max-width: 780px; }
@media (min-width: 640px) { .slide-content { padding: 40px 40px 56px; } }
@media (min-width: 768px) { .slide-content { padding: 48px 48px 60px; } }
.slide-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.slide-badge i { color: var(--brand-300); }
.slide-title { font-family: var(--font-serif); font-weight: 700; font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.slide-title a { color: #fff; }
.slide-title a:hover { color: var(--brand-100); }
@media (min-width: 640px) { .slide-title { font-size: 36px; } }
@media (min-width: 768px) { .slide-title { font-size: 46px; } }
.slide-excerpt {
  color: #e8e2ea; font-size: 13px; font-weight: 300; margin: 0 0 20px; max-width: 660px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .slide-excerpt { font-size: 16px; -webkit-line-clamp: 3; } }
.slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.slide-time { color: rgba(255,255,255,.8); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: rgba(255,255,255,.3); color: #fff; box-shadow: 0 10px 15px rgba(0,0,0,.15);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: all .25s;
}
.slider-btn:hover { background: #fff; color: var(--brand-600); transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
@media (max-width: 639px) { .slider-btn { display: none; } }
.slider-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.5); transition: all .3s; }
.slider-dot:hover { background: #fff; }
.slider-dot.active { width: 32px; background: var(--brand-400); }

/* ---------- Чипсы рубрик ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 32px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 20px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: #fff; color: #4b4350; border: 1px solid var(--brand-100); transition: all .2s; white-space: nowrap;
}
.chip:hover { background: var(--brand-50); color: var(--brand-600); }
.chip.active { background: var(--brand-400); color: #fff; font-weight: 600; border-color: var(--brand-400); box-shadow: var(--shadow-soft); }

/* ---------- Сетка контент + сайдбар ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; }
}
.content { min-width: 0; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 28px; border-bottom: 1px solid var(--brand-100); }
.section-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 24px; font-weight: 700; }
.section-count { font-size: 12px; font-weight: 500; color: var(--brand-700); white-space: nowrap; }
.ping { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-400); }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-400); animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }

/* ---------- Карточки статей ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: 20px; border: 1px solid rgba(250, 234, 253, .9);
  box-shadow: var(--shadow-card); transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-50); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--brand-700);
  background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 20px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted-2); margin-bottom: 8px; }
.card-meta i { color: var(--brand-400); margin-right: 3px; }
.card-title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.card-title a { color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title a, .card-title a:hover { color: var(--brand-600); }
.card-excerpt {
  margin: 0 0 16px; flex-grow: 1; font-size: 14px; font-weight: 300; color: #5b5260;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #f3f0f5; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-author { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 500; color: #5b5260; }
.card-author span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-author .author-avatar { width: 24px; height: 24px; font-size: 10px; }
.card-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--brand-600); white-space: nowrap; transition: transform .2s, color .2s; }
.card-more i { font-size: 10px; }
.card:hover .card-more { transform: translateX(2px); }
.card-more:hover { color: var(--brand-800); }

/* Аватар автора (генерирует CMS) */
.author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.author-avatar-empty {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-200); color: var(--brand-700); font-weight: 700; font-size: 14px; text-transform: uppercase;
}

.empty {
  grid-column: 1 / -1; padding: 40px 24px; text-align: center; color: var(--muted);
  background: #fff; border: 1px dashed var(--brand-200); border-radius: 20px;
}
.empty i { display: block; font-size: 28px; color: var(--brand-400); margin-bottom: 10px; }
.more-wrap { text-align: center; padding-top: 32px; }

/* ---------- Пагинация ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 28px 0 8px; }
.pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--brand-800);
  background: #fff; border: 1px solid var(--brand-100); transition: all .2s;
}
.pagination a.page-numbers:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-700); }
.pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-soft); }
.pagination .page-numbers.dots { background: transparent; border-color: transparent; color: var(--muted-2); min-width: 20px; padding: 0 4px; }
.pagination .prev, .pagination .next { padding: 0 18px; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }
.sidebar-inner { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) {
  .page-post .sidebar-inner { position: sticky; top: 112px; }
}
.widget {
  position: relative; overflow: hidden; padding: 24px;
  background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--brand-100);
  box-shadow: var(--shadow-card);
}
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.widget-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.widget-head .widget-title { margin-bottom: 0; }
.widget-title i { color: var(--brand-500); font-size: 14px; }
.widget-title-line { padding-bottom: 10px; border-bottom: 1px solid var(--brand-100); margin-bottom: 16px; }
.widget-note { margin: 0; font-size: 11px; font-style: italic; font-weight: 300; text-align: center; color: var(--muted-2); }
.pill { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); white-space: nowrap; }

/* Виджет «О блоге» */
.widget-about { text-align: center; }
.widget-about-glow { position: absolute; top: -48px; right: -48px; width: 112px; height: 112px; border-radius: 50%; background: var(--grad-soft); opacity: .6; filter: blur(20px); }
.about-avatar { position: relative; display: inline-block; margin-bottom: 16px; }
.about-avatar > img, .about-avatar-icon {
  width: 96px; height: 96px; border-radius: 50%; padding: 4px; object-fit: cover;
  box-shadow: 0 0 0 4px var(--brand-300), var(--shadow-soft); background: #fff;
}
.about-avatar-icon { display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff; background: var(--grad); background-clip: content-box; }
.about-check {
  position: absolute; right: 2px; bottom: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff;
  background: var(--grad); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.about-name { position: relative; font-family: var(--font-serif); font-size: 20px; font-weight: 700; }
.about-role { margin: 2px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.about-text { margin: 0 0 20px; font-size: 13px; font-weight: 300; line-height: 1.65; color: var(--muted); }
.about-links { display: flex; justify-content: center; gap: 12px; }
.round-link { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: var(--brand-50); color: var(--brand-600); transition: all .2s; }
.round-link:hover { background: var(--brand-400); color: #fff; }

/* Промо-виджет */
.widget-promo { background: var(--grad); border: 0; color: #fff; box-shadow: var(--shadow-soft); }
.widget-promo-glow { position: absolute; right: -32px; bottom: -32px; width: 128px; height: 128px; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(20px); pointer-events: none; }
.promo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; margin-bottom: 12px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.promo-badge i { color: #fef08a; }
.promo-title { color: #fff; font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.promo-text { margin: 0 0 16px; font-size: 13px; font-weight: 300; line-height: 1.6; color: rgba(255,255,255,.92); }

/* Палитра */
.palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.swatch { background: none; border: 0; padding: 0; text-align: center; color: inherit; }
.swatch-color {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1;
  border-radius: 16px; margin-bottom: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s;
}
.swatch-color.bordered { border: 1px solid var(--brand-200); }
.swatch-color i { color: #fff; font-size: 12px; opacity: 0; transition: opacity .2s; }
.swatch-color.light i { color: var(--brand-800); }
.swatch:hover .swatch-color, .swatch:focus-visible .swatch-color { transform: scale(1.06); box-shadow: var(--shadow-glow); }
.swatch:hover .swatch-color i, .swatch:focus-visible .swatch-color i { opacity: 1; }
.swatch-hex { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 600; color: var(--muted); }
.swatch-name { display: block; font-size: 9px; color: var(--muted-2); }

/* Мини-список статей */
.mini-posts { display: flex; flex-direction: column; gap: 16px; }
.mini-post { display: flex; align-items: center; gap: 12px; }
.mini-post img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 16px; object-fit: cover; transition: transform .3s; }
.mini-post img.small { width: 56px; height: 56px; flex-basis: 56px; border-radius: 12px; }
.mini-post:hover img { transform: scale(1.05); }
.mini-post-num { width: 24px; flex: 0 0 24px; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--brand-300); transition: color .2s; }
.mini-post:hover .mini-post-num { color: var(--brand-600); }
.mini-post-body { display: flex; flex-direction: column; min-width: 0; }
.mini-post-cat { font-size: 10px; font-weight: 600; color: var(--brand-600); margin-bottom: 2px; }
.mini-post-title {
  font-size: 13px; font-weight: 600; line-height: 1.35; color: #2f2733; transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-post:hover .mini-post-title { color: var(--brand-600); }
.mini-post-meta { font-size: 10px; color: var(--muted-2); margin-top: 3px; }

/* Метки */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-item {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--brand-50); color: var(--brand-700); transition: all .2s;
}
.tag-item:hover { background: var(--brand-400); color: #fff; }

.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--brand-100); font-size: 14px; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { color: #3b3340; }
.widget-list a:hover { color: var(--brand-600); }
.widget-list .count { font-size: 11px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); padding: 1px 8px; border-radius: 999px; align-self: center; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { margin-bottom: 24px; font-size: 12px; color: var(--muted); overflow-x: auto; scrollbar-width: none; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs ol { display: flex; align-items: center; list-style: none; margin: 0; padding: 0 0 4px; white-space: nowrap; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--brand-300); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-600); }
.breadcrumbs li[aria-current] span { color: var(--text-strong); font-weight: 500; max-width: 420px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
@media (max-width: 640px) { .breadcrumbs li[aria-current] span { max-width: 220px; } }

/* ---------- Заголовок ленты ---------- */
.listing-header { margin-bottom: 28px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600);
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); }
.kicker-dot.pulse { animation: pulse 2s ease-in-out infinite; }
.kicker-pill {
  padding: 6px 14px; border-radius: 999px; background: var(--brand-100); border: 1px solid var(--brand-200);
  color: var(--brand-700); font-weight: 600; letter-spacing: 0; text-transform: none;
}
a.kicker-pill:hover { color: var(--brand-800); background: var(--brand-200); }
.listing-title { font-family: var(--font-serif); font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 768px) { .listing-title { font-size: 40px; } }
.listing-desc { margin: 10px 0 0; max-width: 720px; color: var(--muted); font-size: 15px; }
.listing-count { margin-top: 12px; font-size: 12px; font-weight: 500; color: var(--brand-700); }
.author-head { display: flex; align-items: center; gap: 20px; }
.author-head .author-avatar { width: 88px; height: 88px; padding: 3px; box-shadow: 0 0 0 3px var(--brand-300); }

.search-big { position: relative; display: flex; gap: 8px; max-width: 620px; margin-top: 20px; }
.search-big > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--brand-400); font-size: 14px; }
.search-big input {
  flex: 1; min-width: 0; padding: 13px 16px 13px 44px; font: inherit; font-size: 14px;
  border-radius: 999px; border: 1px solid var(--brand-200); background: #fff; color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}
.search-big input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--brand-400); }

/* ---------- Статья ---------- */
.post-header { max-width: 900px; margin: 0 auto 40px; }
@media (min-width: 768px) { .post-header { text-align: center; } }
.post-title { font-family: var(--font-serif); font-size: 30px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 24px; }
@media (min-width: 640px) { .post-title { font-size: 38px; } }
@media (min-width: 1024px) { .post-title { font-size: 46px; } }
.page-lead { margin: -8px auto 0; max-width: 720px; font-size: 17px; color: var(--muted); }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
@media (min-width: 768px) { .post-meta { justify-content: center; } }
.post-author { display: flex; align-items: center; gap: 12px; text-align: left; }
.post-author .author-avatar { width: 42px; height: 42px; padding: 2px; box-shadow: 0 0 0 2px var(--brand-400); background: #fff; }
.post-author .author-avatar-empty { background: var(--brand-200); }
.post-author-text { display: flex; flex-direction: column; line-height: 1.3; }
.post-author-name { font-weight: 600; color: var(--text-strong); }
.post-author-role { font-size: 11px; font-weight: 500; color: var(--brand-600); }
.meta-sep { display: none; color: var(--border); }
@media (min-width: 640px) { .meta-sep { display: inline; } }
@media (max-width: 767px) { .meta-sep-md { display: none; } }
.post-stats { display: flex; flex-wrap: wrap; gap: 16px; }
.post-stats span { display: inline-flex; align-items: center; gap: 6px; }
.post-stats i { color: var(--brand-400); }
.post-quick { display: flex; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: all .2s;
}
.chip-btn i { color: var(--brand-500); }
.chip-btn:hover { color: var(--brand-600); border-color: var(--brand-200); }
.chip-btn.is-active i { font-weight: 900; color: var(--brand-600); }

.post-cover { margin: 0 0 48px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-card); }
.post-cover img { width: 100%; max-height: 520px; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s ease-out; }
@media (min-width: 768px) { .post-cover img { aspect-ratio: 21 / 9; } }
.post-cover:hover img { transform: scale(1.03); }

.post-card {
  background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); padding: 24px;
}
@media (min-width: 640px) { .post-card { padding: 40px; } }
.page-wide { max-width: 960px; margin: 0 auto; }

/* Оглавление (генерирует CMS) */
.toc-box { margin: 0 0 32px; padding: 24px; border-radius: 20px; background: var(--bg-soft); border: 1px solid rgba(246, 213, 251, .8); }
.toc-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--text-strong); }
.toc-title::before {
  content: "\f0cb"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px;
  width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.toc-item { counter-increment: toc; }
.toc-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.toc-list a::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--brand-300); }
.toc-item > a::before { content: counter(toc) ". "; color: var(--brand-500); font-weight: 600; margin-right: -6px; }
.toc-list a:hover { color: var(--brand-600); }
.toc-item > a { justify-content: flex-start; }
.toc-item > a::after { margin-left: auto; }
.toc-subitem { padding-left: 22px; font-size: 13px; }

/* Типографика контента */
.prose { font-size: 16px; line-height: 1.75; color: var(--muted); overflow-wrap: break-word; }
@media (min-width: 640px) { .prose { font-size: 17px; } }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose > p:first-of-type { color: rgba(46, 38, 51, .92); font-size: 1.06em; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--font-serif); font-size: 3.8em; line-height: .8; font-weight: 700;
  padding: .12em .14em 0 0; color: var(--brand-600);
}
.prose-page > p:first-of-type::first-letter { float: none; font-size: inherit; font-family: inherit; padding: 0; color: inherit; font-weight: inherit; }
.prose strong, .prose b { color: var(--text-strong); font-weight: 600; }
.prose a { color: var(--brand-700); text-decoration: underline; text-decoration-color: var(--brand-300); text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-500); }
.prose h2 {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 1.8em 0 .7em; font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--text-strong);
  scroll-margin-top: 110px;
}
.prose h2::before { content: ""; flex: 0 0 6px; height: 1.1em; margin-top: .1em; border-radius: 999px; background: var(--grad); }
@media (min-width: 640px) { .prose h2 { font-size: 30px; } }
.prose h3 { margin: 1.5em 0 .6em; font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--text-strong); scroll-margin-top: 110px; }
.prose h4 { margin: 1.4em 0 .5em; font-size: 17px; font-weight: 700; color: var(--text-strong); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding: 0; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 34px; margin-bottom: .6em; }
.prose ul > li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px;
  position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--brand-100); color: var(--brand-600);
}
.prose ol { padding-left: 1.4em; }
.prose ol > li { margin-bottom: .6em; padding-left: 6px; }
.prose ol > li::marker { color: var(--brand-600); font-weight: 700; }
.prose blockquote {
  position: relative; margin: 1.6em 0; padding: 22px 24px; border-radius: 20px;
  background: var(--brand-50); border-left: 4px solid var(--brand-500);
  font-style: italic; color: rgba(46, 38, 51, .9); box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.prose blockquote::after {
  content: "\f10d"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal;
  position: absolute; top: 12px; right: 16px; font-size: 24px; color: var(--brand-300); opacity: .5;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite, .prose blockquote footer { display: block; margin-top: 12px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); }
.prose img { border-radius: 20px; cursor: zoom-in; margin: 1.5em auto; }
.prose figure { margin: 1.6em 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); background: #fff; }
.prose figure img { margin: 0; border-radius: 0; width: 100%; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.prose figure:hover img { transform: scale(1.03); }
.prose figcaption { padding: 8px 14px; font-size: 12px; text-align: center; color: var(--muted); background: #fff; position: relative; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; padding: 2px 7px; border-radius: 6px; background: var(--brand-100); color: var(--brand-800); }
.prose pre { margin: 1.4em 0; padding: 18px 20px; overflow-x: auto; border-radius: 16px; background: #231b26; color: #f6e9fa; font-size: 14px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--brand-50); color: var(--text-strong); font-weight: 600; }
.prose tr:nth-child(even) td { background: #fdfafe; }
.prose iframe, .prose video { max-width: 100%; border: 0; border-radius: 16px; margin: 1.4em 0; }
.prose iframe[src*="youtube"], .prose iframe[src*="rutube"], .prose iframe[src*="vk.com"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.prose hr { border: 0; height: 1px; margin: 2em 0; background: linear-gradient(90deg, transparent, var(--brand-300), transparent); }

/* Метки и шеринг */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-share-right { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; transition: all .2s; }
.share-tg { background: rgba(42, 171, 238, .1); color: #1d8fcb; }
.share-tg:hover { background: #2AABEE; color: #fff; }
.share-vk { background: rgba(0, 119, 255, .1); color: #0063d6; }
.share-vk:hover { background: #0077FF; color: #fff; }
.share-wa { background: rgba(37, 211, 102, .12); color: #148a43; }
.share-wa:hover { background: #25D366; color: #fff; }
.share-copy { background: #f3f1f4; color: var(--muted); }
.share-copy:hover { background: var(--brand-400); color: #fff; }
.js-bookmark.is-active i { font-weight: 900; color: var(--brand-600); }
@media (max-width: 480px) { .share-label { display: none; } }

/* Блок автора */
.author-box {
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  margin-top: 32px; padding: 24px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #fbeafc 0%, #f6dbfd 100%); border: 1px solid rgba(246, 213, 251, .9);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .author-box { flex-direction: row; align-items: flex-start; text-align: left; padding: 32px; } }
.author-box-photo { position: relative; flex: 0 0 auto; }
.author-box-photo .author-avatar { width: 96px; height: 96px; border-radius: 20px; font-size: 34px; box-shadow: 0 0 0 4px #fff, var(--shadow-card); }
.author-box-cert { position: absolute; right: -8px; bottom: -8px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: var(--grad); border: 2px solid #fff; }
.author-box-body { flex: 1; min-width: 0; }
.author-box-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.author-box-name { font-family: var(--font-serif); font-size: 21px; font-weight: 700; margin: 2px 0 8px; }
.author-box-name a { color: var(--text-strong); }
.author-box-name a:hover { color: var(--brand-700); }
.author-box-bio { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Навигация «Читайте также» */
.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav-item { display: flex; flex-direction: column; padding: 16px; border-radius: 18px; border: 1px solid var(--border); transition: all .2s; }
.post-nav-item:hover { border-color: var(--brand-300); background: rgba(253, 246, 254, .7); }
.post-nav-label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 11px; color: var(--muted); transition: transform .2s; }
.post-nav-label i { font-size: 10px; }
.post-nav-title { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-item:hover .post-nav-title { color: var(--brand-700); }
@media (min-width: 640px) {
  .post-nav-right { text-align: right; }
  .post-nav-right .post-nav-label { justify-content: flex-end; }
}

/* ---------- Комментарии (блок CMS .bc-*) ---------- */
.post-card .bc-comments { margin: 40px 0 0; padding-top: 32px; border-top: 1px solid var(--border); }
.bc-comments .bc-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--text-strong); }
.bc-comments .bc-title span { opacity: 1; font-family: var(--font-sans); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); }
.bc-comments .bc-list { display: flex; flex-direction: column; gap: 14px; }
.bc-comments .bc-thread { padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.bc-comments .bc-avatar { flex-basis: 36px; height: 36px; font-size: 13px; color: #fff; background: var(--grad); }
.bc-comments .bc-reply { margin: 14px 0 0 40px; padding: 14px; border-radius: 14px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.bc-comments .bc-admin .bc-avatar { background: var(--brand-800); }
.bc-comments .bc-badge { background: var(--brand-200); color: var(--brand-900); font-weight: 600; }
.bc-comments .bc-name { color: var(--text-strong); font-size: 14px; }
.bc-comments .bc-head time { font-size: 11px; color: var(--muted); }
.bc-comments .bc-text { font-size: 14px; color: var(--muted); line-height: 1.65; }
.bc-comments .bc-reply-btn { color: var(--brand-600); opacity: 1; text-decoration: none; font-size: 12px; font-weight: 600; }
.bc-comments .bc-reply-btn:hover { color: var(--brand-800); }
.bc-comments .bc-form { margin-top: 24px; padding: 20px; border-radius: 20px; background: var(--bg-soft); border: 1px solid rgba(246, 213, 251, .7); }
.bc-comments .bc-form-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.bc-comments .bc-field span { color: var(--text); font-size: 12px; }
.bc-comments .bc-field input, .bc-comments .bc-field textarea { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 14px; background: #fff; color: var(--text); }
.bc-comments .bc-field input:focus, .bc-comments .bc-field textarea:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--brand-400); }
.bc-comments .bc-check { color: var(--muted); }
.bc-comments .bc-check input { accent-color: var(--brand-500); }
.bc-comments .bc-submit { padding: 10px 26px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-soft); transition: box-shadow .25s; }
.bc-comments .bc-submit:hover { box-shadow: var(--shadow-glow); }
.bc-comments .bc-flash { border-radius: 14px; }

/* ---------- Контакты ---------- */
.contact-card {
  display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; padding: 24px;
  border-radius: 20px; background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid rgba(246, 213, 251, .9);
}
@media (min-width: 768px) { .contact-card { flex-direction: row; align-items: center; } }
.contact-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: var(--grad); box-shadow: var(--shadow-soft); }
.contact-body { flex: 1; min-width: 0; }
.contact-mail { display: inline-block; margin: 2px 0 4px; font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--text-strong); word-break: break-all; }
.contact-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { max-width: 720px; margin: 24px auto 56px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound-code { font-family: var(--font-serif); font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.notfound-code span { width: 92px; height: 92px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; background: var(--grad); box-shadow: var(--shadow-soft); }
.notfound .search-big { width: 100%; margin: 28px 0 18px; }
.notfound-recent { margin-bottom: 24px; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 64px; background: #fff; border-top: 1px solid var(--brand-100); }
.subscribe { padding: 48px 16px; background: var(--grad-soft); scroll-margin-top: 90px; }
.subscribe-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.subscribe-icon { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: var(--grad); box-shadow: var(--shadow-soft); }
.subscribe-title { font-family: var(--font-serif); font-size: 26px; font-weight: 700; margin-bottom: 8px; }
@media (min-width: 640px) { .subscribe-title { font-size: 32px; } }
.subscribe-text { max-width: 520px; margin: 0 auto 24px; font-size: 14px; color: #5b5260; }
.subscribe-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: inline-block; margin-bottom: 10px; font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--text-strong); }
.footer-about p { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.footer-contact i { color: var(--brand-400); margin-right: 4px; }
.footer-title { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-strong); }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-list a { color: var(--muted); }
.footer-list a:hover { color: var(--brand-600); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-copy { display: flex; align-items: center; gap: 8px; text-align: center; }
.footer-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--brand-400); }
.footer-rss { color: var(--muted); }
.footer-rss:hover { color: var(--brand-600); }

/* ---------- Toast и лайтбокс ---------- */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: calc(100vw - 48px);
  display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-radius: 18px;
  background: #231b26; color: #fff; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(236, 146, 247, .3); box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(100px); pointer-events: none; transition: all .3s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; background: var(--grad); }
@media (max-width: 480px) { .toast { right: 16px; left: 16px; bottom: 16px; max-width: none; } }

.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1000px, 100%); max-height: 88vh; object-fit: contain; border-radius: 18px; box-shadow: 0 25px 50px rgba(0,0,0,.4); }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; }
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ---------- Анимации ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 480px) { .topbar-spark { display: none; } .topbar-text { white-space: normal; } }
.widget-cats a.active { color: var(--brand-600); font-weight: 600; }
.widget-cats a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--brand-300); vertical-align: middle; transition: background .2s; }
.widget-cats a:hover::before, .widget-cats a.active::before { background: var(--brand-500); }

/* Служебные заголовки темы — не h2/h3, а блоки (заголовки h2+ только в тексте статей) */
.slide-title, .section-title, .card-title, .widget-title, .about-name, .promo-title,
.subscribe-title, .footer-title, .author-box-name {
  display: block; line-height: 1.25; color: var(--text-strong);
}
.section-title, .widget-title { display: flex; }
.slide-title, .promo-title { color: #fff; }
