/* ================================================================
   FONT STACK — управляется через CSS-переменные.
   В макете Claude Design использовался Cormorant Garamond как fallback,
   но именно он рендерился основным шрифтом (AC Line не загружался).
   Сейчас primary — Cormorant Garamond, AC Line — fallback.

   ОТКАТ (если нужно вернуть AC Line):
   1) В --font-display переставить шрифты местами:
        --font-display: 'AC Line', 'Cormorant Garamond', 'Times New Roman', serif;
   2) В блоге /blog/index.php можно убрать link на fonts.googleapis.com
      (но это не обязательно — переменная сама управляет порядком).
   ================================================================ */
:root {
    --font-display: 'Cormorant Garamond', 'AC Line', 'Times New Roman', serif;
    --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-script:  'Parisienne', 'Pinyon Script', 'Allura', cursive;
}

.font-acline {
    font-family: var(--font-display) !important;
    font-weight: 400;
    font-style: normal;
}
.font-acline.font-light,
.font-light.font-acline { font-weight: 400; }
.font-montserrat { font-family: var(--font-body); }

/* ─── Hero «Le Journal» — pen-script (Parisienne).
   Откат: убрать класс journal-hero-script-title в шаблоне news.list
   и вернуть `<h1 class="font-acline ... text-[56px] md:text-[88px] lg:text-[104px]">Журнал</h1>`. */
.journal-hero-script-title {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 78px;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: none;
    color: #111;
    margin-top: 1.5rem;
}
@media (min-width: 768px) {
    .journal-hero-script-title { font-size: 120px; }
}
@media (min-width: 1024px) {
    .journal-hero-script-title { font-size: 156px; }
}

/* ─── Filter rebuild: убрать z-сдвиг при активном фильтре ─── */
.journal-feed.is-filtered .journal-row-item.md\:mt-24,
.journal-feed.is-filtered .md\:mt-24 { margin-top: 0 !important; }
.journal-feed.is-filtered .journal-row { margin-bottom: 4rem; }

/* ─── Скрываем стандартные хлебные крошки Bitrix на /blog/*.
   Внутри статей у нас собственная навигация-cookie-trail в article-head;
   стандартный <div id="navigation"> с bx-breadcrumb становится визуальным дублем. */
body #navigation { display: none !important; }

/* ================================================================
   Decoden Journal — стили блока статьи и общие правила раздела
   Подключается шаблонами компонентов news.list и news.detail.
   Тон: AC Line + Montserrat, бордо #a10e0e, золото #deb46e.
   Жёсткое правило: никаких border-radius у блоков статьи.

   ВАЖНО: сайт использует ПРЕДКОМПИЛИРОВАННЫЙ Tailwind без JIT,
   поэтому arbitrary-value классы (text-[56px], aspect-[5/4],
   basis-[61.8%], tracking-[0.22em] и т.п.) не работают «из коробки».
   Здесь они объявлены как обычный CSS. Селекторы используют
   экранированные скобки, чтобы соответствовать классам в шаблонах.
   ================================================================ */

/* ─── arbitrary text sizes ─── */
.text-\[9px\]   { font-size: 9px; }
.text-\[10px\]  { font-size: 10px; }
.text-\[11px\]  { font-size: 11px; }
.text-\[12px\]  { font-size: 12px; }
.text-\[13px\]  { font-size: 13px; }
.text-\[15px\]  { font-size: 15px; }
.text-\[16px\]  { font-size: 16px; }
.text-\[17px\]  { font-size: 17px; }
.text-\[18px\]  { font-size: 18px; }
.text-\[20px\]  { font-size: 20px; }
.text-\[24px\]  { font-size: 24px; }
.text-\[26px\]  { font-size: 26px; }
.text-\[28px\]  { font-size: 28px; line-height: 1.05; }
.text-\[32px\]  { font-size: 32px; line-height: 1.05; }
.text-\[34px\]  { font-size: 34px; line-height: 1.05; }
.text-\[36px\]  { font-size: 36px; line-height: 1.02; }
.text-\[40px\]  { font-size: 40px; line-height: 1.05; }
.text-\[52px\]  { font-size: 52px; line-height: 1.02; }
.text-\[54px\]  { font-size: 54px; line-height: 1.02; }
.text-\[56px\]  { font-size: 56px; line-height: 0.95; }
.text-\[64px\]  { font-size: 64px; line-height: 1.02; }
.text-\[68px\]  { font-size: 68px; line-height: 1.02; }
.text-\[88px\]  { font-size: 88px; line-height: 0.9; }
.text-\[104px\] { font-size: 104px; line-height: 0.92; }
.text-\[10rem\] { font-size: 10rem; }
.text-\[14rem\] { font-size: 14rem; }

