/* =====================================================
   Басылым — одиночная запись
   Версия: 1.1.0
   ===================================================== */

.bsly-single-wrap {
    width: 100%;
    padding: 0 0 48px;
    color: #222;
}

/* -------------------------------------------------------
   Заголовок
------------------------------------------------------- */
.bsly-single-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    margin: 0 0 14px 0;
}

/* -------------------------------------------------------
   Мета-строка: дата · филиал
------------------------------------------------------- */
.bsly-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    line-height: 1.5;
}

.bsly-meta-sep {
    color: #d8d8d8;
    font-size: 11px;
}

.bsly-meta-date {
    color: #aaa;
}

.bsly-meta-filial {
    color: #888;
}

/* -------------------------------------------------------
   Тело: картинка float left 25%, текст обтекает
------------------------------------------------------- */
.bsly-single-body {
    margin-bottom: 36px;
}

.bsly-single-body::after {
    content: '';
    display: table;
    clear: both;
}

/* Картинка — float left, 25% ширины */
.bsly-single-image-col {
    float: left;
    width: 25%;
    margin: 0 28px 16px 0;
}

.bsly-single-image-link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f2f2;
    cursor: zoom-in;
}

.bsly-single-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.bsly-single-image-link:hover .bsly-single-image {
    transform: scale(1.03);
}

/* Контент — обтекает картинку */
.bsly-single-content-col {
    /* не задаём float — просто обтекает */
}

.bsly-single-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.bsly-single-content p {
    margin: 0 0 16px 0;
}

.bsly-single-content p:last-child {
    margin-bottom: 0;
}

.bsly-single-content a {
    color: #333;
    text-decoration: underline;
}

.bsly-single-content a:hover {
    color: #000;
}

.bsly-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* -------------------------------------------------------
   PDF — Google Docs Viewer
------------------------------------------------------- */
.bsly-single-pdf {
    margin-top: 36px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.bsly-pdf-viewer {
    width: 100%;
    height: 680px;
    display: block;
    border: none;
}

/* -------------------------------------------------------
   Код вставки
------------------------------------------------------- */
.bsly-single-embed {
    margin-top: 36px;
}

.bsly-single-embed iframe,
.bsly-single-embed video,
.bsly-single-embed object {
    max-width: 100%;
    display: block;
}

/* -------------------------------------------------------
   Адаптив
------------------------------------------------------- */
@media (max-width: 768px) {
    .bsly-single-image-col {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    .bsly-pdf-viewer {
        height: 480px;
    }
}

@media (max-width: 480px) {
    .bsly-single-title {
        font-size: 20px;
    }

    .bsly-pdf-viewer {
        height: 360px;
    }
}
