:root {
    --bg-primary: #0e0d0b;
    --bg-secondary: #171511;
    --bg-card: #1e1b16;
    --bg-card-hover: #26221c;
    --bg-elevated: #2a2620;
    --border-subtle: rgba(220, 210, 195, 0.05);
    --border-card: rgba(220, 210, 195, 0.07);
    --text-primary: #f0ece6;
    --text-secondary: #d4cdc4;
    --text-muted: #a0988e;
    --accent-gold: #c9b28b;
    --accent-gold-dim: rgba(201, 178, 139, 0.12);
    --shadow-card: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
    --radius: 4px;
    --transition: 0.35s cubic-bezier(0.15, 0.85, 0.35, 1);
    --font-serif: 'Georgia', 'Times New Roman', 'Palatino', serif;
    --font-sans: 'Helvetica Neue', 'Arial', system-ui, sans-serif;
    --header-height: 64px;
    --feed-title-color: var(--text-primary);
}

[data-theme="light"] {
    --bg-primary: #f5f2ed;
    --text-primary: #f0ece6;
    --text-secondary: #d4cdc4;
    --text-muted: #a0988e;
    --feed-title-color: #f0ece6;
    --bg-card: #1e1b16;
    --bg-card-hover: #26221c;
    --bg-secondary: #171511;
    --bg-elevated: #2a2620;
    --border-subtle: rgba(220, 210, 195, 0.05);
    --border-card: rgba(220, 210, 195, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-serif);
    padding: 1rem 1.2rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
    padding-top: calc(var(--header-height) + 1.5rem);
    font-size: 18px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 25% 35%, rgba(201, 178, 139, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(201, 178, 139, 0.02) 0%, transparent 45%),
        var(--bg-primary);
    transition: background 0.4s ease;
}

.corner-deco {
    position: fixed;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}
.corner-deco::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}
.corner-deco--tl {
    top: calc(var(--header-height) + 24px);
    left: 24px;
}
.corner-deco--tl::before {
    border-top: 3px solid var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
    top: 0;
    left: 0;
}
.corner-deco--tr {
    top: calc(var(--header-height) + 24px);
    right: 24px;
}
.corner-deco--tr::before {
    border-top: 3px solid var(--accent-gold);
    border-right: 3px solid var(--accent-gold);
    top: 0;
    right: 0;
}
.corner-deco--bl {
    bottom: 24px;
    left: 24px;
}
.corner-deco--bl::before {
    border-bottom: 3px solid var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
    bottom: 0;
    left: 0;
}
.corner-deco--br {
    bottom: 24px;
    right: 24px;
}
.corner-deco--br::before {
    border-bottom: 3px solid var(--accent-gold);
    border-right: 3px solid var(--accent-gold);
    bottom: 0;
    right: 0;
}

[data-theme="light"] .corner-deco--tl::before {
    border-color: #2a2620;
}
[data-theme="light"] .corner-deco--tr::before {
    border-color: #2a2620;
}
[data-theme="light"] .corner-deco--bl::before {
    border-color: #2a2620;
}
[data-theme="light"] .corner-deco--br::before {
    border-color: #2a2620;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-card);
    transition: background 0.4s ease, border-color 0.4s ease;
    height: var(--header-height);
    max-width: 1440px;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-angle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    position: relative;
}
.logo-angle svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Горизонтальная линия (нижняя) */
.logo-angle .angle-bottom {
    stroke: var(--accent-gold);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 45;
    stroke-dashoffset: 45;
    animation: drawBottom 4s ease-in-out infinite;
}

/* Диагональная линия (под 45°) */
.logo-angle .angle-diagonal {
    stroke: var(--accent-gold);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 58;
    stroke-dashoffset: 58;
    animation: drawDiagonal 4s ease-in-out infinite;
}



@keyframes drawBottom {
    0% { stroke-dashoffset: 45; opacity: 0; }
    10% { opacity: 1; }
    25% { stroke-dashoffset: 0; opacity: 1; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    65% { opacity: 0.6; }
    75% { stroke-dashoffset: 45; opacity: 0; }
    100% { stroke-dashoffset: 45; opacity: 0; }
}

@keyframes drawDiagonal {
    0% { stroke-dashoffset: 58; opacity: 0; }
    15% { opacity: 0; }
    30% { stroke-dashoffset: 0; opacity: 1; }
    55% { stroke-dashoffset: 0; opacity: 1; }
    70% { opacity: 0.6; }
    80% { stroke-dashoffset: 58; opacity: 0; }
    100% { stroke-dashoffset: 58; opacity: 0; }
}

@keyframes vertexPulse {
    0% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 0; }
    35% { opacity: 1; transform: scale(1); }
    55% { opacity: 1; transform: scale(1); }
    70% { opacity: 0.6; transform: scale(0.9); }
    85% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(0.5); }
}

