/* ==========================================================================
   Tusovka - Блог (sunday-стиль): листинг + статья.
   Featured, фильтр-пилюли, 2 колонки + сайдбар (категории/популярное/теги/CTA),
   оглавление, ключевые выводы, блок автора, подписка на рассылку.
   Палитра: оранж #f5820a / #dc7000, sky #2e86c1, hero-градиент eaf1f6->fff7ec.
   ========================================================================== */

.tus-blog {
    --tus-orange: #f5820a;
    --tus-orange-d: #dc7000;
    --tus-sky: #2e86c1;
    --tus-ink: #1f2937;
    --tus-ink-2: #4b5563;
    --tus-muted: #6b7280;
    --tus-line: #eef0f6;
    --tus-line-2: #e3ecf2;
    --tus-bg-soft: #f7f9fc;
    --tus-card-shadow: 0 14px 32px -22px rgba(24, 60, 90, .16);
    --tus-card-shadow-h: 0 22px 44px -24px rgba(24, 60, 90, .28);
    --tus-hero-grad: linear-gradient(135deg, #eaf1f6, #fff7ec);
    --tus-radius: 18px;
}

/* Блог управляет своими отступами сам: убираем дефолтный padding .site-main
   (иначе снизу - пустой белый блок над футером, сверху - конфликт с hero). */
.site-main.tus-blog { padding: 0; }

/* Защита от горизонтального переполнения на узких экранах. */
.tus-blog img { max-width: 100%; height: auto; }
.tus-blog-hero__title, .tus-article-title, .tus-featured__title,
.tus-post-card__title, .tus-article-content { overflow-wrap: break-word; word-break: break-word; }

/* Полоса подписки должна примыкать к футеру: гасим лендинговый margin-top футера
   (sunday.css задаёт footer{margin-top:clamp(70px,10vh,130px)}) на страницах блога. */
body.blog footer,
body.single-post footer,
body.category footer,
body.tag footer,
body.author footer,
body.date footer { margin-top: 0; }

/* ---- Крошки ---- */
.tus-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--tus-muted); margin: 0 0 16px; }
.tus-crumbs a { color: var(--tus-muted); text-decoration: none; transition: color .15s ease; }
.tus-crumbs a:hover { color: var(--tus-orange-d); }
.tus-crumbs [aria-current="page"] { color: var(--tus-ink); font-weight: 600; }
.tus-crumbs__sep { color: #cbd5e1; }

/* ---- Hero ---- */
.tus-blog-hero { background: var(--tus-hero-grad); border-bottom: 1px solid var(--tus-line); margin-top: calc(-1 * var(--shp-header-h, 79px)); }
.tus-blog-hero__inner { padding-top: calc(40px + var(--shp-header-h, 79px)); padding-bottom: 40px; }
.tus-blog-hero__eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--tus-orange-d); background: rgba(245, 130, 10, .12); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.tus-blog-hero__title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: clamp(1.9rem, 4.4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--tus-ink); margin: 0; }
.tus-blog-hero__sub { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--tus-ink-2); line-height: 1.6; max-width: 62ch; margin: 14px 0 0; }

