/* ============================================================
   Blog Article — scoped styles (apply only inside .b-blog-page)
   Шаблон оборачивается в <div class="b-blog-page">…</div>
   ============================================================ */

.b-blog-page,
.b-blog-page *,
.b-blog-page *::before,
.b-blog-page *::after {
    box-sizing: border-box;
}

.b-blog-page * {
    margin: 0;
    padding: 0;
}

.b-blog-page {
    --pg-accent: #FE5D26;
    --pg-accent-hover: #D95427;
    --pg-black: #312D2B;
    --pg-text: #272F3D;
    --pg-bg: #F6F6F6;
    --pg-white: #FFFFFF;
    --pg-border: rgba(49, 45, 43, 0.1);
    --pg-card-shadow: 0 1px 4px 0 rgba(49, 45, 43, 0.08);
    --pg-card-bg: rgba(49, 45, 43, 0.05);
    --pg-transition: .25s ease;
    --pg-radius-sm: 10px;
    --pg-radius-md: 12px;
    --pg-radius-lg: 24px;

    font-family: "Inter", sans-serif;
    color: var(--pg-text);
    background-color: var(--pg-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.b-blog-page a:not([class]) { text-decoration: none; color: inherit; }
.b-blog-page img { max-width: 100%; height: auto; display: block; font-style: italic; }
.b-blog-page ol,
.b-blog-page ul { list-style: none; }

/* ---------- Container ---------- */
.b-container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- 1. Hero ---------- */
.b-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 48px;
}

.b-hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.5);
    image-rendering: auto;
    border-radius: inherit;
}

.b-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.b-particle {
    position: absolute;
    opacity: 0;
    line-height: 1;
    will-change: transform, opacity;
}

.b-particle-active {
    animation:
        blogParticlePop var(--dur, 6s) ease-in-out forwards,
        blogParticleSpin var(--dur, 6s) linear forwards;
}