.logo-angle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(201, 178, 139, 0.06);
    border-radius: 2px;
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { opacity: 0; transform: scale(0.92); }
    15% { opacity: 0.6; transform: scale(1); }
    40% { opacity: 0.2; transform: scale(1); }
    60% { opacity: 0.6; transform: scale(1); }
    75% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 0; transform: scale(0.92); }
}
.logo-text {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    opacity: 0;
    transform: translateX(-10px);
    animation: textReveal 4s ease-in-out infinite;
}
@keyframes textReveal {
    0% { opacity: 0; transform: translateX(-10px); }
    20% { opacity: 0; transform: translateX(-6px); }
    35% { opacity: 1; transform: translateX(0); }
    55% { opacity: 1; transform: translateX(0); }
    70% { opacity: 0.6; transform: translateX(0); }
    80% { opacity: 0; transform: translateX(6px); }
    100% { opacity: 0; transform: translateX(6px); }
}

.logo-text .title-main {
    font-size: 1.6rem;
    font-weight: 500;
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    transition: color 0.4s ease;
}
.logo-text .title-angle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.05rem 0.6rem;
    border-radius: 2px;
    transform: skewX(-5deg);
    margin-left: 0.1rem;
    transition: color 0.4s ease, background 0.4s ease;
}
[data-theme="light"] .logo-text .title-angle {
    color: #f5f2ed;
}
.logo-text .title-small {
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-left: 0.2rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.header__nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 1rem;
}
.header__nav a {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}
.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}
.header__nav a:hover {
    color: var(--text-primary);
}
.header__nav a:hover::after {
    width: 100%;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.header__meta {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.15rem 0.7rem;
    border-radius: 2px;
    border: 1px solid var(--border-subtle);
    transition: background 0.4s ease, color 0.4s ease;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.25rem 0.8rem;
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    position: relative;
}
.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.burger-btn span:nth-child(1) { top: 8px; }
.burger-btn span:nth-child(2) { top: 15px; }
.burger-btn span:nth-child(3) { top: 22px; }
.burger-btn.active span:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 15px;
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}
.burger-btn.active span:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 15px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-card);
    z-index: 999;
    transition: left 0.35s cubic-bezier(0.15, 0.85, 0.35, 1);
    padding: 1.5rem 1.2rem;
    overflow-y: auto;
}
.mobile-menu.open {
    left: 0;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.4s ease;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: color 0.3s ease;
    line-height: 1;
}
.mobile-menu__close:hover {
    color: var(--text-primary);
}

.mobile-menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.mobile-menu__list li a {
    display: block;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}
.mobile-menu__list li a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.mobile-menu__list li a.active {
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 1.8rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
    align-items: start;
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: background 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-block .corner {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.10;
    pointer-events: none;
}
.sidebar-block .corner-tl { top: 5px; left: 5px; border-top: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.sidebar-block .corner-tr { top: 5px; right: 5px; border-top: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }
.sidebar-block .corner-bl { bottom: 5px; left: 5px; border-bottom: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.sidebar-block .corner-br { bottom: 5px; right: 5px; border-bottom: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }

.sidebar-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-subtle);
}
.sidebar-block__header:hover {
    background: var(--bg-card-hover);
}

.sidebar-block__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.4s ease;
}
.sidebar-block__title::before {
    content: '▸';
    color: var(--accent-gold);
    margin-right: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.4;
}

.sidebar-block__toggle {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    display: inline-block;
}
.sidebar-block__toggle.active {
    transform: rotate(180deg);
}

.sidebar-block__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.15, 0.85, 0.35, 1), padding 0.4s ease;
    padding: 0 0.7rem;
}
.sidebar-block__body.open {
    max-height: 600px;
    padding: 0.5rem 0.7rem 0.5rem;
}

