:root {
    --bg: #070707;
    --bg-soft: #0d0d0f;
    --card: #111114;
    --card-2: #16161a;
    --text: #f4f4f5;
    --muted: #9ca3af;
    --muted-2: #6b7280;
    --line: rgba(255, 255, 255, 0.08);
    --red: #e50914;
    --red-2: #ff1f2d;
    --red-dark: #8b0008;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.13), transparent 32rem),
        radial-gradient(circle at top right, rgba(229, 9, 20, 0.07), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 7, 7, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), #520006);
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 0 28px rgba(229, 9, 20, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: -0.04em;
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.header-date {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.header-nav-wrap {
    padding-bottom: 12px;
}

.header-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.header-nav a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: #d7d7dc;
    font-size: 14px;
}

.header-nav a.active,
.header-nav a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Ticker */

.ticker {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: #09090a;
    overflow: hidden;
}

.ticker-label {
    flex: 0 0 auto;
    padding: 11px 16px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.ticker-window {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    padding-left: 24px;
    color: #e5e7eb;
    font-size: 14px;
    animation: ticker 32s linear infinite;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Front */

.front {
    padding: 28px 0 44px;
}

.mobile-section-title {
    display: none;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 20px;
    align-items: start;
}

.lead-card,
.side-column,
.feed-card,
.article-card,
.admin-card,
.login-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lead-card {
    overflow: hidden;
}

.lead-link {
    display: block;
}

.lead-image {
    height: 390px;
    background: #151515;
    border-bottom: 1px solid var(--line);
}

.lead-image-empty,
.mini-image-empty,
.feed-image-empty {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(229, 9, 20, 0.22), rgba(0,0,0,0.2)),
        #151515;
    color: #fff;
    font-weight: 900;
}

.lead-image-empty span {
    font-size: 28px;
}

.lead-content {
    padding: 22px;
}

.meta-line,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.14);
    border: 1px solid rgba(229, 9, 20, 0.35);
    color: #ffb4ba;
    font-size: 12px;
    font-weight: 700;
}

.lead-content h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.lead-content p {
    margin: 0;
    color: #d1d5db;
    font-size: 17px;
}

.source-text {
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 13px;
}

.lead-actions,
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 22px 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.btn-red {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: var(--red-2);
}

.btn-dark {
    background: #17171a;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

/* Side */

.side-column {
    padding: 16px;
}

.side-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.side-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.side-head span {
    color: var(--red-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.side-list {
    display: grid;
    gap: 10px;
}

.mini-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
}

.mini-link {
    min-width: 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
}

.mini-image {
    height: 72px;
    border-radius: 11px;
    overflow: hidden;
}

.mini-body {
    min-width: 0;
}

.mini-meta {
    display: flex;
    gap: 7px;
    color: var(--muted-2);
    font-size: 11px;
    margin-bottom: 4px;
}

.mini-body h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.02em;
}

.mini-body small {
    display: block;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-tg {
    align-self: center;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.14);
    border: 1px solid rgba(229, 9, 20, 0.28);
    color: #ffb4ba;
    font-size: 12px;
    font-weight: 800;
}

/* Feed */

.feed-section {
    margin-top: 28px;
}

.section-title {
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

.feed-list {
    display: grid;
    gap: 12px;
}

.feed-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px;
}

.feed-click {
    min-width: 0;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
}

.feed-image {
    height: 112px;
    border-radius: 14px;
    overflow: hidden;
}

.feed-body {
    min-width: 0;
    padding: 3px 0;
}

.feed-body h3 {
    margin: 8px 0 5px;
    font-size: 20px;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.feed-body p {
    margin: 0;
    color: #c7c9cf;
    font-size: 14px;
}

.feed-body small {
    display: block;
    margin-top: 7px;
    color: var(--muted-2);
}

.feed-actions {
    display: flex;
    align-items: center;
    padding-right: 4px;
}

.read-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
}

/* Article */

.article-page {
    padding: 30px 0 50px;
}

.article-container {
    max-width: 860px;
}

.article-card {
    padding: 24px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.article-card h1 {
    margin: 16px 0 18px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.article-image {
    height: auto;
    max-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin: 18px 0;
}

.article-image img {
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.article-content {
    color: #e5e7eb;
    font-size: 18px;
}

.article-content p {
    margin: 0 0 16px;
}

.article-actions {
    padding: 10px 0 0;
}

/* Empty */

.empty-state {
    padding: 50px 20px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.empty-state h1 {
    margin: 0 0 8px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: var(--muted);
    background: #070707;
    font-size: 13px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Admin/login fallback */

.admin,
.admin-panel,
.login-page {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto;
}

.admin-card,
.login-box {
    padding: 18px;
    margin-bottom: 16px;
}

input,
select,
textarea,
button {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #111114;
    color: var(--text);
    padding: 10px 12px;
}

button,
.button-primary,
.button-secondary,
.read-more {
    cursor: pointer;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border: 1px solid var(--line);
    padding: 8px;
}

.muted {
    color: var(--muted);
}

/* Mobile */

@media (max-width: 900px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text small {
        font-size: 10px;
    }

    .header-date {
        font-size: 12px;
    }

    .ticker-label {
        padding: 10px 12px;
    }

    .ticker-track {
        font-size: 13px;
        animation-duration: 24s;
    }

    .front {
        padding-top: 16px;
    }

    .mobile-section-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .mobile-section-title span {
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -0.04em;
    }

    .mobile-section-title small {
        color: var(--muted);
    }

    .layout-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .main-column,
    .side-column {
        width: 100%;
    }

    .lead-image {
        height: 235px;
    }

    .lead-content {
        padding: 16px;
    }

    .lead-content h1 {
        font-size: 29px;
    }

    .lead-content p {
        font-size: 15px;
    }

    .lead-actions {
        padding: 0 16px 16px;
    }

    .lead-actions .btn,
    .article-actions .btn {
        width: 100%;
    }

    .side-column {
        padding: 12px;
        order: 2;
    }

    .side-head h2 {
        font-size: 19px;
    }

    .mini-card {
        grid-template-columns: 1fr;
    }

    .mini-link {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .mini-image {
        height: 78px;
    }

    .mini-tg {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .feed-section {
        margin-top: 18px;
    }

    .feed-card {
        grid-template-columns: 1fr;
        padding: 9px;
    }

    .feed-click {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 10px;
    }

    .feed-image {
        height: 86px;
        border-radius: 12px;
    }

    .feed-body h3 {
        margin-top: 6px;
        font-size: 15px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .feed-body p {
        display: none;
    }

    .feed-body small {
        font-size: 11px;
    }

    .feed-actions {
        padding: 0;
    }

    .read-button {
        width: 100%;
    }

    .article-page {
        padding-top: 16px;
    }

    .article-card {
        padding: 16px;
    }

    .article-card h1 {
        font-size: 31px;
    }

    .article-content {
        font-size: 16px;
    }

    .site-footer .container {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 18px, 1180px);
    }

    .header-date {
        display: none;
    }

    .lead-image {
        height: 210px;
    }

    .lead-content h1 {
        font-size: 26px;
    }

    .mini-link {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .feed-click {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .feed-image {
        height: 82px;
    }

    .category-badge {
        font-size: 11px;
    }
}

/* Archive */

.archive-page {
    padding: 30px 0 50px;
}

.archive-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
}

.archive-head h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.archive-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.archive-list {
    margin-top: 14px;
}

@media (max-width: 900px) {
    .archive-page {
        padding-top: 16px;
    }

    .archive-head {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .archive-head .btn {
        width: 100%;
    }
}

/* Search and more news */

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
}

.search-box input {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #0c0c0e;
    color: var(--text);
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.search-box input:focus {
    border-color: rgba(229, 9, 20, 0.75);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.search-box button {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--red-2);
}

.search-box-large {
    margin-top: 28px;
}

.more-news-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.more-news-btn {
    min-width: 230px;
}

.all-news-page,
.search-page {
    padding: 30px 0 50px;
}

@media (max-width: 900px) {
    .search-box {
        grid-template-columns: 1fr;
        margin-bottom: 14px;
        padding: 9px;
    }

    .search-box button {
        width: 100%;
    }

    .more-news-btn {
        width: 100%;
    }

    .all-news-page,
    .search-page {
        padding-top: 16px;
    }
}

/* Header search */

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.header-search {
    width: min(360px, 36vw);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.header-search input {
    width: 100%;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #0c0c0e;
    color: var(--text);
    padding: 0 13px;
    font-size: 14px;
    outline: none;
}

.header-search input:focus {
    border-color: rgba(229, 9, 20, 0.75);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.header-search button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.header-search button:hover {
    background: var(--red-2);
}

/* Dropdown menu */

.nav-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.nav-main-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-main-link::after {
    content: "▾";
    font-size: 11px;
    opacity: 0.85;
}

.nav-dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 100;
    min-width: 220px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 10, 12, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    gap: 6px;
}

.header-nav .nav-dropdown-menu a {
    display: block;
    border-radius: 12px;
    white-space: nowrap;
}

/* Public sources */

.public-sources-page {
    padding: 30px 0 50px;
}

.public-sources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.public-source-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    box-shadow: var(--shadow);
}

.public-source-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--red), #520006);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-source-body {
    min-width: 0;
}

.public-source-body h2 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.public-source-body a {
    color: #ffb4ba;
    font-size: 14px;
    word-break: break-word;
}

.public-source-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.source-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.source-status-on {
    background: rgba(25, 195, 125, 0.13);
    border: 1px solid rgba(25, 195, 125, 0.32);
    color: #84f0be;
}

.source-status-off {
    background: rgba(156, 163, 175, 0.12);
    border: 1px solid rgba(156, 163, 175, 0.24);
    color: #c9cdd4;
}

.source-status-priority {
    background: rgba(229, 9, 20, 0.14);
    border: 1px solid rgba(229, 9, 20, 0.35);
    color: #ffb4ba;
}

/* Mobile header/search/dropdown */

@media (max-width: 900px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .header-tools {
        width: 100%;
        justify-content: space-between;
    }

    .header-search {
        width: min(100%, 520px);
        flex: 1;
    }

    .header-date {
        flex: 0 0 auto;
    }

    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        left: 11px;
        right: 11px;
        top: auto;
        margin-top: 8px;
        min-width: 0;
    }

    .public-sources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .header-tools {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .header-search {
        width: 100%;
    }

    .header-date {
        display: block;
        font-size: 12px;
    }

    .public-sources-grid {
        grid-template-columns: 1fr;
    }

    .public-source-card {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 14px;
    }

    .public-source-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 21px;
    }
}

/* Two big central news */

.big-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lead-card-half .lead-image {
    height: 285px;
}

.lead-card-half .lead-content h1 {
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.05;
}

.lead-card-half .lead-content p {
    font-size: 15px;
}

.lead-card-half .lead-actions {
    gap: 8px;
}

.lead-card-half .btn {
    min-height: 39px;
    padding: 8px 13px;
    font-size: 13px;
}

/* Fixed dropdown button */

.header-nav button.nav-main-link {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: #d7d7dc;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.header-nav button.nav-main-link.active,
.header-nav button.nav-main-link:hover,
.nav-dropdown.open > button.nav-main-link {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: grid;
    gap: 6px;
}

.dropdown-home-link {
    font-weight: 800;
}

/* Mobile fix for two big cards and dropdown */

@media (max-width: 900px) {
    .big-news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lead-card-half .lead-image {
        height: 235px;
    }

    .lead-card-half .lead-content h1 {
        font-size: 28px;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: grid;
    }
}

@media (max-width: 420px) {
    .lead-card-half .lead-image {
        height: 210px;
    }

    .lead-card-half .lead-content h1 {
        font-size: 25px;
    }
}

/* FIX v33: two main news vertically */

.big-news-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
}

.lead-card-half .lead-image {
    height: 360px;
}

.lead-card-half .lead-content h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.04;
}

.lead-card-half .lead-content p {
    font-size: 16px;
}

/* FIX v33: reliable categories menu */

.nav-dropdown-details {
    position: relative;
    flex: 0 0 auto;
}

.nav-dropdown-details summary {
    list-style: none;
}

.nav-dropdown-details summary::-webkit-details-marker {
    display: none;
}

.nav-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: #d7d7dc;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    user-select: none;
}

.nav-summary::after {
    content: "▾";
    font-size: 11px;
    opacity: 0.9;
}

.nav-dropdown-details[open] .nav-summary::after {
    content: "▴";
}

.nav-summary.active,
.nav-summary:hover,
.nav-dropdown-details[open] .nav-summary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.nav-dropdown-details .nav-dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 9999;
    min-width: 240px;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 10, 12, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.nav-dropdown-details[open] .nav-dropdown-menu {
    display: grid !important;
    gap: 6px;
}

.header-nav .nav-dropdown-details .nav-dropdown-menu a {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    white-space: nowrap;
    text-decoration: none;
}

.dropdown-home-link {
    font-weight: 900;
}

/* remove old dropdown interference */

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: none;
}

/* mobile */

@media (max-width: 900px) {
    .lead-card-half .lead-image {
        height: 280px;
    }

    .lead-card-half .lead-content h1 {
        font-size: 30px;
    }

    .nav-dropdown-details {
        position: static;
    }

    .nav-dropdown-details .nav-dropdown-menu {
        left: 11px;
        right: 11px;
        top: auto;
        margin-top: 8px;
        min-width: 0;
    }

    .header-nav .nav-dropdown-details .nav-dropdown-menu a {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .lead-card-half .lead-image {
        height: 230px;
    }

    .lead-card-half .lead-content h1 {
        font-size: 25px;
    }
}

/* ============================================================
   ADMIN REDESIGN v34
   ============================================================ */

.admin-shell {
    width: min(1380px, calc(100% - 28px));
    margin: 22px auto 60px;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.25), transparent 34%),
        linear-gradient(135deg, rgba(24,24,28,0.96), rgba(8,8,10,0.98));
    box-shadow: 0 20px 70px rgba(0,0,0,0.38);
}

.admin-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.14);
    color: #ffb3b8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 0.96;
}

.admin-hero p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #a8a8b2;
    font-size: 16px;
}

.admin-hero-actions,
.admin-actions-row,
.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(229, 9, 20, 0.75);
    border-radius: 999px;
    background: #e50914;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: 0.18s ease;
}

