

/* Start:/local/components/custom/blog.detail/templates/.default/style.css?178238947916460*/
/* ==========================================================================
   custom:blog.detail — Детальная страница блога
   Стиль: moscow.vetotvet.com
   Цвета, шрифты и радиусы синхронизированы с компонентом news.list.blog
   ========================================================================== */

:root {
    --bd-orange:        #E67725;
    --bd-orange-dark:   #c9621a;
    --bd-orange-light:  #fff4ec;
    --bd-blue:          #1a6fc4;
    --bd-blue-light:    #e8f1fb;
    --bd-heading:       #1a1a2e;
    --bd-text:          #333333;
    --bd-muted:         #6b7280;
    --bd-border:        #e5e7eb;
    --bd-bg:            #f5f7fa;
    --bd-card-bg:       #ffffff;
    --bd-radius:        16px;
    --bd-radius-sm:     8px;
    --bd-shadow:        0 2px 16px rgba(26, 111, 196, 0.09);
    --bd-transition:    0.22s ease;
    --bd-font:          'Montserrat', 'Inter', Arial, sans-serif;
    --bd-content-w:     780px;
    --bd-sidebar-w:     320px;
    --bd-gap:           40px;
}

/* ─── Обёртка ──────────────────────────────────────────────────────────────── */
.bd-article {
    background: var(--bd-bg);
    padding: 40px 0 80px;
    font-family: var(--bd-font);
    color: var(--bd-text);
    line-height: 1.7;
}

.bd-container {
    max-width: 1672px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Верхняя мета-строка ───────────────────────────────────────────────────── */
.bd-top-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bd-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 100px;
    background: var(--bd-orange-light);
    color: var(--bd-orange-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--bd-transition), color var(--bd-transition);
    font-family: var(--bd-font);
    line-height: 1.6;
}

.bd-tag:hover {
    background: var(--bd-orange);
    color: #fff;
}

.bd-date {
    font-size: 13px;
    color: var(--bd-muted);
    font-weight: 400;
}

/* ─── H1 заголовок ─────────────────────────────────────────────────────────── */
.bd-title {
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 800;
    color: var(--bd-heading);
    margin: 0 0 32px;
    line-height: 1.2;
    letter-spacing: -0.4px;
    font-family: var(--bd-font);
}

/* ─── Основная сетка ────────────────────────────────────────────────────────── */
.bd-layout {
    display: grid;
    grid-template-columns: 1fr var(--bd-sidebar-w);
    gap: var(--bd-gap);
    align-items: start;
}

/* ─── Обложка (без боковых картинок) ───────────────────────────────────────── */
.bd-cover {
    margin: 0 0 32px;
    border-radius: var(--bd-radius);
    overflow: hidden;
    background: var(--bd-border);
    box-shadow: var(--bd-shadow);
}

.bd-cover__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ─── Блок «текст + боковые картинки» ───────────────────────────────────────── */
.bd-text-with-images {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 8px;
}

/* ─── Aside с галереей CML_IMAGES_PAGE ──────────────────────────────────────── */
.bd-images-aside {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;         /* прилипает при скролле если есть поддержка */
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bd-border) transparent;
}

.bd-images-aside::-webkit-scrollbar {
    width: 4px;
}
.bd-images-aside::-webkit-scrollbar-thumb {
    background: var(--bd-border);
    border-radius: 4px;
}

.bd-aside-fig {
    margin: 0;
    border-radius: var(--bd-radius-sm);
    overflow: hidden;
    box-shadow: var(--bd-shadow);
    background: var(--bd-card-bg);
    transition: box-shadow var(--bd-transition), transform var(--bd-transition);
}

.bd-aside-fig:hover {
    box-shadow: 0 8px 32px rgba(26, 111, 196, 0.18);
    transform: translateY(-2px);
}

.bd-aside-fig__link {
    display: block;
    line-height: 0;
}