.sidebar-news-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    display: flex;
    gap: 0.8rem;
    padding: 0.5rem 0.6rem 0.5rem 0.5rem;
    margin-bottom: 0.6rem;
    position: relative;
    opacity: 0;
    animation: itemFade 0.5s ease forwards;
}
.sidebar-news-item:nth-child(1) { animation-delay: 0.02s; }
.sidebar-news-item:nth-child(2) { animation-delay: 0.04s; }
.sidebar-news-item:nth-child(3) { animation-delay: 0.06s; }
.sidebar-news-item:nth-child(4) { animation-delay: 0.08s; }
.sidebar-news-item:nth-child(5) { animation-delay: 0.10s; }

.sidebar-news-item:hover {
    transform: translateX(4px);
    background: var(--bg-card-hover);
    border-color: rgba(201, 178, 139, 0.2);
    box-shadow: var(--shadow-hover);
}

.sidebar-news-item .corner {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.08;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.sidebar-news-item .corner-tl { top: 4px; left: 4px; border-top: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.sidebar-news-item .corner-tr { top: 4px; right: 4px; border-top: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }
.sidebar-news-item .corner-bl { bottom: 4px; left: 4px; border-bottom: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.sidebar-news-item .corner-br { bottom: 4px; right: 4px; border-bottom: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }
.sidebar-news-item:hover .corner { opacity: 0.5; transform: scale(1.1); }

.sidebar-news-item__image {
    width: 60px;
    min-width: 60px;
    height: 38px;
    background: var(--bg-elevated);
    border-radius: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    transition: background 0.4s ease, color 0.4s ease;
}

.sidebar-news-item__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.sidebar-news-item__title {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 450;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-news-item:hover .sidebar-news-item__title {
    color: var(--accent-gold);
}
.sidebar-news-item__meta {
    font-family: var(--font-sans);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.1rem;
    transition: color 0.4s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.6rem;
}
.sidebar-news-item__meta .badge-popular-small {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    padding: 0.05rem 0.4rem;
    border-radius: 2px;
    border: 1px solid rgba(201, 178, 139, 0.15);
    font-size: 0.4rem;
}
.sidebar-news-item__views {
    font-family: var(--font-sans);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.1rem;
    transition: color 0.4s ease;
}

.ad-block {
    background: var(--bg-elevated);
    border: 1px dashed var(--border-card);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-height: 320px;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    transition: background 0.4s ease, color 0.4s ease;
    text-align: center;
    padding: 0.5rem;
    line-height: 1.4;
    box-sizing: border-box;
}
.ad-block span {
    opacity: 0.4;
    color: white;
}

.feed {
    display: flex;
    flex-direction: column;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.7rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    user-select: none;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 0.5rem;
    position: relative;
}

.feed-header .corner {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.10;
    pointer-events: none;
}
.feed-header .corner-tl { top: 5px; left: 5px; border-top: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.feed-header .corner-tr { top: 5px; right: 5px; border-top: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }
.feed-header .corner-bl { bottom: 5px; left: 5px; border-bottom: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.feed-header .corner-br { bottom: 5px; right: 5px; border-bottom: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }

.feed-header h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--feed-title-color);
    letter-spacing: -0.01em;
    transition: color 0.4s ease;
}
.feed-header h2::before {
    content: '▸';
    color: var(--accent-gold);
    margin-right: 0.3rem;
    font-size: 1rem;
    opacity: 0.4;
}

.feed-header .feed-toggle {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    display: inline-block;
}
.feed-header .feed-toggle.active {
    transform: rotate(180deg);
}

.feed-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.15, 0.85, 0.35, 1);
    max-height: none !important;
    overflow: visible !important;
}
.feed-body.open {
    max-height: none;
}

#feedContainer {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0.3rem;
}

.news-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    display: flex;
    gap: 1.2rem;
    padding: 0.8rem 1rem 0.8rem 0.8rem;
    margin-bottom: 0.8rem;
    position: relative;
    opacity: 0;
    animation: itemFade 0.5s ease forwards;
}
.news-item:nth-child(1) { animation-delay: 0.02s; }
.news-item:nth-child(2) { animation-delay: 0.04s; }
.news-item:nth-child(3) { animation-delay: 0.06s; }
.news-item:nth-child(4) { animation-delay: 0.08s; }
.news-item:nth-child(5) { animation-delay: 0.10s; }
.news-item:nth-child(6) { animation-delay: 0.12s; }
.news-item:nth-child(7) { animation-delay: 0.14s; }
.news-item:nth-child(8) { animation-delay: 0.16s; }
.news-item:nth-child(9) { animation-delay: 0.18s; }
.news-item:nth-child(10) { animation-delay: 0.20s; }