.admin-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.admin-btn.ghost {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    color: #e7e7ec !important;
}

.admin-btn.danger {
    background: #b00020;
    border-color: #d51b38;
}

.admin-btn.success {
    background: #118a4d;
    border-color: #19c37d;
}

.admin-btn.warning {
    background: #a76500;
    border-color: #e09b21;
}

.admin-btn.small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
}

.admin-btn.tiny {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
}

.admin-nav-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.admin-nav-pills a {
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
    color: #d5d5dc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.admin-nav-pills a.active,
.admin-nav-pills a:hover {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-stat-card {
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 22px;
    background: rgba(18,18,22,0.88);
}

.admin-stat-card span {
    display: block;
    color: #a8a8b2;
    font-size: 13px;
    font-weight: 800;
}

.admin-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 38px;
    line-height: 1;
}

.admin-stat-card small {
    display: block;
    margin-top: 8px;
    color: #777985;
}

.admin-stat-card.accent {
    background:
        radial-gradient(circle at top right, rgba(229,9,20,0.26), transparent 40%),
        rgba(18,18,22,0.88);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-layout.single {
    grid-template-columns: 1fr;
}

.admin-sidebar {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 12px;
}

.admin-side-card,
.admin-panel {
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 24px;
    background: rgba(14,14,17,0.94);
    box-shadow: 0 16px 50px rgba(0,0,0,0.25);
}

.admin-side-card {
    padding: 18px;
}

.admin-side-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.admin-side-card a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    color: #e6e6ec;
    text-decoration: none;
    font-weight: 800;
}

.admin-side-card a:hover {
    color: #ff3340;
}

.admin-side-card p {
    color: #a8a8b2;
    line-height: 1.55;
}

.admin-main {
    display: grid;
    gap: 16px;
}

.admin-panel {
    padding: 18px;
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.admin-panel-head h2 {
    margin: 0;
    font-size: 24px;
}

.admin-panel-head p {
    margin: 6px 0 0;
    color: #999aa5;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #cfd0d8;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-status.success {
    background: rgba(25,195,125,0.14);
    color: #57e7a5;
}

.admin-status.danger {
    background: rgba(229,9,20,0.15);
    color: #ff7d87;
}

.admin-status.muted {
    color: #a0a1aa;
}

.admin-mini-info {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    color: #d2d2dc;
}

.admin-log {
    max-height: 260px;
    overflow: auto;
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #050506;
    color: #b9ffce;
    font-size: 12px;
    line-height: 1.45;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.admin-form-grid label {
    display: block;
    margin-bottom: 7px;
    color: #b8b8c1;
    font-size: 13px;
    font-weight: 900;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-filters input,
.admin-filters select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
    color: #f1f1f5;
    outline: none;
    font-family: inherit;
}

.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-filters input:focus,
.admin-filters select:focus {
    border-color: rgba(229,9,20,0.8);
    box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
}

.admin-form-grid select,
.admin-filters select {
    color-scheme: dark;
}

.admin-toolbar,
.admin-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 0;
}

.admin-filters input {
    flex: 1 1 320px;
}

.admin-filters select {
    flex: 0 1 240px;
}

.admin-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #d8d8df;
    font-weight: 800;
    cursor: pointer;
}

.admin-check input,
.admin-row-check input {
    width: 17px;
    height: 17px;
    accent-color: #e50914;
}

.admin-list,
.admin-news-table {
    display: grid;
    gap: 8px;
}

.admin-list-row,
.admin-news-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
}