@media (min-width: 768px) {
    .md\:text-\[17px\]   { font-size: 17px; }
    .md\:text-\[18px\]   { font-size: 18px; }
    .md\:text-\[22px\]   { font-size: 22px; }
    .md\:text-\[24px\]   { font-size: 24px; }
    .md\:text-\[32px\]   { font-size: 32px; line-height: 1.05; }
    .md\:text-\[34px\]   { font-size: 34px; line-height: 1.05; }
    .md\:text-\[40px\]   { font-size: 40px; line-height: 1.05; }
    .md\:text-\[52px\]   { font-size: 52px; line-height: 1.02; }
    .md\:text-\[54px\]   { font-size: 54px; line-height: 1.02; }
    .md\:text-\[56px\]   { font-size: 56px; line-height: 1.02; }
    .md\:text-\[88px\]   { font-size: 88px; line-height: 0.95; }
    .md\:text-\[14rem\]  { font-size: 14rem; }
}
@media (min-width: 1024px) {
    .lg\:text-\[64px\]   { font-size: 64px; line-height: 1.02; }
    .lg\:text-\[68px\]   { font-size: 68px; line-height: 1.02; }
    .lg\:text-\[104px\]  { font-size: 104px; line-height: 0.95; }
}

/* ─── arbitrary letter-spacing (tracking) ─── */
.tracking-\[0\.08em\] { letter-spacing: 0.08em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.22em\] { letter-spacing: 0.22em; }
.tracking-\[0\.3em\]  { letter-spacing: 0.3em; }
.tracking-\[0\.4em\]  { letter-spacing: 0.4em; }
.tracking-\[0\.5em\]  { letter-spacing: 0.5em; }

/* ─── arbitrary line-height (leading) ─── */
.leading-\[0\.95\] { line-height: 0.95; }
.leading-\[1\.02\] { line-height: 1.02; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.08\] { line-height: 1.08; }
.leading-\[1\.1\]  { line-height: 1.1; }
.leading-\[1\.12\] { line-height: 1.12; }
.leading-\[1\.25\] { line-height: 1.25; }