/* Поиск в hero */
.tus-blog-search { position: relative; margin-top: 24px; max-width: 640px; }
.tus-blog-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--tus-muted); pointer-events: none; }
.tus-blog-search__input { width: 100%; height: 54px; border: 1px solid var(--tus-line-2); border-radius: 14px; background: #fff; padding: 0 18px 0 48px; font-size: 15px; color: var(--tus-ink); box-shadow: 0 10px 30px -22px rgba(24, 60, 90, .3); transition: border-color .15s ease, box-shadow .15s ease; }
.tus-blog-search__input:focus { outline: none; border-color: var(--tus-orange); box-shadow: 0 0 0 4px rgba(245, 130, 10, .12); }

/* ---- Секции листинга ---- */
.tus-featured-wrap { padding-top: 44px; }
.tus-filter-wrap { padding-top: 26px; padding-bottom: 4px; }
.tus-blog-list { padding: 20px 0 64px; }

/* ---- Featured ---- */
.tus-featured { display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border: 1px solid var(--tus-line); border-radius: 24px; overflow: hidden; box-shadow: var(--tus-card-shadow); }
.tus-featured__media { position: relative; display: block; min-height: 340px; background: var(--tus-hero-grad); overflow: hidden; }
.tus-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tus-featured:hover .tus-featured__media img { transform: scale(1.03); }
.tus-featured__media.is-empty { display: flex; align-items: center; justify-content: center; }
.tus-featured__cat { position: absolute; top: 18px; left: 18px; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: rgba(245, 130, 10, .95); padding: 6px 13px; border-radius: 999px; }
.tus-featured__body { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.tus-featured__pin { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--tus-sky); }
.tus-featured__title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; line-height: 1.14; letter-spacing: -.02em; margin: 0; }
.tus-featured__title a { color: var(--tus-ink); text-decoration: none; transition: color .15s ease; }
.tus-featured__title a:hover { color: var(--tus-orange-d); }
.tus-featured__excerpt { font-size: 1.02rem; color: var(--tus-ink-2); line-height: 1.65; margin: 0; }
.tus-featured__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: 6px; }
.tus-featured__meta { display: block; font-size: 12.5px; color: var(--tus-muted); }
.tus-featured__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: #b45309; text-decoration: none; white-space: nowrap; }
.tus-featured__more:hover { color: var(--tus-orange); }