@keyframes itemFade {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.news-item:hover {
    transform: translateX(4px);
    background: var(--bg-card-hover);
    border-color: rgba(201, 178, 139, 0.2);
    box-shadow: var(--shadow-hover);
}

.news-item .corner {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.08;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.news-item .corner-tl { top: 4px; left: 4px; border-top: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.news-item .corner-tr { top: 4px; right: 4px; border-top: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }
.news-item .corner-bl { bottom: 4px; left: 4px; border-bottom: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.news-item .corner-br { bottom: 4px; right: 4px; border-bottom: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }
.news-item:hover .corner { opacity: 0.5; transform: scale(1.1); }

.news-item__image {
    width: 160px;
    min-width: 160px;
    height: 100px;
    background: var(--bg-elevated);
    border-radius: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    transition: background 0.4s ease, color 0.4s ease;
    overflow: hidden;
}
.news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    padding: 0.1rem 0;
}
.news-item__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    transition: color 0.2s ease, color 0.4s ease;
}
.news-item:hover .news-item__title {
    color: var(--accent-gold);
}
.news-item__excerpt {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.4s ease;
}
.news-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.3rem;
    margin-top: 0.2rem;
    transition: color 0.4s ease, border-color 0.4s ease;
}
.news-item__meta .category {
    background: var(--bg-secondary);
    padding: 0.05rem 0.6rem;
    border-radius: 2px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: background 0.4s ease, color 0.4s ease;
}
.news-item__meta .badge-popular {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    font-weight: 500;
    padding: 0.05rem 0.6rem;
    border-radius: 2px;
    border: 1px solid rgba(201, 178, 139, 0.15);
}

@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
    .header__left {
        flex: 1;
        justify-content: center;
    }
    .header__logo {
        margin: 0 auto;
    }
    .header__right .header__meta {
        display: none;
    }
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .sidebar-left,
    .sidebar-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .ad-block {
        max-width: 100%;
        min-height: 140px;
    }
}