.admin-news-row {
    grid-template-columns: 26px 76px minmax(0, 1fr) auto;
}

.admin-list-row:hover,
.admin-news-row:hover {
    border-color: rgba(229,9,20,0.35);
    background: rgba(229,9,20,0.055);
}

.admin-row-main {
    min-width: 0;
}

.admin-row-main strong {
    display: block;
    color: #f2f2f6;
    line-height: 1.3;
}

.admin-row-main small {
    display: block;
    margin-top: 5px;
    color: #9a9ba5;
    line-height: 1.35;
}

.admin-news-thumb {
    width: 76px;
    height: 52px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(229,9,20,0.4), rgba(40,40,46,0.9));
}

.admin-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-news-thumb span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 0.08em;
}

.admin-row-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

.admin-icon-btn {
    display: inline-grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    cursor: pointer;
}

.admin-icon-btn.danger {
    background: rgba(229,9,20,0.18);
    color: #ff8991;
}

.admin-icon-btn.danger:hover {
    background: #e50914;
    color: #fff;
}

.admin-empty {
    padding: 18px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 18px;
    color: #aaaab3;
    text-align: center;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.075);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #a9a9b4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.035);
}

.admin-table td {
    color: #e5e5eb;
}

.admin-table a {
    color: #ff6d76;
    text-decoration: none;
    font-weight: 800;
}

