/* Блог і стаття: заголовок розділу, головна стаття, рубрики й пошук, картки, пагінація;
   сторінка статті — прогрес читання, зміст, текст із блоків Gutenberg, смуги [vs_bars], FAQ, «поділитися». */

/* ── Заголовок розділу ── */
.bl-head { position: relative; overflow: hidden; }
.bl-head__in { position: relative; }
.bl-head .bl-head__title { max-width: 20ch; overflow-wrap: anywhere; }
.bl-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(#1D1D18 1px, transparent 1px), linear-gradient(90deg, #1D1D18 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 72%); pointer-events: none; }

/* ── Головна стаття ── */
.bl-feat { display: flex; flex-wrap: wrap; border-radius: 32px; border: 1px solid var(--line); background: var(--card); overflow: hidden; color: var(--text); transition: border-color .4s; }
.bl-feat:hover { color: var(--text); border-color: #3E3E35; }
.bl-feat[hidden] { display: none; }
.bl-feat__cover { position: relative; flex: 1.2 1 480px; min-height: 380px; overflow: hidden; background: var(--card-2); }
.bl-feat__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.bl-feat:hover .bl-feat__cover img { transform: scale(1.05); }
.bl-feat__cover.is-empty { display: grid; place-items: center; background: var(--accent); color: var(--bg); }
.bl-feat__glyph { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(90px, 14vw, 190px); line-height: 1; letter-spacing: -0.06em; transition: transform .9s var(--ease); }
.bl-feat:hover .bl-feat__glyph { transform: scale(1.12) rotate(-4deg); }
.bl-feat__ring { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; border: 2px dashed rgba(15, 15, 13, .35); animation: spin 40s linear infinite; }
.bl-feat__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 4vw, 52px); }
.bl-feat__title { font-size: clamp(24px, 3vw, 40px); line-height: 1.12; overflow-wrap: anywhere; }
.bl-feat__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 12px; font-size: 13px; }
.bl-feat__arrow { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--bg); transition: transform .5s var(--ease); }
.bl-feat:hover .bl-feat__arrow { transform: rotate(-45deg) scale(1.08); }
.chip--acc { border-color: var(--accent); color: var(--accent); }

/* ── Рубрики й пошук ── */
.bl-list { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.page-head + .bl-list { padding-top: clamp(8px, 2vw, 24px); }
.bl-bar { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.bl-cats { min-width: 0; }
.bl-cats ul { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--font-mono); font-size: 13px; transition: background-color .3s, color .3s, border-color .3s; }
.bl-pill:hover { border-color: var(--accent); color: var(--text); }
.bl-pill[aria-current], .bl-pill[aria-current]:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.bl-search { position: relative; flex: 1 1 320px; max-width: 420px; margin-left: auto; }
.bl-search > .ico { position: absolute; left: 18px; top: 50%; margin-top: -9px; color: var(--muted); pointer-events: none; }
.bl-search input[type="search"] { width: 100%; min-height: 52px; padding: 0 56px 0 48px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-family: inherit; font-size: 16px; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.bl-search input[type="search"]::placeholder { color: var(--dim); }
.bl-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.bl-search input[type="search"]:focus { outline: none; border-color: var(--accent); }
.bl-search__btn { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .3s, color .3s; }
.bl-search__btn:hover, .bl-search input:focus ~ .bl-search__btn { background: var(--accent); color: var(--bg); }
.bl-status { margin: -16px 0 24px; font-size: 13px; }

/* ── Картки статей ── */
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.bl-grid > li { display: flex; min-width: 0; }
.bl-grid > li[hidden] { display: none; }
.bl-card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 14px 14px 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: transform .5s var(--ease), border-color .4s; }
.bl-card:hover { color: var(--text); transform: translateY(-6px); border-color: #3E3E35; }
.bl-card-img { position: relative; display: block; height: 200px; border-radius: 14px; overflow: hidden; background: var(--card-2); }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bl-card:hover .bl-card-img img { transform: scale(1.06); }
.bl-card-img.is-empty { display: grid; place-items: center; background: var(--c, var(--accent)); color: var(--bg); }
.bl-glyph { font-family: var(--font-display); font-weight: 800; font-size: 60px; line-height: 1; letter-spacing: -0.05em; transition: transform .7s var(--ease); }
.bl-card:hover .bl-glyph { transform: scale(1.18) rotate(-5deg); }
.bl-card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 0 6px; min-width: 0; }
.bl-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.bl-cat { color: var(--accent); }
.bl-card-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.bl-card-title span { padding-bottom: 2px; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.bl-card:hover .bl-card-title span { background-size: 100% 2px; }
.bl-card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 15px; line-height: 1.55; color: var(--muted); }
.bl-date { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--dim); }
/* Після фільтрування картки «зʼявляються» наново (backwards — щоб не перебити зсув при наведенні) */
.motion .is-filtering .bl-card { animation: bl-pop .5s var(--ease) backwards; }