.bd-aside-fig__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.bd-aside-fig:hover .bd-aside-fig__img {
    transform: scale(1.03);
}

/* ─── Основной текст рядом с картинками ─────────────────────────────────────── */
.bd-text-body {
    flex: 1 1 0;
    min-width: 0;
}

/* ─── Типографика детального текста ─────────────────────────────────────────── */
.bd-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--bd-text);
    font-family: var(--bd-font);
}

/* h2 внутри текста */
.bd-text h2 {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: var(--bd-heading);
    margin: 2em 0 0.75em;
    line-height: 1.25;
    letter-spacing: -0.2px;
    font-family: var(--bd-font);
}

/* h3 внутри текста */
.bd-text h3 {
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 700;
    color: var(--bd-heading);
    margin: 1.6em 0 0.6em;
    line-height: 1.3;
    font-family: var(--bd-font);
}

/* Параграфы */
.bd-text p {
    margin: 0 0 1.1em;
}

/* ul / ol */
.bd-text ul,
.bd-text ol {
    padding-left: 0;
    margin: 0 0 1.1em;
    list-style: none;
}

.bd-text ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.55em;
    line-height: 1.65;
}

/* Кастомная маркер — оранжевая точка */
.bd-text ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bd-orange);
    flex-shrink: 0;
}

.bd-text ol {
    counter-reset: bd-ol;
}

.bd-text ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.55em;
    line-height: 1.65;
    counter-increment: bd-ol;
}

.bd-text ol li::before {
    content: counter(bd-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bd-orange);
    font-weight: 700;
    font-size: 14px;
    min-width: 22px;
}

/* span-метки внутри текста */
.bd-text span.bd-highlight {
    background: var(--bd-orange-light);
    color: var(--bd-orange-dark);
    border-radius: 4px;
    padding: 1px 5px;
    font-weight: 600;
}

/* Ссылки */
.bd-text a {
    color: var(--bd-orange);
    text-decoration: underline;
    text-decoration-color: rgba(230,119,37,0.35);
    text-underline-offset: 3px;
    transition: color var(--bd-transition), text-decoration-color var(--bd-transition);
}

.bd-text a:hover {
    color: var(--bd-orange-dark);
    text-decoration-color: var(--bd-orange-dark);
}

/* blockquote */
.bd-text blockquote {
    margin: 1.5em 0;
    padding: 18px 24px;
    border-left: 4px solid var(--bd-orange);
    background: var(--bd-orange-light);
    border-radius: 0 var(--bd-radius-sm) var(--bd-radius-sm) 0;
    font-style: italic;
    color: var(--bd-heading);
}

/* Изображения внутри детального текста */
.bd-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bd-radius-sm);
    display: block;
    margin: 1.5em 0;
}

/* Таблицы */
.bd-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}

.bd-text th,
.bd-text td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--bd-border);
}

.bd-text th {
    background: var(--bd-blue-light);
    font-weight: 600;
    color: var(--bd-heading);
}

.bd-text tr:nth-child(even) td {
    background: #fafbfc;
}

/* ─── Ссылка «назад к списку» ───────────────────────────────────────────────── */
.bd-nav-back {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1.5px solid var(--bd-border);
}

.bd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bd-muted);
    text-decoration: none;
    transition: color var(--bd-transition), gap var(--bd-transition);
    font-family: var(--bd-font);
}

.bd-back-link:hover {
    color: var(--bd-orange);
    gap: 4px;
}

.bd-back-link__icon {
    flex-shrink: 0;
    transition: transform var(--bd-transition);
}

.bd-back-link:hover .bd-back-link__icon {
    transform: translateX(-3px);
}

/* ─── Сайдбар ───────────────────────────────────────────────────────────────── */
.bd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}

.bd-sidebar-block {
    background: var(--bd-card-bg);
    border: 1.5px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 20px 22px;
    box-shadow: var(--bd-shadow);
}

.bd-sidebar-block__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bd-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 14px;
    font-family: var(--bd-font);
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--bd-border);
}