/* ─── colours ─── */
.text-\[\#111\]      { color: #111; }
.text-\[\#222\]      { color: #222; }
.text-\[\#1a1612\]   { color: #1a1612; }
.text-\[\#a10e0e\]   { color: #a10e0e; }
.text-\[\#deb46e\]   { color: #deb46e; }
.text-\[\#8a0c0c\]   { color: #8a0c0c; }

.bg-\[\#111\]        { background-color: #111; }
.bg-\[\#1a1612\]     { background-color: #1a1612; }
.bg-\[\#a10e0e\]     { background-color: #a10e0e; }
.bg-\[\#deb46e\]     { background-color: #deb46e; }
.bg-\[\#f8f5f1\]     { background-color: #f8f5f1; }
.bg-\[\#101121\]     { background-color: #101121; }
.bg-\[\#8a0c0c\]     { background-color: #8a0c0c; }
.hover\:bg-\[\#8a0c0c\]:hover { background-color: #8a0c0c; }
.hover\:bg-\[\#a10e0e\]:hover { background-color: #a10e0e; }
.hover\:text-\[\#a10e0e\]:hover { color: #a10e0e; }
.hover\:border-\[\#a10e0e\]:hover { border-color: #a10e0e; }
.group:hover .group-hover\:text-\[\#a10e0e\] { color: #a10e0e; }
.group:hover .group-hover\:bg-\[\#a10e0e\] { background-color: #a10e0e; }

.border-\[\#a10e0e\]  { border-color: #a10e0e; }
.border-\[\#deb46e\]  { border-color: #deb46e; }

.focus\:border-\[\#a10e0e\]:focus { border-color: #a10e0e; }

/* ─── arbitrary aspect-ratio ─── */
.aspect-\[4\/5\]   { aspect-ratio: 4 / 5; }
.aspect-\[5\/4\]   { aspect-ratio: 5 / 4; }
.aspect-\[16\/9\]  { aspect-ratio: 16 / 9; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }
.aspect-\[21\/9\]  { aspect-ratio: 21 / 9; }
.aspect-\[21\/8\]  { aspect-ratio: 21 / 8; }
@media (min-width: 768px) {
    .md\:aspect-\[21\/9\] { aspect-ratio: 21 / 9; }
    .md\:aspect-\[21\/8\] { aspect-ratio: 21 / 8; }
}

/* ─── golden-ratio flex basis ─── */
@media (min-width: 768px) {
    .md\:basis-\[61\.8\%\] { flex-basis: 61.8%; }
    .md\:basis-\[38\.2\%\] { flex-basis: 38.2%; }
}

/* ─── arbitrary max-width ─── */
.max-w-\[520px\] { max-width: 520px; }
.max-w-\[560px\] { max-width: 560px; }
.max-w-\[680px\] { max-width: 680px; }

/* ─── slash-opacity utilities used in macro (white text on dark sections) ─── */
.text-white\/40  { color: rgba(255,255,255,0.40); }
.text-white\/45  { color: rgba(255,255,255,0.45); }
.text-white\/60  { color: rgba(255,255,255,0.60); }
.text-white\/65  { color: rgba(255,255,255,0.65); }
.text-white\/80  { color: rgba(255,255,255,0.80); }
.bg-white\/45    { background-color: rgba(255,255,255,0.45); }
.bg-white\/60    { background-color: rgba(255,255,255,0.60); }
.bg-white\/85    { background-color: rgba(255,255,255,0.85); }
.bg-white\/95    { background-color: rgba(255,255,255,0.95); }
.border-white\/40 { border-color: rgba(255,255,255,0.40); }

/* ─── Standard Tailwind utilities missing from the site's precompiled bundle ─── */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

@media (min-width: 768px) {
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-5  { grid-column: span 5 / span 5; }
    .md\:col-span-7  { grid-column: span 7 / span 7; }
    .md\:order-1     { order: 1; }
    .md\:order-2     { order: 2; }
    .md\:mt-24       { margin-top: 6rem; }
    .md\:mt-0        { margin-top: 0; }
    .md\:-mt-8       { margin-top: -2rem; }
    .md\:-mx-6       { margin-left: -1.5rem; margin-right: -1.5rem; }
    .md\:mx-0        { margin-left: 0; margin-right: 0; }
    .md\:pb-16       { padding-bottom: 4rem; }
    .md\:pt-20       { padding-top: 5rem; }
    .md\:pt-28       { padding-top: 7rem; }
    .md\:pb-20       { padding-bottom: 5rem; }
    .md\:py-20       { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:py-24       { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:px-10       { padding-left: 2.5rem; padding-right: 2.5rem; }
    .md\:px-16       { padding-left: 4rem; padding-right: 4rem; }
    .md\:pb-16       { padding-bottom: 4rem; }
    .md\:space-y-28 > * + * { margin-top: 7rem; }
    .md\:flex-row    { flex-direction: row; }
    .md\:flex-row-reverse { flex-direction: row-reverse; }
    .md\:gap-14      { gap: 3.5rem; }
    .md\:gap-3       { gap: 0.75rem; }
}
@media (min-width: 640px) {
    .sm\:-mx-5       { margin-left: -1.25rem; margin-right: -1.25rem; }
    .sm\:px-5        { padding-left: 1.25rem; padding-right: 1.25rem; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:flex-row    { flex-direction: row; }
}
.space-y-7 > * + *  { margin-top: 1.75rem; }
.space-y-20 > * + * { margin-top: 5rem; }
.-mt-8              { margin-top: -2rem; }
.py-8               { padding-top: 2rem; padding-bottom: 2rem; }
.pb-14              { padding-bottom: 3.5rem; }
.pb-24              { padding-bottom: 6rem; }
.pb-28              { padding-bottom: 7rem; }
@media (min-width: 768px) {
    .md\:py-12       { padding-top: 3rem; padding-bottom: 3rem; }
    .md\:pb-24       { padding-bottom: 6rem; }
    .md\:pb-28       { padding-bottom: 7rem; }
}
.-mx-4              { margin-left: -1rem; margin-right: -1rem; }
.-mx-6              { margin-left: -1.5rem; margin-right: -1.5rem; }
.-mx-2              { margin-left: -0.5rem; margin-right: -0.5rem; }
.z-20               { z-index: 20; }
.z-30               { z-index: 30; }
.z-50               { z-index: 50; }
.overflow-x-auto    { overflow-x: auto; }
.whitespace-nowrap  { white-space: nowrap; }
.line-clamp-3       { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2       { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* hover variants used in featured spread / CTA */
.group:hover .group-hover\:w-16 { width: 4rem; }
.group:hover .group-hover\:w-24 { width: 6rem; }
.group:hover .group-hover\:w-28 { width: 7rem; }
.group:hover .group-hover\:opacity-90 { opacity: 0.9; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.transition-transform { transition-property: transform; transition-duration: 0.25s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-opacity { transition-property: opacity; transition-duration: 0.2s; }
.transition-all { transition-property: all; transition-duration: 0.3s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }



/* ─── Безопасность ─── */
.blog-detail button,
.blog-detail input,
.blog-detail select,
.blog-detail textarea {
    border-radius: 0 !important;
}

/* ─── Лид (под H1, серый курсив) ─── */
/* Лид — для статей, где он не использовался в head, оставляем поддержку, но
   по нынешнему рендеру лид показывается в ArticleHead, не в теле. */
.blog-detail .blog-lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
    font-style: italic;
    max-width: 48rem;
    margin: 1.5rem auto 2rem;
}
.blog-detail .blog-lead p { margin: 0; }

/* ─── Заголовки тела статьи (per macro) ─── */
.blog-detail .blog-h2 {
    font-family: 'AC Line', serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wider */
    font-size: 26px;
    line-height: 1.1;
    color: #111;
    margin: 3rem 0 0.5rem;
}
@media (min-width: 768px) {
    .blog-detail .blog-h2 { font-size: 32px; }
}

.blog-detail .blog-h3 {
    font-family: 'AC Line', serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 20px;
    line-height: 1.2;
    color: #111;
    margin: 2rem 0 0.25rem;
}
@media (min-width: 768px) {
    .blog-detail .blog-h3 { font-size: 22px; }
}

/* ─── Pullquote (макет: bg-[#f8f5f1] + border-l-2 #deb46e + font-acline italic) ─── */
.blog-detail blockquote {
    background: #f8f5f1;
    border-left: 2px solid #deb46e;
    padding: 2rem;
    margin: 2.5rem 0;
    font-family: 'AC Line', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 26px;
    line-height: 1.25;
    color: #1a1612;
}
@media (min-width: 768px) {
    .blog-detail blockquote { padding: 2.5rem; font-size: 34px; }
}

/* ─── Параграфы и общая типографика ─── */
.blog-detail p {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #1f2937; /* gray-800 */
    margin: 0;
}
.blog-body > * + * { margin-top: 1.75rem; }    /* space-y-7 */
.blog-body p + p { margin-top: 1.5rem; }

/* Dropcap на первой букве первого реального параграфа после лида */
.blog-detail .blog-lead + p::first-letter,
.blog-body > p:first-of-type::first-letter {
    font-family: 'AC Line', serif;
    font-size: 88px;
    line-height: 0.85;
    float: left;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
    color: #a10e0e;
    font-weight: 300;
}

.blog-detail a {
    color: #a10e0e;
    text-decoration: underline;
    text-decoration-color: rgba(161, 14, 14, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}
.blog-detail a:hover { text-decoration-color: #a10e0e; }

.blog-detail strong { color: #111; font-weight: 700; }
.blog-detail em { font-style: italic; }

.blog-detail hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* ─── Таблицы (бюджеты, мини-сводки) ─── */
.blog-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}
.blog-detail thead th {
    text-align: left;
    padding: 0.875rem 1rem;
    background: #f8f5f1;
    font-family: 'AC Line', serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111;
    border-bottom: 1px solid #e5e7eb;
}
.blog-detail tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

/* ─── FAQ-блок ─── */
.blog-detail .blog-faq {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
}
.blog-detail .blog-faq .blog-h2 {
    margin-top: 0;
    margin-bottom: 1.75rem;
}
/* Каждый Q/A — это <p><strong>Question</strong><br>Answer</p>.
   Расстояние МЕЖДУ парами (margin вокруг <p>) — большое для разделения;
   расстояние МЕЖДУ вопросом и ответом ВНУТРИ пары — минимальное. */
.blog-detail .blog-faq p {
    margin: 2rem 0 0;
}
.blog-detail .blog-faq p:first-of-type { margin-top: 0; }
.blog-detail .blog-faq p strong {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.0625rem;
    color: #111;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
/* <br> сразу после <strong> уже подразумевается display:block — гасим лишний line break. */
.blog-detail .blog-faq p strong + br { display: none; }

/* ─── Маркер места для картинки (видимый только в админ-режиме) ─── */
.bx-im-bar-header-name + .blog-detail [data-img-marker],
.blog-detail--admin [data-img-marker] {
    display: block;
    margin: 1.5rem auto;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border-left: 3px solid #d97706;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    color: #92400e;
}
.blog-detail [data-img-marker] { display: none; }

/* ================================================================
   Карточки журнала (list view)
   ================================================================ */

.journal-card {
    display: block;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: inherit;
    text-decoration: none;
}
.journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.25);
    color: inherit;
}
.journal-card__cover {
    position: relative;
    overflow: hidden;
    background: #f8f5f1;
}
.journal-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.journal-card:hover .journal-card__cover img {
    transform: scale(1.04);
}
.journal-card__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'AC Line', serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.75);
}
.cover-mono {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: 'AC Line', serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.55);
}
.cover-mono--xl {
    font-size: 8rem;
}
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { scrollbar-width: none; }
.journal-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.92);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #111;
    z-index: 2;
}
.journal-card__title {
    font-family: 'AC Line', serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #111;
    margin: 1.25rem 0 0.5rem;
}
.journal-card__excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 0.75rem;
}
.journal-card__meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #deb46e;
}
.journal-card__meta span + span::before {
    content: '·';
    margin: 0 0.5rem;
    color: rgba(0, 0, 0, 0.25);
}

/* ─── Cover-градиенты по категориям (когда нет DETAIL_PICTURE) ─── */
.cover-grad {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cover-grad--brendy     { background: linear-gradient(135deg, #6b1a1a 0%, #a10e0e 100%); }
.cover-grad--servirovka { background: linear-gradient(135deg, #d4af7a 0%, #deb46e 100%); }
.cover-grad--dekor      { background: linear-gradient(135deg, #4b5e6a 0%, #1a1612 100%); }
.cover-grad--aromaty    { background: linear-gradient(135deg, #2f3a4a 0%, #6b4a2a 100%); }
.cover-grad--materialy  { background: linear-gradient(135deg, #1a1612 0%, #4a4036 100%); }
.cover-grad--uhod       { background: linear-gradient(135deg, #4a4036 0%, #6b4a2a 100%); }
.cover-grad--podarki    { background: linear-gradient(135deg, #8a0c0c 0%, #deb46e 100%); }
.cover-grad--sezon      { background: linear-gradient(135deg, #6b1a1a 0%, #deb46e 100%); }
.cover-grad--lifestyle  { background: linear-gradient(135deg, #4b5e6a 0%, #d4af7a 100%); }
.cover-grad--pro        { background: linear-gradient(135deg, #1a1612 0%, #6b1a1a 100%); }

/* ================================================================
   Фильтр-бар (sticky, под header)
   ================================================================ */

.journal-filterbar {
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 30;
}
.journal-filterbar__inner {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.journal-filterbar__inner::-webkit-scrollbar { display: none; }

.journal-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.journal-filter-btn:hover {
    border-color: #111;
}
.journal-filter-btn.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}
.journal-filter-btn__count {
    font-size: 0.625rem;
    opacity: 0.6;
    letter-spacing: 0;
}

/* ================================================================
   Reading progress (детальная статьи)
   ================================================================ */

#blog-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #a10e0e;
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ================================================================
   Share-sidebar (детальная статьи)
   ================================================================ */

.share-rail {
    position: fixed;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
@media (min-width: 1024px) {
    .share-rail { display: flex; }
}
.share-rail__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.share-rail__btn {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
    position: relative;
}
.share-rail__btn:hover {
    border-color: #a10e0e;
    color: #a10e0e;
}
.share-rail__btn svg { width: 18px; height: 18px; }
.share-rail__toast {
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.4rem 0.65rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.share-rail__toast.is-visible { opacity: 1; }