@keyframes blogParticlePop {
    0%   { transform: scale(0);   opacity: 0; }
    10%  { transform: scale(.5);  opacity: .6; }
    30%  { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.2); opacity: 1; }
    70%  { transform: scale(1.4); opacity: .6; }
    85%  { transform: scale(1.6); opacity: .3; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes blogParticleSpin {
    0%   { rotate: 0deg; }
    100% { rotate: var(--rot); }
}

.b-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.b-hero-meta { display: flex; gap: 24px; }

.b-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.b-hero-title {
    color: #FFF;
    text-align: center;
    font-size: 64px;
    font-weight: 500;
    line-height: 72px;
    max-width: 1200px;
    margin: 0 auto;
}

.b-hero-subtitle {
    color: rgba(255,255,255,.7);
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    max-width: 480px;
}

.b-hero-socials { display: flex; gap: 8px; }

.b-hero-social-link {
    background-color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    color: #312D2B;
    transition: .2s;
}

.b-hero-social-link:hover {
    border: 1px solid #FE5D26;
    box-shadow: 0 0 0 2px rgba(254,93,38,.16), 0 1px 4px 0 rgba(49,45,43,.08);
}

.b-hero-social-link:hover svg path { fill: #FE5D26; }

.b-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    opacity: .7;
    z-index: 2;
}

.b-hero-scroll-wheel { animation: blogScrollWheel 2s ease-in-out infinite; }

@keyframes blogScrollWheel {
    0%   { transform: translateY(0);    opacity: 1; }
    50%  { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

/* ---------- 2. TOC ---------- */
.b-toc { padding: 48px 0 0; }

.b-toc-inner {
    max-width: 705px;
    margin: 0 auto;
}

.b-toc-title {
    color: #312D2B;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -.1px;
    margin-bottom: 24px;
}

.b-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
    border-bottom: 2px solid #FFBEA8;
}

.b-toc-link {
    color: #312D2B;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    border-bottom: 1px dashed;
    width: fit-content;
    display: inline;
    transition: color .2s;
}

.b-toc-link:hover { color: #FE5D26; }

/* ---------- 3. Article Body ---------- */
.b-article-body { padding: 40px 0; }

.b-narrow {
    max-width: 705px;
    margin: 0 auto;
}

/* ----- Вертикальный ритм статьи: каждый блок задаёт ТОЛЬКО margin-bottom,
   margin-top везде 0. Это исключает «двойные» зазоры между соседними
   блоками (когда top одного складывается с bottom другого) и даёт
   предсказуемый ритм: текст 24 / заголовки 16-12 / медиа и спец-блоки
   32 / секции 48. margin-top внутри блоков — не трогаем, там это часть
   собственной логики (poll-footer, scrollbar-thumb и т.п.). */

.b-narrow p {
    color: #312D2B;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin: 0 0 24px;
}

.b-narrow h2 {
    color: #312D2B;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    margin: 0 0 16px;
}

.b-narrow h3 {
    color: #312D2B;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    margin: 0 0 12px;
}

.b-blog-figure {
    margin: 0 0 32px;
}

.b-blog-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    margin: 0 0 32px;
}

.b-blog-figure .b-blog-img {
    margin: 0;
}

.b-blog-figcaption {
    padding: 12px 24px 0;
    color: rgba(49, 45, 43, .5);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* ---------- Recommend slider (кросс-товары для статьи) ----------
   Swiper-init: js/blog.js (slidesPerView: 5 на десктопе, breakpoints
   вниз до 1.2 на мобильнике). Hover-галерея в фото — глобальный
   js/hoverGallery.js по селектору .card-img-box.hover-images-box. */
.recommend.recommend-slider {
    margin: 0 0 48px;
}
.recommend.recommend-slider .container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
}
.recommend.recommend-slider .title {
    color: #312D2B;
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    margin-bottom: 24px;
}
.recommend.recommend-slider .slider { overflow: hidden; }

/* Карточки одной высоты: stretch на wrapper, height:auto + flex column на slide.
   Селектор `> .swiper-wrapper` — только прямой ребёнок .slider, чтобы НЕ
   ломать вложенный мини-слайдер в .card-img-slider. */
.recommend.recommend-slider .slider > .swiper-wrapper {
    display: flex;
    align-items: stretch;
}
.recommend.recommend-slider .swiper-slide.card {
    height: auto;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ECECEC;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 4px 0 rgba(49, 45, 43, 0.08);
}

/* Картинка карточки — фиксированная пропорция. */
.recommend.recommend-slider .card .card-img-box {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
}
.recommend.recommend-slider .card .card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Мини-слайдер фото внутри карточки (Swiper.js, инициализируется в blog.js). */
.recommend.recommend-slider .card-img-slider .swiper-wrapper {
    height: 100%;
}
.recommend.recommend-slider .card-img-slide {
    display: block;
    height: 100%;
}
.recommend.recommend-slider .card-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.recommend.recommend-slider .card-img-pagination {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    display: flex !important;
    justify-content: center;
    gap: 4px;
    z-index: 3;
    pointer-events: auto;
    width: auto;
}
.recommend.recommend-slider .card-img-pagination .swiper-pagination-bullet {
    flex: 1 1 auto;
    max-width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .5);
    opacity: 1;
    margin: 0 !important;
    transition: background .2s;
}
.recommend.recommend-slider .card-img-pagination .swiper-pagination-bullet-active {
    background: #fff;
}

.recommend.recommend-slider .card-content {
    padding: 12px 16px 8px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* position:relative ограничивает .card-link зоной контента, чтобы он
       НЕ перекрывал .card-img-slider — иначе mouse events до фото-слайдера
       не доходят и hover-листание не работает. */
    position: relative;
}
.recommend.recommend-slider .card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.recommend.recommend-slider .card-title {
    color: #312D2B;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    /* clamp в 2 строки — выравнивает высоту title-блока между карточками */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend.recommend-slider .card-row .price {
    color: #FE5D26;
    font-size: 18px;
    font-weight: 600;
}

/* Кнопка «Перейти» прибита к низу и на всю ширину карточки. */
.recommend.recommend-slider .card-controls {
    padding: 0 16px 16px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}
.recommend.recommend-slider .card-goto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #FE5D26;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    box-sizing: border-box;
}
.recommend.recommend-slider .card-goto:hover { background: #d94614; }

/* Slider controls: стрелки prev/next по бокам + bullets-пагинация
   в центре. */
.recommend.recommend-slider .slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}
.recommend.recommend-slider .slider-prev,
.recommend.recommend-slider .slider-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F4F4F4;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
    flex: 0 0 auto;
}
.recommend.recommend-slider .slider-prev:hover,
.recommend.recommend-slider .slider-next:hover {
    background: #ECECEC;
}
.recommend.recommend-slider .slider-prev.swiper-button-disabled,
.recommend.recommend-slider .slider-next.swiper-button-disabled {
    opacity: .4;
    cursor: default;
}

/* Bullets-пагинация: тонкие полоски-чёрточки вместо круглых точек.
   Контейнер фиксирован на 350 px, bullets флексом тянутся на всю ширину. */
.recommend.recommend-slider .pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 350px;
    max-width: 100%;
    position: static;
}
.recommend.recommend-slider .pagination .swiper-pagination-bullet {
    flex: 1 1 0;
    height: 3px;
    border-radius: 2px;
    background: #E5E5E5;
    opacity: 1;
    margin: 0;
    transition: background .2s;
}
.recommend.recommend-slider .pagination .swiper-pagination-bullet-active {
    background: #FE5D26;
}