/* ── Порожній стан ── */
.bl-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(40px, 6vw, 72px) 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 24px; }
.bl-empty[hidden] { display: none; }
.bl-empty__title { font-size: clamp(20px, 2.4vw, 28px); }
.bl-empty .btn { margin-top: 12px; }
.bl-grid + .bl-empty { margin-top: 24px; }

/* ── Пагінація ── */
.bl-pager { margin-top: clamp(40px, 5vw, 64px); }
.bl-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bl-pager .page-numbers { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 14px; color: var(--text-2); transition: border-color .3s, color .3s, background-color .3s; }
.bl-pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.bl-pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.bl-pager .page-numbers.dots { border-color: transparent; min-width: 24px; padding: 0; }

/* ── Telegram замість розсилки ── */
.bl-tg-sec { padding-bottom: clamp(24px, 4vw, 48px); }
.bl-tg { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: clamp(28px, 5vw, 64px); border-radius: 36px; border: 1px solid var(--line); background: var(--card); }
.bl-tg__text { position: relative; flex: 1 1 360px; max-width: 620px; }
.bl-tg__title { font-size: clamp(26px, 3.4vw, 44px); margin-top: 18px; }
.bl-tg .btn-row { position: relative; }

/* ══ Стаття ══ */

/* ── Прогрес читання: під шапкою сайту ── */
.read-progress { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 41; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.menu-open .read-progress { opacity: 0; }

/* ── Шапка статті ── */
.art-head { padding-bottom: 0; }
.art-cat { min-height: 44px; }
.art-cat:hover { color: var(--text); }
.art-title { font-size: clamp(32px, 5.6vw, 80px); line-height: 1.04; max-width: 1080px; margin-top: 12px; overflow-wrap: anywhere; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.art-author { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); }
.art-author__pic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 800; font-size: 14px; transition: background-color .3s, color .3s; }
.art-author:hover .art-author__pic { background: var(--accent); color: var(--bg); }
.art-author__text { display: flex; flex-direction: column; line-height: 1.3; }
.art-author__name { font-weight: 700; }
.art-author__role { font-size: 13px; }
.art-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.art-facts li { display: inline-flex; align-items: center; gap: 8px; }
.art-cover { margin: 48px 0 0; border-radius: 32px; overflow: hidden; background: var(--card); }
.art-cover img { width: 100%; max-height: 560px; object-fit: cover; }

/* ── Розкладка: зміст збоку + текст ── */
.art-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 48px 72px; align-items: start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); }
.art-layout--solo { grid-template-columns: minmax(0, 760px); }
.art-aside { position: sticky; top: calc(var(--header-h) + 32px); min-width: 0; }
.art-main { min-width: 0; }

/* ── Зміст ── */
.toc-box summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary .ico { display: none; transition: transform .35s var(--ease); }
.toc-box[open] summary .ico { transform: rotate(45deg); }
.toc ol { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { position: relative; display: block; padding: 8px 0 8px 18px; font-size: 14px; line-height: 1.45; color: var(--muted); transition: color .3s; }
.toc a::before { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .3s; }
.toc a:hover, .toc a[aria-current] { color: var(--text); }
.toc a:hover::before, .toc a[aria-current]::before { transform: scaleY(1); }
@media (min-width: 901px) {
    /* На великому екрані зміст завжди розгорнутий — заголовок не перемикач */
    .toc-box summary { pointer-events: none; cursor: default; }
}

/* ── Текст статті (перебиває стилі бібліотеки блоків) ── */
.art-body { font-size: 19px; line-height: 1.75; color: #D9D6CA; overflow-wrap: break-word; }
.art-body > * { margin-top: 0; margin-bottom: 0; }
.art-body > * + * { margin-top: 1.2em; }
.art-body > p:first-child { font-size: clamp(20px, 2vw, 24px); line-height: 1.6; color: var(--text); }
.art-body h2, .art-body h3, .art-body h4 { color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); overflow-wrap: anywhere; }
.art-body > h2 { margin-top: 2em; font-size: clamp(24px, 2.6vw, 32px); }
.art-body > h3 { margin-top: 1.8em; }
.art-body h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; margin-top: 1.6em; }
.art-body > h2 + *, .art-body > h3 + *, .art-body > h4 + * { margin-top: .8em; }
.art-body strong { color: var(--text); }
.art-body ul ul, .art-body ul ol, .art-body ol ul, .art-body ol ol { margin-top: .4em; }
.art-body mark { padding: .05em .3em; border-radius: 4px; background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); }
.art-body kbd { font-family: var(--font-mono); font-size: .85em; padding: .15em .45em; border-radius: 6px; border: 1px solid var(--line-3); border-bottom-width: 2px; }