/* ---- Фильтр-пилюли ---- */
.tus-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.tus-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--tus-ink-2); background: #fff; border: 1px solid var(--tus-line-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: all .15s ease; }
.tus-pill svg { color: var(--tus-muted); transition: color .15s ease; }
.tus-pill:hover { border-color: var(--tus-orange); color: var(--tus-orange-d); }
.tus-pill:hover svg { color: var(--tus-orange-d); }
.tus-pill.is-active { background: var(--tus-orange); border-color: var(--tus-orange); color: #fff; box-shadow: 0 10px 22px -12px rgba(245, 130, 10, .6); }
.tus-pill.is-active svg { color: #fff; }

/* ---- Раскладка 2 колонки: сайдбар СЛЕВА (плавающий), контент справа ---- */
.tus-blog-layout { display: grid; grid-template-columns: 336px minmax(0, 1fr); gap: 40px; align-items: start; }
.tus-blog-main { min-width: 0; order: 2; }
.tus-blog-aside { display: flex; flex-direction: column; gap: 22px; order: 1; position: sticky; align-self: start; top: calc(var(--shp-header-h, 79px) + 24px); }

/* ---- Сетка карточек ---- */
.tus-post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tus-post-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.tus-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tus-line); border-radius: var(--tus-radius); overflow: hidden; box-shadow: var(--tus-card-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.tus-post-card:hover { transform: translateY(-4px); box-shadow: var(--tus-card-shadow-h); }
.tus-post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tus-hero-grad); }
.tus-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tus-post-card:hover .tus-post-card__media img { transform: scale(1.04); }
.tus-post-card__media.is-empty { display: flex; align-items: center; justify-content: center; }
.tus-post-card__badge { position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: rgba(31, 41, 55, .72); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 999px; }
.tus-post-card__ph { width: 60px; height: 60px; opacity: .85; }
.tus-post-card__ph svg { width: 100%; height: 100%; }
.tus-post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 18px; flex: 1; }
.tus-post-card__title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.16rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.tus-post-card__title a { color: var(--tus-ink); text-decoration: none; transition: color .15s ease; }
.tus-post-card__title a:hover { color: var(--tus-orange-d); }
.tus-post-card__excerpt { font-size: 14px; color: var(--tus-ink-2); line-height: 1.6; margin: 0; flex: 1; }
.tus-post-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--tus-line); }
.tus-post-card__author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tus-avatar, .tus-post-card__author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.tus-post-card__aname { font-size: 12.5px; font-weight: 700; color: var(--tus-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tus-post-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tus-muted); white-space: nowrap; }
.tus-dot { color: #cbd5e1; }
.tus-noresults { text-align: center; color: var(--tus-muted); padding: 40px 0; }

/* ---- Сайдбар-виджеты ---- */
.tus-widget { background: #fff; border: 1px solid var(--tus-line); border-radius: 16px; padding: 20px; box-shadow: var(--tus-card-shadow); }
.tus-widget__title { display: flex; align-items: center; gap: 8px; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; color: var(--tus-ink); margin: 0 0 14px; }
.tus-widget__title svg { color: var(--tus-orange); }

.tus-widget__cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tus-widget__cats li + li { border-top: 1px solid var(--tus-line); }
.tus-widget__cats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; text-decoration: none; color: var(--tus-ink-2); font-weight: 600; font-size: 14.5px; transition: color .15s ease; }
.tus-widget__cats a:hover { color: var(--tus-orange-d); }
.tus-widget__catname { display: inline-flex; align-items: center; gap: 9px; }
.tus-widget__catname svg { color: var(--tus-orange); }
.tus-widget__count { font-size: 12px; font-weight: 800; color: var(--tus-orange-d); background: rgba(245, 130, 10, .1); min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }

.tus-widget__posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tus-widget__posts a { display: grid; grid-template-columns: 62px 1fr; gap: 12px; text-decoration: none; align-items: center; }
.tus-widget__thumb { width: 62px; height: 62px; border-radius: 12px; overflow: hidden; background: var(--tus-hero-grad); flex: none; }
.tus-widget__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tus-widget__thumb.is-empty { display: flex; align-items: center; justify-content: center; }
.tus-widget__thumb.is-empty svg { width: 30px; height: 30px; }
.tus-widget__pbody { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tus-widget__ptitle { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--tus-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease; }
.tus-widget__posts a:hover .tus-widget__ptitle { color: var(--tus-orange-d); }
.tus-widget__pmeta { font-size: 11.5px; color: var(--tus-muted); }

.tus-widget__tags, .tus-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tus-tagpill { font-size: 12.5px; font-weight: 600; color: var(--tus-ink-2); background: var(--tus-bg-soft); border: 1px solid var(--tus-line); padding: 5px 11px; border-radius: 999px; text-decoration: none; transition: all .15s ease; }
.tus-tagpill:hover { background: rgba(245, 130, 10, .1); border-color: rgba(245, 130, 10, .3); color: var(--tus-orange-d); }

/* CTA-карточка */
.tus-cta-card { background: linear-gradient(140deg, #f5820a, #e8785b); border: none; color: #fff; text-align: left; box-shadow: 0 20px 40px -22px rgba(220, 112, 0, .7); }
.tus-cta-card__ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, .18); color: #fff; margin-bottom: 12px; }
.tus-cta-card__title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; color: #fff; }
.tus-cta-card__sub { font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; color: rgba(255, 255, 255, .92); }
.tus-cta-card__btn { display: block; text-align: center; background: #fff; color: var(--tus-orange-d); font-weight: 800; font-size: 14.5px; padding: 12px 16px; border-radius: 12px; text-decoration: none; transition: transform .15s ease; }
.tus-cta-card__btn:hover { transform: translateY(-2px); }

/* ---- Пагинация ---- */
.tus-pagination { margin: 36px 0 0; display: flex; justify-content: center; }
.tus-pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tus-pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tus-line); border-radius: 12px; background: #fff; color: var(--tus-ink); font-weight: 700; font-size: 14px; text-decoration: none; transition: all .15s ease; }
.tus-pagination a.page-numbers:hover { border-color: var(--tus-orange); color: var(--tus-orange-d); }
.tus-pagination .page-numbers.current { background: var(--tus-orange); border-color: var(--tus-orange); color: #fff; }
.tus-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ==========================================================================
   Статья
   ========================================================================== */
.tus-article-hero { background: var(--tus-hero-grad); border-bottom: 1px solid var(--tus-line); margin-top: calc(-1 * var(--shp-header-h, 79px)); }
.tus-article-hero__inner { padding-top: calc(38px + var(--shp-header-h, 79px)); padding-bottom: 34px; }
.tus-article-hero__inner .tus-article-title { max-width: 26ch; }
.tus-article-cat { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--tus-orange-d); background: rgba(245, 130, 10, .12); padding: 5px 13px; border-radius: 999px; text-decoration: none; margin-bottom: 16px; }
.tus-article-title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: var(--tus-ink); margin: 0 0 20px; }
.tus-article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--tus-ink-2); }
.tus-article-meta img, .tus-article-meta .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 6px 16px -10px rgba(24, 60, 90, .3); }
.tus-article-meta__author { font-weight: 700; color: var(--tus-ink); }
.tus-article-meta__sub { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tus-muted); }

