:root {
    --primary-color: #f43f5e;
    --secondary-color: #fb7185;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --heading-color: #9f1239;
    --link-color: #f43f5e;
    --body-bg: #ffffff;
    --content-bg: #fff1f2;
    --card-bg: #ffffff;
    --border-color: #ffe4e6;
    --footer-bg: #9f1239;
    --footer-color: #fecdd3;
    --font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    --hover-darken: brightness(0.85);
}


/**
 * Базовые стили - автоматически добавляются ко всем сайтам
 * Используют CSS переменные из color_schemes
 */

/* Общие стили body */
body {
    background: var(--body-bg, #ffffff);
    color: var(--text-primary, #1f2937);
    font-family: var(--font-family, Arial, sans-serif);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color, #111827);
    font-weight: 700;
    line-height: 1.3;
}

/* Ссылки с автоматическим затемнением при hover */
a {
    color: var(--link-color, #2563eb);
    text-decoration: none;
    transition: filter 0.3s ease;
}

a:hover {
    filter: brightness(0.85);
}

/* Параграфы */
p {
    color: var(--text-primary, #1f2937);
    line-height: 1.7;
}

/* Footer text must inherit footer palette, not global paragraph color */
footer p,
footer a,
.site-footer p,
.site-footer a {
    color: inherit;
}

/* Списки: предсказуемый отступ и читаемость для AI-контента */
ul,
ol {
    margin: 0.85rem 0 1.1rem;
    padding-left: 1.35rem;
}

li {
    margin: 0.32rem 0;
    line-height: 1.65;
}

ul li::marker,
ol li::marker {
    color: var(--heading-color, #111827);
}

li > p {
    margin: 0;
}

/* Вторичный текст (small, meta, dates) */
small, .text-secondary {
    color: var(--text-secondary, #6b7280);
}

/* Границы */
hr {
    border: none;
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin: 2rem 0;
}

/* Карточки */
.card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 1.5rem;
}

/* Универсальный hover для интерактивных элементов */
button, .btn, .nav-link, .listing-item, .widget-link {
    transition: filter 0.3s ease, transform 0.3s ease;
}

button:hover, .btn:hover {
    filter: brightness(0.9);
}

/* Отключаем синий outline, добавляем свой */
*:focus {
    outline: 2px solid var(--primary-color, #2563eb);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Selection */
::selection {
    background: var(--primary-color, #2563eb);
    color: white;
}



.layout-v2 {
    background: var(--body-bg, #ffffff);
    color: var(--text-primary, #1f2937);
    min-height: 100vh;
}

.layout-v2-body {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.layout-v2-content {
    flex: 1 1 auto;
    background: var(--content-bg, #f0f9ff);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.layout-v2-aside {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.layout-v2-aside .aside-box {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.layout-v2-aside .aside-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--heading-color, #0c4a6e);
}

.layout-v2-aside ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.layout-v2-aside li {
    margin-bottom: 0.5rem;
}

.layout-v2-aside a {
    color: var(--link-color, var(--primary-color, #0ea5e9));
    text-decoration: none;
}

@media (max-width: 960px) {
    .layout-v2-body {
        flex-direction: column;
    }

    .layout-v2-aside {
        flex: 1 1 auto;
    }
}


.listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.listing-container .listing-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color, #333);
    font-weight: 700;
}

.listing-container .listing-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.listing-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.listing-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.listing-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.listing-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-item-content {
    padding: 1.5rem;
}

.listing-item-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.listing-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.listing-item-title a:hover {
    color: var(--primary-color, #2563eb);
}

.listing-item-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.listing-item-date {
    font-size: 0.85rem;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .listing-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-container .listing-title {
        font-size: 2rem;
    }
}

/* Listing Variants */
.listing-header {
    margin-bottom: 1.5rem;
}

.listing-empty {
    color: var(--text-secondary, #6b7280);
    font-style: italic;
}

/* Variant v1: Single column, wide cards */
.listing--v1 .listing-grid {
    grid-template-columns: 1fr;
}

.listing--v1 .listing-item {
    border-left: 4px solid var(--primary-color, #2563eb);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.listing--v1 .listing-item--wide .listing-item-content {
    padding: 2rem;
}

.listing--v1 .listing-item-title {
    font-size: 1.6rem;
}

/* Variant v2: Two columns, clean cards */
.listing--v2 .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing--v2 .listing-item {
    border: 1px solid var(--border-color, #e5e7eb);
}

/* Variant v3: Three columns, compact */
.listing--v3 .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing--v3 .listing-item-content {
    padding: 1.1rem 1.25rem;
}

.listing--v3 .listing-item-title {
    font-size: 1.05rem;
}

.listing--v3 .listing-item-excerpt {
    font-size: 0.95rem;
}

/* Variant v4: Featured + list */
.listing--v4 .listing-feature {
    margin-bottom: 1.5rem;
}

.listing--v4 .listing-item--feature {
    background: var(--content-bg, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem;
}

.listing--v4 .listing-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.listing--v4 .listing-item--compact {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.listing--v4 .listing-item--compact .listing-item-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Variant v5: Timeline */
.listing--v5 .listing-timeline {
    list-style: none;
    padding: 0 0 0 1rem;
    margin: 0;
    border-left: 2px solid var(--border-color, #e5e7eb);
}

.listing--v5 .listing-timeline-item {
    position: relative;
    padding: 0 0 1.5rem 1.5rem;
}

.listing--v5 .listing-timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
}

.listing--v5 .listing-timeline-item:last-child {
    padding-bottom: 0;
}

/* Shared listing actions */
.listing-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color, #2563eb);
}

.listing-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Variant v6: Media rows */
.listing--v6 .listing-rows {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.listing--v6 .listing-item--row {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.listing--v6 .listing-item--row.listing-item--no-image {
    grid-template-columns: 1fr;
}

.listing--v6 .listing-item-media {
    min-height: 180px;
    background: #f3f4f6;
}

.listing--v6 .listing-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing--v6 .listing-item-content {
    padding: 1.5rem;
}

.listing--v6 .listing-item-date {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Variant v7: Overlay cards */
.listing--v7 .listing-overlay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.listing--v7 .listing-item--overlay {
    position: relative;
    min-height: 260px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.listing--v7 .listing-item-overlay-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.listing--v7 .listing-item--no-image .listing-item-overlay-media {
    background-image: linear-gradient(135deg, #111827, #1f2937);
}

.listing--v7 .listing-item-overlay-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    width: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.75) 55%, rgba(15, 23, 42, 0.95) 100%);
}

.listing--v7 .listing-item-title a,
.listing--v7 .listing-item-title a:hover {
    color: #fff;
}

.listing--v7 .listing-item-excerpt {
    color: rgba(255, 255, 255, 0.85);
}

.listing--v7 .listing-item-date {
    color: rgba(255, 255, 255, 0.75);
}

.listing--v7 .listing-item-overlay-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.listing--v7 .listing-item-cta {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    color: #fff;
}

/* Variant v8: Ranked list */
.listing--v8 .listing-ranked {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.listing--v8 .listing-ranked-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    background: #fff;
}

.listing--v8 .listing-ranked-index {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-color, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Variant v9: Alternating split */
.listing--v9 .listing-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.listing--v9 .listing-item--split {
    display: flex;
    gap: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.listing--v9 .listing-item--split:nth-child(even) {
    flex-direction: row-reverse;
}

.listing--v9 .listing-item--split.listing-item--no-image {
    flex-direction: column;
}

.listing--v9 .listing-item-split-media {
    flex: 0 0 45%;
    min-height: 220px;
    background: #f3f4f6;
}

.listing--v9 .listing-item-split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing--v9 .listing-item-content {
    padding: 1.5rem;
}

@media (max-width: 960px) {
    .listing--v2 .listing-grid,
    .listing--v3 .listing-grid,
    .listing--v4 .listing-list,
    .listing--v7 .listing-overlay-grid {
        grid-template-columns: 1fr;
    }

    .listing--v6 .listing-item--row {
        grid-template-columns: 1fr;
    }

    .listing--v9 .listing-item--split,
    .listing--v9 .listing-item--split:nth-child(even) {
        flex-direction: column;
    }

    .listing--v6 .listing-item-media,
    .listing--v9 .listing-item-split-media {
        min-height: 200px;
    }
}



.infopage {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.infopage-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.infopage-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.infopage-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.infopage-date {
    color: #999;
}

.infopage-category {
    background: var(--primary-color, #2563eb);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.infopage-author-block {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-left: 4px solid var(--primary-color, #2563eb);
    border-radius: 4px;
}

.infopage-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.infopage-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 600;
}

.infopage-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
}

.infopage-content p {
    margin-bottom: 1.25rem;
}

.infopage-content img,
.article-content img {
    max-width: 80%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.infopage-content ul,
.infopage-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.infopage-content li {
    margin-bottom: 0.5rem;
}

.infopage-seealso-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .infopage-title {
        font-size: 2rem;
    }
    
    .infopage-content {
        font-size: 1rem;
    }
}



.author-box {
    background: #f9fafb;
    border-left: 4px solid var(--primary-color, #2563eb);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.author-box .author-avatar,
.infopage-content .author-box .author-avatar,
.article-content .author-box .author-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex: 0 0 100px;
    display: block;
    margin: 0;
}

.author-box .author-avatar-placeholder,
.infopage-content .author-box .author-avatar-placeholder,
.article-content .author-box .author-avatar-placeholder {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100px;
    color: white;
    font-size: 1.8rem;
}

.author-icon {
    font-style: normal;
}

.author-hero-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.9vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.author-info {
    flex: 1;
}

@media (max-width: 768px) {
    .author-header {
        align-items: flex-start;
    }

    .author-hero-title {
        font-size: clamp(1.35rem, 6vw, 1.9rem);
        line-height: 1.2;
    }
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.author-title {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}



.site-header--latest {
    background: var(--body-bg, #ffffff);
    padding: 0.68rem 0 1.25rem;
}

.site-header--latest .header-container--latest {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.04rem;
}

.site-header--latest .logo--latest .logo-link {
    font-family: var(--font-family, Arial, sans-serif);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--heading-color, #1f2937);
    text-decoration: none;
}

.site-header--latest .main-nav--latest .nav-menu {
    justify-content: flex-end;
    gap: 1.56rem;
}

.site-header--latest .main-nav--latest .nav-link {
    color: var(--text-secondary, #6b7280);
}

.site-header--latest .main-nav--latest .nav-link:hover {
    color: var(--primary-color, #333);
}

.site-header--latest .header-latest {
    margin: 0.85rem auto 0;
    width: calc(100% - 40px);
    max-width: 1200px;
    display: grid;
    gap: 0.9rem;
}

.site-header--latest .header-latest-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
    display: block;
}

.site-header--latest .header-latest-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-header--latest .header-latest-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.8) 70%);
}

.site-header--latest-3 .header-latest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-header--latest-3 .header-latest-item {
    aspect-ratio: 4 / 3;
    max-height: 360px;
}

@media (max-width: 960px) {
    .site-header--latest-3 .header-latest {
        grid-template-columns: 1fr;
    }

    .site-header--latest-3 .header-latest-item {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .site-header--latest .header-container--latest {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header--latest .main-nav--latest {
        width: 100%;
    }

    .site-header--latest .main-nav--latest .nav-menu {
        justify-content: flex-start;
        gap: 0;
    }
}


.navigation {
    padding: 0.14rem 0;
}

.nav-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Скрываем чекбокс */
.nav-toggle {
    display: none;
}

/* Бургер кнопка (скрыта на десктопе) */
.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-toggle-label span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Анимация бургера при открытии */
.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2.37rem;
    align-items: center;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary, #333);
    font-weight: 468.26;
    padding: 0.42rem 0.85rem;
    display: block;
    font-size: 0.96rem;
}

/* Hover обрабатывается базовыми стилями (filter: brightness(0.85)) */

/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .navigation {
        padding: 0.6rem 0;
    }

    .nav-container {
        padding: 0 0.75rem;
    }
    
    /* Показываем бургер */
    .nav-toggle-label {
        display: flex;
        top: 0.1rem;
        right: 0.75rem;
        transform: none;
        background: var(--body-bg, #fff);
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 8px;
        padding: 0.4rem;
        box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    }
    
    /* Прячем меню по умолчанию */
    .nav-menu {
        position: absolute;
        top: calc(100% + 0.45rem);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 12px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
        max-height: 0;
        overflow: hidden;
        overflow-y: auto;
        transition: max-height 0.3s ease;
        z-index: 1300;
    }

    .layout-v2 .nav-menu {
        top: calc(100% + 3.45rem);
    }
    
    /* Показываем меню при активном чекбоксе */
    .nav-toggle:checked ~ .nav-menu {
        max-height: min(72vh, 560px);
    }
    
    .nav-item {
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 0.95rem 1.2rem;
        font-size: 1rem;
    }
    
    .nav-link:hover {
        background: var(--content-bg, #f9fafb);
    }
}

/* Планшеты */
@media (max-width: 992px) and (min-width: 769px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
}


.site-footer {
    background: var(--footer-bg, #222);
    color: var(--footer-color, #ccc);
    padding: 1.57rem 0;
    margin-top: 3.44rem;
    border-top: 3.18px solid var(--primary-color, #333);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28.01px;
}

.footer-content {
    text-align: center;
    font-family: var(--font-family, Arial, sans-serif);
}

.footer-content p {
    margin: 0.58rem 0;
    font-size: 0.99rem;
    color: inherit;
}

.footer-text {
    color: inherit;
    opacity: 0.75;
}

.footer-content a {
    color: inherit;
}



.sidebar {
    padding: 1.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        margin-top: 2rem;
    }
}



.widget-recent {
    /* Наследует стили от sidebar-widget */
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color, #2563eb);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.widget-item:last-child {
    border-bottom: none;
}

.widget-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.25rem;
}

.widget-link:hover {
    color: var(--primary-color, #2563eb);
}

.widget-date {
    font-size: 0.85rem;
    color: #999;
}

