/* Custom Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Сокрытие прыжков стилей из-за загрузки внешних CSS */
/*body {*/
/*    opacity: 0;*/
/*}*/

/*body.loaded {*/
/*    opacity: 1;*/
/*}*/
/* Завершение блока */

#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#loader img {
    max-width: 120px;
    height: auto;
}

body.loading main,
body.loading footer {
    display: none;
}

body.loaded #loader {
    opacity: 0;
    pointer-events: none;
}

/* Адаптивные изображения */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UX: Удаление outline при клике, но оставляем для клавиатуры */
:focus:not(:focus-visible) {
    outline: none;
}

/* Дополнительные стили */
/* Разделители между статьями */
.blog-feed article {
    transition: all 0.3s ease;
    padding-bottom: 2.5rem;
}

.blog-feed article:hover {
    background-color: #f9fafb;
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Отступы для блока цитаты */
blockquote.blockquote {
    border-left: 4px solid #adb5bd;
    padding-left: 1rem;
}

/* Стилизация тегов */
.badge {
    font-size: 0.7rem;
    font-weight: 500;
    background-color: #e9ecef;
    color: #444;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.8rem;
}

.card-text {
    font-size: 0.75rem;
    color: #6c757d;
}

.card img {
    object-fit: cover;
    height: 280px;
}

.blog-post p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.blog-post h2, .blog-post h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    font-style: italic;
    color: #555;
    margin: 2rem 0;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.footer {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.875rem;
}

.footer a {
    color: #6c757d;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #000;
    text-decoration: underline;
}