.tus-article-cover { max-width: 1280px; margin: -26px auto 0; padding: 0 var(--tusovka-spacing-md, 1.5rem); }
/* Обложка статьи - в натуральном соотношении сторон, без кропа (height:auto; без object-fit/max-height) */
.tus-article-cover img { width: 100%; height: auto; border-radius: 20px; display: block; box-shadow: 0 30px 60px -34px rgba(24, 60, 90, .4); }

/* Раскладка статьи: 3 колонки - оглавление СЛЕВА, контент ПО ЦЕНТРУ, виджеты СПРАВА.
   Обе боковые колонки - плавающие (initFloatingSidebar). */
.tus-article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 288px; gap: 40px; align-items: start; padding-top: 44px; padding-bottom: 56px; }
.tus-article-layout--notoc { grid-template-columns: minmax(0, 1fr) 288px; }
.tus-article-nav { order: 1; position: sticky; align-self: start; top: calc(var(--shp-header-h, 79px) + 24px); }
.tus-article-main { order: 2; min-width: 0; }
.tus-article-side { order: 3; position: sticky; align-self: start; top: calc(var(--shp-header-h, 79px) + 24px); display: flex; flex-direction: column; gap: 20px; }

/* Ключевые выводы */
.tus-takeaways { background: linear-gradient(135deg, rgba(245, 130, 10, .07), rgba(46, 134, 193, .05)); border: 1px solid rgba(245, 130, 10, .22); border-radius: 16px; padding: 22px 24px; margin: 0 0 32px; }
.tus-takeaways__head { display: flex; align-items: center; gap: 9px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--tus-orange-d); margin-bottom: 12px; }
.tus-takeaways__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tus-takeaways__list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.55; color: var(--tus-ink); }
.tus-takeaways__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc7000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }

/* Контент */
.tus-article-content { font-size: 1.075rem; line-height: 1.75; color: #33404f; }
.tus-article-content > *:first-child { margin-top: 0; }
.tus-article-content p { margin: 0 0 1.3em; }
.tus-article-content h2 { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--tus-ink); margin: 1.9em 0 .6em; scroll-margin-top: calc(var(--shp-header-h, 79px) + 16px); }
.tus-article-content h3 { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.28rem; font-weight: 700; color: var(--tus-ink); margin: 1.5em 0 .5em; scroll-margin-top: calc(var(--shp-header-h, 79px) + 16px); }
.tus-article-content a { color: var(--tus-orange-d); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color .15s ease; }
.tus-article-content a:hover { color: var(--tus-orange); }
.tus-article-content ul, .tus-article-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.tus-article-content li { margin: 0 0 .5em; }
.tus-article-content ul li::marker { color: var(--tus-orange); }
.tus-article-content ol li::marker { color: var(--tus-orange-d); font-weight: 700; }
.tus-article-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--tus-orange); color: var(--tus-ink-2); font-size: 1.12rem; font-style: italic; }
.tus-article-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.2em 0; }
.tus-article-content strong { color: var(--tus-ink); font-weight: 700; }
.tus-article-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.tus-article-content th, .tus-article-content td { border: 1px solid var(--tus-line); padding: 10px 12px; text-align: left; }
.tus-article-content th { background: #f8fafc; font-weight: 700; }

/* Оглавление (левая колонка / мобильный дропдаун) */
.tus-toc { background: #fff; border: 1px solid var(--tus-line); border-radius: 16px; box-shadow: var(--tus-card-shadow); }
.tus-toc__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; background: none; border: none; cursor: default; font: inherit; text-align: left; }
.tus-toc__toggle-label { display: inline-flex; align-items: center; gap: 8px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; color: var(--tus-ink); }
.tus-toc__toggle-label svg { color: var(--tus-orange); }
.tus-toc__chevron { color: var(--tus-muted); transition: transform .2s ease; display: none; }
.tus-toc__list { list-style: none; margin: 0; padding: 0 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tus-toc__item a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--tus-ink-2); text-decoration: none; border-left: 2px solid transparent; transition: all .15s ease; }
.tus-toc__item a:hover { color: var(--tus-orange-d); background: rgba(245, 130, 10, .06); }
.tus-toc__item.tus-toc__l3 a { padding-left: 22px; font-size: 13px; }
.tus-toc__item a.is-active { color: var(--tus-orange-d); font-weight: 700; border-left-color: var(--tus-orange); background: rgba(245, 130, 10, .08); }