.admin-table code {
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: #ffd1d5;
}

/* mobile admin */

@media (max-width: 1100px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-shell {
        width: min(100% - 18px, 1380px);
        margin-top: 12px;
    }

    .admin-hero {
        padding: 18px;
        border-radius: 22px;
        flex-direction: column;
    }

    .admin-hero-actions,
    .admin-actions-row {
        width: 100%;
    }

    .admin-btn {
        flex: 1 1 auto;
    }

    .admin-stats-grid,
    .admin-sidebar {
        grid-template-columns: 1fr;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .admin-panel-head {
        flex-direction: column;
    }

    .admin-list-row {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }

    .admin-news-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .admin-news-thumb {
        display: none;
    }

    .admin-row-actions {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-filters {
        display: grid;
    }

    .admin-filters input,
    .admin-filters select {
        flex: unset;
    }
}

@media (max-width: 420px) {
    .admin-hero h1 {
        font-size: 34px;
    }

    .admin-nav-pills a {
        flex: 1 1 auto;
        text-align: center;
    }

    .admin-toolbar {
        display: grid;
    }
}

/* ============================================================
   PRIORITY SOURCES v35
   ============================================================ */

.admin-priority-check {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(25, 195, 125, 0.28);
    border-radius: 16px;
    background: rgba(25, 195, 125, 0.08);
    color: #eafff3;
    cursor: pointer;
}

.admin-priority-check input {
    width: 18px;
    height: 18px;
    accent-color: #19c37d;
}

.admin-priority-check b {
    display: block;
    font-size: 14px;
}

.admin-priority-check small {
    display: block;
    margin-top: 2px;
    color: #9debbf;
    font-size: 12px;
}

.admin-status.priority,
.admin-btn.priority {
    background: #19c37d;
    border-color: #27e192;
    color: #04140b !important;
}

.admin-priority-source-row {
    background: rgba(25, 195, 125, 0.07);
}

.admin-priority-source-row td {
    border-bottom-color: rgba(25, 195, 125, 0.18);
}

/* Подсветка приоритетных новостей на публичной части */

.priority-source-news {
    position: relative;
    border-color: rgba(25, 195, 125, 0.75) !important;
    box-shadow:
        0 0 0 1px rgba(25, 195, 125, 0.25),
        0 18px 60px rgba(25, 195, 125, 0.12),
        var(--shadow, 0 18px 60px rgba(0,0,0,0.35)) !important;
}

.priority-source-news::before {
    content: "ПРИОРИТЕТ";
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #19c37d;
    color: #031107;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 24px rgba(25, 195, 125, 0.28);
}

.priority-source-news h1,
.priority-source-news h2,
.priority-source-news h3 {
    color: #eafff3;
}

.priority-source-news .news-row-category,
.priority-source-news .category,
.priority-source-news .tag,
.priority-source-news .badge {
    background: rgba(25, 195, 125, 0.16) !important;
    color: #70f3aa !important;
    border-color: rgba(25, 195, 125, 0.35) !important;
}

@media (max-width: 760px) {
    .priority-source-form {
        grid-template-columns: 1fr !important;
    }

    .priority-source-news::before {
        top: 8px;
        left: 8px;
        font-size: 10px;
    }
}

/* ============================================================
   REMOVE PRIORITY BADGE FROM PUBLIC NEWS v36
   Оставляем зелёную подсветку, но убираем текст "ПРИОРИТЕТ"
   ============================================================ */

.priority-source-news::before {
    display: none !important;
    content: none !important;
}

/* ============================================================
   REMOVE PRIORITY BADGE FROM PUBLIC NEWS v36
   Оставляем зелёную подсветку, но убираем текст "ПРИОРИТЕТ"
   ============================================================ */

.priority-source-news::before {
    display: none !important;
    content: none !important;
}

/* ===== CLEAN DROPDOWN MENU ВСЕ ===== */

.all-news-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: visible !important;
    z-index: 9999 !important;
}

.all-news-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    background: #ff2020 !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 14px 28px !important;
    font: inherit !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.all-news-toggle:hover,
.all-news-toggle.active,
.all-news-dropdown.open .all-news-toggle {
    background: #ff2020 !important;
    border-color: #ff2020 !important;
    color: #fff !important;
}

.all-news-arrow {
    font-size: 12px !important;
    line-height: 1 !important;
}

.all-news-dropdown.open .all-news-arrow,
.all-news-dropdown:hover .all-news-arrow {
    transform: rotate(180deg) !important;
}

.all-news-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;

    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;

    height: auto !important;
    max-height: none !important;

    overflow: hidden !important;

    padding: 10px !important;
    margin: 0 !important;

    background: #18181d !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,0.55) !important;

    z-index: 999999 !important;
}