/* Цитати */
.art-body blockquote, .art-body .wp-block-quote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--accent); color: var(--text); }
.art-body blockquote p { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.32; letter-spacing: -0.02em; font-style: normal; }
.art-body blockquote p + p { margin-top: .7em; }
.art-body blockquote cite, .art-body .wp-block-pullquote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.art-body .wp-block-pullquote { margin: 2.2em 0; padding: clamp(24px, 4vw, 40px); border-radius: 24px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); text-align: left; font-size: inherit; line-height: inherit; }
.art-body .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.art-body .wp-block-pullquote p { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.25; }

/* Код */
.art-body pre, .art-body pre.wp-block-code, .art-body .wp-block-preformatted { margin: 1.6em 0; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: #D9D6CA; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; overflow-x: auto; tab-size: 4; }
.art-body pre.wp-block-code code, .art-body pre code { display: block; padding: 0; background: none; font-family: inherit; font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
.art-body .wp-block-preformatted, .art-body .wp-block-verse { white-space: pre-wrap; }
.art-body :not(pre) > code { color: var(--text); overflow-wrap: anywhere; }

/* Таблиці: широка таблиця прокручується всередині своєї обгортки */
.art-body .wp-block-table { margin: 1.8em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.art-body > table { display: block; width: max-content; max-width: 100%; margin: 1.8em 0; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.art-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.art-body .wp-block-table table { min-width: 520px; }
.art-body .wp-block-table th, .art-body .wp-block-table td, .art-body th, .art-body td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.art-body .wp-block-table thead, .art-body .wp-block-table tfoot { border: 0; }
.art-body th, .art-body thead td { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.art-body tbody tr:last-child td, .art-body tbody tr:last-child th { border-bottom: 0; }
.art-body .wp-block-table.is-style-stripes { border-bottom: 1px solid var(--line); }
.art-body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--card-2); }
.art-body .wp-block-table figcaption { padding: 12px 18px; border-top: 1px solid var(--line); }

/* Зображення, підписи, вбудовування */
.art-body figure { margin-left: 0; margin-right: 0; }
.art-body .wp-block-image, .art-body .wp-block-embed, .art-body .wp-block-video, .art-body .wp-block-gallery { margin: 1.8em 0; }
.art-body .wp-block-image img, .art-body .wp-block-video video { border-radius: 18px; }
.art-body .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.art-body .aligncenter img { margin-left: auto; margin-right: auto; }
.art-body figcaption, .art-body .wp-element-caption, .art-body .wp-block-image figcaption { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: left; }
.art-body .wp-block-embed__wrapper { border-radius: 18px; overflow: hidden; }
.art-body .wp-block-embed iframe, .art-body > iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.art-body .wp-block-embed.is-type-video iframe { height: auto; aspect-ratio: 16 / 9; }

/* Розділювач, кнопки, виноски, колонки */
.art-body hr, .art-body .wp-block-separator { height: 0; margin: 2.4em 0; border: 0; border-top: 1px solid var(--line-2); color: var(--line-2); opacity: 1; }
.art-body .wp-block-separator.is-style-dots { border: 0; color: var(--accent); }
.art-body .wp-block-buttons { margin: 1.8em 0; gap: 12px; }
.art-body .wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.art-body .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--line-3); color: var(--text); }
.art-body .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--accent); color: var(--accent); }
/* Виноска: абзац або група з фоном, чи додатковий клас «callout» у редакторі */
.art-body .callout, .art-body p.has-background, .art-body .wp-block-group.has-background { padding: 22px; border-radius: 18px; font-size: 17px; }
.art-body .callout { background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.art-body .wp-block-columns { margin: 1.8em 0; gap: 24px; }
.art-body .wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--text); }