@media (max-width: 640px) {
    :root { --header-height: 56px; }
    body {
        padding: 0.6rem;
        padding-top: calc(var(--header-height) + 1rem);
        font-size: 16px;
    }
    .header {
        padding: 0.4rem 0.8rem;
        height: var(--header-height);
    }
    .header__left .header__meta { display: none; }
    .logo-angle { width: 26px; height: 26px; }
    .logo-text .title-main { font-size: 1.3rem; }
    .logo-text .title-angle { font-size: 0.65rem; padding: 0.05rem 0.4rem; }
    .logo-text .title-small { font-size: 0.45rem; }
    .theme-toggle { font-size: 0.45rem; padding: 0.15rem 0.5rem; }
    .burger-btn {
        position: relative;
        order: -1;
        flex-shrink: 0;
        width: 28px;
        height: 28px;
    }
    .burger-btn span {
        width: 20px;
        height: 2px;
    }
    .burger-btn span:nth-child(1) { top: 6px; }
    .burger-btn span:nth-child(2) { top: 13px; }
    .burger-btn span:nth-child(3) { top: 20px; }
    .burger-btn.active span:nth-child(1),
    .burger-btn.active span:nth-child(3) { top: 13px; }
    .header__left {
        flex: 1;
        justify-content: center;
    }
    .header__logo { margin: 0 auto; }
    .mobile-menu {
        width: 260px;
        left: -260px;
        padding: 1.2rem 1rem;
    }
    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    .sidebar-left,
    .sidebar-right {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
    }
    .feed { order: 3; width: 100%; }
    .sidebar-left { order: 1; }
    .sidebar-right { order: 2; }
    .feed { order: 3; }

    .news-item {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .news-item__image {
        width: 100%;
        min-width: unset;
        height: 120px;
    }
    .news-item__title { font-size: 1rem; }
    .news-item__excerpt { font-size: 0.8rem; -webkit-line-clamp: 2; }
    .sidebar-news-item__image {
        width: 50px;
        min-width: 50px;
        height: 32px;
    }
    .feed-header h2 { font-size: 1.1rem; }
    .corner-deco { display: none; }
    .sidebar-block__title { font-size: 0.9rem; }
    .sidebar-news-item__title { font-size: 0.8rem; }
    .ad-block {
        min-height: 120px;
        max-width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .news-item__image {
        width: 140px;
        min-width: 140px;
        height: 88px;
    }
}

@media (min-width: 1025px) {
    .burger-btn {
        display: none !important;
    }
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

.news-item__image img,
.sidebar-news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item__image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-news-item__image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item:hover .news-item__title a {
    color: var(--accent-gold);
}

.sidebar-news-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-news-item:hover .sidebar-news-item__title a {
    color: var(--accent-gold);
}

.single-news {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-article {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    padding: 2rem 2.2rem 2.2rem;
    position: relative;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.news-article .corner {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0.12;
    pointer-events: none;
}
.news-article .corner-tl { top: 10px; left: 10px; border-top: 2px solid var(--accent-gold); border-left: 2px solid var(--accent-gold); }
.news-article .corner-tr { top: 10px; right: 10px; border-top: 2px solid var(--accent-gold); border-right: 2px solid var(--accent-gold); }
.news-article .corner-bl { bottom: 10px; left: 10px; border-bottom: 2px solid var(--accent-gold); border-left: 2px solid var(--accent-gold); }
.news-article .corner-br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--accent-gold); border-right: 2px solid var(--accent-gold); }

.news-header {
    margin-bottom: 1.5rem;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    transition: color 0.4s ease;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-subtle);
    transition: color 0.4s ease, border-color 0.4s ease;
}

.news-meta time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta .views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta .category-badge {
    background: var(--bg-secondary);
    padding: 0.15rem 0.8rem;
    border-radius: 2px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: background 0.4s ease, color 0.4s ease;
}

.news-image {
    margin: 0 0 1.8rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-card);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.news-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-image img:hover {
    transform: scale(1.01);
}

.news-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.news-content p {
    margin-bottom: 1.2rem;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin: 1.8rem 0 0.8rem;
    transition: color 0.4s ease;
}

.news-content h1 { font-size: 2.2rem; font-weight: 600; }
.news-content h2 { font-size: 1.8rem; font-weight: 500; }
.news-content h3 { font-size: 1.5rem; font-weight: 500; }
.news-content h4 { font-size: 1.2rem; font-weight: 500; }

.news-content ul,
.news-content ol {
    margin: 0.8rem 0 1.2rem 1.8rem;
}
.news-content li {
    margin-bottom: 0.4rem;
}

.news-content blockquote {
    border-left: 3px solid var(--accent-gold);
    padding: 0.8rem 1.5rem;
    margin: 1.2rem 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
    transition: background 0.4s ease, color 0.4s ease;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.news-content a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}
.news-content a:hover {
    text-decoration: underline;
    color: #d4c3a8;
}

.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
}
.news-content table td,
.news-content table th {
    border: 1px solid var(--border-card);
    padding: 0.6rem 1rem;
    transition: border-color 0.4s ease;
}
.news-content table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.news-content pre {
    background: var(--bg-secondary);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    transition: background 0.4s ease, color 0.4s ease;
}
.news-content code {
    background: var(--bg-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: background 0.4s ease, color 0.4s ease;
}

.news-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    transition: border-color 0.4s ease;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.share-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 0.3rem;
    transition: color 0.4s ease;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.3rem;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-card);
}

.share-vk {
    background: #2787f5;
    color: #ffffff;
    border-color: #2787f5;
}
.share-vk:hover {
    background: #1a6bc4;
    border-color: #1a6bc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(39, 135, 245, 0.3);
}

.share-tg {
    background: #26a5e4;
    color: #ffffff;
    border-color: #26a5e4;
}
.share-tg:hover {
    background: #1a8bc4;
    border-color: #1a8bc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(38, 165, 228, 0.3);
}

@media (max-width: 1024px) {
    .news-article {
        padding: 1.5rem 1.5rem 1.8rem;
    }

    .news-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .news-article {
        padding: 1rem 1rem 1.2rem;
    }

    .news-title {
        font-size: 1.6rem;
    }

    .news-content {
        font-size: 1rem;
    }

    .news-content h1 { font-size: 1.6rem; }
    .news-content h2 { font-size: 1.4rem; }
    .news-content h3 { font-size: 1.2rem; }

    .news-meta {
        font-size: 0.55rem;
        gap: 0.5rem 1rem;
    }

    .share-btn {
        padding: 0.35rem 0.9rem;
        font-size: 0.5rem;
    }

    .news-image img {
        max-height: 300px;
    }
}

