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

body {
    background: radial-gradient(circle at 10% 20%, #1a0b1c, #0a030c);
    font-family: 'Inter', sans-serif;
    color: #f0eef7;
    line-height: 1.5;
    overflow-x: hidden;
    cursor: default;
    transition: background 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: pageFadeIn 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ========== ПЛАВАЮЩАЯ КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ ========== */
.floating-theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6b3a5e, #9b6b8f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(107, 58, 94, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow: hidden;
}

.floating-theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-theme-toggle:hover::before {
    opacity: 1;
}

.floating-theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 10px 30px rgba(107, 58, 94, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.floating-theme-toggle .theme-toggle-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.floating-theme-toggle .theme-icon {
    font-size: 1.6rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-theme-toggle .theme-text {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.floating-theme-toggle:hover .theme-icon {
    transform: scale(1.1);
}

.floating-theme-toggle:hover .theme-text {
    transform: translateY(2px);
}

.floating-theme-toggle {
    animation: themeTogglePulse 2s ease-in-out infinite;
}

/* ========== КНОПКА НАВЕРХ ========== */
.scroll-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6b3a5e, #9b6b8f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 5px 15px rgba(107, 58, 94, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, #9b6b8f, #dd98bc);
    box-shadow: 0 8px 25px rgba(107, 58, 94, 0.5);
}

.scroll-to-top i {
    color: white;
    font-size: 1.2rem;
}

@media (max-width: 550px) {
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .scroll-to-top i {
        font-size: 1rem;
    }
}

body.light-theme .scroll-to-top {
    background: linear-gradient(135deg, #4a2a4a, #6b3a5e);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .scroll-to-top:hover {
    background: linear-gradient(135deg, #6b3a5e, #9b6b8f);
}

@keyframes themeTogglePulse {
    0% {
        box-shadow: 0 5px 20px rgba(107, 58, 94, 0.4), 0 0 0 0 rgba(155, 107, 143, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(107, 58, 94, 0.6), 0 0 0 8px rgba(155, 107, 143, 0.2);
    }
    100% {
        box-shadow: 0 5px 20px rgba(107, 58, 94, 0.4), 0 0 0 0 rgba(155, 107, 143, 0);
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}
@keyframes footerScan {
    0% { left: -100%; }
    100% { left: 100%; }
}
@keyframes toastFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); visibility: hidden; }
}
@keyframes expandedFadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}
@keyframes expandedSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== ХЕДЕР ========== */
.main-header {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.logo-area {
    flex-shrink: 0;
}
.rift-wrapper {
    position: relative;
    perspective: 800px;
}
.rift-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f0dce8, #c48bb0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}
.search-area {
    flex-shrink: 1;
    min-width: 250px;
    width: auto;
    position: relative;
    z-index: 100;
}
.search-bar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(107, 58, 94, 0.4);
    border-radius: 48px;
    padding: 0.2rem 0.2rem 0.2rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}
.search-bar:focus-within {
    border-color: #9b6b8f;
    box-shadow: 0 0 0 3px rgba(155, 107, 143, 0.25);
}
.search-bar input {
    background: transparent;
    border: none;
    padding: 0.4rem 0;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    width: 100%;
    color: #ffffff;
    outline: none;
    cursor: text;
}
.search-bar input::placeholder {
    color: #8e6c82;
}
.search-bar button {
    background: #4a2a4a;
    border: none;
    border-radius: 48px;
    padding: 0.35rem 1.2rem;
    color: #d4b8d0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.search-bar button:hover {
    background: #5a3a5a;
    color: #ffffff;
}

/* ========== УМНЫЙ ПОИСК - ПОДСКАЗКИ ========== */
#newsSearchSuggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
    border: 1px solid #9b6b8f;
    border-radius: 16px;
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.2s ease;
}

#newsSearchSuggestions::-webkit-scrollbar {
    width: 5px;
}

#newsSearchSuggestions::-webkit-scrollbar-track {
    background: rgba(107, 58, 94, 0.2);
    border-radius: 10px;
}

#newsSearchSuggestions::-webkit-scrollbar-thumb {
    background: #6b3a5e;
    border-radius: 10px;
}

#newsSearchSuggestions::-webkit-scrollbar-thumb:hover {
    background: #9b6b8f;
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(107, 58, 94, 0.2);
    transition: all 0.2s ease;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: rgba(107, 58, 94, 0.3);
    transform: translateX(5px);
}

.search-suggestion-title {
    font-weight: 600;
    color: #dd98bc;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.search-suggestion-date {
    font-size: 0.65rem;
    color: #9b6b8f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-suggestion-date i {
    font-size: 0.55rem;
}

/* ========== МОДАЛЬНОЕ ОКНО РЕЗУЛЬТАТОВ ПОИСКА ========== */
.search-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: expandedFadeIn 0.3s ease;
}

.search-results-content {
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
    border-radius: 24px;
    border: 1px solid #9b6b8f;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: expandedSlideIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #6b3a5e;
    background: rgba(26, 11, 28, 0.95);
}

.search-results-header h3 {
    color: #dd98bc;
    font-size: 1.1rem;
    margin: 0;
}

.close-results-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #9b6b8f;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0 8px;
}

.close-results-btn:hover {
    color: #ffb3d1;
}

.search-results-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.search-results-body::-webkit-scrollbar {
    width: 6px;
}

.search-results-body::-webkit-scrollbar-track {
    background: rgba(107, 58, 94, 0.2);
    border-radius: 4px;
}

.search-results-body::-webkit-scrollbar-thumb {
    background: #6b3a5e;
    border-radius: 4px;
}

.results-count {
    margin-bottom: 1rem;
    color: #9b6b8f;
    font-size: 0.85rem;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.result-item {
    background: rgba(107, 58, 94, 0.15);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid #9b6b8f;
}

.result-item:hover {
    background: rgba(107, 58, 94, 0.3);
    transform: translateX(5px);
}

.search-results-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #6b3a5e;
    display: flex;
    justify-content: flex-end;
    background: rgba(26, 11, 28, 0.95);
}

.close-results-footer-btn {
    background: #6b3a5e;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-results-footer-btn:hover {
    background: #9b6b8f;
}

/* ========== НАВИГАЦИЯ ========== */
.nav-section {
    margin-bottom: 2rem;
}
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
}
.nav-btn {
    background: rgba(107, 58, 94, 0.25);
    border: 1px solid rgba(155, 107, 143, 0.4);
    padding: 0.45rem 1.2rem;
    font-weight: 500;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: #e3b3d1;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
}
.nav-btn i {
    margin-right: 6px;
    font-size: 0.85rem;
    color: #c48bb0;
}
.nav-btn:hover {
    background: rgba(107, 58, 94, 0.5);
    border-color: #dd98bc;
    color: #ffffff;
}
.nav-btn.active {
    background: #dd98bc;
    color: #1a0b1c !important;
    border-color: #dd98bc;
    font-weight: 600;
}
.nav-btn.active i {
    color: #1a0b1c !important;
}
.nav-btn.active::before {
    display: none;
}
.nav-btn.active:hover {
    background: #ffb3d1;
}
.nav-btn.coming-soon {
    opacity: 0.55;
}
.nav-btn.coming-soon:hover {
    opacity: 0.8;
}
.nav-btn.coming-soon small,
a.coming-soon small {
    font-size: 0.65em;
    opacity: 0.8;
    font-weight: 400;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}