/* FAQ */
.tus-faq { margin: 40px 0 0; }
.tus-faq__title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--tus-ink); margin: 0 0 18px; }
.tus-faq__item { border: 1px solid var(--tus-line); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; box-shadow: 0 10px 26px -22px rgba(24, 60, 90, .18); }
.tus-faq__item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--tus-ink); font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tus-faq__item summary::-webkit-details-marker { display: none; }
.tus-faq__item summary::after { content: ""; flex: none; width: 20px; height: 20px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc7000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); transition: transform .2s ease; }
.tus-faq__item[open] summary::after { transform: rotate(180deg); }
.tus-faq__item summary:hover { color: var(--tus-orange-d); }
.tus-faq__answer { padding: 0 20px 18px; color: var(--tus-ink-2); line-height: 1.65; font-size: 1rem; }

/* Теги + Поделиться */
.tus-article-foot { padding: 24px 0 4px; margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--tus-line); }
.tus-share { display: inline-flex; gap: 8px; align-items: center; }
.tus-share__label { font-size: 13px; color: var(--tus-muted); font-weight: 600; }
.tus-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--tus-line-2); background: #fff; color: var(--tus-ink-2); cursor: pointer; transition: all .15s ease; }
.tus-share__btn:hover { border-color: var(--tus-orange); color: var(--tus-orange-d); transform: translateY(-2px); }
.tus-share__btn svg { width: 18px; height: 18px; }

/* Блок автора */
.tus-authorbox { display: flex; gap: 20px; align-items: center; margin: 34px 0 0; padding: 24px; background: var(--tus-bg-soft); border: 1px solid var(--tus-line); border-radius: 18px; }
.tus-authorbox__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 10px 24px -14px rgba(24, 60, 90, .3); }
.tus-authorbox__label { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tus-orange-d); }
.tus-authorbox__name { display: block; font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--tus-ink); text-decoration: none; margin: 2px 0 6px; }
.tus-authorbox__name:hover { color: var(--tus-orange-d); }
.tus-authorbox__bio { font-size: 14px; color: var(--tus-ink-2); line-height: 1.6; margin: 0; }

/* Похожие */
.tus-related { padding: 44px 0 60px; }
.tus-related__title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--tus-ink); margin: 0 0 22px; }

/* ==========================================================================
   Рассылка
   ========================================================================== */