.page-article {
    padding: 2rem 2.2rem 2.2rem;
}

.page-article .news-header {
    margin-bottom: 1.5rem;
}

.page-article .news-title {
    font-size: 2.2rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.contact-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-card__icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
    opacity: 0.6;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.2rem;
}

.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-card__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.contact-card__body p {
    margin: 0;
}

.contact-card__body p a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-card__body p a:hover {
    text-decoration: underline;
    color: #d4c3a8;
}

.contact-card__note {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.contacts-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent-gold);
}

.contacts-note p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.privacy-updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.privacy-updated p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .page-article {
        padding: 1.5rem 1.5rem 1.8rem;
    }

    .page-article .news-title {
        font-size: 1.8rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .page-article {
        padding: 1rem 1rem 1.2rem;
    }

    .page-article .news-title {
        font-size: 1.5rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .contact-card {
        padding: 0.8rem 1rem;
    }

    .contact-card__icon {
        font-size: 1.4rem;
    }

    .contact-card__body p a {
        font-size: 0.8rem;
    }
}

.footer {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem 0.5rem;
    border-top: 1px solid rgba(220, 210, 195, 0.08);
    background: #171511;
    border-radius: var(--radius, 4px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.2rem 0;
}

.footer__col--brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    margin-bottom: 0;
}

/* В CSS добавьте эти стили для статичного логотипа в футере */

.logo-angle--static {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.logo-angle--static svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Отключаем анимацию для статичного логотипа */
.logo-angle--static .angle-bottom,
.logo-angle--static .angle-diagonal {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
}


/* Убираем свечение для статичного логотипа */
.logo-angle--static::after {
    display: none !important;
}
/* Отключаем анимацию текста в футере */
.logo-text--static {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.logo-text--static .title-main {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.02em;
    color: #f0ece6;
    line-height: 1.1;
}

.logo-text--static .title-angle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c9b28b;
    color: #0e0d0b;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.02rem 0.5rem;
    border-radius: 2px;
    transform: skewX(-5deg);
    margin-left: 0.1rem;
}

.logo-text--static .title-small {
    font-weight: 300;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: #a0988e;
    margin-left: 0.15rem;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    text-transform: uppercase;
}


.footer__divider {
    width: 50px;
    height: 1.5px;
    background: #c9b28b;
    margin: 0.1rem 0 0.3rem;
    opacity: 0.3;
}

.footer__description {
    font-size: 1rem;
    color: #d4cdc4;
    max-width: 280px;
    margin-bottom: 0.3rem;
    line-height: 1.5;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.footer__copyright {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a0988e;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.footer__heading {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4cdc4;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer__heading--link {
    cursor: default;
}

.footer__heading--link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9b28b;
    transition: width 0.3s ease;
}

.footer__heading--link:hover {
    color: #f0ece6;
}

.footer__heading--link:hover::after {
    width: 100%;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-link {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #c9b28b;
    text-decoration: none;
    opacity: 0.85;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #c9b28b;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #f0ece6;
    opacity: 1;
}

.footer-link:hover::after {
    width: 100%;
}

.footer__socials {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e1b16;
    color: #a0988e;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 210, 195, 0.07);
    text-decoration: none;
}

.footer-social:hover {
    background: #26221c;
    color: #f0ece6;
    transform: translateY(-2px);
    border-color: rgba(201, 178, 139, 0.3);
}

.footer__bottom {
    max-width: 1400px;
    margin: 0.6rem auto 0;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(220, 210, 195, 0.06);
    text-align: center;
    font-size: 0.7rem;
    color: #a0988e;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    letter-spacing: 0.04em;
}

.footer__bottom p {
    margin: 0;
}

.footer__sep {
    opacity: 0.4;
    margin: 0 0.3rem;
}

.footer__privacy {
    color: #c9b28b;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer__privacy:hover {
    opacity: 1;
}

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #171511;
    border-top: 1px solid rgba(220, 210, 195, 0.08);
    padding: 0.5rem 1.2rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cookie-notice__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-notice__text {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95rem;
    color: #d4cdc4;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-notice__link {
    color: #c9b28b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.cookie-notice__link:hover {
    text-decoration: underline;
    color: #f0ece6;
}

.cookie-notice__btn {
    flex-shrink: 0;
    background: #c9b28b;
    border: none;
    color: #171511;
    padding: 0.3rem 1.5rem;
    border-radius: 2px;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-notice__btn:hover {
    background: #d4c3a8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 178, 139, 0.3);
}

.feed-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.feed-body.open {
    overflow: visible;
}

@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.2rem;
    }
    .footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 0.6rem 1rem 0.4rem;
    }
    .footer__inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
    }
    .footer__col--brand {
        grid-column: 1 / -1;
    }
    .footer__description {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .footer-link {
        font-size: 0.9rem;
    }
    .footer__heading {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0.5rem 0.6rem 0.3rem;
    }
    .footer__inner {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        text-align: center;
    }
    .footer__col {
        align-items: center;
    }
    .footer__list {
        align-items: center;
    }
    .footer__col--brand {
        align-items: center;
        grid-column: auto;
    }
    .footer__divider {
        margin-left: auto;
        margin-right: auto;
    }
    .footer__description {
        max-width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }
    .footer__socials {
        justify-content: center;
    }
    .footer__heading--link::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer__heading--link:hover::after {
        width: 70%;
    }
    .footer-link {
        font-size: 0.85rem;
    }
    .footer-social {
        width: 30px;
        height: 30px;
    }
    .cookie-notice {
        padding: 0.4rem 0.8rem;
    }
    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .cookie-notice__text {
        text-align: center;
        font-size: 0.85rem;
    }
    .cookie-notice__btn {
        width: 100%;
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    .logo-text--static .title-main {
        font-size: 1.3rem;
    }
    .logo-angle--static {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    .cookie-notice {
        padding: 0.6rem 0.8rem;
    }

    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .cookie-notice__text {
        font-size: 0.75rem;
        text-align: center;
    }

    .cookie-notice__btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.7rem;
        width: 100%;
        text-align: center;
    }
}

.related-timeline {
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 2px solid var(--border-subtle);
    transition: border-color 0.4s ease;
}

.related-timeline__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.4s ease;
}

.related-timeline__title::before {
    opacity: 0.6;
    font-size: 1.2rem;
}

.related-timeline__sub {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    transition: color 0.4s ease;
}

.related-item {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.related-item:hover {
    border-color: rgba(201, 178, 139, 0.3);
    transform: translateX(4px);
    background: var(--bg-card-hover);
}

.related-item--current {
    border-color: var(--accent-gold);
    background: var(--accent-gold-dim);
}

.related-item--current:hover {
    transform: none;
    border-color: var(--accent-gold);
}

.related-item__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-bottom: 0.3rem;
}

.related-item__date {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
    padding: 0.05rem 0.6rem;
    border-radius: 2px;
    border: 1px solid rgba(201, 178, 139, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.4s ease, color 0.4s ease;
}

.related-item__badge {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.05rem 0.4rem;
    border-radius: 2px;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.related-item__category {
    font-family: var(--font-sans);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.05rem 0.6rem;
    border-radius: 2px;
    border: 1px solid var(--border-subtle);
    transition: color 0.4s ease, background 0.4s ease;
}

.related-item__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    transition: color 0.4s ease;
}

.related-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-item__title a:hover {
    color: var(--accent-gold);
}

.related-item__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.85;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.4s ease;
}

.related-item__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-gold);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.related-item__toggle:hover {
    background: var(--accent-gold-dim);
    color: #d4c3a8;
}

.related-item__full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.15, 0.85, 0.35, 1), padding 0.3s ease;
    padding: 0 0.2rem;
}