@media (max-width: 768px) {
    .recommend.recommend-slider { margin: 0 0 32px; }
    .recommend.recommend-slider .title { font-size: 22px; line-height: 28px; margin-bottom: 16px; }
    .recommend.recommend-slider .slider-prev,
    .recommend.recommend-slider .slider-next { display: none; }
}

.b-narrow a:not([class]) {
    color: #FE5D26;
    text-decoration: none;
    border-bottom: 1px dashed #FE5D26;
    transition: color .2s;
}

.b-narrow a:not([class]):hover { border-bottom-color: transparent; }

.b-narrow a:not([class]):visited {
    color: #9B59B6;
    border-bottom-color: #9B59B6;
}

.b-article-ul {
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding-left: 20px;
}

.b-article-ul li {
    font-size: 16px;
    line-height: 24px;
    color: #312D2B;
    list-style-type: disc;
    display: list-item;
}

.b-article-ol {
    list-style: decimal;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding-left: 20px;
}

.b-article-ol li {
    font-size: 16px;
    line-height: 24px;
    color: #312D2B;
    display: list-item;
    list-style-type: decimal;
}

/* ---------- 4. Blockquote ---------- */
.b-blockquote {
    padding: 32px;
    max-width: 704px;
    margin: 0 auto 32px;
    border-top: 2px solid #FFBEA8;
    border-bottom: 2px solid #FFBEA8;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.b-blockquote-icon { line-height: 0; }

.b-blockquote-text {
    color: #312D2B;
    text-align: center;
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -.1px;
}

.b-blockquote-author {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b-blockquote-author-name {
    color: #312D2B;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.b-blockquote-author-role {
    color: rgba(49,45,43,.5);
    font-size: 14px;
    line-height: 20px;
}

/* ---------- 5. Poll ---------- */
.b-poll {
    max-width: 705px;
    margin: 0 auto 32px;
}

.b-poll-title {
    color: #312D2B;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    margin-bottom: 24px;
}

.b-poll-question {
    color: #312D2B;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 24px;
}

.b-poll-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.b-poll-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity .2s;
}

.b-poll-option:hover .b-poll-radio { border-color: #FE5D26; }
.b-poll-option:hover .b-poll-option-text { color: #FE5D26; }

.b-poll-radio {
    width: 20px;
    height: 20px;
    border-radius: 100px;
    border: 1px solid rgba(49,45,43,.1);
    flex-shrink: 0;
    transition: border .2s, background-color .2s;
}

.b-poll-radio-checked {
    background-color: #fff;
    border: 6px solid #FE5D26;
}

.b-poll-option-text {
    color: #312D2B;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    transition: color .2s;
}

.b-poll-footer {
    margin-top: 32px;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(49,45,43,.1);
    border-bottom: 1px solid rgba(49,45,43,.1);
}

.b-poll-footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(49,45,43,.8);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.b-poll-stats-text {
    color: rgba(49,45,43,.5);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* Кнопка «Переголосовать» — показывается только в режиме результатов
   (JS снимает hidden после успешного голосования / получения state с
   voted:1). Стиль — текстовая ссылка с иконкой возврата. */
.b-poll-revote {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(49,45,43,.6);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: color .15s;
}
.b-poll-revote[hidden] { display: none; }
.b-poll-revote:hover { color: #FE5D26; }
.b-poll-revote svg { display: block; }

.b-poll-result-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b-poll-result-top { display: flex; gap: 15px; }

.b-poll-result-text {
    color: #312D2B;
    font-size: 16px;
    line-height: 24px;
}

.b-poll-result-percent {
    color: rgba(49,45,43,.5);
    font-size: 16px;
    line-height: 24px;
}

.b-poll-result-bar {
    width: 240px;
    height: 3px;
    border-radius: 100px;
    background: rgba(49,45,43,.1);
    overflow: hidden;
}

.b-poll-result-bar-fill {
    height: 3px;
    background: #FE5D26;
}

/* ---------- 6. Placeholder ---------- */
.b-placeholder-full {
    margin: 0 0 32px;
    padding: 48px 32px;
    border: 2px dashed var(--pg-border);
    border-radius: var(--pg-radius-lg);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--pg-text);
    opacity: .5;
}

/* ---------- 7. Video ---------- */
.b-video-block {
    margin: 0 0 32px;
    position: relative;
}

.b-video-thumb {
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: block;
    margin-bottom: 16px;
}

.b-video-thumb img { width: 100%; display: block; }

.b-video-player {
    width: 100%;
    display: block;
    border-radius: 24px;
    background: #000;
    margin-bottom: 16px;
}

.b-video-thumb svg {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.b-video-thumb:hover svg path { fill: #fff; stroke: #fff; }
.b-video-thumb:hover svg rect { fill: #FE5D26; stroke: #FE5D26; }

.b-video-caption {
    padding-left: 24px;
    color: rgba(49,45,43,.5);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* ---------- 8. Photo Slider ---------- */
.b-gallery {
    position: relative;
    padding-bottom: 40px;
}

.b-gallery-swiper { position: relative; }

.b-gallery-viewport {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    cursor: grab;
}

.b-gallery-viewport.is-dragging { cursor: grabbing; }

.b-gallery-container {
    display: flex;
    gap: 12px;
    transition: transform .35s ease;
    will-change: transform;
}

.b-gallery-slide {
    flex: 0 0 auto;
    height: 380px;
    min-width: 0;
}

.b-gallery-slide a {
    display: block;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.b-gallery-slide img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.b-gallery-slide a:hover img { transform: scale(1.04); }

.b-gallery-slide a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(49,45,43,0);
    transition: background .3s ease;
    pointer-events: none;
}

.b-gallery-slide a:hover::after { background: rgba(49,45,43,.12); }

.b-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pg-white);
    box-shadow: 0 2px 8px rgba(49,45,43,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pg-black);
    transition: all var(--pg-transition);
    opacity: 0;
    border: none;
}

.b-gallery:hover .b-gallery-nav { opacity: 1; }

.b-gallery-nav:hover {
    background: var(--pg-accent);
    color: var(--pg-white);
    box-shadow: 0 4px 12px rgba(254,93,38,.25);
}

.b-gallery-nav-prev { left: 12px; }
.b-gallery-nav-next { right: 12px; }

.b-gallery-nav.is-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.b-gallery-scrollbar {
    margin-top: 14px;
    height: 3px;
    background: rgba(49,45,43,.08);
    border-radius: 3px;
    position: relative;
}

.b-gallery-scrollbar-thumb {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--pg-accent);
    border-radius: 3px;
    transition: left .1s ease-out, width .1s ease-out;
}

.b-gallery-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: var(--pg-text);
    opacity: .4;
}

/* ---------- 9. Alerts ---------- */
.b-alert {
    max-width: 705px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 16px;
    border-radius: 16px;
}

.b-alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b-alert-text {
    color: #312D2B;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.b-alert-grey   { background: rgba(49,45,43,.05); }
.b-alert-orange { background: #FFF0EB; }
.b-alert-green  { background: #EBF9EA; }
.b-alert-red    { background: #FFEFEA; }
.b-alert-yellow { background: #FFF7DB; }
.b-alert-blue   { background: #DBF3FF; }

/* ---------- 10. Gallery Grid ---------- */
.b-gallery-grid { margin: 0 0 32px; }

.b-gallery-row { display: flex; gap: 16px; }
.b-gallery-row + .b-gallery-row { margin-top: 16px; }

.b-gallery-row a {
    flex: 1;
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.b-gallery-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform .35s ease;
}

.b-gallery-grid-img:hover { transform: scale(1.02); }

/* ---------- 11. Gallery One ---------- */
.b-gallery-one {
    display: flex;
    gap: 16px;
    margin: 0 0 32px;
}

.b-gallery-one-big {
    flex: 0 0 794px;
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 536px;
}

.b-gallery-one-big a {
    display: block;
    position: absolute;
    inset: 0;
}

.b-gallery-one-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform .35s ease;
}

.b-gallery-one-big img:hover { transform: scale(1.02); }

.b-gallery-one-small {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.b-gallery-one-small a {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 2;
}

.b-gallery-one-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform .35s ease;
    position: absolute;
    inset: 0;
}

.b-gallery-one-small img:hover { transform: scale(1.02); }

/* ---------- Mobile gallery ---------- */
.b-gallery-mobile { display: none; }

.b-gallery-mobile-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 16px;
}

.b-gallery-mobile-viewport::-webkit-scrollbar { display: none; }

.b-gallery-mobile-container {
    display: flex;
    gap: 12px;
}

.b-gallery-mobile-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.b-gallery-mobile-slide a {
    display: block;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    overflow: hidden;
}

.b-gallery-mobile-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-gallery-mobile-scrollbar {
    margin-top: 14px;
    height: 3px;
    background: rgba(49,45,43,.08);
    border-radius: 3px;
    position: relative;
}

.b-gallery-mobile-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--pg-accent);
    border-radius: 3px;
    transition: left .1s ease-out, width .1s ease-out;
}

/* ---------- 12. Promo Banner ---------- */
.b-promo-banner {
    border-radius: 32px;
    background-image: url('/images/upload/blog-promo-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px;
    max-width: 1200px;
    margin: 0 auto 32px;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.b-promo-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(49,45,43,.15);
}

.b-promo-banner-narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.b-promo-discount {
    padding: 8px 20px;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    line-height: 100%;
    border-radius: 100px;
    background: #FE5D26;
}

.b-promo-reason {
    padding: 8px 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 100%;
    border-radius: 100px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
}

.b-promo-code {
    padding: 8px 20px;
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
    border-radius: 100px;
    color: #312D2B;
    background: #FFF;
}

.b-promo-code strong { color: #FE5D26; }

/* ---------- 13. Link button ---------- */
.b-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--pg-radius-md);
    background: var(--pg-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    transition: background var(--pg-transition);
    margin-bottom: 24px;
}

.b-link-button:hover { background: var(--pg-accent-hover); }

/* ---------- 14b. FAQ — секция .questions25 ----------
   Из эталона redesign/css/style-0.css. Разметку рендерит
   modules/articles.php в {{ArticleFAQ}}; нет вопросов → секция не
   выводится. Toggle .text--open на .item делает js/blog.js. */
.questions25 {
    padding: 48px 0;
}
.questions25 .title {
    margin-bottom: 32px;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    color: #312D2B;
}
.questions25 .items {
    display: flex;
    gap: 8px;
    flex-direction: column;
}
.questions25 .item {
    padding: 24px;
    border-radius: 16px;
    background: #FFF;
    cursor: pointer;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
}
.questions25 .item:hover svg path { stroke-opacity: 1 !important; }
.questions25 .item svg path { transition: .2s; }
.questions25 .drop-head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: .2s;
}
.questions25 .drop-head span {
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: #312D2B;
}
.questions25 .drop-head svg {
    display: block;
    transition: .2s;
    flex: 0 0 auto;
}
.questions25 .drop-content {
    transition: .2s;
    line-height: 24px;
    color: #312D2B;
    height: 0;
    overflow: hidden;
    margin: 0;
}
.questions25 .text--open svg { transform: rotate(180deg); }
.questions25 .text--open .drop-head { margin-bottom: 16px; }

@media (max-width: 768px) {
    .questions25 { padding: 24px 0; }
    .questions25 .title { font-size: 22px; line-height: 28px; margin-bottom: 16px; }
    .questions25 .item { padding: 16px; }
    .questions25 .drop-head span { font-size: 16px; line-height: 22px; }
}

/* ---------- 14a. Related categories (перелинковка из PageLinks) ----------
   Разметку секции рендерит modules/articles.php в {{ArticleLinksCloud}};
   если PageLinks у статьи пуст — переменная пустая → секция не выводится.
   Стили — по эталону redesign/react-app/blog-article/blog.css. */
.b-related-categories { padding-bottom: 48px; }

.b-related-categories-inner {
    padding: 32px;
    border-radius: 24px;
    background: #FFF;
    box-shadow: 0 1px 4px 0 rgba(49, 45, 43, .08);
}

.b-related-categories-subtitle {
    color: #312D2B;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -.1px;
    margin-bottom: 24px;
}

.b-related-categories-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.b-related-category-tag {
    padding: 10px 20px;
    border-radius: 999px;
    background: #FFEFEA;
    color: #FE5D26;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: .15s;
}

.b-related-category-tag:hover { background: #FFCFBE; }

@media (max-width: 768px) {
    .b-related-categories-subtitle { text-align: center; }
    .b-related-categories-tags { justify-content: center; gap: 8px; }
    .b-related-category-tag { padding: 6px 16px; font-size: 13px; }
}

/* ---------- 15. Author block ---------- */
.b-author-block {
    max-width: 705px;
    margin: 0 auto 32px;
    padding: 24px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 1px 4px 0 rgba(49,45,43,.08);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Селектор `.b-author-block .b-author-avatar` (специфичность 0,2,0)
   нужен, чтобы перебить общий `.b-blog-page img { max-width: 100%;
   height: auto; }` (0,1,1) — иначе аватар растягивается на всю ширину. */
.b-author-block .b-author-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    max-width: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.b-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 768px;
}

.b-author-name {
    color: #FE5D26;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -.1px;
}

.b-author-name:hover { color: var(--pg-accent-hover); }

.b-author-role {
    color: rgba(49,45,43,.5);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.b-author-desc {
    color: rgba(49,45,43,.8);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-top: 4px;
}

/* ---------- 16. Rating ---------- */
.b-rating {
    max-width: 705px;
    margin: 0 auto 32px;
    text-align: center;
}

.b-rating-inner {
    padding: 24px;
    border-radius: 16px;
    background: rgba(49,45,43,.05);
}

.b-rating-title {
    text-align: center;
    margin-bottom: 16px;
    color: #312D2B;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.b-rating-emojis {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.b-rating-emoji {
    cursor: pointer;
    transition: transform .2s;
    background: none;
    border: none;
    padding: 0;
}

.b-rating-emoji:hover { transform: scale(1.1); }
.b-rating-emoji img { display: block; }

/* После клика JS заменяет .b-rating-emojis на .b-rating-thanks внутри
   того же .b-rating-inner — серый бокс на месте, ничего не прыгает.
   min-height страхует случай reload-по-cookie (когда emojis не было в DOM
   и измерить высоту нечем) — 56 px ≈ типовая высота rate-N.png. */
.b-rating-thanks {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #312D2B;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
}

/* ---------- 17. Comment form ---------- */
.b-comment-form {
    max-width: 705px;
    margin: 64px auto 0;
    padding: 24px;
    border-radius: 24px;
    background: #FFF;
    box-shadow: 0 1px 4px 0 rgba(49,45,43,.08);
}

.b-comment-form-title {
    color: #312D2B;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 24px;
}

.b-comment-form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.b-comment-input,
.b-comment-textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(49,45,43,.1);
    background: #FFF;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 22px;
    color: #312D2B;
}

.b-comment-input:focus,
.b-comment-textarea:focus {
    box-shadow: 0 0 0 2px rgba(254,93,38,.16);
    border: 1px solid #FE5D26;
}

.b-comment-textarea {
    margin-top: 16px;
    min-height: 80px;
    resize: vertical;
}

.b-comment-form-footer {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 16px;
}

.b-comment-consent {
    display: flex;
    gap: 8px;
    cursor: pointer;
    align-items: flex-start;
}

.b-comment-consent span {
    color: #312D2B;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.b-comment-consent input {
    margin-top: 2px;
    accent-color: var(--pg-accent);
}

.b-comment-submit {
    padding: 12px 20px;
    border-radius: 12px;
    background: #FE5D26;
    color: #FFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border: none;
    cursor: pointer;
    transition: .15s;
    font-family: inherit;
}

.b-comment-submit:hover { background: var(--pg-accent-hover); }

/* ---------- 18. Comments list ---------- */
.b-comments {
    max-width: 705px;
    margin: 0 auto 48px;
    padding-top: 30px;
}

.b-comments-title {
    margin-bottom: 32px;
    color: #312D2B;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
}

.b-comments-empty {
    padding: 16px 0;
    color: rgba(49,45,43,.5);
    font-size: 15px;
    line-height: 22px;
    text-align: center;
}

/* Ответ админа — фон белый (по запросу), отличается от анонимов только
   аватаром и именем. .b-comment-admin селектор оставлен на случай
   будущих стилей. */

/* Дефолтный аватар админа (если кастомный не загружен): оранжевый круг
   с белым SVG-щитом внутри — чтобы визуально не сливался с .icon-user. */
.b-comment-avatar-admin {
    background: #FE5D26;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.b-comment-avatar-admin svg { display: block; }

.b-comment {
    margin: 8px auto;
    position: relative;
}

.b-comment-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 24px;
    background: #FFF;
    box-shadow: 0 1px 4px 0 rgba(49,45,43,.08);
}

.b-comment-top {
    display: flex;
    gap: 16px;
    align-items: center;
}

.b-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 14px;
    display: block;
    background: #FFEFEA;
}

.b-comment-avatar img { width: 100%; height: 100%; }

.b-comment-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b-comment-name {
    color: #312D2B;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 4px;
}

.b-comment-date {
    color: rgba(49,45,43,.5);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.b-comment-text {
    color: #312D2B;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.b-comment-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.b-comment-likes {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(49,45,43,.05);
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    transition: background .15s ease;
}

.b-comment-likes svg { transition: transform .15s ease; }
.b-comment-likes:hover svg { transform: scale(1.05); }
.b-comment-likes:hover span { color: #FE5D26; }
.b-comment-likes:active svg { transform: scale(1.15); }

.b-comment-likes-active { background: #FFEFEA; }
.b-comment-likes-active svg path {
    fill: #FE5D26;
    stroke: #FE5D26;
}

.b-comment-likes span {
    color: #312D2B;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: color .15s ease;
}

.b-comment-btn {
    color: #FE5D26;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s ease;
}

.b-comment-btn:hover { color: var(--pg-accent-hover); }

.b-comment-replies { padding-left: 72px; }

.b-comment-replies .b-comment:first-child::before {
    content: "";
    width: 12px;
    /* Фиксированная высота: 8 (margin .b-comment) + 24 (padding-top
       .b-comment-inner) + 24 (половина 48px-аватара) = 56 px — линия
       заканчивается ровно у вертикального центра аватара. height:50%
       не подходил, потому что у .b-comment (parent) есть свой
       .b-comment-replies — на 2-3 уровне линия становилась гигантской. */
    height: 56px;
    border-radius: 0 0 0 16px;
    border-bottom: 1px solid rgba(49,45,43,.2);
    border-left: 1px solid rgba(49,45,43,.2);
    position: absolute;
    top: 0;
    z-index: 4;
    left: -20px;
}

.b-comment-reply-mention {
    color: #FE5D26;
    font-weight: 500;
}

/* Имя автора — кликабельно, открывает inline-форму ответа. */
.b-comment-name { cursor: pointer; transition: color .15s; }
.b-comment-name:hover { color: #FE5D26; }

.b-reply-form {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.b-reply-input {
    flex: 1;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(49,45,43,.1);
    background: #FFF;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    color: #312D2B;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 40px;
}

.b-reply-input:focus {
    box-shadow: 0 0 0 2px rgba(254,93,38,.16);
    border: 1px solid #FE5D26;
}

.b-reply-submit {
    padding: 10px 16px;
    border-radius: 10px;
    background: #FE5D26;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease;
    white-space: nowrap;
}

.b-reply-submit:hover { background: var(--pg-accent-hover); }

.b-reply-cancel {
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(49,45,43,.05);
    color: #312D2B;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease;
    white-space: nowrap;
}

.b-reply-cancel:hover { background: rgba(49,45,43,.1); }

/* ---------- 19. Article nav ---------- */
.b-article-nav { padding-bottom: 64px; }

.b-nav-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.b-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--pg-radius-md);
    background: var(--pg-white);
    box-shadow: var(--pg-card-shadow);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--pg-text);
    transition: all var(--pg-transition);
}

.b-nav-btn:hover {
    background: var(--pg-accent);
    color: var(--pg-white);
    box-shadow: 0 4px 12px rgba(254,93,38,.25);
}

.b-nav-btn:hover svg { color: var(--pg-white); }
.b-nav-btn-center { font-weight: 500; }

/* ---------- 20. Related categories ---------- */
.b-related-categories { padding-bottom: 48px; }

.b-related-categories-inner {
    padding: 32px;
    border-radius: 24px;
    background: #FFF;
    box-shadow: 0 1px 4px 0 rgba(49,45,43,.08);
}

.b-related-categories-subtitle {
    color: #312D2B;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -.1px;
    margin-bottom: 24px;
}

.b-related-categories-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.b-related-category-tag {
    padding: 10px 20px;
    border-radius: 999px;
    background: #FFEFEA;
    color: #FE5D26;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: .15s;
}

.b-related-category-tag:hover { background: #FFCFBE; }

.b-section-spacing { margin-bottom: 48px; }

/* ============================================================
   Author page (шаблон 119) — карточка автора + список статей.
   Стили из redesign/react-app/blog-article/author.css; скоупом
   .b-blog-page, чтобы базовые vars/шрифт/сброс уже работали.
   :root vars, body, a, img, .container — не повторяем (они уже в
   секции .b-blog-page выше).
   ============================================================ */

.b-blog-page .author-card {
    margin: 134px auto 24px;
    max-width: 960px;
    background: var(--pg-white);
    border-radius: var(--pg-radius-lg);
    box-shadow: var(--pg-card-shadow);
    padding: 48px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}
.b-blog-page .author-media { position: relative; }
.b-blog-page .author-avatar {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--pg-card-shadow);
}
.b-blog-page .author-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.b-blog-page .author-role {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--pg-accent);
}
.b-blog-page .author-name {
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
    letter-spacing: -0.4px;
    color: var(--pg-black);
}
.b-blog-page .author-slogan {
    font-size: 17px;
    font-weight: 400;
    line-height: 28px;
    color: rgba(49, 45, 43, 0.75);
    font-style: italic;
}
.b-blog-page .author-divider {
    height: 1px;
    background: var(--pg-border);
    margin: 12px 0 4px;
}
.b-blog-page .author-description {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.b-blog-page .author-description p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: rgba(49, 45, 43, 0.85);
}
.b-blog-page .author-stats {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.b-blog-page .author-stat {
    background: var(--pg-card-bg);
    border-radius: var(--pg-radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.b-blog-page .author-stat-value {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: var(--pg-black);
}
.b-blog-page .author-stat-label {
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: rgba(49, 45, 43, 0.6);
}

/* ---- Articles accordion (<details class="articles">) ---- */
.b-blog-page .articles {
    max-width: 960px;
    margin: 0 auto 64px;
    background: var(--pg-white);
    border-radius: var(--pg-radius-lg);
    box-shadow: var(--pg-card-shadow);
    overflow: hidden;
}
.b-blog-page .articles-summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}
.b-blog-page .articles-summary::-webkit-details-marker { display: none; }
.b-blog-page .articles-summary::marker { content: ""; }
.b-blog-page .articles-summary-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--pg-black);
}
.b-blog-page .articles-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 100px;
    background: var(--pg-card-bg);
    color: rgba(49, 45, 43, 0.65);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}
.b-blog-page .articles-chevron {
    color: rgba(49, 45, 43, 0.6);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.b-blog-page .articles[open] .articles-chevron { transform: rotate(180deg); }
.b-blog-page .articles[open] .articles-summary { border-bottom: 1px solid var(--pg-border); }
.b-blog-page .articles-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.b-blog-page .article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 32px;
    transition: background 0.2s ease;
}
.b-blog-page .article-item:hover { background: var(--pg-card-bg); }
.b-blog-page .article-item + .article-item { border-top: 1px solid var(--pg-border); }
.b-blog-page .article-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--pg-black);
    flex: 1;
    transition: color 0.2s ease;
}
.b-blog-page .article-title:hover { color: var(--pg-accent); }
.b-blog-page .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.b-blog-page .article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: rgba(49, 45, 43, 0.6);
}

@media (max-width: 900px) {
    .b-blog-page .author-card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 24px;
    }
    .b-blog-page .author-media { display: flex; justify-content: center; }
    .b-blog-page .author-avatar { width: 200px; height: 200px; }
    .b-blog-page .author-name { font-size: 28px; line-height: 36px; }
    .b-blog-page .author-slogan { font-size: 18px; line-height: 26px; }
}
@media (max-width: 560px) {
    .b-blog-page .author-card {
        padding: 24px 20px;
        margin: 16px auto 40px;
    }
    .b-blog-page .author-avatar { width: 160px; height: 160px; }
    .b-blog-page .author-name { font-size: 24px; line-height: 32px; }
    .b-blog-page .author-stats { grid-template-columns: 1fr; }

    .b-blog-page .articles { margin-bottom: 40px; }
    .b-blog-page .articles-summary { padding: 20px; }
    .b-blog-page .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 20px;
    }
    .b-blog-page .article-meta { gap: 12px; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media screen and (max-width: 991px) {
    .b-hero-scroll { display: none; }

    .b-gallery-slide { height: 320px; }

    .b-gallery-one { flex-direction: column; }
    .b-gallery-one-big { flex: 1; width: 100%; height: auto; aspect-ratio: 3 / 2; }
    .b-gallery-one-small { flex-direction: row; }
}

@media screen and (max-width: 768px) {
    .b-hero {
        min-height: 100svh;
        height: auto;
        padding: 60px 16px;
        border-radius: 0;
        margin-bottom: 24px;
    }

    .b-toc { padding-top: 0; }

    .b-hero-title { font-size: 32px; line-height: 40px; }
    .b-hero-subtitle { font-size: 16px; line-height: 24px; }
    .b-hero-meta { gap: 12px; }

    .b-toc-list { padding-bottom: 32px; }
    .b-toc-link { font-size: 14px; line-height: 20px; }

    .b-article-body { padding: 32px 0; }

    .b-narrow h2 { font-size: 24px; line-height: 32px; }
    .b-narrow h3 { margin: 0 0 12px; }
    .b-narrow p { font-size: 15px; line-height: 24px; }
    .b-article-ul li, .b-article-ol li { font-size: 15px; line-height: 24px; }

    .b-blockquote { padding: 24px; }

    .b-poll-title { font-size: 24px; line-height: 32px; margin-bottom: 16px; }
    .b-poll-question { margin-bottom: 16px; }

    .b-gallery-grid { display: none; }
    .b-gallery-one { display: none; }
    .b-gallery-mobile { display: block; margin: 0 0 32px; }

    .b-author-block { margin: 0 16px 16px; }

    .b-comment-replies { padding-left: 32px; }
    .b-reply-form { flex-wrap: wrap; }
    .b-reply-input { flex: 0 0 100%; }

    .b-related-categories-subtitle { text-align: center; }
    .b-related-categories-tags { justify-content: center; }

    .b-promo-banner { padding: 28px 20px; }
    .b-promo-discount { font-size: 28px; line-height: 36px; }

    .b-gallery-slide { height: 280px; }

    .b-comment-form-footer { flex-direction: column; align-items: flex-start; }

    .b-nav-btn { padding: 10px 14px; font-size: 13px; }
}

@media screen and (max-width: 480px) {
    .b-hero { padding: 48px 12px; border-radius: 0; }
    .b-hero-socials { gap: 8px; }
    .b-rating-emojis { gap: 10px; }
    .b-gallery-slide { height: 220px; }
    .b-promo-discount { font-size: 24px; line-height: 32px; }
    .b-related-categories-tags { gap: 8px; }
    .b-related-category-tag { padding: 6px 16px; font-size: 13px; }
    .b-nav-pagination { gap: 8px; }
}