.tus-nl-band { background: linear-gradient(135deg, #123, #1f6fa8); }
.tus-nl-band .site-container { padding-top: 46px; padding-bottom: 46px; }
.tus-nl--band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tus-nl--band .tus-nl__text { flex: 1 1 320px; }
.tus-nl--band .tus-nl__title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; color: #fff; margin: 0 0 8px; letter-spacing: -.01em; }
.tus-nl--band .tus-nl__sub { font-size: 15px; color: rgba(255, 255, 255, .82); margin: 0; line-height: 1.55; max-width: 52ch; }
.tus-nl--band .tus-nl__form { flex: 1 1 360px; max-width: 480px; }
.tus-nl__row { display: flex; gap: 10px; }
.tus-nl--band .tus-nl__input { flex: 1; height: 52px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; padding: 0 16px; font-size: 15px; }
.tus-nl--band .tus-nl__input::placeholder { color: rgba(255, 255, 255, .6); }
.tus-nl--band .tus-nl__input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .18); }
.tus-nl--band .tus-nl__btn { flex: none; height: 52px; padding: 0 22px; border: none; border-radius: 13px; background: var(--tus-orange); color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.tus-nl--band .tus-nl__btn:hover { background: var(--tus-orange-d); transform: translateY(-1px); }
.tus-nl__status { font-size: 13px; margin: 10px 0 0; min-height: 18px; }
.tus-nl--band .tus-nl__status { color: #fff; }
.tus-nl__status.is-ok { color: #86efac; }
.tus-nl__status.is-err { color: #fca5a5; }

/* Рассылка-карточка (сайдбар) */
.tus-nl--card { background: #fff; border: 1px solid var(--tus-line); border-radius: 16px; padding: 20px; box-shadow: var(--tus-card-shadow); }
.tus-nl--card .tus-nl__title { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--tus-ink); margin: 0 0 6px; }
.tus-nl--card .tus-nl__sub { font-size: 13px; color: var(--tus-ink-2); line-height: 1.5; margin: 0 0 14px; }
.tus-nl--card .tus-nl__row { flex-direction: column; }
.tus-nl--card .tus-nl__input { height: 46px; border-radius: 11px; border: 1px solid var(--tus-line-2); background: #fff; color: var(--tus-ink); padding: 0 14px; font-size: 14px; }
.tus-nl--card .tus-nl__input:focus { outline: none; border-color: var(--tus-orange); box-shadow: 0 0 0 3px rgba(245, 130, 10, .12); }
.tus-nl--card .tus-nl__btn { height: 46px; border: none; border-radius: 11px; background: var(--tus-orange); color: #fff; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: background .15s ease; }
.tus-nl--card .tus-nl__btn:hover { background: var(--tus-orange-d); }
.tus-nl--card .tus-nl__status { color: var(--tus-ink-2); }

/* Пусто */
.tus-blog-empty { text-align: center; padding: 60px 20px; color: var(--tus-muted); }
.tus-blog-empty h2 { font-family: 'Baloo 2', system-ui, sans-serif; color: var(--tus-ink); margin: 0 0 10px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
/* Статья: 3 колонки ужимаются */
@media (max-width: 1200px) {
    .tus-article-layout { grid-template-columns: 194px minmax(0, 1fr) 264px; gap: 28px; }
}
/* Листинг: сайдбар уже */
@media (max-width: 1080px) {
    .tus-blog-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 30px; }
}
/* Статья -> стек: оглавление = липкий дропдаун под хедером, контент, виджеты снизу */
@media (max-width: 1024px) {
    .tus-article-layout, .tus-article-layout--notoc { grid-template-columns: 1fr; gap: 0; }
    .tus-article-main { order: 2; }
    .tus-article-side { order: 3; position: static; top: auto; margin-top: 32px; }
    .tus-article-nav { order: 1; position: sticky; top: calc(var(--shp-header-h, 79px) + 12px); z-index: 30; margin-bottom: 24px; }
    .tus-toc { position: relative; }
    .tus-toc__toggle { cursor: pointer; padding: 14px 18px; }
    .tus-toc__chevron { display: block; }
    .tus-toc__list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; padding: 8px 12px; background: #fff; border: 1px solid var(--tus-line); border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(24, 60, 90, .4); max-height: 62vh; overflow-y: auto; display: none; z-index: 40; }
    .tus-toc.is-open .tus-toc__list { display: flex; }
    .tus-toc.is-open .tus-toc__chevron { transform: rotate(180deg); }
}
/* Листинг -> одна колонка: контент первым, сайдбар под ним */
@media (max-width: 900px) {
    .tus-blog-layout { grid-template-columns: 1fr; gap: 28px; }
    .tus-blog-main { order: 1; }
    .tus-blog-aside { order: 2; position: static; top: auto; }
    .tus-featured { grid-template-columns: 1fr; }
    .tus-featured__media { min-height: 220px; }
    .tus-featured__body { padding: 26px 24px 30px; }
}
@media (max-width: 620px) {
    .tus-post-grid { grid-template-columns: 1fr; gap: 18px; }
    .tus-article-cover { margin-top: -14px; }
    .tus-article-foot { flex-direction: column; align-items: flex-start; }
    .tus-nl--band { flex-direction: column; align-items: stretch; }
    .tus-nl-band .site-container { padding-top: 34px; padding-bottom: 34px; }
    .tus-blog-hero__title, .tus-article-title { font-size: clamp(1.6rem, 7vw, 2rem); }
    .tus-article-hero__inner .tus-article-title { max-width: none; }
}