.related-item__full.open {
    max-height: 800px;
    padding: 0.8rem 0.2rem 0.2rem;
}

.related-item__full .news-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.related-item__full .news-content p:last-child {
    margin-bottom: 0;
}

.related-item__current-label {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    opacity: 0.7;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--accent-gold);
    border-radius: 2px;
    background: var(--accent-gold-dim);
}

@media (max-width: 640px) {
    .related-timeline {
        margin-top: 1.8rem;
        padding-top: 1.2rem;
    }

    .related-timeline__title {
        font-size: 1.1rem;
    }

    .related-item {
        padding: 0.8rem 0.8rem;
    }

    .related-item__title {
        font-size: 0.9rem;
    }

    .related-item__excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .related-item__full{
        font-size: 0.85rem;
    }

    .related-item__header {
        gap: 0.4rem 0.6rem;
    }

    .related-item__date {
        font-size: 0.55rem;
    }

    .related-item__toggle {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }
}

/* ============================================================
   СТРАНИЦА НОВОСТИ (single.php)
   ============================================================ */
.single-news {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-article {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    padding: 2rem 2.2rem 2.2rem;
    position: relative;
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* Декоративные углы для статьи */
.news-article .corner {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0.12;
    pointer-events: none;
}
.news-article .corner-tl { top: 10px; left: 10px; border-top: 2px solid var(--accent-gold); border-left: 2px solid var(--accent-gold); }
.news-article .corner-tr { top: 10px; right: 10px; border-top: 2px solid var(--accent-gold); border-right: 2px solid var(--accent-gold); }
.news-article .corner-bl { bottom: 10px; left: 10px; border-bottom: 2px solid var(--accent-gold); border-left: 2px solid var(--accent-gold); }
.news-article .corner-br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--accent-gold); border-right: 2px solid var(--accent-gold); }

