/* static/css/blog.css */
/* Основные стили */
.blog-container {
    max-width: 1400px;
    margin: 80px auto 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.blog-header h1 {
    color: #f2f3f3;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgb(255 255 255 / 8%);
    background: linear-gradient(135deg, #0a307b, #151e30);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка постов - 4 колонки */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Карточка поста */
.post-card {
    background: rgba(10, 20, 40, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(170, 204, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: rgba(170, 204, 255, 0.4);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(170, 204, 255, 0.1),
        inset 0 0 20px rgba(170, 204, 255, 0.05);
}

.post-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1428, #1a2b4d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(170, 204, 255, 0.5);
}

.no-image.hidden {
    display: none;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        transparent 100%
    );
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
}

.post-title-overlay {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.material-symbols-rounded {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

.post-image-container .material-symbols-rounded {
    font-size: 64px;
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title-container {
    margin-bottom: 0.75rem;
}

.post-title {
    color: #aaccff;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(170, 204, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(170, 204, 255, 0.1);
}

.post-meta time {
    font-weight: 500;
}

.post-description-container {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.post-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Полный контент поста (скрыт в плитке) */
.post-full-content {
    display: none;
}

/* Кнопки */
.post-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(170, 204, 255, 0.1);
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 82%;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(170, 204, 255, 0.9), rgba(136, 170, 255, 0.8));
    color: #0a1428;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #aaccff, #88aaff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(170, 204, 255, 0.4);
    color: #0a1428;
    text-decoration: none;
}

/* Модальное окно для развернутого поста */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.post-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 0;
    border: none;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.post-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    position: relative;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    min-height: 250px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1428, #1a2b4d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(170, 204, 255, 0.5);
}

.modal-no-image.hidden {
    display: none;
}

.modal-no-image .material-symbols-rounded {
    font-size: 80px;
    opacity: 0.3;
}

.modal-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

.modal-title-text {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
    max-width: 80%;
    line-height: 1.2;
}

.close-modal-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2010;
    backdrop-filter: blur(10px);
}

.close-modal-btn:hover {
    background: rgba(170, 204, 255, 0.3);
    border-color: rgba(170, 204, 255, 0.6);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(170, 204, 255, 0.3);
}

.close-modal-btn .material-symbols-rounded {
    font-size: 28px;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 3rem;
    max-height: calc(100vh - 40vh);
    background: rgba(5, 10, 20, 0.8);
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(170, 204, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(170, 204, 255, 0.2);
}

.modal-meta .material-symbols-rounded {
    font-size: 1.2rem;
}

.modal-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(170, 204, 255, 0.15);
    font-weight: 500;
}

.modal-full-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Стили для Markdown контента в модальном окне */
.modal-full-content h1,
.modal-full-content h2,
.modal-full-content h3,
.modal-full-content h4,
.modal-full-content h5,
.modal-full-content h6 {
    color: #aaccff;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 700;
}

.modal-full-content h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid rgba(170, 204, 255, 0.4);
    padding-bottom: 0.8rem;
    margin-top: 3rem;
}

.modal-full-content h2 {
    font-size: 1.8rem;
    border-left: 4px solid #aaccff;
    padding-left: 1rem;
}

.modal-full-content h3 {
    font-size: 1.5rem;
}

.modal-full-content h4 {
    font-size: 1.3rem;
}

.modal-full-content p {
    margin-bottom: 1.8rem;
    line-height: 1.9;
    font-size: 1.15rem;
}

.modal-full-content strong {
    color: #aaccff;
    font-weight: 700;
}

.modal-full-content em {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.modal-full-content ul,
.modal-full-content ol {
    margin: 2rem 0;
    padding-left: 2.5rem;
}

.modal-full-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
    padding-left: 0.5rem;
}

.modal-full-content ul li {
    list-style-type: disc;
}

.modal-full-content ol li {
    list-style-type: decimal;
}

.modal-full-content code {
    background: rgba(170, 204, 255, 0.15);
    color: #aaccff;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.95em;
    border: 1px solid rgba(170, 204, 255, 0.2);
}

.modal-full-content pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(170, 204, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.95em;
    line-height: 1.5;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-full-content pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.95);
    display: block;
    overflow-x: auto;
    border: none;
}

.modal-full-content blockquote {
    border-left: 5px solid #aaccff;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    background: rgba(170, 204, 255, 0.08);
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
}

.modal-full-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-full-content th {
    background: rgba(170, 204, 255, 0.25);
    color: #aaccff;
    padding: 1.2rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid rgba(170, 204, 255, 0.4);
    font-size: 1.1rem;
}

.modal-full-content td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.modal-full-content tr:last-child td {
    border-bottom: none;
}

.modal-full-content tr:hover {
    background: rgba(170, 204, 255, 0.08);
}

.modal-full-content a {
    color: #88aaff;
    text-decoration: none;
    border-bottom: 2px solid rgba(170, 204, 255, 0.4);
    transition: all 0.3s ease;
    padding-bottom: 2px;
    font-weight: 500;
}

.modal-full-content a:hover {
    color: #aaccff;
    border-bottom-color: #aaccff;
    text-shadow: 0 0 10px rgba(170, 204, 255, 0.3);
}

.modal-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

.modal-full-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #aaccff, transparent);
    margin: 3rem 0;
    border-radius: 3px;
}