/* ── Смуги порівняння [vs_bars] ── */
.bars { margin: 1.8em 0; padding: clamp(18px, 3vw, 26px); border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-size: 16px; line-height: 1.4; }
.bars__title { margin: 0 0 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose .bars__list { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.prose .bars__row { --c: #FF8A3D; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; margin: 0; }
.prose .bars__row.is-accent { --c: var(--accent); }
.bars__label { font-weight: 700; color: var(--text); }
.bars__val { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.is-accent .bars__val { color: var(--accent); }
.bars__track { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: #23231D; overflow: hidden; }
.bars__track i { display: block; width: var(--v, 0%); height: 100%; border-radius: 8px; background: var(--c); transform-origin: left; }
.motion .bars[data-bars] .bars__track i { transform: scaleX(0); }
.bars__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ── Питання й відповіді ── */
.art-faq { max-width: 760px; margin-top: clamp(48px, 6vw, 72px); }
.art-sub { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 20px; }
.afaq { border-top: 1px solid var(--line-2); }
.afaq__item { border-bottom: 1px solid var(--line-2); }
.afaq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 0; cursor: pointer; font-weight: 700; font-size: 18px; line-height: 1.35; transition: color .3s; }
.afaq__item summary::-webkit-details-marker { display: none; }
.afaq__item summary:hover { color: var(--accent); }
.afaq__item summary .ico { flex: none; color: var(--accent); transition: transform .4s var(--ease); }
.afaq__item[open] summary .ico { transform: rotate(45deg); }
.afaq__a { padding: 0 44px 22px 0; color: var(--text-2); }
.afaq__a p + p { margin-top: .8em; }

/* ── Повʼязана послуга ── */
.art-service { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 760px; margin-top: clamp(40px, 5vw, 56px); padding: clamp(22px, 3vw, 32px); border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: border-color .4s; }
.art-service:hover { color: var(--text); border-color: var(--accent); }
.art-service__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.art-service__title { font-size: clamp(20px, 2.4vw, 28px); overflow-wrap: anywhere; }
.art-service__lead { font-size: 15px; }
.art-service__arrow { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--bg); transition: transform .5s var(--ease); }
.art-service:hover .art-service__arrow { transform: rotate(-45deg) scale(1.08); }

/* ── Мітки й «поділитися» ── */
.art-foot { display: flex; flex-direction: column; gap: 28px; max-width: 760px; margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line-2); }
.art-tags .chip { min-height: 44px; padding: 0 16px; transition: border-color .3s, color .3s; }
.art-tags .chip:hover { border-color: var(--accent); color: var(--accent); }
.art-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.art-share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.art-share__list li[hidden] { display: none; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 12px; cursor: pointer; transition: border-color .3s, color .3s, background-color .3s; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn.ok, .share-btn.ok:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ── Читайте також ── */
.art-related { padding-top: 0; }
.art-related__title { font-size: clamp(28px, 4vw, 48px); }

@keyframes bl-pop { from { opacity: 0; transform: translateY(26px) scale(.97); } }

@media (max-width: 900px) {
    .art-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .art-aside { position: static; }
    .toc-box { border-radius: 18px; border: 1px solid var(--line); background: var(--card); padding: 0 18px; }
    .toc-box summary { min-height: 56px; margin-bottom: 0; cursor: pointer; }
    .toc-box summary .ico { display: block; }
    .toc-box .toc { padding-bottom: 14px; }
    .toc a { padding-top: 11px; padding-bottom: 11px; font-size: 15px; }
}

@media (max-width: 720px) {
    .bl-feat { border-radius: 24px; }
    .bl-feat__cover { min-height: 240px; flex-basis: 100%; }
    .bl-feat__ring { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
    .bl-bar { gap: 16px; margin-bottom: 28px; }
    .bl-search { max-width: none; flex-basis: 100%; }
    /* Рубрики — одним рядком із прокручуванням, щоб не займали пів екрана */
    .bl-cats { margin: 0 calc(var(--gutter) * -1); max-width: calc(100% + var(--gutter) * 2); overflow-x: auto; scrollbar-width: none; }
    .bl-cats::-webkit-scrollbar { display: none; }
    .bl-cats ul { flex-wrap: nowrap; width: max-content; padding: 0 var(--gutter); }
    .bl-pill { white-space: nowrap; }
    .bl-pager .page-numbers { min-width: 44px; height: 44px; }
    .bl-tg { border-radius: 24px; }
    .art-meta { margin-top: 24px; }
    .art-cover { margin-top: 32px; border-radius: 20px; }
    .art-body { font-size: 17px; }
    .art-body pre, .art-body pre.wp-block-code { padding: 16px; font-size: 13px; border-radius: 14px; }
    .afaq__item summary { font-size: 16px; }
    .afaq__a { padding-right: 0; }
    .art-service { align-items: flex-start; }
    .art-service__arrow { width: 48px; height: 48px; }
}