/* Заголовок новости */
.news-header {
    margin-bottom: 1.5rem;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    transition: color 0.4s ease;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-subtle);
    transition: color 0.4s ease, border-color 0.4s ease;
}

.news-meta time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta .views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta .category-badge {
    background: var(--bg-secondary);
    padding: 0.15rem 0.8rem;
    border-radius: 2px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: background 0.4s ease, color 0.4s ease;
}

/* Изображение новости */
.news-image {
    margin: 0 0 1.8rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-card);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.news-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-image img:hover {
    transform: scale(1.01);
}

/* ===== ЦИТАТЫ ===== */
.news-content blockquote {
    margin: 24px 0;
    padding: 18px 24px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.05em;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}

.news-content blockquote::before {
    content: '"';
    font-size: 2.4em;
    color: var(--accent-gold);
    opacity: 0.3;
    position: absolute;
    top: -6px;
    left: 8px;
    font-family: Georgia, serif;
    line-height: 1;
}

.news-content blockquote footer {
    margin-top: 8px;
    font-style: normal;
    font-size: 0.8em;
    color: var(--text-muted);
    font-family: var(--font-sans);
    letter-spacing: 0.04em;
}

.news-content blockquote footer::before {
    content: '— ';
}


.news-content .expert-opinion {
    margin: 28px 0 18px;
    padding: 20px 24px;
    background: rgba(201, 178, 139, 0.06);
    border: 1px solid rgba(201, 178, 139, 0.15);
    border-radius: var(--radius);
    position: relative;
    transition: all 0.3s ease;
}

.news-content .expert-opinion:hover {
    background: rgba(201, 178, 139, 0.10);
    border-color: rgba(201, 178, 139, 0.25);
}

.news-content .expert-opinion i {
    font-style: italic;
    font-size: 1.05em;
    color: var(--text-secondary);
    display: block;
}

.news-content .expert-opinion::before {
    content: '';
    display: block;
    font-style: normal;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    margin-bottom: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
}


.news-content .expert-opinion-simple {
    margin: 28px 0 18px;
    padding: 16px 20px;
    background: rgba(201, 178, 139, 0.04);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.news-content .expert-opinion-simple i {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.05em;
}


.news-content .quote-with-opinion {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
}

.news-content .quote-with-opinion blockquote {
    margin: 0 0 12px 0;
    border-left-color: var(--accent-gold);
    background: transparent;
    padding: 0 0 0 20px;
}

.news-content .quote-with-opinion .opinion {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.news-content .quote-with-opinion .opinion::before {

    font-style: normal;
}


@media (max-width: 640px) {
    .news-content blockquote {
        padding: 14px 16px;
        font-size: 0.95em;
    }
    
    .news-content blockquote::before {
        font-size: 1.8em;
        top: -2px;
        left: 6px;
    }
    
    .news-content .expert-opinion {
        padding: 16px 18px;
    }
    
    .news-content .expert-opinion i {
        font-size: 0.95em;
    }
}

@media (max-width: 640px) {
    .single-news {
        width: 100%;
        overflow: hidden;
    }

    .news-article {
        padding: 1rem 0.8rem 1.2rem;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .news-title {
        font-size: 1.4rem;
        word-break: break-word;
    }

    .news-content {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .news-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    .news-content table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }

    .news-content pre {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 0.8rem;
    }
}