﻿:root {
    --bp-bg: #ffffff;
    --bp-text: #121212;
    --bp-muted: rgba(18,18,18,.68);
    --bp-line: rgba(18,18,18,.10);
    --bp-shadow: 0 12px 36px rgba(0,0,0,.10);
    --bp-radius: 16px;
}

.bp-like {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    padding: 0;
    background: none;
    color: white;
    border: none;
}


.bp-like--active {
    font-weight: 600;
}


.bp-page {
    padding: 28px 16px 56px;
    background: var(--bp-bg);
}

.bp {
    max-width: 920px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--bp-text);
}

.bp__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--bp-muted);
    margin: 0 0 14px;
}

    .bp__breadcrumbs a {
        color: inherit;
        text-decoration: none;
    }

        .bp__breadcrumbs a:hover {
            text-decoration: underline;
        }

.bp__crumb-sep {
    opacity: .6;
}

.bp__crumb-current {
    color: var(--bp-text);
    opacity: .8;
}

/* HERO */
.bp-hero {
    position: relative;
    border-radius: var(--bp-radius);
    overflow: hidden;
    box-shadow: var(--bp-shadow);
    margin-bottom: 22px;
}

.bp-hero__media {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    background: #f2f2f2;
}

.bp-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bp-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.70), rgba(0,0,0,.10), rgba(0,0,0,.05));
}

.bp-hero__inner {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px 20px 18px;
    color: #fff;
}

.bp-hero__title {
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.12;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.bp-hero__lead {
    margin: 10px 0 0;
    max-width: 70ch;
    font-size: 18px;
    line-height: 1.5;
    opacity: .92;
}

/* HEADER без обложки */
.bp-head {
    margin: 0 0 22px;
    padding: 18px 0 6px;
    border-bottom: 1px solid var(--bp-line);
}

.bp-head__title {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.12;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.bp-head__lead {
    margin: 12px 0 0;
    max-width: 75ch;
    font-size: 18px;
    line-height: 1.6;
    color: var(--bp-muted);
}

/* META */
.bp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,.90);
}

.bp-head .bp-meta {
    color: var(--bp-muted);
}

.bp-meta__dot {
    opacity: .7;
}

.bp-meta__item {
    white-space: nowrap;
}

/* CONTENT / PROSE */
.prose {
    font-size: 18px;
    line-height: 1.75;
}

    .prose > *:first-child {
        margin-top: 0;
    }

    .prose > * {
        margin: 0 0 16px;
    }

    .prose h2 {
        margin-top: 34px;
        margin-bottom: 12px;
        font-size: 26px;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .prose h3 {
        margin-top: 26px;
        margin-bottom: 10px;
        font-size: 22px;
        line-height: 1.28;
    }

    .prose p {
        color: rgba(18,18,18,.92);
    }

    .prose a {
        color: inherit;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }

        .prose a:hover {
            opacity: .85;
        }

    .prose ul, .prose ol {
        padding-left: 22px;
        margin: 0 0 16px;
    }

    .prose li {
        margin: 8px 0;
    }

    .prose blockquote {
        margin: 22px 0;
        padding: 14px 16px;
        border-left: 4px solid rgba(18,18,18,.18);
        background: rgba(18,18,18,.04);
        border-radius: 12px;
        color: rgba(18,18,18,.86);
    }

    .prose hr {
        border: none;
        border-top: 1px solid var(--bp-line);
        margin: 28px 0;
    }

    .prose img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 14px;
        margin: 18px auto;
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

    .prose figure {
        margin: 22px 0;
    }

    .prose figcaption {
        margin-top: 10px;
        font-size: 14px;
        color: var(--bp-muted);
        text-align: center;
    }

    .prose table {
        width: 100%;
        border-collapse: collapse;
        border: 1px solid var(--bp-line);
        border-radius: 12px;
        overflow: hidden;
        margin: 22px 0;
        font-size: 16px;
    }

    .prose th, .prose td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--bp-line);
        text-align: left;
    }

    .prose th {
        background: rgba(18,18,18,.04);
    }

/* FOOTER */
.bp-footer {
    margin-top: 34px;
}

.bp-footer__divider {
    height: 1px;
    background: var(--bp-line);
    margin: 20px 0 14px;
}

.bp-footer__note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    font-size: 14px;
    color: var(--bp-muted);
}

.bp-share {
    color: inherit;
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid var(--bp-line);
    border-radius: 999px;
}

    .bp-share:hover {
        background: rgba(18,18,18,.04);
    }

@media (max-width: 520px) {
    .prose {
        font-size: 17px;
    }

    .bp-hero__inner {
        padding: 16px 14px 14px;
    }
}


#blogPost-grid {
    margin: 0 auto;
    padding-bottom: 28px;
}

    #blogPost-grid .row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        margin: 0;
    }

        #blogPost-grid .row > [class*="col-"] {
            width: auto !important;
            max-width: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }


@media (max-width: 1399px) {
    #blogPost-grid .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    #blogPost-grid .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    #blogPost-grid .row {
        grid-template-columns: 1fr;
    }
}

#blogPost-grid .link-wrapper {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(18,18,18,.10);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    #blogPost-grid .link-wrapper:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0,0,0,.10);
        border-color: rgba(18,18,18,.16);
    }

    #blogPost-grid .link-wrapper:focus-visible {
        outline: 3px solid rgba(13,110,253,.35);
        outline-offset: 3px;
    }

    #blogPost-grid .link-wrapper img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        background: rgba(0,0,0,.04);
    }

@media (max-width: 575px) {
    #blogPost-grid .link-wrapper img {
        height: 220px;
    }
}


#blogPost-grid .link-wrapper .blog-title,
#blogPost-grid .link-wrapper .created-on,
#blogPost-grid .link-wrapper .header-text {
    padding-left: 14px;
    padding-right: 14px;
}

#blogPost-grid .blog-title {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(18,18,18,.62);
}

#blogPost-grid .created-on {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(18,18,18,.55);
}

#blogPost-grid .header-text {
    margin-top: 10px;
    padding-bottom: 14px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#blogPost-grid .excerpt-text {
    padding: 0 14px 14px;
    margin-top: -4px;
    font-size: 14px;
    color: rgba(18,18,18,.70);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


#blogPost-grid .blog-flex-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 18px;
    color: rgba(18,18,18,.72);
    font-size: 14px;
}


#blogPost-grid .blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: black;
    border-radius: 999px;
    border: 1px solid rgba(18,18,18,.12);
    padding-bottom: 9px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

    #blogPost-grid .blog-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(0,0,0,.10);
    }

    #blogPost-grid .blog-button:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    #blogPost-grid .blog-button img {
        width: 18px;
        height: 18px;
        display: block;
    }


#blogPost-grid .blog-flex-row span {
    min-width: 16px;
    text-align: center;
}

/* ==============================
   BLOG HOME SLIDER
   Scope: #blog-slider-wrapper
   ============================== */

#blog-slider-wrapper {
    margin: 0 auto;
    padding: 10px 16px 22px;
}

    /* Твой layout-контейнеры: слегка выравниваем */
    #blog-slider-wrapper .container-fluid,
    #blog-slider-wrapper .content-wrapper,
    #blog-slider-wrapper .carousel-content {
        padding: 0;
    }

    /* Верхняя строка: заголовок + ссылка */
    #blog-slider-wrapper .carousel-title-wrap {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin: 6px 2px 12px;
    }

    #blog-slider-wrapper .carousel-title {
        font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: rgba(18,18,18,.92);
    }

    #blog-slider-wrapper .carousel-title-link a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none !important;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid rgba(184,29,34,.25);
        background: rgba(184,29,34,.06);
    }

        #blog-slider-wrapper .carousel-title-link a:hover {
            background: rgba(184,29,34,.10);
            border-color: rgba(184,29,34,.35);
        }

    /* UL-слайдер */
    #blog-slider-wrapper .content-slider {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 14px;
        padding-bottom: 6px;
    }

        /* Слайд */
        #blog-slider-wrapper .content-slider > li {
            flex: 0 0 340px;
            position: relative;
            scroll-snap-align: start;
        }

@media (max-width: 575px) {
    #blog-slider-wrapper .content-slider > li {
        flex-basis: 82vw;
    }
}

#blog-slider-wrapper .carousel-content-wrapper {
    border: 1px solid rgba(18,18,18,.10);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    #blog-slider-wrapper .carousel-content-wrapper:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0,0,0,.10);
        border-color: rgba(18,18,18,.16);
    }

    #blog-slider-wrapper .carousel-content-wrapper a {
        display: block;
        color: inherit !important;
        text-decoration: none !important;
    }


    #blog-slider-wrapper .carousel-content-wrapper img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        background: rgba(0,0,0,.04);
    }


#blog-slider-wrapper .blogPost-text {
    padding: 12px 14px 14px;
}

#blog-slider-wrapper .blog-title {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(18,18,18,.62);
    padding: 0 !important; 
}

#blog-slider-wrapper .created-on {
    font-size: 13px;
    color: rgba(18,18,18,.55);
    padding: 0 !important;
}


#blog-slider-wrapper .header-text {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 !important;
}

#blog-slider-wrapper .description {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(18,18,18,.70);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 !important;
}


#blog-slider-wrapper .gradient {
    pointer-events: none;
    position: absolute;
    inset: auto 0 0 0;
    height: 44px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(to top, rgba(255,255,255,.92), rgba(255,255,255,0));
    opacity: .9;
}

#blog-slider-wrapper .row {
    margin: 0;
}

#blog-slider-wrapper [class*="col-"] {
    padding: 0;
}