/* ─── Автор в сайдбаре ──────────────────────────────────────────────────────── */
.bd-author__inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.bd-author__photo-link {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bd-orange-light);
    transition: border-color var(--bd-transition);
}

.bd-author__photo-link:hover {
    border-color: var(--bd-orange);
}

.bd-author__photo {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}

.bd-author__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bd-orange);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--bd-font);
    border: 3px solid var(--bd-orange-light);
}

.bd-author__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bd-author__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--bd-heading);
    text-decoration: none;
    font-family: var(--bd-font);
    line-height: 1.3;
    transition: color var(--bd-transition);
    display: block;
    word-break: break-word;
}

a.bd-author__name:hover {
    color: var(--bd-orange);
}

.bd-author__role {
    font-size: 12px;
    color: var(--bd-muted);
    font-weight: 400;
    line-height: 1.4;
    font-family: var(--bd-font);
}

/* ─── Обложка в сайдбаре ─────────────────────────────────────────────────────── */
.bd-sidebar-cover {
    padding: 0;
    overflow: hidden;
}

.bd-sidebar-cover__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ─── Список тегов ───────────────────────────────────────────────────────────── */
.bd-tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bd-tag-list__item {
    display: flex;
    align-items: center;
}

.bd-tag-list__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bd-text);
    text-decoration: none;
    transition: color var(--bd-transition);
    font-family: var(--bd-font);
}

.bd-tag-list__link:hover {
    color: var(--bd-orange);
}

.bd-tag-list__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bd-orange);
    flex-shrink: 0;
}

/* ─── Список мета (дата) ─────────────────────────────────────────────────────── */
.bd-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bd-sidebar-date {
    padding: 14px 22px;
}

.bd-meta-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--bd-muted);
    font-family: var(--bd-font);
}

.bd-meta-list__icon {
    flex-shrink: 0;
    color: var(--bd-orange);
}

.bd-meta-list__value {
    font-weight: 500;
    color: var(--bd-text);
}

/* ══════════════════════════════════════════════════════
   АДАПТИВ
   ══════════════════════════════════════════════════════ */

/* Планшет */
@media (max-width: 1024px) {
    :root {
        --bd-sidebar-w: 270px;
        --bd-gap: 28px;
    }

    .bd-images-aside {
        flex: 0 0 180px;
    }
}

/* Широкий мобильный — убираем sticky сайдбар, переводим в колонку */
@media (max-width: 860px) {
    .bd-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Сайдбар идёт после контента */
    .bd-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .bd-sidebar-block {
        flex: 1 1 240px;
        min-width: 200px;
    }

    .bd-images-aside {
        position: static;
        max-height: none;
        flex: 0 0 160px;
    }
}

/* Мобильный */
@media (max-width: 640px) {
    .bd-article {
        padding: 24px 0 56px;
    }

    .bd-container {
        padding: 0 16px;
    }

    .bd-title {
        font-size: clamp(22px, 5.5vw, 32px);
        margin-bottom: 20px;
    }

    .bd-text-with-images {
        flex-direction: column;
        gap: 20px;
    }

    /* Галерея сверху на мобильном */
    .bd-images-aside {
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        max-height: none;
        overflow: visible;
    }

    .bd-aside-fig {
        flex: 0 0 calc(50% - 5px);
        min-width: 130px;
    }

    .bd-aside-fig--first {
        flex: 0 0 100%;
    }

    .bd-sidebar {
        flex-direction: column;
    }

    .bd-sidebar-block {
        flex: none;
        width: 100%;
    }

    .bd-text {
        font-size: 15px;
    }

    .bd-text h2 {
        font-size: 20px;
    }

    .bd-text h3 {
        font-size: 17px;
    }
}

@media (max-width: 400px) {
    .bd-aside-fig {
        flex: 0 0 100%;
    }
}

/* End */
/* /local/components/custom/blog.detail/templates/.default/style.css?178238947916460 */