.all-news-dropdown:hover > .all-news-menu,
.all-news-dropdown.open > .all-news-menu {
    display: block !important;
}

.all-news-menu > a {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;

    padding: 13px 16px !important;
    margin: 0 0 4px 0 !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 14px !important;

    background: transparent !important;
    color: #fff !important;

    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.all-news-menu > a:hover,
.all-news-menu > a.active {
    background: linear-gradient(90deg, #d52b55, #c93052) !important;
    color: #fff !important;
}

/* Скрываем случайно вложенный старый dropdown внутри меню */
.all-news-menu .all-news-dropdown,
.all-news-menu .all-news-toggle,
.all-news-menu .nav-dropdown,
.all-news-menu .nav-dropdown-toggle,
.all-news-menu .nav-dropdown-menu,
.all-news-menu .nav-summary {
    display: none !important;
}

/* Родители не должны обрезать выпадающее меню */
header,
.site-header,
.header,
.top-header,
.main-header,
.navbar,
.nav,
.main-nav,
.top-nav,
nav {
    overflow: visible !important;
}

/* Убираем скроллбары внутри меню */
.all-news-menu::-webkit-scrollbar,
.all-news-menu *::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}


/* ===== CLEAN DROPDOWN MENU ВСЕ ===== */

.all-news-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: visible !important;
    z-index: 9999 !important;
}

