/* Стили для цитат (blockquote) */

.custom-quote,
blockquote.custom-quote {
    margin: 1.5em 0;
    padding: 1.5em;
    padding-left: 3.5em;
    background: #ffffff;
    /* color: #64748b; */
    font-style: italic;
    position: relative;
    border-radius: 8px;
    border: none !important;
}

.custom-quote::before {
    content: '';
    position: absolute;
    left: 0.8em;
    top: 1em;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23339af0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3Cpath d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
}

.custom-quote p {
    margin: 0 0 0.5em 0;
    line-height: 1.6;
    font-size: 17px;
}

.custom-quote p:last-of-type {
    margin-bottom: 0;
}

.custom-quote cite {
    display: block;
    margin-top: 0.75em;
    padding-top: 0.5em;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9em;
    color: #94a3b8;
    font-style: normal;
    font-weight: 500;
}

/* Стили для обычных blockquote (без класса) */
blockquote:not(.custom-quote) {
    margin: 1.5em 0;
    padding: 1em;
    padding-left: 3.5em;
    background: #ffffff;
    /* color: #64748b; */
    font-style: italic;
    position: relative;
    border: none !important;
}

blockquote:not(.custom-quote)::before {
    content: '';
    position: absolute;
    left: 0.8em;
    top: 0.8em;
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23339af0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3Cpath d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
}

blockquote:not(.custom-quote) p {
    margin: 0 0 0.5em 0;
    line-height: 1.6;
}

blockquote:not(.custom-quote) p:last-child {
    margin-bottom: 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .custom-quote,
    blockquote.custom-quote {
        padding: 1em;
        padding-left: 3em;
        margin: 1em 0;
    }
    
    .custom-quote::before {
        width: 24px;
        height: 24px;
        left: 0.6em;
        top: 0.8em;
    }
    
    .custom-quote p {
        font-size: 1em;
    }
    
    blockquote:not(.custom-quote) {
        padding: 1em;
        padding-left: 3em;
    }
    
    blockquote:not(.custom-quote)::before {
        width: 24px;
        height: 24px;
        left: 0.6em;
        top: 0.6em;
    }
}