/* ToastUI Specific Enhancements */
.modal-full-content table.table-responsive {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.modal-full-content .table-responsive table {
    width: 100%;
}

.modal-full-content figure {
    margin: 2rem 0;
    text-align: center;
}

.modal-full-content figcaption {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.modal-full-content .modal-content-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.modal-full-content pre .language-label {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(170, 204, 255, 0.2);
    color: #aaccff;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    border-bottom-left-radius: 8px;
    font-family: 'SF Mono', Monaco, monospace;
    text-transform: uppercase;
}

.modal-full-content pre {
    position: relative;
}

.modal-full-content .external-icon {
    margin-left: 0.3rem;
    opacity: 0.7;
}

.modal-full-content .task-list-item {
    list-style: none;
    margin-left: -1.5rem;
}

.modal-full-content .task-list-item input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.modal-full-content .math-block,
.modal-full-content .math-inline {
    font-family: 'Cambria', 'Times New Roman', serif;
    font-style: italic;
}

.modal-full-content .math-block {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
}

.modal-full-content .quote-enhanced {
    position: relative;
}

.modal-full-content .details-enhanced {
    margin: 1.5rem 0;
    border: 1px solid rgba(170, 204, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.modal-full-content .details-enhanced summary {
    padding: 1rem;
    background: rgba(170, 204, 255, 0.1);
    color: #aaccff;
    cursor: pointer;
    font-weight: 600;
}

.modal-full-content .details-enhanced[open] summary {
    border-bottom: 1px solid rgba(170, 204, 255, 0.2);
}

.modal-full-content .details-enhanced > div {
    padding: 1rem;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 3rem 0 2rem;
}

.pagination ul {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.page-link:hover {
    background: rgba(170, 204, 255, 0.2);
    border-color: rgba(170, 204, 255, 0.4);
    transform: translateY(-2px);
}

.page-link.active {
    background: linear-gradient(135deg, #aaccff, #88aaff);
    color: #0a1428;
    border-color: #aaccff;
    box-shadow: 0 4px 15px rgba(170, 204, 255, 0.3);
}

.page-info {
    text-align: center;
    color: rgba(170, 204, 255, 0.8);
    margin-top: 1rem;
    font-size: 0.95rem;
    padding: 1rem;
    background: rgba(10, 20, 40, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(170, 204, 255, 0.1);
}

.no-posts-message {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(10, 20, 40, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(170, 204, 255, 0.2);
    margin: 2rem 0;
}

.no-posts-message .material-symbols-rounded {
    font-size: 72px;
    color: rgba(170, 204, 255, 0.4);
    margin-bottom: 1.5rem;
}

.no-posts-message h3 {
    color: #aaccff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.no-posts-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Управление модальным окном */
.modal-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    gap: 1rem;
    z-index: 2010;
}

.modal-control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-control-btn:hover {
    background: rgba(170, 204, 255, 0.3);
    border-color: rgba(170, 204, 255, 0.6);
    transform: scale(1.1);
}

.modal-control-btn .material-symbols-rounded {
    font-size: 24px;
}

/* Loading */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: #aaccff;
    font-size: 1.1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(170, 204, 255, 0.3);
    border-top: 3px solid #aaccff;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.post-modal.active {
    animation: modalFadeIn 0.3s ease forwards;
}

.post-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }
.post-card:nth-child(7) { animation-delay: 0.7s; }
.post-card:nth-child(8) { animation-delay: 0.8s; }
.post-card:nth-child(9) { animation-delay: 0.9s; }
.post-card:nth-child(10) { animation-delay: 1.0s; }

/* Скроллбар */
.modal-body::-webkit-scrollbar {
    width: 12px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(170, 204, 255, 0.4);
    border-radius: 6px;
    border: 2px solid rgba(10, 20, 40, 0.95);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(170, 204, 255, 0.6);
}

/* Адаптивность */
@media (max-width: 768px) {
    .blog-container {
        margin: 60px auto 1rem;
        padding: 0 0.5rem;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .modal-title-text {
        font-size: 1.6rem;
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-full-content {
        font-size: 1rem;
    }
    
    .modal-full-content h1 {
        font-size: 1.5rem;
    }
    
    .modal-full-content h2 {
        font-size: 1.3rem;
    }
    
    .modal-full-content h3 {
        font-size: 1.1rem;
    }
    
    .close-modal-btn {
        top: 0.8rem;
        right: 0.8rem;
        width: 40px;
        height: 40px;
    }
    
    .modal-controls {
        bottom: 1rem;
        right: 1rem;
    }
    
    .modal-control-btn {
        width: 40px;
        height: 40px;
    }
}

/* SEO улучшения */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Запрет скролла при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Специальные стили для элементов уведомлений */
.modal-full-content .note,
.modal-full-content .warning,
.modal-full-content .tip {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.modal-full-content .note {
    background: rgba(170, 204, 255, 0.1);
    border-left-color: #aaccff;
}

.modal-full-content .warning {
    background: rgba(255, 200, 100, 0.1);
    border-left-color: #ffc864;
}

.modal-full-content .tip {
    background: rgba(100, 255, 150, 0.1);
    border-left-color: #64ff96;
}

/* Добавьте в секцию стилей для модального окна */
.modal-full-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    white-space: pre-wrap; /* Важно! Сохраняет переносы строк */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Обработка переносов строк в параграфах */
.modal-full-content p {
    margin-bottom: 1.8rem;
    line-height: 1.9;
    font-size: 1.15rem;
    white-space: pre-wrap; /* Сохраняет переносы строк */
    word-wrap: break-word;
}

/* Обработка переносов в списках */
.modal-full-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
    padding-left: 0.5rem;
    white-space: pre-wrap;
}

/* Обработка переносов в блоках цитат */
.modal-full-content blockquote {
    border-left: 5px solid #aaccff;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    background: rgba(170, 204, 255, 0.08);
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
    white-space: pre-wrap;
}

/* Дополнительный класс для текста с переносами */
.preserve-linebreaks {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}