.all-news-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    background: #ff2020 !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 14px 28px !important;
    font: inherit !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.all-news-toggle:hover,
.all-news-toggle.active,
.all-news-dropdown.open .all-news-toggle {
    background: #ff2020 !important;
    border-color: #ff2020 !important;
    color: #fff !important;
}

.all-news-arrow {
    font-size: 12px !important;
    line-height: 1 !important;
}

.all-news-dropdown.open .all-news-arrow,
.all-news-dropdown:hover .all-news-arrow {
    transform: rotate(180deg) !important;
}

.all-news-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;

    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;

    height: auto !important;
    max-height: none !important;

    overflow: hidden !important;

    padding: 10px !important;
    margin: 0 !important;

    background: #18181d !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,0.55) !important;

    z-index: 999999 !important;
}

.all-news-dropdown:hover > .all-news-menu,
.all-news-dropdown.open > .all-news-menu {
    display: block !important;
}

.all-news-menu > a {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;

    padding: 13px 16px !important;
    margin: 0 0 4px 0 !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 14px !important;

    background: transparent !important;
    color: #fff !important;

    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.all-news-menu > a:hover,
.all-news-menu > a.active {
    background: linear-gradient(90deg, #d52b55, #c93052) !important;
    color: #fff !important;
}

/* Скрываем случайно вложенный старый dropdown внутри меню */
.all-news-menu .all-news-dropdown,
.all-news-menu .all-news-toggle,
.all-news-menu .nav-dropdown,
.all-news-menu .nav-dropdown-toggle,
.all-news-menu .nav-dropdown-menu,
.all-news-menu .nav-summary {
    display: none !important;
}

/* Родители не должны обрезать выпадающее меню */
header,
.site-header,
.header,
.top-header,
.main-header,
.navbar,
.nav,
.main-nav,
.top-nav,
nav {
    overflow: visible !important;
}

/* Убираем скроллбары внутри меню */
.all-news-menu::-webkit-scrollbar,
.all-news-menu *::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}


/* ===== FINAL COMPACT ALL NEWS DROPDOWN ===== */

.all-news-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: visible !important;
    z-index: 10000 !important;
}

