body {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: var(--header-height) 0 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-hover);
}

.container {
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

/* Личные списки и уведомления: строки не растягиваем на всю ширину контейнера. */
.page-narrow {
    max-width: 960px;
}

.empty-state {
    text-align: center;
    padding: 64px 32px;
    color: var(--color-text-secondary);
}

.empty-state__mascot {
    display: block;
    width: 88px;
    height: auto;
    margin: 0 auto 20px;
}

.empty-state__illustration {
    display: block;
    width: min(260px, 70vw);
    height: auto;
    margin: 0 auto 20px;
}

[data-theme="dark"] .empty-state__illustration {
    /* Иллюстрации нарисованы тёмно-синим: в тёмной теме делаем их светлыми,
       сохраняя контраст белых деталей. */
    filter: invert(1) hue-rotate(180deg) saturate(0.75);
}

.image-fallback {
    background: var(--color-surface-active);
}

[data-image-fallback][hidden],
[data-image-fallback-placeholder][hidden] {
    display: none !important;
}

.card-cover-placeholder--compact::after {
    display: none;
}

.card-cover-placeholder--compact svg {
    width: 20px;
    height: 20px;
}

.article-cover.card-cover-placeholder,
.detail-hero__cover.card-cover-placeholder,
.project-hero__cover.card-cover-placeholder {
    min-height: 220px;
}

.articles-grid > .empty-state,
.events-grid > .empty-state,
.courses-grid > .empty-state,
.projects-grid > .empty-state {
    grid-column: 1 / -1;
}

.empty-state p {
    margin-top: 16px;
    font-size: 18px;
}

@media (max-width: 480px) {
.container {
        width: min(1440px, calc(100% - 32px));
    }
}

@media (prefers-reduced-motion: reduce) {
* {
        animation: none !important;
        transition: none !important;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.empty-state {
    color: var(--color-text-secondary);
}

.empty-state p {
    font-size: 14px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