.banner-container {
    flex: 1.4;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

/* ========== ЕДИНЫЙ СТИЛЬ СТРЕЛОК ДЛЯ ВСЕХ КАРУСЕЛЕЙ ========== */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(107, 58, 94, 0.85);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(155, 107, 143, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    opacity: 0.9;
}
.carousel-arrow:hover {
    opacity: 1;
    background: rgba(155, 107, 143, 1);
    border-color: #dd98bc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.carousel-arrow i {
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}
.carousel-arrow:hover i {
    transform: scale(1.15);
    color: #ffb3d1;
}
.carousel-arrow-left {
    left: -20px;
}
.carousel-arrow-right {
    right: -20px;
}
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 5px;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(155, 107, 143, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.banner-dot:hover {
    background: rgba(155, 107, 143, 0.8);
    transform: scale(1.2);
}
.banner-dot.active {
    background: #dd98bc;
    width: 20px;
    border-radius: 10px;
}

/* ========== ГЛАВНЫЙ БАННЕР ========== */
.main-banner-carousel {
    position: relative;
    margin-bottom: 0.5rem;
}
.main-banner {
    background: linear-gradient(125deg, #2a1528, #1a0b1c, #201020);
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid rgba(107, 58, 94, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    min-height: 300px;
    width: 100%;
}
.main-banner:hover {
    transform: translateY(-2px);
    border-color: #9b6b8f;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
}
.main-banner:hover::before {
    left: 100%;
}
.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.banner-label {
    font-size: clamp(0.6rem, 2vw, 0.7rem);
    letter-spacing: 2px;
    color: #9b6b8f;
    text-transform: uppercase;
}
.banner-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.banner-text {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    color: #c4a8bf;
    line-height: 1.5;
}
.banner-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    color: #9b6b8f;
}
.stat span:last-child {
    font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    color: #8e6c82;
}
.banner-cta {
    background: rgba(107, 58, 94, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.3rem;
    border-radius: 40px;
    border: 1px solid rgba(107, 58, 94, 0.5);
    cursor: pointer;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: #f0eef7;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    width: fit-content;
    position: relative;
    overflow: hidden;
    margin-top: 0.3rem;
}
.banner-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(155, 107, 143, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.banner-cta:hover::before {
    width: 200px;
    height: 200px;
}
.banner-cta:hover {
    background: rgba(107, 58, 94, 0.45);
    border-color: #9b6b8f;
    gap: 14px;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 58, 94, 0.3);
}

/* ========== НОВОСТИ СЕГОДНЯ ========== */
.popular-articles-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}
.popular-articles-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.popular-articles-header i {
    font-size: 1rem;
    color: #9b6b8f;
    display: inline-block;
    transition: color 0.3s ease;
}
.popular-articles-header i:hover {
    color: #dd98bc;
    cursor: pointer;
}
.popular-articles-header h3 {
    font-weight: 600;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    letter-spacing: 1px;
    color: #dd98bc;
}
.articles-count {
    font-size: 0.55rem;
    background: rgba(227, 179, 209, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    color: #e3b3d1;
    margin-left: auto;
}

.horizontal-articles-grid {
    display: grid;
    gap: 0.7rem;
}

@media (min-width: 1200px) {
    .horizontal-articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .horizontal-articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 650px) and (max-width: 899px) {
    .horizontal-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 649px) {
    .horizontal-articles-grid {
        grid-template-columns: 1fr;
    }
}

.horizontal-articles-grid.first-row {
    margin-bottom: 0.7rem;
}
.horizontal-articles-grid.second-row {
    margin-top: 0;
    margin-bottom: 0;
}

/* КАРТОЧКИ - ЕДИНЫЙ РАЗМЕР ДЛЯ ВСЕХ БЛОКОВ */
.article-card,
.popular-news-card,
.news-card {
    background: rgba(20, 9, 22, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(107, 58, 94, 0.3);
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: cardFadeInUp 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1) backwards;
}
.article-card::before,
.popular-news-card::before,
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}
.article-card:hover::before,
.popular-news-card:hover::before,
.news-card:hover::before {
    left: 100%;
}
.article-card:hover,
.popular-news-card:hover,
.news-card:hover {
    border-color: #9b6b8f;
    background: rgba(30, 15, 32, 0.8);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Задержки для карточек */
.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }
.article-card:nth-child(7) { animation-delay: 0.35s; }
.article-card:nth-child(8) { animation-delay: 0.4s; }

.popular-news-card:nth-child(1) { animation-delay: 0.03s; }
.popular-news-card:nth-child(2) { animation-delay: 0.06s; }
.popular-news-card:nth-child(3) { animation-delay: 0.09s; }
.popular-news-card:nth-child(4) { animation-delay: 0.12s; }
.popular-news-card:nth-child(5) { animation-delay: 0.15s; }
.popular-news-card:nth-child(6) { animation-delay: 0.18s; }
.popular-news-card:nth-child(7) { animation-delay: 0.21s; }
.popular-news-card:nth-child(8) { animation-delay: 0.24s; }
.popular-news-card:nth-child(9) { animation-delay: 0.27s; }
.popular-news-card:nth-child(10) { animation-delay: 0.3s; }
.popular-news-card:nth-child(11) { animation-delay: 0.33s; }
.popular-news-card:nth-child(12) { animation-delay: 0.36s; }

.news-card:nth-child(1) { animation-delay: 0.02s; }
.news-card:nth-child(2) { animation-delay: 0.04s; }
.news-card:nth-child(3) { animation-delay: 0.06s; }
.news-card:nth-child(4) { animation-delay: 0.08s; }
.news-card:nth-child(5) { animation-delay: 0.1s; }
.news-card:nth-child(6) { animation-delay: 0.12s; }
.news-card:nth-child(7) { animation-delay: 0.14s; }
.news-card:nth-child(8) { animation-delay: 0.16s; }
.news-card:nth-child(9) { animation-delay: 0.18s; }
.news-card:nth-child(10) { animation-delay: 0.2s; }
.news-card:nth-child(11) { animation-delay: 0.22s; }
.news-card:nth-child(12) { animation-delay: 0.24s; }

/* ОБЩИЙ СТИЛЬ ДЛЯ ИЗОБРАЖЕНИЙ ВСЕХ КАРТОЧЕК */
.card-image,
.popular-news-card-image,
.news-card-image {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b6b8f;
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    overflow: hidden;
    flex-shrink: 0;
}
.card-image img,
.popular-news-card-image img,
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .card-image img,
.popular-news-card:hover .popular-news-card-image img,
.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

/* ОБЩИЙ СТИЛЬ ДЛЯ КОНТЕНТА КАРТОЧЕК */
.card-content,
.popular-news-card-content,
.news-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.card-date,
.popular-news-card-date,
.news-card-date {
    font-size: 0.55rem;
    color: #9b6b8f;
    font-weight: 500;
}
.card-subtext,
.popular-news-card-subtext,
.news-card-subtext {
    font-size: 0.55rem;
    transition: all 0.3s ease;
    font-weight: 500;
}
.article-card:hover .card-subtext,
.popular-news-card:hover .popular-news-card-subtext,
.news-card:hover .news-card-subtext {
    transform: translateX(3px);
}
.card-title,
.popular-news-card-title,
.news-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s ease;
    line-height: 1.35;
}
.article-card:hover .card-title,
.popular-news-card:hover .popular-news-card-title,
.news-card:hover .news-card-title {
    transform: translateX(5px);
    color: #dd98bc;
}
.card-desc,
.popular-news-card-desc,
.news-card-desc {
    font-size: 0.7rem;
    color: #c4a8bf;
    line-height: 1.4;
    margin-top: 0.2rem;
}

.articles-footer {
    margin-top: 0.5rem;
    font-size: 0.55rem;
    text-align: right;
    color: #8e6c82;
    border-top: 1px solid rgba(107, 58, 94, 0.2);
    padding-top: 0.5rem;
}

/* ========== САЙДБАР: НОВОСТИ ИНДУСТРИИ ========== */
.news-sidebar-wrapper {
    flex: 0.6;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.news-sidebar {
    background: rgba(20, 9, 22, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(107, 58, 94, 0.4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-sidebar-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(107, 58, 94, 0.5);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.sidebar-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #b8477a;
    text-transform: uppercase;
    font-weight: 600;
}

.news-sidebar-header h3 {
    font-weight: 700;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: #dd98bc;
}

.sidebar-live {
    font-size: 0.55rem;
    background: rgba(184, 71, 122, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    color: #ffb3d1;
    margin-left: auto;
    /* без анимации — чтобы не мигало */
}

.news-sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-sidebar-list li {
    padding: 0.6rem;
    border-bottom: 1px solid rgba(107, 58, 94, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.news-sidebar-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155, 107, 143, 0.2), transparent);
    transition: left 0.4s;
}

.news-sidebar-list li:hover::before {
    left: 100%;
}

.news-sidebar-list li:hover {
    transform: translateX(8px);
    background: rgba(107, 58, 94, 0.3);
}

.news-sidebar-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.news-date {
    font-size: 0.65rem;
    color: #c48bb0;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.news-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f5eef7;
    line-height: 1.35;
}

/* ========== РЕКЛАМНЫЙ БАННЕР ========== */
.sidebar-ad-banner {
    background: linear-gradient(135deg, #1e0e1c, #120712);
    border-radius: 20px;
    border: 1px solid rgba(155, 107, 143, 0.5);
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

.sidebar-ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s;
}

.sidebar-ad-banner:hover::before {
    left: 100%;
}

.sidebar-ad-banner:hover {
    transform: translateY(-3px);
    border-color: #9b6b8f;
    background: rgba(30, 15, 32, 0.9);
    box-shadow: 0 8px 20px rgba(107, 58, 94, 0.3);
}

.sidebar-ad-icon {
    font-size: 3rem;
    color: #9b6b8f;
    margin-bottom: 1rem;
}

.sidebar-ad-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #dd98bc;
    margin-bottom: 0.8rem;
}

.sidebar-ad-text {
    font-size: 0.9rem;
    color: #c4a8bf;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.sidebar-ad-btn {
    background: rgba(107, 58, 94, 0.3);
    border: 1px solid rgba(155, 107, 143, 0.4);
    border-radius: 30px;
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dd98bc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.sidebar-ad-btn:hover {
    background: #6b3a5e;
    color: white;
}

/* ========== ПАРТНЁРСКИЙ БАННЕР ========== */
.full-width-banner-section {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 0;
}
.partner-carousel-wrapper {
    position: relative;
}
.banner-secondary {
    background: linear-gradient(125deg, #1e0e1c, #120712, #1a0b1c);
    border-radius: 20px;
    border: 1px solid rgba(107, 58, 94, 0.5);
    padding: 2rem 1.5rem;
    width: 100%;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background-size: cover;
    background-position: center;
}
.banner-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: #9b6b8f;
}
.banner-secondary-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    min-height: 220px;
}
.banner-secondary-left {
    flex: 1.2;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.banner-secondary-badge {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: #b8477a;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: rgba(184, 71, 122, 0.15);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    width: fit-content;
}
.banner-secondary-title {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #dd98bc, #9b6b8f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.banner-secondary-text {
    font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    color: #c4a8bf;
    line-height: 1.45;
    max-width: 90%;
    margin-bottom: 0.8rem;
}
.banner-secondary-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.banner-secondary-stat {
    display: flex;
    flex-direction: column;
}
.banner-secondary-stat-number {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #9b6b8f, #dd98bc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.banner-secondary-stat-label {
    font-size: 0.6rem;
    color: #8e6c82;
    text-transform: uppercase;
}
.banner-secondary-right {
    flex: 0.8;
    min-width: 200px;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
}
.banner-secondary-btn {
    background: rgba(107, 58, 94, 0.2);
    border: 1px solid rgba(155, 107, 143, 0.4);
    border-radius: 48px;
    padding: 0.6rem 1.2rem;
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    font-weight: 500;
    color: #f0eef7;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.banner-secondary-btn-primary {
    background: linear-gradient(135deg, rgba(107, 58, 94, 0.5), rgba(74, 42, 74, 0.6));
    border-color: #9b6b8f;
}
.banner-secondary-btn:hover {
    gap: 12px;
    border-color: #dd98bc;
    color: #ffffff;
}

/* Адаптив для партнёрского баннера */
@media (max-width: 768px) {
    .banner-secondary {
        min-height: auto;
        padding: 1.5rem;
    }
    .banner-secondary-content {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    .banner-secondary-left {
        align-items: center;
        text-align: center;
    }
    .banner-secondary-text {
        max-width: 100%;
    }
    .banner-secondary-stats {
        justify-content: center;
    }
    .banner-secondary-right {
        justify-content: center;
    }
    .banner-secondary-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 550px) {
    .banner-secondary-btn {
        white-space: normal;
        text-align: center;
        padding: 0.5rem 1rem;
    }
}

/* ========== НОВОСТИ (ПОПУЛЯРНЫЕ) ========== */
.popular-news-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.popular-news-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(107, 58, 94, 0.3);
    padding-bottom: 0.6rem;
}
.popular-news-header i {
    font-size: 1rem;
    color: #9b6b8f;
    display: inline-block;
    transition: color 0.3s ease;
}
.popular-news-header i:hover {
    color: #dd98bc;
    cursor: pointer;
}
.popular-news-header h3 {
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    letter-spacing: 1px;
    color: #dd98bc;
}
.news-count {
    font-size: 0.55rem;
    background: rgba(227, 179, 209, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    color: #e3b3d1;
}
.news-update-badge {
    margin-left: auto;
    font-size: 0.55rem;
    color: #8e6c82;
}
.news-update-badge i {
    animation: spin 2s linear infinite;
    display: inline-block;
}

.popular-news-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 1200px) {
    .popular-news-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .popular-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 650px) and (max-width: 899px) {
    .popular-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 649px) {
    .popular-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== ДВОЙНОЙ БАННЕР ========== */
.double-banner-section {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.double-banner-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    width: 100%;
    align-items: stretch;
}
.video-banner-container {
    flex: 2;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}
.ads-banner-container {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}
.video-banner-header, .ads-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(107, 58, 94, 0.3);
    flex-wrap: wrap;
}
.video-banner-header i, .ads-header i {
    font-size: 1rem;
    color: #9b6b8f;
    display: inline-block;
}
.video-banner-header i {
    transition: color 0.3s ease;
}
.ads-header i {
    transition: color 0.3s ease;
}
.video-banner-header i:hover, .ads-header i:hover {
    color: #dd98bc;
    cursor: pointer;
}
.video-banner-header h3, .ads-header h3 {
    font-weight: 600;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    letter-spacing: 1px;
    color: #dd98bc;
}
.video-banner-header span, .ads-header span {
    font-size: 0.55rem;
    background: rgba(227, 179, 209, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    color: #e3b3d1;
    margin-left: auto;
}

/* ВИДЕО-БАННЕР */
.video-banner-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-banner {
    background: linear-gradient(125deg, #2a1528, #1a0b1c, #201020);
    border-radius: 20px;
    border: 1px solid rgba(107, 58, 94, 0.5);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    height: 100%;
    min-height: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.video-banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    height: 100%;
    flex: 1;
}
@media (max-width: 768px) {
    .video-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .video-banner-right {
        align-items: center;
        text-align: center;
    }
    .video-banner-stats {
        justify-content: center;
    }
    .video-banner-btn {
        margin: 0 auto;
    }
}
.video-banner-left {
    flex: 1.2;
    min-width: 250px;
}
.video-banner-right {
    flex: 0.8;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.video-banner-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 16px;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
}
.video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #9b6b8f;
    z-index: 2;
}
.preview-placeholder i {
    font-size: 2.5rem;
}
.preview-placeholder span {
    font-size: 0.7rem;
    color: #c4a8bf;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: rgba(107, 58, 94, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}
.play-button i {
    font-size: 22px;
    color: white;
    margin-left: 4px;
}
.play-button:hover {
    background: #9b6b8f;
    border-color: white;
}
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
}
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-banner-player.video-active .video-preview {
    display: none;
}
.video-banner-player.video-active .video-container {
    display: block;
}
.video-banner-title {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #dd98bc, #9b6b8f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.video-banner-desc {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: #c4a8bf;
    line-height: 1.4;
}
.video-banner-stats {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.video-banner-stat {
    display: flex;
    flex-direction: column;
}
.video-banner-stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9b6b8f;
}
.video-banner-stat-label {
    font-size: 0.6rem;
    color: #8e6c82;
}
.video-banner-btn {
    background: rgba(107, 58, 94, 0.2);
    border: 1px solid rgba(107, 58, 94, 0.5);
    border-radius: 40px;
    padding: 0.45rem 1.2rem;
    font-size: clamp(0.65rem, 2vw, 0.7rem);
    font-weight: 500;
    color: #f0eef7;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    position: relative;
    overflow: hidden;
}
.video-banner-btn:hover {
    gap: 12px;
    border-color: #9b6b8f;
}

/* ========== ТОЧКИ ДЛЯ ВИДЕО-БАННЕРА ========== */
.video-banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 5px;
}

.video-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(155, 107, 143, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-banner-dot:hover {
    background: rgba(155, 107, 143, 0.8);
    transform: scale(1.2);
}

.video-banner-dot.active {
    background: #dd98bc;
    width: 20px;
    border-radius: 10px;
}

/* КНОПКИ ВИДЕО-БАННЕРА */
.video-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(107, 58, 94, 0.85);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(155, 107, 143, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 35;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    opacity: 0.9;
}

.video-carousel-arrow:hover {
    opacity: 1;
    background: rgba(155, 107, 143, 1);
    border-color: #dd98bc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-carousel-arrow i {
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}

.video-carousel-arrow:hover i {
    transform: scale(1.15);
    color: #ffb3d1;
}

.video-carousel-arrow-left {
    left: -15px;
}

.video-carousel-arrow-right {
    right: -15px;
}

/* РЕКЛАМНЫЙ БАННЕР СПРАВА ОТ ВИДЕО */
.ads-banner-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ads-banner {
    background: linear-gradient(135deg, #1a0b1c, #0f0512);
    border-radius: 20px;
    border: 1px solid rgba(107, 58, 94, 0.5);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    width: 100%;
}
.ads-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}
.ads-banner:hover::before {
    left: 100%;
}
.ads-banner:hover {
    transform: translateY(-8px);
    border-color: #9b6b8f;
    box-shadow: 0 20px 40px rgba(107, 58, 94, 0.4), 0 0 20px rgba(155, 107, 143, 0.3);
}
.ads-content {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
}
.ads-icon {
    font-size: 2.5rem;
    color: #9b6b8f;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}
.ads-banner:hover .ads-icon {
    transform: scale(1.15);
    color: #dd98bc;
    filter: drop-shadow(0 0 10px #9b6b8f);
}
.ads-title {
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #dd98bc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ads-text {
    font-size: clamp(0.6rem, 2vw, 0.7rem);
    color: #c4a8bf;
}
.ads-button {
    background: rgba(107, 58, 94, 0.3);
    border: 1px solid rgba(155, 107, 143, 0.5);
    border-radius: 40px;
    padding: 0.4rem 1rem;
    font-size: clamp(0.6rem, 2vw, 0.65rem);
    color: #dd98bc;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
}
.ads-button:hover {
    background: rgba(107, 58, 94, 0.5);
    color: #fff;
}

/* КНОПКИ РЕКЛАМНОГО БАННЕРА */
.ads-banner-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(107, 58, 94, 0.85);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(155, 107, 143, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 35;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    opacity: 0.9;
}

.ads-banner-carousel .carousel-arrow:hover {
    opacity: 1;
    background: rgba(155, 107, 143, 1);
    border-color: #dd98bc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ads-banner-carousel .carousel-arrow i {
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}

.ads-banner-carousel .carousel-arrow:hover i {
    transform: scale(1.15);
    color: #ffb3d1;
}

.ads-banner-carousel .carousel-arrow-left {
    left: -15px;
}

.ads-banner-carousel .carousel-arrow-right {
    right: -15px;
}

.video-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
    pointer-events: none;
}
.video-banner:hover::before {
    left: 100%;
}
.video-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: #9b6b8f;
}

/* ========== ВСЕ НОВОСТИ ========== */
.news-cards-section {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.news-cards-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(107, 58, 94, 0.3);
    padding-bottom: 0.6rem;
}
.news-cards-header i {
    font-size: 1rem;
    color: #9b6b8f;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}
.news-cards-header i:hover {
    animation: wiggle 0.5s ease-in-out;
    color: #dd98bc;
    cursor: pointer;
}
.news-cards-header h3 {
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    letter-spacing: 1px;
    color: #dd98bc;
}
.news-cards-count {
    font-size: 0.55rem;
    background: rgba(227, 179, 209, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    color: #e3b3d1;
}
.news-cards-update {
    margin-left: auto;
    font-size: 0.55rem;
    color: #8e6c82;
}
.news-cards-update i {
    animation: spin 2s linear infinite;
    display: inline-block;
}

.news-cards-grid-wrapper {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}
.news-cards-grid-wrapper::-webkit-scrollbar {
    width: 6px;
}
.news-cards-grid-wrapper::-webkit-scrollbar-track {
    background: rgba(107, 58, 94, 0.2);
    border-radius: 4px;
}
.news-cards-grid-wrapper::-webkit-scrollbar-thumb {
    background: #6b3a5e;
    border-radius: 4px;
}
.news-cards-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9b6b8f;
}

.news-cards-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 1200px) {
    .news-cards-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .news-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 650px) and (max-width: 899px) {
    .news-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 649px) {
    .news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-cards-scroll-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.65rem;
    color: #8e6c82;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: pulse 2s ease-in-out infinite;
}
.news-cards-scroll-hint i {
    font-size: 0.55rem;
    color: #9b6b8f;
}

.news-cards-section:has(.news-cards-grid .news-card:nth-child(-n+12):last-child) .news-cards-scroll-hint {
    display: none;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.expanded-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2100;
    align-items: center;
    justify-content: center;
}
.expanded-modal .expanded-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
    border-radius: 24px;
    border: 1px solid rgba(155, 107, 143, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.expanded-modal .expanded-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(155, 107, 143, 0.3);
    background: rgba(26, 11, 28, 0.95);
}
.expanded-modal .expanded-modal-header h3 {
    color: #dd98bc;
    font-size: 1.1rem;
}
.expanded-modal .expanded-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9b6b8f;
    transition: all 0.2s ease;
}
.expanded-modal .expanded-modal-close:hover {
    color: #ffb3d1;
    transform: rotate(90deg) scale(1.1);
}
.expanded-modal .expanded-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
}
.expanded-modal .expanded-modal-body::-webkit-scrollbar {
    width: 6px;
}
.expanded-modal .expanded-modal-body::-webkit-scrollbar-track {
    background: rgba(107, 58, 94, 0.2);
    border-radius: 4px;
}
.expanded-modal .expanded-modal-body::-webkit-scrollbar-thumb {
    background: #6b3a5e;
    border-radius: 4px;
}
.expanded-modal .expanded-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(155, 107, 143, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(26, 11, 28, 0.95);
}
.expanded-modal .save-editor-btn {
    background: #2d6a4f;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}
.expanded-modal .save-editor-btn:hover {
    background: #409c6e;
}
.expanded-modal .cancel-btn {
    background: rgba(107, 58, 94, 0.3);
    border: 1px solid #6b3a5e;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    color: #c4a8bf;
    cursor: pointer;
    transition: all 0.3s ease;
}
.expanded-modal .cancel-btn:hover {
    background: rgba(107, 58, 94, 0.5);
}
.expanded-modal-loading {
    text-align: center;
    padding: 2rem;
    color: #c4a8bf;
}

.sidebar-news-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-news-editor .form-group {
    margin-bottom: 1rem;
}
.sidebar-news-editor .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    color: #9b6b8f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-news-editor .form-group input,
.sidebar-news-editor .form-group textarea,
.sidebar-news-editor .form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #6b3a5e;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
}
.sidebar-news-editor .form-group input:focus,
.sidebar-news-editor .form-group textarea:focus {
    outline: none;
    border-color: #9b6b8f;
    box-shadow: 0 0 0 3px rgba(155, 107, 143, 0.2);
}
.sidebar-news-preview {
    background: rgba(20, 9, 22, 0.6);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(107, 58, 94, 0.3);
}
.sidebar-news-preview h4 {
    color: #dd98bc;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}
.sidebar-news-preview .preview-item {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
.style-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.style-row select,
.style-row input {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #6b3a5e;
    border-radius: 8px;
    color: white;
}
.style-row input[type="color"] {
    min-width: 50px;
    width: 50px;
    height: 38px;
}

.expanded-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: expandedFadeIn 0.3s ease;
}
.expanded-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
    border-radius: 24px;
    border: 1px solid rgba(155, 107, 143, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: expandedSlideIn 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.expanded-modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(155, 107, 143, 0.3);
    background: rgba(26, 11, 28, 0.95);
}
.expanded-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #9b6b8f;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0 8px;
}
.expanded-modal-close:hover {
    color: #ffb3d1;
    transform: rotate(90deg) scale(1.1);
}
.expanded-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
}
.expanded-modal-body::-webkit-scrollbar {
    width: 6px;
}
.expanded-modal-body::-webkit-scrollbar-track {
    background: rgba(107, 58, 94, 0.2);
    border-radius: 4px;
}
.expanded-modal-body::-webkit-scrollbar-thumb {
    background: #6b3a5e;
    border-radius: 4px;
}
.expanded-modal-image {
    text-align: center;
    margin-bottom: 1.5rem;
}
.expanded-modal-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 16px;
    border: 1px solid rgba(155, 107, 143, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.expanded-modal-text {
    text-align: center;
    line-height: 1.7;
}
.expanded-modal-text h1,
.expanded-modal-text h2,
.expanded-modal-text h3 {
    color: #dd98bc;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}
.expanded-modal-text p {
    margin-bottom: 1rem;
    color: #c4a8bf;
    text-align: center;
    max-width: 100%;
}
.expanded-modal-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px auto;
    display: block;
}
.expanded-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(155, 107, 143, 0.3);
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: rgba(26, 11, 28, 0.95);
}
.expanded-modal-footer button {
    background: linear-gradient(135deg, #6b3a5e, #4a2a4a);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.expanded-modal-footer button:hover {
    background: linear-gradient(135deg, #9b6b8f, #6b3a5e);
}

/* ========== ФУТЕР ========== */
.site-footer {
    margin-top: 3rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-top: none;
    background: transparent;
}

.footer-new {
    background: linear-gradient(135deg, #0f0612, #0a030c);
    border-top: 1px solid rgba(107, 58, 94, 0.5);
    border-left: 1px solid rgba(107, 58, 94, 0.3);
    border-right: 1px solid rgba(107, 58, 94, 0.3);
    border-bottom: none;
    padding: 2.5rem 2rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 24px 24px 0 0;
}

.footer-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9b6b8f, #dd98bc, #9b6b8f, transparent);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-admin {
        text-align: center;
    }
    .footer-links-section {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-item {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #dd98bc, #9b6b8f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.footer-logo:hover {
    transform: scale(1.03);
}

.footer-tagline {
    font-size: 0.7rem;
    color: #8e6c82;
    margin-top: 0.5rem;
}

.footer-links-section {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    flex: 2;
    justify-content: center;
}

@media (max-width: 768px) {
    .footer-links-section {
        gap: 1.5rem;
    }
}

.footer-column {
    min-width: 140px;
}

.footer-column h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #dd98bc;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #9b6b8f, transparent);
    transition: width 0.3s ease;
}

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

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul li a {
    color: #c4a8bf;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-column ul li a i {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover i {
    opacity: 1;
    transform: translateX(5px);
    color: #9b6b8f;
    animation: bounce 0.5s ease-in-out;
}

.footer-column ul li a:hover {
    color: #dd98bc;
    transform: translateX(8px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .contact-item {
        justify-content: center;
    }
}

.contact-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 58, 94, 0.2);
    border-radius: 50%;
    font-size: 0.7rem;
    color: #9b6b8f;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: rgba(155, 107, 143, 0.4);
    transform: scale(1.15) rotate(360deg);
    color: #dd98bc;
    animation: bounce 0.5s ease-in-out;
}

.contact-item a,
.contact-item span {
    color: #c4a8bf;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #dd98bc;
}

.footer-admin {
    flex: 0.8;
    min-width: 180px;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-admin {
        text-align: center;
    }
}

.footer-admin .admin-btn,
#goToNewsAdminBtn {
    background: rgba(107, 58, 94, 0.1);
    border: 1px solid rgba(155, 107, 143, 0.2);
    border-radius: 30px;
    padding: 0.3rem 0.8rem;
    font-size: 0.6rem;
    font-weight: 400;
    color: #6a4a6e;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    opacity: 0.5;
}

.footer-admin .admin-btn i,
#goToNewsAdminBtn i {
    font-size: 0.65rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-admin .admin-btn:hover,
#goToNewsAdminBtn:hover {
    opacity: 0.8;
    border-color: rgba(155, 107, 143, 0.4);
    color: #9b6b8f;
    background: rgba(107, 58, 94, 0.15);
    gap: 7px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(107, 58, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.6rem;
    color: #6a4a6e;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright-new {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-copyright-new i {
    font-size: 0.65rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-copyright-new:hover i {
    transform: scale(1.2);
    color: #dd98bc;
    animation: bounce 0.5s ease-in-out;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #6a4a6e;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-size: 0.8rem;
    display: inline-block;
}

.footer-social a i {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-social a:hover i {
    animation: bounce 0.5s ease-in-out;
    transform: scale(1.3);
}

.footer-social a:hover {
    color: #dd98bc;
    transform: translateY(-5px);
}

/* ========== УВЕДОМЛЕНИЯ (TOAST) ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d6a4f;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    z-index: 2100;
    animation: toastFade 3s ease forwards;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.toast.error {
    background: #b8477a;
}

/* ========== АДАПТИВ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ ========== */
@media (max-width: 900px) {
    .sidebar-ad-banner {
        padding: 1.5rem;
        min-height: 240px;
    }
    .sidebar-ad-icon {
        font-size: 2.5rem;
    }
    .sidebar-ad-title {
        font-size: 1.1rem;
    }
    .sidebar-ad-text {
        font-size: 0.8rem;
    }
    .ads-banner {
        min-height: 280px;
    }
    
    .video-carousel-arrow-left,
    .ads-banner-carousel .carousel-arrow-left {
        left: -10px;
    }
    .video-carousel-arrow-right,
    .ads-banner-carousel .carousel-arrow-right {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .double-banner-wrapper {
        gap: 2rem;
    }
    .video-carousel-arrow-left,
    .ads-banner-carousel .carousel-arrow-left {
        left: -8px;
        width: 32px;
        height: 32px;
    }
    .video-carousel-arrow-right,
    .ads-banner-carousel .carousel-arrow-right {
        right: -8px;
        width: 32px;
        height: 32px;
    }
    .video-carousel-arrow i,
    .ads-banner-carousel .carousel-arrow i {
        font-size: 12px;
    }
}

@media (max-width: 550px) {
    .sidebar-ad-banner {
        padding: 1rem;
        min-height: 200px;
    }
    .sidebar-ad-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .sidebar-ad-title {
        font-size: 1rem;
    }
    .sidebar-ad-text {
        font-size: 0.7rem;
    }
    .sidebar-ad-btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
    .ads-banner {
        min-height: 240px;
    }
    
    .video-carousel-arrow-left,
    .ads-banner-carousel .carousel-arrow-left {
        left: -5px;
        width: 28px;
        height: 28px;
    }
    .video-carousel-arrow-right,
    .ads-banner-carousel .carousel-arrow-right {
        right: -5px;
        width: 28px;
        height: 28px;
    }
}

/* ========== СКРОЛЛБАР ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #1a0b1c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #6b3a5e;
    border-radius: 4px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #9b6b8f;
}
::selection {
    background: #6b3a5e;
    color: #ffffff;
}

/* ========== КУРСОРЫ ========== */
body,
body * {
    cursor: default;
}
input,
textarea,
select {
    cursor: text !important;
}
button,
button *,
a,
a *,
[onclick],
[onclick] *,
[role="button"],
[role="button"] *,
.nav-btn,
.nav-btn *,
.carousel-arrow,
.carousel-arrow *,
.video-carousel-arrow,
.video-carousel-arrow *,
.ads-banner-carousel .carousel-arrow,
.ads-banner-carousel .carousel-arrow *,
.banner-dot,
.video-banner-dot,
.article-card,
.article-card *,
.popular-news-card,
.popular-news-card *,
.news-card,
.news-card *,
.news-sidebar-list li,
.news-sidebar-list li *,
.footer-logo,
.footer-logo *,
.footer-social a,
.footer-social a *,
.admin-btn,
.admin-btn *,
#goToNewsAdminBtn,
#goToNewsAdminBtn *,
.play-button,
.play-button *,
.expanded-modal-close,
.close-modal-btn,
.banner-cta,
.banner-cta *,
.banner-secondary-btn,
.banner-secondary-btn *,
.ads-button,
.ads-button *,
.video-banner-btn,
.video-banner-btn *,
.sidebar-ad-banner,
.sidebar-ad-btn,
.floating-theme-toggle,
.floating-theme-toggle *,
.scroll-to-top,
.scroll-to-top * {
    cursor: pointer !important;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ АДАПТИВНЫЕ СТИЛИ ========== */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    .banner-secondary {
        padding: 1rem;
    }
    .banner-secondary-btn {
        padding: 0.4rem 0.8rem;
    }
    .play-button {
        width: 45px;
        height: 45px;
    }
    .play-button i {
        font-size: 18px;
    }
    .news-sidebar-wrapper {
        min-width: auto;
        width: 100%;
    }
    .news-cards-grid-wrapper {
        max-height: 400px;
    }
    .expanded-modal .expanded-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    .floating-theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .floating-theme-toggle .theme-icon {
        font-size: 1.3rem;
    }
    .floating-theme-toggle .theme-text {
        font-size: 0.45rem;
    }
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .scroll-to-top i {
        font-size: 1rem;
    }
}

@media (min-width: 1921px) {
    .container {
        max-width: 1600px;
    }
    .rift-title {
        font-size: 3.2rem;
    }
    .horizontal-articles-grid {
        gap: 1.5rem;
    }
    .news-cards-grid-wrapper {
        max-height: 600px;
    }
    .floating-theme-toggle {
        bottom: 40px;
        right: 40px;
        width: 70px;
        height: 70px;
    }
    .floating-theme-toggle .theme-icon {
        font-size: 1.8rem;
    }
    .floating-theme-toggle .theme-text {
        font-size: 0.6rem;
    }
    .scroll-to-top {
        bottom: 120px;
        right: 40px;
        width: 60px;
        height: 60px;
    }
    .scroll-to-top i {
        font-size: 1.4rem;
    }
}

/* ========== СВЕТЛАЯ ТЕМА ========== */
body.light-theme {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #1a1a1a;
}

body.light-theme .container {
    background: transparent;
}

body.light-theme .rift-title {
    background: linear-gradient(135deg, #6b3a5e, #4a2a4a, #9b6b8f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-theme .search-bar {
    background: rgba(255, 255, 255, 0.8);
    border-color: #d4b8d0;
}

body.light-theme .search-bar input {
    color: #1a1a1a;
}

body.light-theme .search-bar input::placeholder {
    color: #999;
}

body.light-theme .search-bar button {
    background: #6b3a5e;
    color: white;
}

body.light-theme #newsSearchSuggestions {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-color: #d4b8d0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

body.light-theme .search-suggestion-item:hover {
    background: rgba(107, 58, 94, 0.1);
}

body.light-theme .search-suggestion-title {
    color: #6b3a5e;
}

body.light-theme .search-suggestion-date {
    color: #9b6b8f;
}

body.light-theme .search-results-content {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-color: #d4b8d0;
}

body.light-theme .search-results-header {
    border-bottom-color: #e0d4dc;
}

body.light-theme .search-results-header h3 {
    color: #6b3a5e;
}

body.light-theme .close-results-btn {
    color: #9b6b8f;
}

body.light-theme .close-results-btn:hover {
    color: #b8477a;
}

body.light-theme .results-count {
    color: #9b6b8f;
}

body.light-theme .result-item {
    background: rgba(107, 58, 94, 0.08);
    border-left-color: #9b6b8f;
}

body.light-theme .result-item:hover {
    background: rgba(107, 58, 94, 0.15);
}

body.light-theme .close-results-footer-btn {
    background: #6b3a5e;
}

body.light-theme .close-results-footer-btn:hover {
    background: #9b6b8f;
}

body.light-theme .nav-btn {
    background: rgba(107, 58, 94, 0.1);
    border-color: #d4b8d0;
    color: #6b3a5e;
}

body.light-theme .nav-btn i {
    color: #b8477a;
}

body.light-theme .nav-btn:hover {
    background: rgba(107, 58, 94, 0.2);
    color: #4a2a4a;
}

body.light-theme .nav-btn.active {
    background: linear-gradient(135deg, #dd98bc, #c48bb0);
    color: #1a0b1c !important;
    border-color: #ffb3d1;
}

body.light-theme .nav-btn.active i {
    color: #1a0b1c !important;
}

body.light-theme .main-banner,
body.light-theme .banner-secondary,
body.light-theme .video-banner,
body.light-theme .ads-banner {
    background: rgba(255, 255, 255, 0.95);
    border-color: #d4b8d0;
}

body.light-theme .banner-label,
body.light-theme .banner-secondary-badge {
    color: #b8477a;
}

body.light-theme .banner-title,
body.light-theme .banner-secondary-title,
body.light-theme .video-banner-title,
body.light-theme .ads-title {
    background: linear-gradient(135deg, #2a1528, #6b3a5e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-theme .banner-text,
body.light-theme .banner-secondary-text,
body.light-theme .video-banner-desc,
body.light-theme .ads-text {
    color: #333;
}

body.light-theme .stat-num,
body.light-theme .banner-secondary-stat-number,
body.light-theme .video-banner-stat-number {
    background: linear-gradient(135deg, #6b3a5e, #9b6b8f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-theme .stat span:last-child,
body.light-theme .banner-secondary-stat-label,
body.light-theme .video-banner-stat-label {
    color: #666;
}

body.light-theme .article-card,
body.light-theme .popular-news-card,
body.light-theme .news-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e0d4dc;
}

body.light-theme .article-card:hover,
body.light-theme .popular-news-card:hover,
body.light-theme .news-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #9b6b8f;
}

body.light-theme .card-title,
body.light-theme .popular-news-card-title,
body.light-theme .news-card-title {
    color: #1a1a1a !important;
}

body.light-theme .card-desc,
body.light-theme .popular-news-card-desc,
body.light-theme .news-card-desc {
    color: #444 !important;
}

body.light-theme .card-subtext,
body.light-theme .popular-news-card-subtext,
body.light-theme .news-card-subtext {
    color: #b8477a !important;
}

body.light-theme .card-date,
body.light-theme .popular-news-card-date,
body.light-theme .news-card-date {
    color: #9b6b8f !important;
}

body.light-theme .news-sidebar,
body.light-theme .sidebar-ad-banner {
    background: rgba(255, 255, 255, 0.9);
    border-color: #e0d4dc;
}

body.light-theme .news-title {
    color: #1a1a1a !important;
}

body.light-theme .news-date {
    color: #b8477a !important;
}

body.light-theme .sidebar-eyebrow {
    color: #b8477a;
}

body.light-theme .news-sidebar-header h3 {
    color: #6b3a5e;
}

body.light-theme .footer-new {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: #e0d4dc;
}

body.light-theme .footer-logo {
    background: linear-gradient(135deg, #2a1528, #6b3a5e, #9b6b8f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-theme .footer-tagline,
body.light-theme .footer-copyright-new span {
    color: #666;
}

body.light-theme .footer-column h4 {
    color: #6b3a5e;
}

body.light-theme .footer-column ul li a {
    color: #555;
}

body.light-theme .footer-column ul li a:hover {
    color: #b8477a;
}

body.light-theme .contact-item i {
    background: rgba(107, 58, 94, 0.1);
    color: #6b3a5e;
}

body.light-theme .contact-item span,
body.light-theme .contact-item a {
    color: #555;
}

body.light-theme .carousel-arrow,
body.light-theme .video-carousel-arrow,
body.light-theme .ads-banner-carousel .carousel-arrow {
    background: rgba(107, 58, 94, 0.6);
    border-color: #9b6b8f;
}

body.light-theme .carousel-arrow:hover,
body.light-theme .video-carousel-arrow:hover,
body.light-theme .ads-banner-carousel .carousel-arrow:hover {
    background: #6b3a5e;
}

body.light-theme .banner-dot,
body.light-theme .video-banner-dot {
    background: rgba(107, 58, 94, 0.3);
}

body.light-theme .banner-dot.active,
body.light-theme .video-banner-dot.active {
    background: #6b3a5e;
}

body.light-theme .play-button {
    background: rgba(107, 58, 94, 0.6);
}

body.light-theme .play-button:hover {
    background: #6b3a5e;
}

body.light-theme .banner-cta,
body.light-theme .banner-secondary-btn,
body.light-theme .video-banner-btn,
body.light-theme .ads-button,
body.light-theme .sidebar-ad-btn {
    background: rgba(107, 58, 94, 0.1);
    border-color: #9b6b8f;
    color: #6b3a5e;
}

body.light-theme .banner-cta:hover,
body.light-theme .banner-secondary-btn:hover,
body.light-theme .video-banner-btn:hover,
body.light-theme .ads-button:hover,
body.light-theme .sidebar-ad-btn:hover {
    background: #6b3a5e;
    color: white;
}

body.light-theme .expanded-modal-content {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-color: #9b6b8f;
}

body.light-theme .expanded-modal-text h2,
body.light-theme .expanded-modal-text h3 {
    color: #6b3a5e !important;
}

body.light-theme .expanded-modal-text p {
    color: #333 !important;
}

body.light-theme .expanded-modal-header,
body.light-theme .expanded-modal-footer {
    background: rgba(255, 255, 255, 0.95);
}

body.light-theme .toast {
    background: #2d6a4f;
}

body.light-theme .toast.error {
    background: #b8477a;
}

body.light-theme .sidebar-news-editor .form-group input,
body.light-theme .sidebar-news-editor .form-group textarea,
body.light-theme .sidebar-news-editor .form-group select,
body.light-theme .style-row select,
body.light-theme .style-row input {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-theme .sidebar-news-preview {
    background: rgba(0, 0, 0, 0.05);
    border-color: #d4b8d0;
}

body.light-theme .sidebar-news-preview h4 {
    color: #6b3a5e;
}

body.light-theme .floating-theme-toggle {
    background: linear-gradient(135deg, #4a2a4a, #6b3a5e);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

body.light-theme .floating-theme-toggle .theme-icon {
    color: #ffd700;
}

body.light-theme .floating-theme-toggle .theme-text {
    color: #f0eef7;
}

body.light-theme .scroll-to-top {
    background: linear-gradient(135deg, #4a2a4a, #6b3a5e);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .scroll-to-top:hover {
    background: linear-gradient(135deg, #6b3a5e, #9b6b8f);
}

body.light-theme .expanded-modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

body.light-theme .expanded-modal-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body.light-theme .expanded-modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

body.light-theme .expanded-modal-header h3 {
    color: #6b3a5e;
}

body.light-theme .expanded-modal-close {
    color: #adb5bd;
}

body.light-theme .expanded-modal-close:hover {
    color: #6b3a5e;
}

body.light-theme .expanded-modal-body {
    background: #f8f9fa;
    color: #212529;
}

body.light-theme .expanded-modal-text h1,
body.light-theme .expanded-modal-text h2,
body.light-theme .expanded-modal-text h3,
body.light-theme .expanded-modal-text h4 {
    color: #6b3a5e;
}

body.light-theme .expanded-modal-text p {
    color: #495057;
}

body.light-theme .expanded-modal-footer {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

body.light-theme .expanded-modal-footer button {
    background: #6b3a5e;
    color: white;
}

body.light-theme .expanded-modal-footer button:hover {
    background: #9b6b8f;
}

body.light-theme .expanded-modal-text table {
    border-color: #dee2e6;
    background: #ffffff;
}

body.light-theme .expanded-modal-text th,
body.light-theme .expanded-modal-text td {
    border-color: #dee2e6;
    color: #212529;
}

body.light-theme .expanded-modal-text th {
    background: #e9ecef;
}

body.light-theme .expanded-modal-text img {
    border: 1px solid #dee2e6;
    background: #ffffff;
}

body.light-theme .expanded-modal-text .image-wrapper {
    background: transparent;
}

/* ========== ИСПРАВЛЕНИЕ ДЛЯ РАЗВЁРНУТОЙ КАРТОЧКИ ========== */
.expanded-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
    border-radius: 24px;
    border: 1px solid rgba(155, 107, 143, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: expandedSlideIn 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.expanded-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(155, 107, 143, 0.3);
    background: rgba(26, 11, 28, 0.95);
}

.expanded-modal-header h3 {
    color: #dd98bc;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
}

.expanded-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9b6b8f;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0 8px;
}

.expanded-modal-close:hover {
    color: #ffb3d1;
    transform: rotate(90deg) scale(1.1);
}

.expanded-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2a1528, #1a0b1c);
}

.expanded-modal-text {
    text-align: left;
    line-height: 1.7;
}

.expanded-modal-text h1,
.expanded-modal-text h2,
.expanded-modal-text h3 {
    color: #dd98bc;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.expanded-modal-text p {
    margin-bottom: 1rem;
    color: #c4a8bf;
    text-align: left;
    max-width: 100%;
}

.expanded-modal-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
    display: block;
}

.expanded-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(155, 107, 143, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(26, 11, 28, 0.95);
}

.expanded-modal-footer button {
    background: linear-gradient(135deg, #6b3a5e, #4a2a4a);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.expanded-modal-footer button:hover {
    background: linear-gradient(135deg, #9b6b8f, #6b3a5e);
}

body.light-theme .expanded-modal-content {
    background: #ffffff;
    border-color: #dee2e6;
}

body.light-theme .expanded-modal-header {
    background: #f8f9fa;
    border-bottom-color: #e9ecef;
}

body.light-theme .expanded-modal-header h3 {
    color: #6b3a5e;
}

body.light-theme .expanded-modal-body {
    background: #ffffff;
}

body.light-theme .expanded-modal-text h1,
body.light-theme .expanded-modal-text h2,
body.light-theme .expanded-modal-text h3 {
    color: #6b3a5e;
}

body.light-theme .expanded-modal-text p {
    color: #495057;
}

body.light-theme .expanded-modal-footer {
    background: #f8f9fa;
    border-top-color: #e9ecef;
}

body.light-theme .expanded-modal-footer button {
    background: #6b3a5e;
}

body.light-theme .expanded-modal-footer button:hover {
    background: #9b6b8f;
}

/* ========== ИСПРАВЛЕНИЕ ДЛЯ РАЗВЁРНУТОЙ КАРТОЧКИ ========== */
.expanded-modal-text h1,
.expanded-modal-text h2,
.expanded-modal-text h3,
.expanded-modal-text h4 {
    text-align: left !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

.expanded-modal-text p {
    text-align: left !important;
}

.expanded-modal-text .image-wrapper {
    display: inline-block;
    margin: 10px;
    position: relative;
}

.expanded-modal-text img {
    max-width: 100%;
    height: auto;
}

body.light-theme .expanded-modal-content {
    background: #ffffff;
    border-color: #dee2e6;
}

body.light-theme .expanded-modal-header {
    background: #f8f9fa;
    border-bottom-color: #e9ecef;
}

body.light-theme .expanded-modal-header h3 {
    color: #6b3a5e;
}

body.light-theme .expanded-modal-body {
    background: #ffffff;
}

body.light-theme .expanded-modal-text h1,
body.light-theme .expanded-modal-text h2,
body.light-theme .expanded-modal-text h3 {
    color: #6b3a5e;
}

body.light-theme .expanded-modal-text p {
    color: #495057;
}

body.light-theme .expanded-modal-footer {
    background: #f8f9fa;
    border-top-color: #e9ecef;
}

/* ========== АДАПТИВНЫЕ СЕТКИ ДЛЯ КАРТОЧЕК ========== */
@media (min-width: 1200px) {
    .horizontal-articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .popular-news-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .news-cards-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .horizontal-articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .popular-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .news-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 650px) and (max-width: 899px) {
    .horizontal-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .popular-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 649px) {
    .horizontal-articles-grid {
        grid-template-columns: 1fr;
    }
    .popular-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* .nav-btn стили заданы один раз выше — дублирующие переопределения убраны */