.all-news-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: #ff2020 !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 14px 26px !important;
    font: inherit !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.all-news-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;

    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;

    padding: 8px !important;
    margin: 0 !important;

    background: rgba(18, 18, 22, 0.98) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,0.55) !important;

    overflow: hidden !important;
    z-index: 999999 !important;
}

.all-news-dropdown:hover > .all-news-menu,
.all-news-dropdown.open > .all-news-menu {
    display: block !important;
}

.all-news-menu > a {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;

    padding: 12px 14px !important;
    margin: 0 0 4px 0 !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;

    background: transparent !important;
    color: #fff !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.all-news-menu > a:hover,
.all-news-menu > a.active {
    background: #ff2020 !important;
    color: #fff !important;
}

.all-news-arrow {
    font-size: 12px !important;
}

.all-news-dropdown:hover .all-news-arrow,
.all-news-dropdown.open .all-news-arrow {
    transform: rotate(180deg) !important;
}

/* Чтобы родительские блоки не обрезали выпадающее меню */
header,
.site-header,
.header,
.top-header,
.main-header,
.navbar,
.nav,
.main-nav,
.top-nav,
nav {
    overflow: visible !important;
}


/* ===== MOBILE HEADER/NAV FIX ===== */

@media (max-width: 768px) {

    body {
        overflow-x: hidden !important;
    }

    .container,
    .page,
    .site,
    main {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Верхняя навигация с кнопками */
    .nav,
    .main-nav,
    .top-nav,
    nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;

        width: 100% !important;
        max-width: 100% !important;

        overflow-x: auto !important;
        overflow-y: visible !important;

        padding: 8px 14px !important;
        margin: 0 !important;

        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav::-webkit-scrollbar,
    .main-nav::-webkit-scrollbar,
    .top-nav::-webkit-scrollbar,
    nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Все обычные кнопки навигации */
    .nav a,
    .main-nav a,
    .top-nav a,
    nav a,
    .nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        min-width: auto !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 11px 18px !important;
        margin: 0 !important;

        border-radius: 999px !important;

        font-size: 16px !important;
        line-height: 1 !important;
        white-space: nowrap !important;

        flex: 0 0 auto !important;
    }

    /* Контейнер dropdown */
    .all-news-dropdown {
        position: relative !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        overflow: visible !important;
        z-index: 999999 !important;
    }

    /* Верхняя кнопка Все */
    .all-news-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        min-width: auto !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 11px 18px !important;
        margin: 0 !important;

        border-radius: 12px !important;

        font-size: 16px !important;
        line-height: 1 !important;
        white-space: nowrap !important;

        flex: 0 0 auto !important;
    }

    /* Выпадающее меню на телефоне */
    .all-news-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;

        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 6px !important;
        margin: 0 !important;

        overflow: hidden !important;

        border-radius: 16px !important;
        background: rgba(18, 18, 22, 0.98) !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        box-shadow: 0 16px 35px rgba(0,0,0,0.55) !important;

        z-index: 999999 !important;
    }

    .all-news-dropdown:hover > .all-news-menu,
    .all-news-dropdown.open > .all-news-menu {
        display: block !important;
    }

    .all-news-menu > a {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        box-sizing: border-box !important;

        padding: 10px 12px !important;
        margin: 0 0 3px 0 !important;

        border-radius: 12px !important;

        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        background: transparent !important;
        color: #fff !important;
    }

    .all-news-menu > a:hover,
    .all-news-menu > a.active {
        background: #ff2020 !important;
        color: #fff !important;
    }

    /* Скрываем случайно вложенную кнопку Все внутри меню, если она ещё осталась */
    .all-news-menu .all-news-dropdown,
    .all-news-menu .all-news-toggle,
    .all-news-menu .nav-dropdown,
    .all-news-menu .nav-dropdown-toggle,
    .all-news-menu .nav-dropdown-menu,
    .all-news-menu .nav-summary,
    .all-news-menu details,
    .all-news-menu summary {
        display: none !important;
    }

    /* Фикс поиска на телефоне */
    .search-form,
    form.search-form,
    .header-search {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;

        width: 100% !important;
        max-width: 100% !important;

        padding: 0 14px !important;
        box-sizing: border-box !important;
    }

    .search-form input,
    .header-search input,
    input[type="search"],
    input[name="q"] {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .search-form button,
    .header-search button {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}


/* ===== FINAL MOBILE DROPDOWN CLICK FIX ===== */

@media (max-width: 768px) {
    .all-news-dropdown {
        position: relative !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        z-index: 999999 !important;
    }

    .all-news-toggle {
        position: relative !important;
        z-index: 1000000 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }

    .all-news-menu {
        display: none !important;
        position: fixed !important;

        width: 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 8px !important;
        margin: 0 !important;

        overflow: visible !important;

        background: rgba(18, 18, 22, 0.98) !important;
        border: 1px solid rgba(255,255,255,0.16) !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 45px rgba(0,0,0,0.65) !important;

        z-index: 1000001 !important;
    }

    .all-news-dropdown.open > .all-news-menu {
        display: block !important;
    }

    .all-news-menu > a {
        display: block !important;
        box-sizing: border-box !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 11px 13px !important;
        margin: 0 0 4px 0 !important;

        border-radius: 12px !important;

        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        color: #fff !important;
        background: transparent !important;
        text-decoration: none !important;
    }

    .all-news-menu > a:hover,
    .all-news-menu > a.active {
        background: #ff2020 !important;
        color: #fff !important;
    }

    .all-news-dropdown.open .all-news-arrow {
        transform: rotate(180deg) !important;
    }

    /* На телефоне не полагаемся на hover */
    .all-news-dropdown:hover > .all-news-menu {
        display: none !important;
    }

    .all-news-dropdown.open:hover > .all-news-menu {
        display: block !important;
    }
}


.news-media,
.news-card video,
.news-card img,
.article-image,
.article-content video,
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

video.news-media {
    background: #000;
}
