.ppb-post-preview-dark {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ppb-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* затемнение */
}

.ppb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(187, 187, 187, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 20px;
    box-sizing: border-box;
}

.ppb-top-meta {
    display: flex;
    gap: 20px;
    font-size: 16px;
    font-weight: 500;
}

.ppb-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    max-width: 90%;
}

.ppb-social-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ppb-social-buttons img {
    width: 45px;
    border-radius: 12px;
}

.ppb-share-label {
    font-size: 24px;
}

.table-of-contents { 
        border: 1px solid #ddd; 
        border-radius: 4px; 
        padding: 10px; 
        background: #f9f9f9; 
        overflow: hidden;
    }
    .table-of-contents__header { 
        font-weight: bold; 
        margin-bottom: 10px; 
        user-select: none;
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .toc-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
        transform: rotate(90deg);
        transform-origin: center center;
    }
    .table-of-contents__body {
        max-height: 999px;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 1;
    }
    .table-of-contents.closed .toc-arrow {
        transform: rotate(-90deg);
    }
    .table-of-contents.closed .table-of-contents__body {
        max-height: 0;
        opacity: 0;
    }
    .table-of-contents__list { 
        padding-left: 20px; 
        margin: 0; 
        list-style-type: none;
    }
    .table-of-contents__list li { 
        margin: 5px 0; 
        line-height: 1.4; 
    }
    .table-of-contents__list li.level-2 { margin-left: 20px; }
    .table-of-contents__list li.level-3 { margin-left: 40px; }
    .table-of-contents__list li a { text-decoration: none; color: #0073aa; }
    .table-of-contents__list li a:hover { text-decoration: underline; }

    .cbfg-share-social img {
        width: 45px;
    }

.cbfg-share-label {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
}


.cbfg-sidebar-form {
    position: sticky;
    top: 86px;
    background: #fff; /* белый фон */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
}

.cbfg-form-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.cbfg-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cbfg-form-text-wrapper {
    padding: 16px 18px 20px;
}

.cbfg-form-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #000;
}

.cbfg-form-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.5;
}

.cbfg-form-button {
    width: 100%;
    background: #4d91c6; /* синий как на примере */
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 10px 0;
    transition: background 0.2s ease;
}

.cbfg-form-button:hover {
    background: #377eb5;
}


@media(max-width: 771px){
    .ppb-title{
        font-size: 30px;
    }
    .ppb-social-buttons img{
        width: 35px;
    }
    .ppb-share-label {
        font-size: 20px;
    }
}
